*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    height: auto;
    overflow-y: auto;

    display: block;
    padding: 0;

    -webkit-overflow-scrolling: touch;
}

#app {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
}

input,
textarea,
select {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    font-size: 16px !important;
}

.loading{

    text-align:center;

    font-size:22px;

    color:#bdbdbd;

}

.card{
    background:#181b21;

    border:1px solid rgba(255,255,255,.08);

    border-radius:28px;

    overflow:hidden;

    box-shadow:

        0 30px 70px rgba(0,0,0,.45),

        inset 0 1px rgba(255,255,255,.05);
}

.header{

    background:

        linear-gradient(

            180deg,

            #2a8c4d,

            #145d31

        );

    padding:30px;

    text-align:center;

}

.header h1{

    font-size:32px;

    margin-bottom:8px;

}

.header p{

    opacity:.9;

}
.subtitle{
    color:#d6f6df;
    margin-top:8px;
    font-size:15px;
    opacity:.9;
    letter-spacing:1px;
}
.game{

    padding:25px;

}

.title{

    text-align:center;

    font-size:26px;

    font-weight:bold;

    margin-bottom:25px;

}

.panels{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin:30px 0;
}

.panel{
    position:relative;
    aspect-ratio:1;
    width:100%;
    border-radius:18px;
    overflow:hidden;
    background:#2a2d35;

    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.05),
        0 8px 18px rgba(0,0,0,.35);
}

.panel:hover{

    transform:translateY(-2px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 14px 26px rgba(0,0,0,.45);

}

.icon{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

}

.icon img{
    width:58%;
    height:58%;
    object-fit:contain;
    user-select:none;
    pointer-events:none;
}

.panel canvas{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    touch-action:none;

}

.instructions{

    color:#7fbf8c;

    font-size:15px;

    font-weight:600;

}
#result{

    margin-top:30px;

    min-height:130px;

    text-align:center;

}

#result h2{

    margin-bottom:10px;

}

#result h3{

    color:#32d878;

    margin-top:10px;

    font-size:28px;

}

.prize-image{

    width:240px;

    height:240px;

    border-radius:22px;

    background:#20242b;

    border:2px solid #2ecb70;

    padding:12px;

}
.panel::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        transparent 20%,
        rgba(255,255,255,.15) 50%,
        transparent 80%
    );
    animation: sweep 2.5s linear infinite;
    pointer-events:none;
}

@keyframes sweep{

    from{
        transform:translateX(-150%);
    }

    to{
        transform:translateX(150%);
    }

}

.winners-page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 22px 16px 40px;
}

.winners-header {
    text-align: center;
    margin-bottom: 24px;
}

.winners-trophy {
    display: block;
    font-size: 52px;
    margin-bottom: 8px;
}

.winners-header h1 {
    margin: 0;
    font-size: 30px;
}

.winners-header p {
    margin: 8px 0 0;
    opacity: 0.72;
}

.winners-list {
    display: grid;
    gap: 14px;
}

.winner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.winner-prize-image,
.winner-image-placeholder {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 14px;
}

.winner-prize-image {
    object-fit: cover;
}

.winner-image-placeholder {
    display: grid;
    place-items: center;
    font-size: 38px;
    background: rgba(255, 255, 255, 0.08);
}

.winner-card-content {
    min-width: 0;
    flex: 1;
}

.winner-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.winner-player {
    font-size: 13px;
    opacity: 0.74;
}

.winner-status {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 215, 0, 0.16);
}

.winner-card h2 {
    margin: 0;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.winner-value {
    margin-top: 6px;
    font-weight: 800;
}

.winner-date {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.62;
}

.empty-winners,
.app-error {
    padding: 34px 20px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
}

.empty-winners-icon,
.app-error-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.empty-winners h2,
.app-error h2 {
    margin: 0 0 7px;
}

.empty-winners p,
.app-error p {
    margin: 0;
    opacity: 0.7;
}

.winner-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.stat-card {
    min-width: 0;
    padding: 16px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.stat-icon {
    display: block;
    margin-bottom: 7px;
    font-size: 23px;
}

.stat-card strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.15;
}

.stat-card > span:last-child {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    opacity: 0.68;
}

@media (max-width: 380px) {

    .winner-stats {
        gap: 7px;
    }

    .stat-card {
        padding: 14px 5px;
    }

    .stat-card strong {
        font-size: 15px;
    }

    .stat-card > span:last-child {
        font-size: 10px;
    }
}

.claim-page {
    width: 100%;
    padding: 24px 16px 48px;
}

.claim-header {
    margin-bottom: 22px;
    text-align: center;
}

.claim-header-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 42px;
}

.claim-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.claim-header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.claim-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: #171c21;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.claim-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.claim-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.claim-field span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.claim-field small {
    opacity: 0.55;
    font-weight: 400;
}

.claim-field input {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    outline: none;
    background: #22282f;
    color: white;
    font-size: 16px;
    user-select: text;
    -webkit-user-select: text;
    touch-action: manipulation;
}

.claim-field input:focus {
    border-color: #42d17f;
    box-shadow: 0 0 0 3px rgba(66, 209, 127, 0.14);
}

.claim-submit-button {
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #4ddd8b, #29b96c);
    color: #07150d;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.claim-submit-button:disabled {
    opacity: 0.55;
}

.claim-form-message {
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
}

.claim-form-message.error {
    padding: 12px;
    border: 1px solid rgba(255, 92, 92, 0.3);
    border-radius: 11px;
    background: rgba(255, 72, 72, 0.09);
    color: #ffb1b1;
}

.claim-privacy-note {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 420px) {
    .claim-page {
        padding: 18px 12px 36px;
    }

    .claim-form {
        padding: 17px;
    }

    .claim-field-row {
        grid-template-columns: 1fr;
    }
}

.subtitle,
.instructions {
    color: #d7f5df;
}

