:root {
    --bg: #eef6ff;
    --bg-soft: #f7fbff;
    --primary: #2388ff;
    --primary-2: #63b3ff;
    --primary-dark: #1764c0;
    --text: #102a43;
    --muted: #647b94;
    --white: #ffffff;
    --border: rgba(72, 139, 210, .16);
    --shadow: 0 20px 60px rgba(36, 112, 190, .13);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(99,179,255,.24), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(35,136,255,.18), transparent 28%),
        linear-gradient(180deg, #eef7ff 0%, #f8fbff 48%, #edf6ff 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #1680ff, #7bc7ff);
    box-shadow: 0 8px 24px rgba(35,136,255,.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #55708b;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 13px;
    padding: 12px 20px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #187cff, #59b2ff);
    box-shadow: 0 10px 28px rgba(35,136,255,.27);
}

.btn-secondary {
    color: var(--primary-dark);
    background: white;
    border: 1px solid var(--border);
}

.hero {
    position: relative;
    padding: 92px 0 65px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: .95;
    letter-spacing: -3px;
}

.gradient-text {
    background: linear-gradient(90deg, #1769d1, #43a7ff, #76c8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 540px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-mascot {
    min-height: 430px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72,166,255,.35), transparent 68%);
    filter: blur(10px);
}

.mascot-placeholder {
    position: relative;
    z-index: 2;
    width: 340px;
    height: 340px;
    border-radius: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(216,239,255,.75));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: var(--shadow);
    font-size: 100px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 35px;
}

.stat {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(35,136,255,.07);
}

.stat strong {
    display: block;
    margin-bottom: 5px;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 75px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 38px;
}

.section-title h2 {
    margin: 0 0 10px;
    font-size: 36px;
    letter-spacing: -1.5px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.84);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: white;
    background: linear-gradient(135deg, #2187ff, #72c4ff);
}

.card h3 {
    margin: 0 0 9px;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,245,255,.9));
    border: 1px solid rgba(72,139,210,.18);
    box-shadow: var(--shadow);
}

.product-card.featured {
    border: 2px solid rgba(35,136,255,.4);
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #1680ff, #68bcff);
    margin-bottom: 20px;
}

.price {
    font-size: 30px;
    font-weight: 800;
    margin: 12px 0 20px;
}

.features {
    padding: 0;
    margin: 0 0 25px;
    list-style: none;
}

.features li {
    padding: 8px 0;
    color: #46617d;
    font-size: 14px;
}

.features li::before {
    content: "✓";
    margin-right: 9px;
    color: #268cff;
    font-weight: 800;
}

.btn-full {
    width: 100%;
}

.footer {
    padding: 35px 0;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 55px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 48px;
    }
}

.mascot-image {
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 430px;
    height: 430px;
}

.mascot-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(30, 105, 190, .20));
    animation: mascotFloat 4s ease-in-out infinite;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

/* LiteMail hero background */
.hero {
    background-image: url("/static/litemail_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Static mascot */
.mascot-image img {
    animation: none !important;
    transform: none !important;
}

.mascot-image:hover img {
    transform: none !important;
}

/* ===== LiteMail Hero Polish ===== */

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -3px;
    max-width: 720px;
    margin-bottom: 24px;
}

.hero p {
    max-width: 590px;
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.mascot-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-image img {
    width: min(430px, 42vw);
    height: auto;
    display: block;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.mascot-image:hover img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

@media (max-width: 800px) {
    .hero {
        min-height: auto;
        border-radius: 0 0 28px 28px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .mascot-image img {
        width: min(330px, 80vw);
        margin-top: 25px;
    }
}

/* ===== Shop ===== */

.shop-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 90px 24px 70px;
}

.shop-hero {
    text-align: center;
    margin-bottom: 55px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #4388df;
}

.shop-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.shop-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: #71839a;
    font-size: 17px;
    line-height: 1.6;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(91, 145, 207, .15);
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 50px rgba(52, 103, 165, .10);
    backdrop-filter: blur(16px);
}

.product-card.featured {
    border-color: rgba(62, 133, 224, .35);
    box-shadow: 0 24px 60px rgba(52, 126, 220, .17);
}

.product-card.disabled {
    opacity: .72;
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.product-badge,
.product-status {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.product-badge {
    background: #eaf4ff;
    color: #397fd2;
}

.product-status {
    background: #eafaf2;
    color: #2b9a67;
}

.product-status.soon {
    background: #f2f4f7;
    color: #8290a0;
}

.product-card h2 {
    margin: 0 0 9px;
    font-size: 28px;
}

.product-description {
    min-height: 48px;
    margin: 0;
    color: #74869b;
    line-height: 1.5;
}

.product-price {
    margin: 27px 0;
}

.product-price strong {
    font-size: 40px;
    letter-spacing: -1.5px;
}

.product-price span {
    color: #8392a3;
    font-size: 14px;
}

.product-features {
    display: grid;
    gap: 13px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    color: #53677e;
    font-size: 14px;
}

.product-button {
    width: 100%;
    justify-content: center;
}

.product-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.shop-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}

.shop-benefits > div {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(91, 145, 207, .10);
}

.shop-benefits strong,
.shop-benefits span {
    display: block;
}

.shop-benefits strong {
    margin-bottom: 7px;
}

.shop-benefits span {
    color: #7c8da0;
    font-size: 13px;
}

@media (max-width: 900px) {
    .shop-grid,
    .shop-benefits {
        grid-template-columns: 1fr;
    }

    .shop-page {
        padding-top: 55px;
    }
}

/* ===== Authentication ===== */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(111, 180, 255, .22), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(102, 163, 255, .18), transparent 35%),
        #f3f8ff;
}

.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 42px;
    border: 1px solid rgba(82, 145, 215, .16);
    border-radius: 30px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 25px 70px rgba(49, 104, 170, .14);
    backdrop-filter: blur(18px);
}

