/* Theme 14: midnight surfaces, violet light and electric-blue edges. */
.theme-fourteen {
    --t14-bg: #050322;
    --t14-panel: linear-gradient(135deg, #281064 0%, #100940 52%, #11125a 100%);
    --t14-border: #7650c1;
    --t14-muted: #bdb1dd;
    --t14-glow: inset 0 1px 7px #c38aff30, 0 0 14px #713dff19;
    color: #f8f4ff;
    background: var(--t14-bg);
}
.theme-fourteen .bg-main, .theme-fourteen .bgmain {
    background: radial-gradient(ellipse at 20% 0%, #37116b80, transparent 42%), var(--t14-bg);
}
.theme-fourteen .theme-shell { min-height: 100dvh; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.theme-fourteen .mpadding { min-height: auto !important; padding: 0 !important; }
.theme-fourteen .mpadding > .container { max-width: 800px; padding: 0 16px; }
/* Prevent Bootstrap row gutters from cancelling the page inset. */
.theme-fourteen .mpadding > .container > .row { margin-left: 0; margin-right: 0; }
.theme-fourteen .mheight { width: 100%; padding: 0; min-width: 0; }
.theme-fourteen .coinheader {
    background:
        radial-gradient(ellipse 58% 160% at 24% 0%, #32107890 0%, #17075070 42%, transparent 75%),
        radial-gradient(ellipse 40% 140% at 82% 100%, #24107560 0%, transparent 72%),
        linear-gradient(110deg, #0d043b 0%, #120548 48%, #070326 100%) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #6e3cc055;
    box-shadow: 0 8px 24px #03011f80;
    z-index: 300;
    padding: 0;
}
.theme-fourteen .coinheader > div { width: 100%; max-width: 800px; margin-top: 0 !important; }
.theme-fourteen .coinheader .container { padding: 0; }
.theme-fourteen .coinheader .navbar {
    position: relative;
    width: 100%;
    min-height: 76px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 8% 28%, #ffffff 0 1px, #d69cff 2px, #8a32ff88 4px, transparent 12px),
        radial-gradient(circle at 46% 13%, #ffffff 0 1px, #d69cff 2px, #8a32ff70 4px, transparent 10px),
        radial-gradient(circle at 82% 70%, #e4c7ff 0 1px, #9c48ff66 3px, transparent 10px),
        linear-gradient(118deg, transparent 12%, #5d1cc62e 25%, transparent 38%),
        linear-gradient(110deg, #100442 0%, #180758 48%, #08032e 100%);
}
.theme-fourteen .coinheader .navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .8;
    background:
        linear-gradient(135deg, transparent 0 18%, #9b4dff55 18.3%, transparent 18.8% 66%, #6324dc4d 66.3%, transparent 66.8%),
        radial-gradient(ellipse at 25% 52%, #7f27ff45 0%, transparent 42%);
    filter: drop-shadow(0 0 8px #7d31ff);
}
.theme-fourteen .coinheader .navbar::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80%;
    left: -18%;
    width: 34%;
    height: 260%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #c9a8ff20, #eadfff45, #aa78ff24, transparent);
    transform: rotate(20deg);
    filter: blur(5px);
    animation: t14-navbar-shine 9s ease-in-out infinite;
}
.theme-fourteen .coinheader .navbar > .container-fluid {
    position: relative;
    z-index: 1;
    padding-inline: 16px !important;
}
.theme-fourteen .theme-brand {
    width: clamp(165px, 32vw, 225px);
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 7px #963cff80);
}
@keyframes t14-navbar-shine {
    0%, 58% { left: -28%; opacity: 0; }
    68% { opacity: .4; }
    86%, 100% { left: 108%; opacity: 0; }
}
.theme-fourteen .balance, .theme-header-wallet {
    background: var(--t14-panel); border: 1px solid var(--t14-border); border-radius: 14px;
    box-shadow: var(--t14-glow); color: #d2a8ff !important; padding: 10px; text-decoration: none;
}
.theme-header-actions { display: flex; gap: 8px; align-items: center; }
.theme-header-actions .balance { margin: 0 !important; }
.theme-fourteen .coinheader .balance {
    width: 40px;
    height: 40px;
    padding: 7px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}
.theme-fourteen .coinheader .balance svg { width: 23px; height: 23px; }
.theme-header-wallet { display: flex; align-items: center; gap: 8px; color: white !important; font-size: 13px; white-space: nowrap; }
.theme-header-wallet span { display: grid; place-items: center; border-radius: 50%; width: 25px; height: 25px; background: #7931e9; font-size: 22px; }
.theme-home .theme-header-actions > a[aria-label="Chat with support"] { display: none; }
.theme-fourteen .footer-53-wrapper { bottom: 0; left: 50%; transform: translateX(-50%); max-width: 800px; z-index: 1030; }
.theme-fourteen .footer-53-glass { height: calc(76px + env(safe-area-inset-bottom)); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(115deg, #351174ed, #170952f5 55%, #351076ed); border: 1px solid #9664de; border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: inset 0 2px 10px #c091ff30, 0 -6px 28px #03011970; }
.theme-fourteen .footer-53-item { color: #bc9cdf; gap: 4px; min-height: 48px; }
.theme-fourteen .footer-53-item.active-nav { color: #f4b7ff; text-shadow: 0 0 12px #f96dff; }
.theme-fourteen .footer-53-item.active-nav svg { filter: drop-shadow(0 0 7px #ce49ff); }
.theme-fourteen .middle-circle { width: 66px; height: 66px; background: radial-gradient(circle at 30% 15%, #9973ff, #7529e0 55%, #371899); border: 2px solid #d799ff; box-shadow: inset 0 0 12px #c7baff, 0 0 20px #8c38ff80; }
.theme-fourteen .footer-53-middle { margin-top: -30px; }
.theme-fourteen :is(a, button, input, select):focus-visible { outline: 2px solid #78d9ff; outline-offset: 3px; }
.theme-fourteen .modal-content { background: #100936 !important; color: #f8f4ff; border: 1px solid #8056c7; border-radius: 20px; }
.theme-fourteen .modal { z-index: 1060; }
.theme-fourteen .form-control, .theme-fourteen .form-select { color: #efe7ff; background-color: #110b36; border-color: #69449b; border-radius: 12px; }
.theme-fourteen .form-control::placeholder { color: #a99abd; }
.theme-fourteen .form-select option { background: #110b36; color: #fff; }
.theme-fourteen .btn-success, .theme-fourteen #submitButton, .theme-fourteen .profile-password-btn, .theme-fourteen .btn-primary-dz { background: linear-gradient(120deg, #a32ae5, #4e32d6) !important; color: #fff; border: 1px solid #ba71ed; }
.theme-search { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; margin: 4px 0 16px; border-radius: 15px; background: var(--t14-panel); border: 1px solid var(--t14-border); box-shadow: var(--t14-glow); color: #be8fea; }
.theme-search i { font-size: 24px; }
.theme-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: white; font-size: 14px; }
.theme-search input::placeholder { color: #c0afd9; }
.theme-fourteen .home-card { background: linear-gradient(120deg, #7918d2, #3320ab 48%, #131064); border: 1px solid #ba6aef; border-radius: 18px; padding-top: 16px; margin-bottom: 16px; overflow: hidden; box-shadow: inset 0 1px 8px #f0b8ff55, 0 0 20px #7627fd25; }
.theme-fourteen .home-card > div:first-child { padding: 0 16px !important; }
.theme-fourteen .balance-label { color: #e2d2fb; font-size: 13px; }
.theme-fourteen .balance-amount { font-size: clamp(22px, 4vw, 32px); font-weight: 700; letter-spacing: -.6px; margin: 2px 0 10px; }
.theme-fourteen .circle-bg { background: linear-gradient(145deg, #d72bed, #641df0 60%, #3922a8); border: 1px solid #e389ff; border-radius: 15px !important; box-shadow: inset 0 0 10px #e8acff60; }
.theme-fourteen .card-bn { text-align: center; padding: 10px 4px; border-top: 1px solid #c088ef60; background: #5f33ca30; }
.theme-fourteen .card-bn + .card-bn { border-left: 1px solid #c088ef60; }
.theme-welcome { width: 100%; overflow: hidden; border: 1px solid #a75ee6; border-radius: 18px; box-shadow: var(--t14-glow); }
.theme-welcome img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.theme-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #d8c6f0;
    font-size: 11px;
    line-height: 1.7;
    padding: 9px 11px;
    margin: 2px 0 12px;
    background: transparent;
    border: 0;
}
.theme-fourteen .account-banner-link { width: 100%; position: relative; aspect-ratio: 2031 / 620; background: url('../imgs/thant-gyi-acc.jfif') center / 100% 100% no-repeat; margin: 0 0 14px; border: 1px solid #8251cc; border-radius: 17px; overflow: hidden; box-shadow: var(--t14-glow); }
.theme-fourteen .account-banner-brand {
    position: absolute;
    z-index: 1;
    inset: 3px auto 3px 3px;
    width: 32.5%;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 32%, #ffffff 0 1px, #d69cff 2px, #8a32ff66 4px, transparent 11px),
        radial-gradient(circle at 78% 18%, #ffffff 0 1px, #d69cff 2px, #8a32ff55 4px, transparent 10px),
        radial-gradient(circle at 42% 86%, #e4c7ff 0 1px, #9c48ff55 3px, transparent 9px),
        radial-gradient(ellipse 70% 140% at 18% -20%, #32107888 0%, #17075055 40%, transparent 72%),
        radial-gradient(ellipse 80% 160% at 88% 120%, #24107570 0%, transparent 68%),
        linear-gradient(118deg, transparent 18%, #5d1cc628 34%, transparent 52%),
        linear-gradient(110deg, #100442 0%, #180758 48%, #08032e 100%);
    border-right: 0;
    border-radius: 13px 0 0 13px;
}
.theme-fourteen .account-banner-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 22%, #9b4dff40 22.4%, transparent 23% 62%, #6324dc38 62.4%, transparent 63%),
        radial-gradient(ellipse at 30% 48%, #7f27ff38 0%, transparent 46%);
}
.theme-fourteen .account-banner-logo {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 96%;
    height: 96%;
    max-width: none;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 6px #8e42ff66);
}
.theme-fourteen .account-banner-link a { position: absolute; z-index: 2; left: 55%; right: 2%; top: 27%; transform: translateY(-50%); color: #fff; font-size: clamp(10px, 2.5vw, 19px); text-decoration: none; }
.theme-fourteen .account-banner-link a:last-child { top: 70%; }
.theme-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin-bottom: 17px; }
.theme-shortcuts a { min-height: 93px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; text-align: center; text-decoration: none; color: #f7eeff; font-size: 12px; line-height: 1.4; border-radius: 15px; border: 1px solid #8653db; background: linear-gradient(140deg, #2937aa, #17105d 65%); box-shadow: var(--t14-glow); }
.theme-shortcuts a:nth-child(even) { background: linear-gradient(140deg, #8619c5, #291064 70%); }
.theme-shortcuts a:nth-child(3) { border-color: #61c7fb; background: linear-gradient(135deg, #146eab, #3d1aab 65%, #8c2ce9); }
.theme-shortcuts i { font-size: 28px; color: #dca9ff; }
.theme-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 12px; }
.theme-section-heading h2 { font-size: clamp(14px, 3.6vw, 21px); margin: 0; font-weight: 650; }
.theme-section-heading h2 i { color: #c479f0; }
.theme-section-heading a { font-size: 12px; color: #c694eb; text-decoration: none; white-space: nowrap; }
.theme-fourteen #game-catalog { gap: 8px; }
.theme-fourteen #game-catalog > div { width: calc((100% - 16px) / 3); padding: 0 !important; margin: 0 !important; }
.theme-fourteen .g-item { padding: 9px 7px; border-radius: 13px; border: 1px solid #6d41b0; background: var(--t14-panel); box-shadow: var(--t14-glow); height: 100%; }
.theme-fourteen .g-item a { flex-direction: row-reverse; justify-content: flex-end !important; gap: 8px; height: 100%; }
.theme-fourteen .g-item img { width: 34px !important; height: 34px !important; object-fit: cover; flex-shrink: 0; }
.theme-fourteen .g-item-text { font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.theme-shop .slider { width: 100%; margin: 5px 0 14px; }
.theme-shop .carousel-inner { border: 1px solid #8451bf; border-radius: 16px; box-shadow: var(--t14-glow); }
.theme-shop .ios-server-card { background: linear-gradient(130deg, #15083d, #08052b 70%) !important; border: 1px solid #8855cb; box-shadow: var(--t14-glow); padding: 17px 14px; border-radius: 18px; }
.theme-shop .ios-server-title { font-size: 20px; gap: 10px; }
.theme-shop .ios-server-title svg { color: #c087ff; opacity: 1; width: 26px; height: 26px; }
.theme-shop .ios-server-actions { gap: 5px; }
.theme-shop .ios-home-btn { background: var(--t14-panel); border: 1px solid #7142b5; color: #e6d5ff; border-radius: 13px; min-height: 40px; padding: 8px 10px; }
.theme-shop .ios-server-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.theme-shop .ios-server-pill { border: 1px solid #7443ba; border-radius: 12px; padding: 10px 7px; background: var(--t14-panel); color: #d9cbeb; font-size: 12px; box-shadow: var(--t14-glow); justify-content: center; }
.theme-shop .ios-server-pill.active { background: linear-gradient(120deg, #123c39, #091a2a); border-color: #71bc88; color: #d9ffe6; box-shadow: 0 0 12px #61df6730; }
.theme-shop .ios-server-info { background: #35102a50; border-color: #76365b; color: #d998ba; line-height: 1.8; }
.theme-shop .currency-select { background-color: #170941 !important; color: #f0dfff !important; border: 1px solid #8c50c8; min-height: 43px; border-radius: 14px; margin-bottom: 12px; }
.theme-packs-heading, .theme-shop .group-header { width: 100%; background: linear-gradient(110deg, #24104e, #09042c); border: 1px solid #7043ad !important; border-radius: 16px; padding: 13px 15px; margin: 8px 0 3px; }
.theme-packs-heading h1 { font-size: 24px; font-weight: 700; margin: 0 0 5px; }
.theme-packs-heading p { font-size: 13px; color: #8edaad; margin: 0; line-height: 1.8; }
.theme-shop .product_list { align-items: stretch !important; }
.theme-shop .product_list > [data-bs-toggle="modal"] { width: 50%; padding: 0 5px !important; margin-top: 10px !important; cursor: pointer; }
.theme-shop .product-card { flex-direction: row; align-items: center; min-height: 122px; height: 100%; background: linear-gradient(130deg, #251054, #08042e 60%, #10104d); border: 1px solid #965ed2; border-radius: 15px; padding: 28px 9px 12px !important; box-shadow: var(--t14-glow) !important; overflow: hidden; gap: 8px; }
.theme-shop .card-img-c { width: 37% !important; height: 66px !important; object-fit: contain; margin: 0 !important; flex-shrink: 0; }
.theme-shop .product-card .card-body { min-width: 0; flex: 1; }
.theme-shop .product-card .card-text { white-space: normal !important; color: #f8f0ff; text-align: left !important; font-size: 13px !important; line-height: 1.65; overflow-wrap: anywhere; }
.theme-shop .product-card .price-final { margin-top: 5px; color: #e2cef7; }
.theme-shop .product-card .badge.bg-success { top: 0 !important; right: 0 !important; left: auto; transform: none !important; border: 1px solid #ae6add; border-radius: 0 13px 0 12px; padding: 5px 8px; background: linear-gradient(120deg, #7f27be, #231466) !important; }
.theme-profile .coinheader { display: block; }
.theme-profile .theme-section-heading { margin: 12px 0 20px; }
.theme-section-heading h1 { margin: 0; font-size: 28px; font-weight: 700; }
.theme-eyebrow { color: #bb8ce6; font-size: 10px; letter-spacing: 2px; margin-bottom: 5px; }
.theme-profile .profile-hero { background: linear-gradient(120deg, #6d1db4, #25116a 65%, #171359); border-color: #b079e1; box-shadow: var(--t14-glow); padding: 20px 16px; }
.theme-profile .profile-avatar { border-radius: 50%; border: 2px solid #d4a0ff; box-shadow: 0 0 18px #a346d755; }
.theme-profile .profile-user .balance-amount { font-size: 21px; max-width: 40vw; }
.theme-profile .profile-card, .theme-profile .link-card { border: 1px solid #7547ac; background: var(--t14-panel); border-radius: 17px; box-shadow: var(--t14-glow); }
.theme-profile .contact-link, .theme-profile .device-box { background: #08052c80; border: 1px solid #7751a447; border-radius: 11px; }
.theme-profile .contact-link { padding: 10px 8px; }
.theme-profile .custom-table th { background: #54249255; }
@media (min-width: 600px) {
    .theme-search { padding: 18px; }
    .theme-shortcuts a { min-height: 120px; font-size: 15px; }
    .theme-fourteen .g-item-text { font-size: 15px; }
    .theme-fourteen .g-item img { width: 48px !important; height: 48px !important; }
    .theme-shop .product-card { min-height: 160px; }
    .theme-shop .product-card .card-text { font-size: 17px !important; }
    .theme-shop .card-img-c { height: 95px !important; }
    .theme-shop .ios-server-pill { font-size: 16px; padding: 13px; }
}
@media (max-width: 575px) {
    .theme-shop .theme-packs-heading {
        padding: 10px 12px;
        margin-top: 5px;
        border-radius: 14px;
    }
    .theme-shop .theme-packs-heading h1 {
        font-size: 20px;
        margin-bottom: 3px;
    }
    .theme-shop .theme-packs-heading p {
        font-size: 11px;
        line-height: 1.6;
    }
    .theme-shop .product_list > [data-bs-toggle="modal"] {
        padding: 0 4px !important;
        margin-top: 8px !important;
    }
    .theme-shop .product-card {
        min-height: 92px;
        padding: 18px 7px 5px !important;
        gap: 5px;
        border-radius: 13px;
    }
    .theme-shop .card-img-c {
        width: 32% !important;
        height: 50px !important;
    }
    .theme-shop .product-card .card-text {
        font-size: 11px !important;
        line-height: 1.5;
    }
    .theme-shop .product-card :is(.price-original, .price-final) {
        font-size: 10.5px !important;
        line-height: 1.5 !important;
    }
    .theme-shop .product-card .badge {
        padding: 4px 6px !important;
        font-size: 10px;
    }
}
@media (max-width: 380px) {
    .theme-header-wallet { font-size: 11px; gap: 5px; }
    .theme-header-wallet > i { display: none; }
    .theme-fourteen .theme-brand { width: 145px; height: 64px; }
    .theme-fourteen #game-catalog > div { width: calc((100% - 8px) / 2); }
    .theme-shop .ios-server-header { flex-wrap: wrap; gap: 12px; }
    .theme-shop .ios-server-pill { font-size: 10px; padding: 10px 4px; }
    .theme-profile .profile-hero { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-fourteen *, .theme-fourteen *::before, .theme-fourteen *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
.theme-welcome { position: relative; }
.theme-welcome::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 35%, #100544aa); pointer-events: none; }
.theme-welcome-copy { position: absolute; z-index: 1; inset: 0 5% 0 51%; display: flex; flex-direction: column; justify-content: center; transform: rotate(-5deg); }
.theme-welcome-copy strong { font-size: clamp(25px, 7vw, 60px); font-weight: 900; font-style: italic; line-height: 1.2; color: #f6dfff; text-shadow: 0 3px 0 #8c30bc, 0 0 20px #b558ee; }
.theme-welcome-copy span { font-size: clamp(9px, 2.1vw, 19px); font-weight: 800; font-style: italic; text-transform: uppercase; }
.theme-fourteen .coinheader .container > .row { margin-left: 0; margin-right: 0; }
.theme-fourteen .coinheader > div { padding-left: 0; padding-right: 0; }

/* Keep the shared loyalty component in the theme 14 profile palette. */
.theme-profile .profile-loyalty-card {
    --loyalty-bg: var(--t14-panel);
    --loyalty-border: #7547ac;
    --loyalty-radius: 17px;
    --loyalty-shadow: var(--t14-glow);
    --loyalty-text: #f8f0ff;
    --loyalty-muted: #c5b2df;
    --loyalty-soft: #10082f;
    --loyalty-soft-border: #67408f;
    --loyalty-badge-bg: linear-gradient(120deg, #a32ae5, #4e32d6);
    --loyalty-badge-border: #ba71ed;
    --loyalty-badge-text: #ffffff;
    --loyalty-track: #392055;
    --loyalty-accent: linear-gradient(90deg, #b44cf1, #78d9ff);
    --loyalty-button-bg: #32145e;
    --loyalty-button-border: #8855bb;
    --loyalty-button-text: #f8f0ff;
    --loyalty-button-hover-bg: #482079;
    --loyalty-button-hover-border: #c087ff;
    --loyalty-button-hover-text: #ffffff;
    --loyalty-level-bg: #170b3e;
    --loyalty-level-accent: #d7a5ff;
}

/* Keep the brand and wallet controls on one line on narrow phones. */
.theme-fourteen .coinheader .navbar > .container-fluid {
    flex-wrap: nowrap;
    gap: 12px;
}
.theme-fourteen .coinheader .theme-brand {
    min-width: 0;
    flex-shrink: 1;
    object-position: left center;
}
.theme-fourteen .theme-header-actions { flex-shrink: 0; }
.theme-fourteen .theme-header-wallet span {
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}
@media (max-width: 575px) {
    .theme-fourteen .coinheader .navbar > .container-fluid { gap: 8px; }
    .theme-fourteen .theme-header-actions { gap: 6px; }
    .theme-fourteen .theme-header-actions .balance {
        width: 38px;
        height: 38px;
        padding: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .theme-fourteen .theme-header-actions .balance svg { width: 22px; height: 22px; }
    .theme-fourteen .theme-header-wallet { min-height: 44px; padding: 8px; gap: 6px; }
}

/* Installation card and its iOS instructions share the shop palette. */
.theme-fourteen .install-box { padding: 8px 0 14px; }
.theme-fourteen .install-card {
    background: var(--t14-panel);
    border: 1px solid var(--t14-border);
    box-shadow: var(--t14-glow);
    padding: 14px 12px;
    gap: 10px;
}
.theme-fourteen .install-title { color: #f8f0ff; }
.theme-fourteen .install-desc { color: var(--t14-muted); }
.theme-fourteen .install-btn-red,
.theme-fourteen .custom-ios-got-it {
    background: linear-gradient(120deg, #a32ae5, #4e32d6);
    border: 1px solid #ba71ed;
    box-shadow: inset 0 1px 5px #e5b5ff40, 0 4px 14px #7627fd30;
    color: #fff;
    min-height: 40px;
}
.theme-fourteen .install-btn-red:hover,
.theme-fourteen .custom-ios-got-it:hover { background: linear-gradient(120deg, #b63cf3, #6545e8); }
.theme-fourteen .custom-ios-modal-card {
    background: #100936;
    border: 1px solid var(--t14-border);
    color: #f8f0ff;
    box-shadow: var(--t14-glow);
}
.theme-fourteen .custom-ios-modal-header h3 { color: #f8f0ff; }
.theme-fourteen .custom-ios-step p { color: #c5b2df; }
.theme-fourteen .custom-ios-close,
.theme-fourteen .custom-ios-step span { background: #32145e; color: #dfb9ff; }

/* Login and registration. */
.theme-auth .coinheader { display: none; }
.theme-auth .theme-shell { padding-bottom: 28px; }
.theme-auth .bg-main {
    background: linear-gradient(135deg, #7824e01f, transparent 25%, transparent 80%, #7627df21),
        radial-gradient(ellipse at 100% 35%, #45127935, transparent 48%), #050322;
}
.t14-auth { width: 100%; max-width: 540px; margin: 22px auto 28px; }
.t14-auth-home { display: inline-flex; align-items: center; gap: 8px; color: #c397ed; font-size: 13px; text-decoration: none; min-height: 40px; }
.t14-auth-heading { text-align: center; margin: 14px 0 30px; }
.t14-auth-heading h1 { display: flex; align-items: center; gap: 18px; font-size: clamp(34px, 8vw, 52px); font-weight: 900; font-style: italic; color: #f6e3ff; text-shadow: 0 2px 0 #913fc6, 0 0 18px #b853f37a; margin: 0 0 10px; letter-spacing: -1px; }
.t14-auth-heading h1::before, .t14-auth-heading h1::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #c270ec); box-shadow: 0 0 8px #af45ed; }
.t14-auth-heading h1::after { transform: rotate(180deg); }
.t14-auth-heading p { color: #c5b5db; font-size: 14px; line-height: 1.7; margin: 0; }
.t14-auth-field { margin-bottom: 22px; }
.theme-auth .form-label { color: #f2e9fc; display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.theme-auth .form-label i { color: #c273f4; font-size: 21px; }
.t14-auth-input { display: flex; align-items: center; position: relative; border: 1px solid #8350b5; border-radius: 13px; background: linear-gradient(115deg, #150936, #080525); box-shadow: inset 0 1px 7px #c38aff25, 0 0 10px #8328dc16; }
.theme-auth .t14-auth-input .form-control { min-width: 0; min-height: 54px; border: 0; border-radius: 13px; background: transparent; color: #f8f0ff; font-size: 16px; padding: 13px 15px; box-shadow: none; }
.theme-auth .t14-auth-input .form-control::placeholder { color: #9c8bb6; font-style: italic; font-size: 14px; }
.t14-auth-input:focus-within { border-color: #d08aff; box-shadow: 0 0 0 3px #9d47da26, inset 0 0 8px #b874eb26; }
.theme-auth .t14-auth-input .form-control:focus-visible { outline: none; }
.t14-password-toggle { display: grid; place-items: center; width: 48px; min-height: 48px; flex-shrink: 0; border: 0; background: transparent; color: #c1acd8; font-size: 21px; border-radius: 10px; }
.t14-auth-forgot { text-align: right; margin: -6px 0 24px; }
.t14-auth-forgot a { color: #d186f0; font-size: 13px; text-decoration: none; }
.theme-auth .t14-auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 55px; padding: 12px 18px; font-size: 18px; font-weight: 650; color: #fff; background: linear-gradient(165deg, #a02aed, #5620be 40%, #241066); border: 1px solid #cb84f2; border-radius: 14px; box-shadow: inset 0 1px 8px #e4aaff65, 0 0 15px #852ce642; }
.theme-auth .t14-auth-submit:hover { background: linear-gradient(165deg, #b342f2, #6e30d3 40%, #35127d); }
.t14-auth-submit .feather-arrow-right { margin-left: auto; }
.t14-auth-submit .feather-user-plus, .t14-auth-submit .feather-log-in { margin-right: auto; }
.t14-auth-divider { display: flex; align-items: center; gap: 17px; color: #d1c1e1; margin: 25px 0 20px; font-size: 13px; }
.t14-auth-divider::before, .t14-auth-divider::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #965ebf); }
.t14-auth-divider::after { transform: rotate(180deg); }
.theme-auth .t14-auth-google > div { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
.t14-auth-google h6 { display: none; }
.theme-auth .t14-auth-google a { min-height: 52px; background: #120831 !important; border: 1px solid #8950bb !important; color: #f4e8ff !important; border-radius: 13px !important; box-shadow: var(--t14-glow); }
.t14-auth-google a svg { width: 24px; height: 24px; margin-right: 12px !important; }
.t14-auth-switch { text-align: center; padding: 20px 12px; margin-top: 22px; background: linear-gradient(120deg, #25104480, #0c052c); border: 1px solid #704199; border-radius: 14px; }
.t14-auth-switch p { color: #bfaed4; font-size: 13px; margin-bottom: 7px; }
.t14-auth-switch a { display: inline-flex; align-items: center; gap: 10px; color: #d084f4; font-size: 17px; font-weight: 650; text-decoration: none; }
.t14-auth-help, .t14-auth-notice { color: #bfaed4; font-size: 12px; line-height: 1.8; }
.t14-auth-notice { padding: 12px 14px; border: 1px solid #694284; border-radius: 12px; background: #211038; margin-bottom: 24px; }
.t14-auth-verification { margin: 0 0 25px; }
.t14-auth-verification .g-recaptcha {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 18px auto 0;
    overflow: visible;
}
.t14-auth-verification .g-recaptcha > div { flex-shrink: 0; }
.theme-auth .invalid-feedback { color: #ffafc9; font-size: 12px; margin-top: 7px; }
.theme-auth .alert { font-size: 13px; border-radius: 12px; }
.theme-auth .alert-danger { color: #ffc7d6; background: #40162f; border-color: #94516d; }
.theme-auth .alert-success { color: #c1f7dd; background: #113c35; border-color: #477c6c; }
.theme-auth input:-webkit-autofill { -webkit-text-fill-color: #f8f0ff; box-shadow: 0 0 0 1000px #120831 inset !important; border-radius: 13px; }

/* Image-led catalog, exclusive to the home page. */
.theme-home #game-catalog.home-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    padding-bottom: 18px;
    scroll-margin-top: 100px;
}
.theme-home #game-catalog.home-game-grid > .home-game-cell { width: 100%; min-width: 0; margin: 0; padding: 0; }
.theme-home .home-game-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 5px;
    overflow: hidden;
    color: #f8f0ff;
    text-decoration: none;
    border: 1px solid #945bd0;
    border-radius: 15px;
    background: linear-gradient(145deg, #28104b, #090525 65%, #1b0b3f);
    box-shadow: inset 0 1px 7px #d193ff38, 0 0 12px #7f36d329;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-home .home-game-card:hover { border-color: #d38aff; box-shadow: inset 0 1px 7px #d193ff38, 0 0 18px #9745e14d; }
.theme-home .home-game-art { aspect-ratio: 1.4; overflow: hidden; border-radius: 10px 10px 5px 5px; background: #1c0e3d; }
.theme-home .home-game-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-home .home-game-name { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 42px; padding: 6px 2px; text-align: center; font-size: clamp(11px, 2.6vw, 16px); line-height: 1.4; overflow-wrap: anywhere; }
.theme-home .home-game-action { display: block; padding: 6px 4px; text-align: center; font-size: clamp(11px, 2.6vw, 15px); line-height: 1.4; border: 1px solid #9d5ce0; border-radius: 9px; background: linear-gradient(115deg, #7923d2, #28115c 80%); box-shadow: inset 0 1px 5px #cf95ff50; }
.theme-home .theme-section-heading + .theme-search { margin-top: 0; margin-bottom: 14px; }
@media (max-width: 380px) {
    .theme-home #game-catalog.home-game-grid { gap: 8px; }
    .theme-home .home-game-card { padding: 4px; border-radius: 12px; }
}

/* Use the shared carousel at the full home content width. */
.theme-home .slider { width: 100%; }
.theme-home .slider .carousel-inner {
    overflow: hidden;
    border: 1px solid #a75ee6;
    border-radius: 18px;
    box-shadow: var(--t14-glow);
}