.header p,
.claim-header p,
.claim-privacy-note,
.winners-header p,
.winner-player,
.winner-date {
    color: rgba(255, 255, 255, 0.78);
    opacity: 1;
}

.loading {
    color: #e0e0e0;
}

.claim-success{
    max-width:420px;
    margin:50px auto;
    padding:0 20px;
    text-align:center;
}

.claim-success-icon{
    width:84px;
    height:84px;
    margin:0 auto 20px;
    border-radius:50%;
    background:linear-gradient(180deg,#4dde89,#2dbb6e);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.claim-success h1{
    margin:0;
    font-size:34px;
    color:#fff;
}

.claim-success-text{
    margin:18px auto 30px;
    color:#cdd6de;
    line-height:1.6;
    max-width:320px;
}

.claim-success-card{
    background:#171d23;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    overflow:hidden;
    margin-bottom:28px;
}

.success-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
}

.success-row:not(:last-child){
    border-bottom:1px solid rgba(255,255,255,.08);
}

.success-row span{
    color:#96a3af;
}

.success-row strong{
    color:#fff;
}

.claim-success-button{
    width:100%;
    height:54px;
    border:none;
    border-radius:14px;
    background:linear-gradient(180deg,#4dde89,#2dbb6e);
    color:#08140d;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    transition:.2s;
}

.claim-success-button:active{
    transform:scale(.98);
}
.claim-result-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 18px 48px;
}

.claim-result {
    width: 100%;
    max-width: 390px;
    padding: 30px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: #182129;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.claim-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(67, 203, 127, 0.14);
    font-size: 40px;
}

.claim-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dce7ee;
    font-size: 13px;
    font-weight: 700;
}

.claim-status-badge.pending {
    background: rgba(255, 199, 88, 0.13);
    color: #ffd98b;
}

.claim-status-badge.approved {
    background: rgba(67, 203, 127, 0.14);
    color: #8cf0b7;
}

.claim-status-badge.fulfilled {
    background: rgba(99, 160, 255, 0.14);
    color: #a9caff;
}

.claim-status-badge.rejected {
    background: rgba(255, 99, 99, 0.14);
    color: #ffb0b0;
}

.claim-result h1 {
    margin: 18px 0 10px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.15;
}

.claim-result-message {
    max-width: 310px;
    margin: 0 auto 24px;
    color: #c8d2da;
    font-size: 15px;
    line-height: 1.6;
}

.claim-result-summary {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    text-align: left;
}

.claim-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 17px;
}

.claim-result-row + .claim-result-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.claim-result-row span {
    color: #94a4af;
    font-size: 14px;
}

.claim-result-row strong {
    color: #ffffff;
    font-size: 14px;
    text-align: right;
}

.claim-close-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        #4ddd8b,
        #2abd6d
    );
    color: #07140d;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.claim-close-button:active {
    transform: scale(0.98);
}

/* =========================
   Admin claims dashboard
========================= */

.admin-page {
    width: min(100%,980px);
    margin: auto;
    padding: 24px;
    min-height: 100vh;

    background:
        radial-gradient(circle at top right,#6a5cff33,transparent 35%),
        radial-gradient(circle at bottom left,#2ed8ff22,transparent 35%);
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-header h1 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.admin-eyebrow {
    margin: 0;
    color: #8f9aab;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-subtitle {
    margin: 0;
    color: #aeb7c5;
}

.admin-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.filter-button{
    background:#2b3555;
    color:#d7e1ff;
    border:none;
}

.filter-button.active{
    background:linear-gradient(
        135deg,
        #7c5cff,
        #4f9cff
    );
    color:white;
}

.admin-message {
    min-height: 22px;
    margin: 0 0 14px;
    color: #91d9aa;
}

.admin-message.error {
    color: #ff9e9e;
}

.claims-list {
    display: grid;
    gap: 14px;
}

.admin-claim-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(
        135deg,
        #232b45 0%,
        #1b1f34 100%
    );
    box-shadow:
        0 8px 24px rgba(0,0,0,.35),
        0 0 20px rgba(98,168,255,.12);
    transition: .2s ease;
}

.admin-claim-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(0,0,0,.45),
        0 0 28px rgba(98,168,255,.25);
}

.admin-claim-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-claim-card h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.admin-claim-card p {
    margin: 0;
    color: #aeb7c5;
}

.admin-claim-summary {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-claim-summary p {
    display: grid;
    gap: 3px;
}

.admin-claim-summary strong {
    color: #eef2f7;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.claim-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pending{
    background:#ffd54f;
    color:#111;
}

.status-approved{
    background:#4ade80;
    color:#111;
}

.status-rejected{
    background:#ff5f6d;
    color:white;
}

.status-paid{
    background:#60a5fa;
    color:white;
}

.status-shipped{
    background:#c084fc;
    color:white;
}

.primary-button,
.secondary-button,
.icon-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.primary-button,
.secondary-button {
    border-radius: 12px;
    padding: 11px 15px;
    font-weight: 700;
}

.primary-button{
    background:linear-gradient(
        135deg,
        #7c5cff,
        #4f9cff
    );
    color:white;
    box-shadow:0 8px 20px rgba(90,120,255,.35);
}

.primary-button:hover{
    transform:translateY(-2px);
}

.secondary-button{
    background:#2b3555;
    color:white;
    border:1px solid #46578f;
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-empty {
    padding: 30px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #aeb7c5;
    text-align: center;
}

.claim-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-items: end;
}

.claim-modal.hidden {
    display: none;
}

.claim-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.72);
}

.claim-modal-card {
    position: relative;
    z-index: 2;

    width: min(100%, 700px);
    max-height: 88vh;
    margin: 0 auto;
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px 24px 0 0;
    background: linear-gradient(
        145deg,
        #202943,
        #171c30
    );

    padding: 22px 18px 30px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(124, 92, 255, 0.18);
}