.auth-logo {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 17px;
    background: linear-gradient(135deg, #4b9cff, #2478ed);
    color: white;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(45, 132, 239, .25);
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: 34px;
    letter-spacing: -1.2px;
}

.auth-subtitle {
    margin: 10px 0 30px;
    text-align: center;
    color: #7b8da3;
    font-size: 15px;
}

.auth-card form {
    display: grid;
    gap: 10px;
}

.auth-card label {
    margin-top: 8px;
    color: #344c66;
    font-size: 13px;
    font-weight: 700;
}

.auth-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #d9e5f2;
    border-radius: 14px;
    outline: none;
    background: #fafdff;
    color: #17324d;
    font-size: 15px;
    transition: .2s ease;
}

.auth-card input:focus {
    border-color: #69a9f5;
    box-shadow: 0 0 0 4px rgba(70, 148, 239, .10);
}

.auth-button {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
}

.form-error {
    min-height: 18px;
    margin-top: 4px;
    color: #d85a67;
    font-size: 13px;
}

.auth-footer {
    margin: 26px 0 0;
    text-align: center;
    color: #8292a5;
    font-size: 14px;
}

.auth-footer a {
    color: #3688ed;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .auth-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .auth-card h1 {
        font-size: 29px;
    }
}

/* ===== Dashboard ===== */

.dashboard-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f8fd;
    color: #18324d;
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .92);
    border-right: 1px solid #e4edf6;
}

.dashboard-sidebar .logo {
    margin: 0 10px 45px;
}

.sidebar-menu {
    display: grid;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 14px;
    box-sizing: border-box;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #718399;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-link span {
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    background: #f1f6fc;
    color: #287fe3;
}

.sidebar-link.active {
    background: #eaf4ff;
    color: #287fe3;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 5px;
}

.sidebar-button {
    text-align: left;
}

.dashboard-main {
    width: calc(100% - 245px);
    margin-left: 245px;
    padding: 48px 55px 70px;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.dashboard-label {
    display: block;
    margin-bottom: 8px;
    color: #438ce6;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.7px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -1.3px;
}

.dashboard-header p {
    margin: 9px 0 0;
    color: #7c8da0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.dashboard-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 21px;
    border: 1px solid #e3edf6;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(48, 91, 136, .055);
}

.stat-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    border-radius: 13px;
    background: #eaf4ff;
    color: #3589e9;
    font-weight: 850;
}

.stat-icon.success {
    background: #eaf9f1;
    color: #2a9b68;
}

.dashboard-stat span {
    display: block;
    margin-bottom: 5px;
    color: #8392a4;
    font-size: 12px;
}

.dashboard-stat strong {
    font-size: 19px;
}

.dashboard-section {
    margin-top: 42px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -.5px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e3edf6;
    border-radius: 20px;
    background: white;
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: #b9d8f8;
    box-shadow: 0 14px 35px rgba(48, 116, 185, .10);
}

.quick-icon {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 47px;
    border-radius: 14px;
    background: #edf6ff;
    font-size: 20px;
}

.quick-card strong,
.quick-card span {
    display: block;
}

.quick-card strong {
    margin-bottom: 5px;
}

.quick-card span {
    color: #8392a4;
    font-size: 12px;
}

.quick-card b {
    margin-left: auto;
    color: #5599e7;
    font-size: 20px;
}

.orders-empty {
    padding: 55px 25px;
    text-align: center;
    border: 1px dashed #d4e2ef;
    border-radius: 22px;
    background: rgba(255, 255, 255, .7);
}

.empty-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.orders-empty h3 {
    margin: 0 0 8px;
}

.orders-empty p {
    margin: 0 0 22px;
    color: #8292a4;
    font-size: 14px;
}

.account-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border: 1px solid #e3edf6;
    border-radius: 20px;
    background: white;
}

.account-card span {
    color: #8292a4;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .dashboard-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .dashboard-layout {
        display: block;
    }

    .dashboard-sidebar .logo {
        margin-bottom: 20px;
    }

    .sidebar-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-bottom {
        margin-top: 15px;
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
        padding: 30px 18px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stats,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .account-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== Purchase ===== */

.purchase-box {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e5edf5;
}

.purchase-box label {
    display: block;
    margin-bottom: 8px;
    color: #53677e;
    font-size: 13px;
    font-weight: 700;
}

.purchase-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #d9e5f2;
    border-radius: 14px;
    outline: none;
    background: #fafdff;
    color: #17324d;
    font-size: 16px;
    font-weight: 650;
}