.claim-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.claim-modal-header h2 {
    margin: 4px 0 0;
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 24px;
}

.claim-details {
    display: grid;
    gap: 1px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
}

.claim-detail-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.04);
}

.claim-detail-row span {
    color: #9da7b6;
}

.claim-detail-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #eef2f7;
}

.admin-form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-form-group label {
    color: #dce2eb;
    font-weight: 700;
}

.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 12px;
    font: inherit;
}

.admin-form-group select option {
    color: #111111;
}

.admin-form-group textarea {
    resize: vertical;
}

@media (min-width: 700px) {
    .claims-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .claim-modal {
        align-items: center;
        padding: 24px;
    }

    .claim-modal-card {
        border-radius: 24px;
    }
}

/* ========================================
   LuckyLayer Admin Dashboard
======================================== */

.admin-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: #7a83a3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-header h1 {
    margin: 0;
    color: #17213f;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.admin-subtitle {
    margin: 10px 0 0;
    color: #7c86a5;
    font-size: 1rem;
}

.secondary-button,
.primary-button,
.icon-button {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.secondary-button {
    padding: 12px 18px;
    border: 1px solid #465eaa;
    border-radius: 13px;
    background: linear-gradient(135deg, #27345d, #314684);
    color: #fff;
    box-shadow: 0 8px 20px rgba(35, 50, 93, 0.18);
}

.secondary-button:hover,
.primary-button:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.secondary-button:disabled,
.primary-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(110, 124, 175, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 32px rgba(38, 50, 94, 0.09);
    backdrop-filter: blur(14px);
}

.admin-stat-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: 0.18;
}

.admin-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: #7c86a5;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-stat-card strong {
    color: #17213f;
    font-size: 2rem;
    line-height: 1;
}

.stat-total::after {
    background: #6574ff;
}

.stat-pending::after {
    background: #f4bd37;
}

.stat-approved::after {
    background: #46c98e;
}

.stat-shipped::after {
    background: #5898ff;
}

.admin-search-section {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.admin-search-section label {
    color: #263253;
    font-size: 0.86rem;
    font-weight: 800;
}

#claim-search {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dce1f0;
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.94);
    color: #202a49;
    font: inherit;
    box-shadow: 0 8px 24px rgba(45, 58, 105, 0.06);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

#claim-search:focus {
    border-color: #6c7df0;
    box-shadow: 0 0 0 4px rgba(108, 125, 240, 0.13);
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.filter-button {
    padding: 9px 14px;
    border: 1px solid #d8deee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #56617f;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.filter-button:hover {
    transform: translateY(-1px);
    border-color: #8d9af0;
    color: #334377;
}

.filter-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, #6172ef, #4656c7);
    color: #fff;
    box-shadow: 0 7px 18px rgba(74, 90, 203, 0.23);
}

.admin-message {
    min-height: 22px;
    margin: 0 0 16px;
    color: #38a66f;
    font-weight: 700;
}

.admin-message.error {
    color: #e65466;
}

.claims-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-claim-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(120, 137, 193, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top right,
            rgba(104, 126, 240, 0.18),
            transparent 34%
        ),
        linear-gradient(145deg, #1d2746, #151d37);
    color: #f7f8ff;
    box-shadow: 0 15px 32px rgba(18, 28, 58, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-claim-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(18, 28, 58, 0.28);
}

.admin-claim-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-claim-card h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.25rem;
}

.admin-claim-card-top p {
    margin: 0;
    color: #9eb0dd;
}

.claim-status-badge {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-pending {
    background: #ffd34f;
    color: #473300;
}

.status-approved {
    background: #49d696;
    color: #073a25;
}

.status-rejected {
    background: #ff5e72;
    color: #fff;
}

.status-paid {
    background: #ab7aff;
    color: #fff;
}

.status-shipped {
    background: #5ba4ff;
    color: #fff;
}

.admin-claim-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-claim-summary p {
    margin: 0;
    color: #d8def3;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-claim-summary strong {
    display: block;
    margin-bottom: 3px;
    color: #8898c5;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-claim-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.quick-status-select {
    min-width: 135px;
    padding: 11px 12px;
    border: 1px solid #53679f;
    border-radius: 12px;
    outline: none;
    background: #111a34;
    color: #fff;
    font: inherit;
    font-weight: 700;
}

.quick-status-select:focus {
    border-color: #91a4ff;
    box-shadow: 0 0 0 3px rgba(145, 164, 255, 0.17);
}

.admin-claim-actions .secondary-button {
    padding: 11px 16px;
    background: #283863;
    box-shadow: none;
}

.admin-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px dashed #cfd5e8;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    color: #77819e;
    text-align: center;
}

/* Modal */

.claim-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.claim-modal.hidden {
    display: none;
}

.claim-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 32, 0.62);
    backdrop-filter: blur(7px);
}

.claim-modal-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(8, 14, 31, 0.35);
}

.claim-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.claim-modal-header h2 {
    margin: 0;
    color: #17213f;
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #eef1f9;
    color: #334064;
    font-size: 1.4rem;
}

.claim-details {
    display: grid;
    gap: 2px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid #e4e8f2;
    border-radius: 16px;
    background: #e4e8f2;
}

.claim-detail-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 13px 15px;
    background: #fff;
}

.claim-detail-row span {
    color: #8992ab;
    font-size: 0.84rem;
    font-weight: 700;
}

.claim-detail-row strong {
    min-width: 0;
    color: #222d4c;
    overflow-wrap: anywhere;
}

.admin-form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.admin-form-group label {
    color: #273253;
    font-size: 0.88rem;
    font-weight: 800;
}

.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d9dfed;
    border-radius: 13px;
    outline: none;
    background: #fafbff;
    color: #242e4d;
    font: inherit;
}

.admin-form-group textarea {
    resize: vertical;
}

.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: #7485ed;
    box-shadow: 0 0 0 4px rgba(116, 133, 237, 0.13);
}

.primary-button {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6575ef, #4a58c8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(74, 88, 200, 0.25);
}

/* Responsive */

@media (max-width: 800px) {
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .claims-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-page {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header > .secondary-button {
        width: 100%;
    }

    .admin-stats {
        gap: 10px;
    }

    .admin-stat-card {
        min-height: 94px;
        padding: 16px;
    }

    .admin-stat-card strong {
        font-size: 1.7rem;
    }

    .admin-claim-card {
        padding: 19px;
    }

    .admin-claim-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-status-select,
    .admin-claim-actions .secondary-button {
        width: 100%;
    }

    .claim-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
/* =========================================================
   LuckyLayer v2 catalogue UI
========================================================= */
:root {
    --ll-bg: #03110d;
    --ll-surface: #071c16;
    --ll-surface-2: #0b261d;
    --ll-border: rgba(214, 170, 54, .32);
    --ll-gold: #e5b94f;
    --ll-green: #77df4f;
    --ll-text: #f7f5ea;
    --ll-muted: #aabbb2;
}
body {
    background:
        radial-gradient(circle at 50% -10%, rgba(40, 143, 69, .24), transparent 32rem),
        linear-gradient(180deg, #04140f, var(--ll-bg));
    color: var(--ll-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#app { max-width: 540px; }
.ll-home-page, .ll-catalogue-page, .ll-cards-page { min-height: 100vh; padding: 18px 14px 34px; }
.ll-loading-shell { min-height: 70vh; display: grid; place-items: center; }
.ll-brand-header { display:flex; align-items:center; justify-content:center; gap:12px; padding:10px 0 18px; text-align:left; }
.ll-brand-mark { font-size:42px; filter: drop-shadow(0 0 14px rgba(119,223,79,.35)); }
.ll-brand-header h1 { margin:0; font-size:32px; letter-spacing:.02em; }
.ll-brand-header p { margin:2px 0 0; color:var(--ll-green); font-size:13px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.ll-featured-card { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(110px,.65fr); gap:12px; padding:22px; border:1px solid var(--ll-border); border-radius:24px; background:linear-gradient(145deg,rgba(7,30,23,.98),rgba(2,14,11,.98)); box-shadow:0 24px 55px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04); }
.ll-featured-empty { grid-template-columns:1fr; }
.ll-eyebrow { color:var(--ll-gold); font-size:11px; font-weight:900; letter-spacing:.14em; }
.ll-featured-copy h2 { margin:8px 0 8px; font-size:25px; }
.ll-featured-copy p { margin:0; color:var(--ll-muted); line-height:1.5; }
.ll-featured-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin:14px 0; color:var(--ll-muted); font-size:13px; }
.ll-featured-meta strong { color:var(--green, var(--ll-green)); }
.ll-featured-media { display:grid; place-items:center; }
.ll-featured-image { width:100%; max-width:150px; aspect-ratio:1; object-fit:cover; border-radius:20px; border:1px solid var(--ll-border); background:#06130f; }
.ll-primary-action { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:50px; border:1px solid rgba(128,235,87,.45); border-radius:14px; background:linear-gradient(180deg,#32913c,#176326); color:white; font-weight:900; font-size:15px; box-shadow:0 10px 25px rgba(28,112,45,.25); }
.ll-primary-action span { margin-left:auto; font-size:24px; }
.ll-dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.ll-menu-tile, .ll-wide-link { border:1px solid rgba(205,170,69,.25); background:linear-gradient(145deg,rgba(8,30,23,.98),rgba(5,20,16,.98)); color:var(--ll-text); }
.ll-menu-tile { min-height:98px; padding:16px; border-radius:18px; display:flex; align-items:center; gap:11px; text-align:left; }
.ll-menu-icon { font-size:26px; }
.ll-menu-tile strong, .ll-wide-link strong { display:block; font-size:15px; }
.ll-menu-tile small, .ll-wide-link small { display:block; margin-top:4px; color:var(--ll-muted); font-size:12px; line-height:1.35; }
.ll-balance-value { color:var(--ll-green)!important; font-size:17px!important; font-weight:900; }
.ll-link-stack { display:grid; gap:9px; margin-top:12px; }
.ll-wide-link { width:100%; min-height:70px; padding:14px 16px; border-radius:16px; display:grid; grid-template-columns:32px 1fr 20px; align-items:center; gap:8px; text-align:left; }
.ll-wide-link > span:first-child { font-size:23px; }
.ll-wide-link b { color:var(--ll-gold); font-size:22px; }
.ll-good-luck { display:flex; align-items:center; gap:12px; margin-top:12px; padding:15px 18px; border:1px solid var(--ll-border); border-radius:16px; background:rgba(6,24,18,.82); }
.ll-good-luck > span { font-size:30px; }
.ll-good-luck strong { display:block; color:var(--ll-gold); }
.ll-good-luck small { display:block; margin-top:3px; color:var(--ll-muted); }
.ll-page-header { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:12px; padding:6px 0 18px; }
.ll-page-header h1 { margin:0; font-size:25px; }
.ll-page-header p { margin:5px 0 0; color:var(--ll-muted); }
.ll-back-button { min-height:38px; padding:0 11px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.04); color:white; font-weight:800; }
.ll-catalogue-note { display:flex; gap:12px; padding:17px; border:1px solid rgba(70,183,85,.25); border-radius:18px; background:linear-gradient(145deg,rgba(7,35,25,.94),rgba(3,22,16,.94)); }
.ll-catalogue-note > span { font-size:24px; }
.ll-catalogue-note strong { color:var(--ll-gold); }
.ll-catalogue-note p { margin:5px 0 0; color:var(--ll-muted); font-size:13px; line-height:1.4; }
.ll-prize-list { display:grid; gap:10px; margin:14px 0 96px; }
.ll-prize-row { display:grid; grid-template-columns:34px 78px minmax(0,1fr) 80px; align-items:center; gap:10px; padding:12px; border:1px solid rgba(202,171,73,.25); border-radius:18px; background:linear-gradient(145deg,rgba(7,29,22,.98),rgba(4,18,14,.98)); }
.ll-prize-number { display:grid; place-items:center; width:30px; height:38px; border-radius:10px; background:linear-gradient(180deg,#4b9c31,#1b5b20); font-weight:900; }
.catalogue-prize-image { width:78px; height:78px; object-fit:cover; border-radius:14px; border:1px solid rgba(226,184,65,.24); background:#06130f; }
.prize-image-placeholder { display:grid; place-items:center; font-size:32px; }
.ll-prize-copy { min-width:0; }
.ll-prize-copy h2 { margin:0; font-size:15px; line-height:1.3; }
.ll-prize-copy p { margin:5px 0 0; color:var(--ll-muted); font-size:12px; line-height:1.35; }
.ll-prize-value { display:block; margin-top:5px; color:var(--ll-gold); font-size:11px; font-weight:800; }
.ll-price-button { min-height:68px; padding:8px; border:1px solid rgba(126,222,77,.3); border-radius:14px; background:rgba(7,28,21,.9); color:white; }
.ll-price-button strong { display:block; color:var(--ll-green); font-size:20px; }
.ll-price-button small { display:block; margin-top:2px; color:var(--ll-muted); font-size:10px; }
.ll-sticky-wallet { position:fixed; left:50%; bottom:10px; transform:translateX(-50%); width:min(calc(100% - 28px),512px); display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; border:1px solid var(--ll-border); border-radius:18px; background:rgba(3,17,13,.96); backdrop-filter:blur(14px); box-shadow:0 18px 45px rgba(0,0,0,.45); }
.ll-sticky-wallet > div { display:flex; align-items:center; gap:10px; }
.ll-sticky-wallet > div > span { font-size:26px; }
.ll-sticky-wallet strong, .ll-sticky-wallet small { display:block; }
.ll-sticky-wallet small { margin-top:3px; color:var(--ll-muted); font-size:10px; }
.ll-sticky-wallet button { min-height:44px; padding:0 16px; border:0; border-radius:12px; background:linear-gradient(180deg,#439f3c,#1d6e29); color:white; font-weight:900; }
.ll-owned-list { display:grid; gap:10px; }
.ll-owned-card { display:grid; grid-template-columns:70px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px; border:1px solid rgba(202,171,73,.24); border-radius:18px; background:rgba(6,25,19,.94); }
.ll-owned-image { width:70px; height:70px; object-fit:cover; border-radius:13px; background:#06130f; }
.ll-owned-card h2 { margin:0; font-size:15px; }
.ll-owned-card p { margin:5px 0 0; color:var(--ll-muted); font-size:12px; }
.ll-owned-card button { min-height:40px; padding:0 14px; border:0; border-radius:11px; background:linear-gradient(180deg,#439f3c,#1d6e29); color:white; font-weight:900; }
.ll-owned-status { color:var(--ll-gold); font-size:11px; font-weight:900; }
.ll-empty-state { padding:34px 20px; border:1px dashed rgba(229,185,79,.28); border-radius:20px; text-align:center; background:rgba(6,24,18,.72); }
.ll-empty-state > span { font-size:42px; }
.ll-empty-state h2 { margin:10px 0 6px; }
.ll-empty-state p { margin:0 0 16px; color:var(--ll-muted); }
@media (max-width:420px) {
    .ll-featured-card { grid-template-columns:1fr; }
    .ll-featured-media { order:-1; }
    .ll-featured-image { max-width:120px; }
    .ll-prize-row { grid-template-columns:30px 62px minmax(0,1fr) 70px; gap:8px; padding:10px; }
    .catalogue-prize-image { width:62px; height:62px; }
    .ll-prize-copy h2 { font-size:13px; }
    .ll-price-button strong { font-size:17px; }
}

/* Premium scratch-card screen only; dashboard remains LuckyLayer v2. */
/* =========================================================
   LuckyLayer premium scratchcard
   ========================================================= */

.scratch-page {
    min-height: 100vh;
    padding: 10px;
}

.scratch-page .scratch-card-shell {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 20px);
    border: 1px solid rgba(235, 197, 91, .55);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(26, 132, 70, .28), transparent 32rem),
        linear-gradient(180deg, #08271b 0%, #071611 24%, #080d0b 100%);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .55),
        inset 0 0 0 1px rgba(87, 224, 137, .12);
}

.scratch-page .scratch-card-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        radial-gradient(circle, rgba(246, 207, 90, .9) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(70, 221, 127, .7) 0 1px, transparent 1.5px);
    background-position: 16px 22px, 78px 88px;
    background-size: 92px 92px, 126px 126px;
}

.scratch-page .scratch-hero,
.scratch-page .ticket-details,
.scratch-page .instant-outcome,
.scratch-page .game {
    position: relative;
    z-index: 1;
}

.scratch-page .scratch-hero {
    padding: 24px 16px 19px;
    text-align: center;
    border-bottom: 1px solid rgba(233, 194, 73, .24);
    background:
        radial-gradient(circle at 50% 0%, rgba(38, 192, 96, .22), transparent 78%),
        linear-gradient(180deg, rgba(7, 81, 43, .86), rgba(4, 38, 27, .72));
}

.scratch-page .brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
}

.scratch-page .brand-clover {
    color: #e9c957;
    font-size: 25px;
    filter: drop-shadow(0 0 10px rgba(239, 198, 65, .48));
}

.scratch-page .scratch-hero h1 {
    margin: 0;
    font-size: clamp(34px, 10vw, 50px);
    line-height: .95;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 3px 0 #a87821, 0 10px 24px rgba(0, 0, 0, .42);
}

.scratch-page .scratch-hero p {
    margin: 12px 0 0;
    color: #f3ce64;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
}

.scratch-page .ticket-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(7, 12, 11, .78);
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.scratch-page .ticket-details div {
    min-width: 0;
    padding: 15px 7px;
    text-align: center;
}

.scratch-page .ticket-details div + div {
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.scratch-page .ticket-details span,
.scratch-page .instant-outcome span,
.scratch-page .result-copy > span {
    display: block;
    color: #a9b7ae;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.scratch-page .ticket-details strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #42dd82;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scratch-page .instant-outcome {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 14px 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(13, 20, 17, .9);
}

.scratch-page .instant-outcome.is-win {
    border-color: rgba(239, 199, 72, .65);
    background: linear-gradient(135deg, rgba(83, 61, 8, .42), rgba(8, 53, 30, .94));
    box-shadow: 0 0 30px rgba(239, 199, 72, .1);
}

.scratch-page .instant-outcome.is-refund {
    border-color: rgba(62, 219, 131, .55);
}

.scratch-page .instant-outcome.is-loss {
    border-color: rgba(255, 255, 255, .12);
}

.scratch-page .outcome-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(238, 198, 66, .5);
    border-radius: 15px;
    background: rgba(3, 13, 9, .65);
    font-size: 24px;
}

.scratch-page .instant-outcome h2 {
    margin: 3px 0 2px;
    color: #fff;
    font-size: 20px;
}

.scratch-page .instant-outcome p {
    margin: 0;
    color: #bac8bf;
    font-size: 12px;
    line-height: 1.45;
}

.scratch-page .game {
    padding: 17px 14px 24px;
}

.scratch-page .section-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 5px 0 13px;
}

.scratch-page .section-heading span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 192, 63, .65));
}

.scratch-page .section-heading span:last-child {
    background: linear-gradient(90deg, rgba(230, 192, 63, .65), transparent);
}

.scratch-page .section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.scratch-page .scratch-progress {
    margin-bottom: 14px;
}

.scratch-page .scratch-progress-copy {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: #9fb2a6;
    font-size: 11px;
    font-weight: 700;
}

.scratch-page .scratch-progress-copy strong {
    color: #47dc84;
}

.scratch-page .scratch-progress-track {
    overflow: hidden;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.scratch-page #progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #36d978, #f0ca55);
    box-shadow: 0 0 14px rgba(52, 221, 121, .45);
    transition: width .28s ease;
}

.scratch-page .panels {
    gap: 10px;
    margin: 0;
}

.scratch-page .panel {
    border: 1px solid rgba(235, 195, 65, .58);
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 35%, rgba(35, 82, 58, .35), transparent 72%),
        linear-gradient(145deg, #16211c, #09100d);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .035),
        0 8px 20px rgba(0, 0, 0, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.scratch-page .panel::before {
    display: none;
}

.scratch-page .panel.is-revealed {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 24px rgba(49, 216, 115, .08),
        0 11px 24px rgba(0, 0, 0, .36),
        0 0 0 1px rgba(67, 222, 126, .28);
}

.scratch-page .panel.is-revealed .scratch {
    animation: scratchFade .32s ease forwards;
}

@keyframes scratchFade {
    to {
        opacity: 0;
        transform: scale(1.04);
    }
}

.icon {
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.icon img {
    width: 64%;
    height: 64%;
    filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .55));
}

.icon span {
    color: #edf3ef;
    font-size: clamp(8px, 2.4vw, 11px);
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.panel canvas {
    cursor: crosshair;
}

.instructions {
    margin: 14px 2px 0;
    color: #9eb4a6;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

#result {
    min-height: 0;
    margin-top: 18px;
}

#result:empty {
    display: none;
}

#result.is-visible {
    animation: resultRise .5s cubic-bezier(.2, .8, .2, 1);
}

@keyframes resultRise {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.result-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(238, 197, 65, .72);
    border-radius: 22px;
    background:
        radial-gradient(circle at 80% 20%, rgba(239, 196, 64, .2), transparent 42%),
        linear-gradient(145deg, rgba(8, 75, 40, .96), rgba(5, 23, 16, .98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
    text-align: left;
}

.result-celebration {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(235, 195, 61, .65);
    border-radius: 18px;
    background: rgba(3, 17, 10, .64);
    font-size: 29px;
    box-shadow: 0 0 25px rgba(236, 198, 63, .12);
}

.result-copy h2 {
    margin: 3px 0 1px !important;
    color: #f2cc58;
    font-size: 27px;
    line-height: 1;
}

.result-copy h3 {
    margin: 6px 0 0 !important;
    color: #fff !important;
    font-size: 17px !important;
}

.result-copy p {
    margin-top: 5px;
    color: #c1cdc5;
    font-size: 12px;
    line-height: 1.45;
}

.result-copy strong {
    display: block;
    margin-top: 8px;
    color: #45dd82;
    font-size: 25px;
}

.result-card .prize-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 180px;
    border: 1px solid rgba(64, 218, 125, .45);
    border-radius: 17px;
    object-fit: contain;
    background: rgba(5, 14, 10, .65);
    padding: 8px;
}

.result-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.result-actions button {
    min-height: 48px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
}

.primary-result-button {
    border: 0;
    color: #17200f;
    background: linear-gradient(180deg, #ffe47e, #d9a92e);
    box-shadow: 0 8px 18px rgba(207, 157, 31, .24);
}

.secondary-result-button {
    border: 1px solid rgba(63, 220, 126, .62);
    color: #f4f7f5;
    background: rgba(6, 19, 13, .68);
}

.result-card.loser,
.result-card.refund-result {
    grid-template-columns: auto 1fr;
}

@media (max-width: 370px) {
    .scratch-page {
        padding: 5px;
    }

    .scratch-card-shell {
        border-radius: 23px;
    }

    .ticket-details {
        margin-inline: 9px;
    }

    .instant-outcome {
        margin-inline: 9px;
    }

    .game {
        padding-inline: 9px;
    }

    .panels {
        gap: 7px;
    }

    .result-actions {
        grid-template-columns: 1fr;
    }
}

/* LuckyLayer wallet, referrals and NOWPayments screens */

.ll-feature-page {
    min-height: 100vh;
    padding: 18px 16px 36px;
    background: #0b1014;
    color: #f7f9fb;
}

.ll-transaction-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ll-transaction-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: linear-gradient(145deg, #151b20, #10161a);
}

.ll-transaction-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: rgba(54, 220, 113, .1);
    font-size: 23px;
}

.ll-transaction-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.ll-transaction-copy strong {
    font-size: 15px;
}

.ll-transaction-copy small {
    color: #89949f;
    font-size: 11px;
}

.ll-transaction-row > b {
    font-size: 15px;
    white-space: nowrap;
}

.ll-transaction-row > b.credit {
    color: #49dc79;
}

.ll-transaction-row > b.debit {
    color: #f2f4f6;
}

.ll-status-pill {
    width: max-content;
    margin-top: 2px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 197, 59, .12);
    color: #efc653;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ll-status-pill.completed,
.ll-status-pill.credited {
    background: rgba(54, 220, 113, .12);
    color: #49dc79;
}

.ll-referral-hero,
.ll-topup-card,
.ll-payment-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(42, 191, 92, .14), transparent 58%),
        linear-gradient(145deg, #151c20, #0f1518);
    text-align: center;
}

.ll-referral-icon,
.ll-topup-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 20px;
    background: rgba(55, 218, 112, .12);
    font-size: 32px;
}

.ll-referral-hero h2,
.ll-topup-card h2,
.ll-payment-card h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.ll-referral-hero p,
.ll-topup-card p,
.ll-payment-card p {
    margin: 0;
    color: #9da8b1;
    line-height: 1.55;
}

.ll-referral-code {
    margin: 20px 0 12px;
    padding: 14px;
    border: 1px dashed rgba(74, 222, 123, .45);
    border-radius: 16px;
    background: rgba(0,0,0,.2);
}

.ll-referral-code span {
    display: block;
    margin-bottom: 5px;
    color: #89959e;
    font-size: 11px;
}

.ll-referral-code strong {
    color: #4be17d;
    font-size: 20px;
    letter-spacing: .5px;
}

.ll-referral-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ll-referral-actions button,
.ll-topup-grid button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #2cae4d, #20863a);
    color: #fff;
    font-weight: 850;
}

.ll-referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.ll-referral-stats article {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: #12181c;
    text-align: center;
}

.ll-referral-stats span {
    display: block;
    margin-bottom: 7px;
    color: #89959e;
    font-size: 11px;
}

.ll-referral-stats strong {
    color: #4be17d;
    font-size: 22px;
}

.ll-feature-note {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 190, 50, .08);
    color: #d7b85a;
    font-size: 12px;
    line-height: 1.5;
}

.ll-topup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.ll-topup-grid button {
    min-height: 54px;
    font-size: 17px;
}

.ll-payment-card {
    text-align: left;
}

.ll-payment-status {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 195, 49, .12);
    color: #efc651;
    font-size: 10px;
    font-weight: 900;
}

.ll-payment-card label {
    display: block;
    margin-top: 14px;
}

.ll-payment-card label > span {
    display: block;
    margin-bottom: 6px;
    color: #89959e;
    font-size: 11px;
}

.ll-payment-card label > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.ll-payment-card code {
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 12px;
    background: #070b0d;
    color: #eaf2ed;
    font-size: 12px;
}

.ll-payment-card button {
    border: 1px solid rgba(73, 220, 121, .45);
    border-radius: 12px;
    background: rgba(73, 220, 121, .08);
    color: #49dc79;
    font-weight: 800;
}

.ll-owned-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.ll-owned-card-copy {
    min-width: 0;
}

.ll-owned-card-copy h2,
.ll-owned-card-copy p {
    overflow-wrap: anywhere;
}

.ll-owned-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ll-card-action-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    align-items: center;
    justify-content: center;

    min-width: 105px;
    min-height: 44px;
    padding: 10px 14px;

    border: 0;
    border-radius: 10px;

    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 520px) {
    .ll-owned-card {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .ll-owned-card-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ll-card-action-button,
    .ll-owned-status {
        width: 100%;
        box-sizing: border-box;
    }
}
/* =========================================================
   LuckyLayer Admin Centre v1
   ========================================================= */
.ll-admin-home-link { border-color: rgba(218, 179, 84, .45) !important; background: linear-gradient(135deg, rgba(218,179,84,.12), rgba(255,255,255,.03)) !important; }
.ll-admin-shell { width: min(1180px, 100%); margin: 0 auto; padding: 16px 14px 48px; color: #f8f7f2; }
.ll-admin-topbar { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.ll-admin-topbar > div { flex:1; }
.ll-admin-topbar span { color:#d6b45c; font-size:.75rem; text-transform:uppercase; letter-spacing:.14em; }
.ll-admin-topbar h1 { margin:2px 0 0; font-size:1.45rem; }
.ll-admin-icon-button { width:42px; height:42px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:#fff; font-size:1.35rem; }
.ll-admin-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 0 12px; scrollbar-width:none; }
.ll-admin-tabs button { flex:0 0 auto; border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(255,255,255,.045); color:#bdbdbd; padding:9px 14px; }
.ll-admin-tabs button.active { color:#17130a; background:#d8b65d; border-color:#d8b65d; font-weight:700; }
.ll-admin-notice { min-height:20px; margin:0 0 10px; color:#9fd7a9; font-size:.88rem; }
.ll-admin-notice.error { color:#ff9e9e; }
.ll-admin-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.ll-admin-metric { min-width:0; padding:15px; border:1px solid rgba(255,255,255,.09); border-radius:18px; background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); }
.ll-admin-metric > span { display:block; font-size:1.2rem; margin-bottom:9px; }
.ll-admin-metric small { display:block; color:#9f9f9f; }
.ll-admin-metric strong { display:block; margin-top:4px; font-size:1.25rem; }
.ll-admin-panel, .ll-admin-table-wrap, .ll-admin-search, .ll-admin-prize-card, .ll-admin-claim { border:1px solid rgba(255,255,255,.09); border-radius:18px; background:rgba(255,255,255,.045); }
.ll-admin-panel { padding:15px; }
.ll-admin-panel-head h2, .ll-admin-section-head h2 { margin:0; font-size:1.08rem; }
.ll-admin-list article { display:flex; gap:11px; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.ll-admin-list article:last-child { border-bottom:0; }
.ll-admin-list article > span { font-size:1.25rem; }
.ll-admin-list article > div { flex:1; min-width:0; }
.ll-admin-list strong, .ll-admin-list small { display:block; }
.ll-admin-list small, .ll-admin-list time { color:#979797; font-size:.78rem; }
.ll-admin-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:5px 0 13px; }
.ll-admin-section-head p { margin:4px 0 0; color:#9f9f9f; font-size:.88rem; }
.ll-admin-primary, .ll-admin-form button { border:0; border-radius:13px; background:#d8b65d; color:#17130a; padding:11px 14px; font-weight:800; }
.ll-admin-search { display:flex; gap:8px; padding:9px; margin-bottom:12px; }
.ll-admin-search input, .ll-admin-form input, .ll-admin-form textarea, .ll-admin-form select { width:100%; box-sizing:border-box; border:1px solid rgba(255,255,255,.12); border-radius:12px; background:#171717; color:#fff; padding:11px 12px; font:inherit; }
.ll-admin-search input { flex:1; }
.ll-admin-search button, .ll-admin-row-button, .ll-admin-prize-card button, .ll-admin-claim button { border:0; border-radius:11px; background:#d8b65d; color:#17130a; padding:9px 12px; font-weight:800; }
.ll-admin-table-wrap { overflow-x:auto; }
.ll-admin-table-wrap table { width:100%; border-collapse:collapse; min-width:680px; }
.ll-admin-table-wrap th, .ll-admin-table-wrap td { padding:12px 13px; border-bottom:1px solid rgba(255,255,255,.07); text-align:left; font-size:.88rem; }
.ll-admin-table-wrap th { color:#9b9b9b; font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; }
.ll-admin-table-wrap td small { display:block; color:#8f8f8f; margin-top:3px; }
.ll-admin-card-grid { display:grid; grid-template-columns:1fr; gap:11px; }
.ll-admin-prize-card { display:grid; grid-template-columns:92px 1fr; overflow:hidden; }
.ll-admin-prize-card img, .ll-admin-prize-placeholder { width:92px; height:100%; min-height:128px; object-fit:cover; background:#141414; display:grid; place-items:center; font-size:2rem; }
.ll-admin-prize-card > div { padding:13px; }
.ll-admin-prize-card h3, .ll-admin-claim h3 { margin:8px 0 4px; }
.ll-admin-prize-card p, .ll-admin-claim p { margin:0 0 5px; color:#bbb; }
.ll-admin-prize-card small, .ll-admin-claim small { color:#8f8f8f; display:block; margin-bottom:10px; }
.ll-admin-status { display:inline-block; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.08); color:#ddd; font-size:.7rem; margin-right:5px; text-transform:capitalize; }
.ll-admin-status.ok { color:#a7e7b4; background:rgba(57,159,77,.16); }
.ll-admin-status.off { color:#bbb; }
.ll-admin-status.feature { color:#f3d77c; background:rgba(216,182,93,.15); }
.ll-admin-claim { padding:14px; }
.ll-admin-empty { text-align:center; padding:30px 14px; color:#aaa; }
.ll-admin-modal { position:fixed; inset:0; z-index:200; display:grid; align-items:end; }
.ll-admin-modal.hidden { display:none; }
.ll-admin-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.7); }
.ll-admin-modal-card { position:relative; max-height:88vh; overflow-y:auto; border-radius:24px 24px 0 0; border:1px solid rgba(255,255,255,.11); background:#101010; color:#fff; padding:16px; }
.ll-admin-modal-card > header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.ll-admin-modal-card h2 { margin:0; }
.ll-admin-modal-card > header button { border:0; background:transparent; color:#fff; font-size:1.7rem; }
.ll-admin-form { display:grid; gap:12px; }
.ll-admin-form label { display:grid; gap:6px; color:#bcbcbc; font-size:.86rem; }
.ll-admin-form textarea { min-height:92px; resize:vertical; }
.ll-admin-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ll-admin-check { display:flex !important; grid-template-columns:auto 1fr; align-items:center; }
.ll-admin-check input { width:auto; }
.ll-admin-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:16px; }
.ll-admin-detail-grid p { margin:0; padding:11px; border-radius:12px; background:rgba(255,255,255,.05); }
.ll-admin-detail-grid span, .ll-admin-detail-grid strong { display:block; overflow-wrap:anywhere; }
.ll-admin-detail-grid span { color:#929292; font-size:.75rem; margin-bottom:3px; }
.ll-admin-mini-list { padding:9px 12px; border-radius:12px; background:rgba(255,255,255,.04); }
.ll-admin-mini-list p { margin:6px 0; color:#bbb; }
@media (min-width:760px) {
  .ll-admin-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .ll-admin-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ll-admin-modal { align-items:center; justify-items:center; padding:24px; }
  .ll-admin-modal-card { width:min(680px,100%); border-radius:24px; }
}