.purchase-box input:focus {
    border-color: #69a9f5;
    box-shadow: 0 0 0 4px rgba(70, 148, 239, .10);
}

.purchase-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 8px;
}

.purchase-total span,
.purchase-balance {
    color: #7d8ea2;
    font-size: 13px;
}

.purchase-total strong {
    color: #1f73d4;
    font-size: 22px;
}

.purchase-balance strong {
    color: #405a74;
}

.purchase-box .product-button {
    margin-top: 18px;
}

.purchase-message {
    margin-top: 14px;
    font-size: 13px;
}

.purchase-message.error {
    color: #d75d69;
}

.purchase-success {
    display: grid;
    gap: 9px;
    padding: 15px;
    border-radius: 15px;
    background: #effaf5;
    color: #287d58;
}

.purchase-success strong {
    font-size: 14px;
}

.purchase-success span {
    font-size: 13px;
}

.purchase-success .btn {
    margin-top: 4px;
    text-align: center;
}

@media (max-width: 600px) {
    .purchase-box input {
        font-size: 16px;
    }
}

/* ===== Purchase Modal ===== */

body.modal-open {
    overflow: hidden;
}

.purchase-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, visibility .22s ease;
}

.purchase-modal.open {
    visibility: visible;
    opacity: 1;
}

.purchase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 62, 95, .20);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.purchase-modal-card {
    position: relative;
    z-index: 2;
    width: min(470px, 100%);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 90px rgba(31, 78, 125, .22);
    transform: translateY(10px) scale(.98);
    transition: transform .22s ease;
}

.purchase-modal.open .purchase-modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #728399;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.purchase-modal-card h2 {
    margin: 0 0 9px;
    font-size: 30px;
    letter-spacing: -.8px;
}

.modal-description {
    margin: 0 0 27px;
    color: #7d8ea2;
    font-size: 14px;
    line-height: 1.55;
}

.purchase-modal-card > label {
    display: block;
    margin-bottom: 9px;
    color: #52677e;
    font-size: 13px;
    font-weight: 750;
}

.quantity-control {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
}

.quantity-control button {
    border: 1px solid #dce7f2;
    border-radius: 14px;
    background: #f7fbff;
    color: #3989e5;
    font-size: 25px;
    cursor: pointer;
}

.quantity-control button:hover {
    background: #edf6ff;
}

.quantity-control input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    outline: none;
    background: #fbfdff;
    color: #17324d;
    text-align: center;
    font-size: 17px;
    font-weight: 750;
}

.quantity-control input:focus {
    border-color: #69a9f5;
    box-shadow: 0 0 0 4px rgba(70, 148, 239, .10);
}

.quantity-hint {
    margin-top: 8px;
    color: #94a1b0;
    font-size: 12px;
}

.modal-summary {
    display: grid;
    gap: 13px;
    margin-top: 25px;
    padding: 18px;
    border-radius: 18px;
    background: #f5f9fd;
}

.modal-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-summary span {
    color: #7c8da0;
    font-size: 13px;
}

.modal-summary strong {
    color: #415b75;
    font-size: 14px;
}

.modal-summary .summary-total {
    margin-top: 5px;
    padding-top: 14px;
    border-top: 1px solid #e2ebf3;
}

.modal-summary .summary-total strong {
    color: #2579dc;
    font-size: 23px;
}

.modal-buy {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

@media (max-width: 500px) {
    .purchase-modal-card {
        padding: 28px 20px;
        border-radius: 23px;
    }
}

/* ===== Purchase History ===== */

.orders-list {
    display: grid;
    gap: 12px;
}

.orders-loading {
    padding: 35px;
    text-align: center;
    border: 1px solid #e3edf6;
    border-radius: 20px;
    background: white;
    color: #8493a4;
    font-size: 14px;
}

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 19px 22px;
    border: 1px solid #e3edf6;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 25px rgba(48, 91, 136, .045);
}

.order-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 190px;
}

.order-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eaf4ff;
    color: #3989e5;
}

.order-info strong,
.order-info span {
    display: block;
}

.order-info strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.order-info span {
    color: #8594a5;
    font-size: 12px;
}

.order-details {
    display: flex;
    align-items: center;
    gap: 28px;
}

.order-details > div span {
    display: block;
    margin-bottom: 4px;
    color: #8997a7;
    font-size: 11px;
}

.order-details > div strong {
    font-size: 14px;
}

.order-status {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eaf9f1;
    color: #2b9866;
    font-size: 11px;
    font-weight: 750;
}

.order-download {
    padding: 9px 12px;
    border-radius: 10px;
    background: #edf6ff;
    color: #3184df;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.order-download:hover {
    background: #e1f0ff;
}

@media (max-width: 900px) {
    .order-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-details {
        width: 100%;
        flex-wrap: wrap;
        gap: 15px 25px;
    }
}

.purchase-dashboard-link {
    color: #3989e5;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    text-align: center;
}

.purchase-dashboard-link:hover {
    text-decoration: underline;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    flex: 0 0 40px;
}

