:root {
    --navy-950: #071a2d;
    --navy-900: #0d1f39;
    --navy-800: #142d4b;
    --blue-700: #1a5de7;
    --blue-600: #2a6af4;
    --teal-500: #2ad4bf;
    --teal-600: #1cc6b0;
    --gold-400: #f4c95d;
    --gold-500: #e6b739;
    --white: #ffffff;
    --gray-100: #f4f7fb;
    --gray-200: #e6edf7;
    --gray-500: #6a7b9a;
    --gray-700: #344765;
    --shadow: 0 20px 50px rgba(21, 40, 71, 0.14);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--navy-900);
    background: linear-gradient(180deg, #f5f8ff 0%, #f9fbff 100%);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-title {
    font-size: clamp(2rem, 2vw + 1rem, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--navy-950);
}
.lead { color: var(--gray-700); font-size: 1.1rem; }
.text-center { text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--navy-900);
    color: var(--white);
    padding: 16px 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(26, 93, 231, 0.18);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--navy-900);
    box-shadow: 0 16px 30px rgba(244, 201, 93, 0.35);
}
.btn-secondary {
    background: rgba(23, 58, 118, 0.08);
    color: var(--navy-900);
    border: 1px solid rgba(23, 58, 118, 0.12);
    box-shadow: none;
}
.btn-lg { padding: 18px 32px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(15,31,57,0.08);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--navy-950);
}
.site-brand-logo { 
        width: 186px;
    height: 56px;
     object-fit: contain;
 }
 .brand span{
    display:none;
 }
.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero {
    padding: 72px 0 56px;
    background: radial-gradient(circle at top left, rgba(42, 106, 244, 0.13), transparent 28%),
                linear-gradient(180deg, #f3f8ff 0%, #f9fbff 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(42, 212, 191, 0.11);
    border: 1px solid rgba(42, 212, 191, 0.25);
    color: var(--navy-800);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
h1 {
    font-size: clamp(2.7rem, 3vw + 1rem, 4.5rem);
    line-height: 1.05;
    margin: 18px 0 18px;
    letter-spacing: -0.04em;
    color: var(--navy-950);
}
.hero-copy p {
    color: var(--gray-700);
    font-size: 1.15rem;
    margin-bottom: 26px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-left: 0;
    list-style: none;
    margin: 0;
    color: var(--gray-700);
}
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal-600);
    font-weight: 900;
}
.book-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}
.book-mockup {
    position: relative;
    width: min(100%, 440px);
    filter: drop-shadow(0 28px 52px rgba(31, 62, 116, 0.22));
}
.book-back {
    position: absolute;
    inset: 22px 0 0 22px;
    background: linear-gradient(135deg, rgba(9,22,42,0.2), rgba(46,93,184,0.1));
    border-radius: 30px;
    transform: rotate(8deg) translateY(14px);
}
.book-cover {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0e1c35, #153b6a);
    border-radius: 18px;
    overflow: hidden;
    transform: rotate(-7deg);
    width: 100%;
    border: 1px solid rgba(255,255,255,0.15);
}
.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}
.book-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    color: var(--navy-900);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 14px;
    box-shadow: 0 10px 20px rgba(10,29,58,0.08);
}
.cover-gallery { background: rgba(255,255,255,0.72); }
.cover-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.cover-gallery-item {
    min-width: 0;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(19,35,69,0.1);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.cover-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 6px;
}
.author-line {
    margin-top: 22px;
    text-align: center;
    font-size: 1rem;
    color: var(--gray-700);
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(19,35,69,0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}
.problem-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.problem-list li {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(16,31,60,0.03);
    border: 1px solid rgba(15,31,57,0.07);
    color: var(--gray-700);
}

.solution-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 212, 191, 0.15), rgba(26, 93, 231, 0.12));
    color: var(--navy-900);
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.solution-card h3, .benefit-card h3, .who-card h3, .preview-card h3 { margin: 0 0 12px; font-size: 1.2rem; }
.solution-card p, .benefit-card p, .who-card p, .preview-card p, .faq-item p { color: var(--gray-700); }

.contents-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin-top: 24px;
}
.content-item {
    padding: 22px 20px;
    border: 1px solid rgba(16,31,60,0.08);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(18, 31, 52, 0.06);
}
.content-item .num {
    color: var(--blue-600);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: inline-block;
}
.content-item h3 { margin: 0 0 8px; font-size: 1.18rem; }
.content-item p { margin: 0; color: var(--gray-700); }

.sample-box {
    background: linear-gradient(135deg, #0b1730, #193b72);
    border-radius: 22px;
    color: var(--white);
    padding: 28px;
    box-shadow: 0 18px 48px rgba(10, 25, 46, 0.24);
}
.sample-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    color: rgba(255,255,255,0.85);
}
.sample-meta strong { display: block; color: var(--white); margin-bottom: 4px; }
.prompt-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 20px;
    margin-top: 24px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    line-height: 1.8;
    color: #dfe7ff;
    white-space: pre-wrap;
}

.benefit-card, .who-card, .preview-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(16,31,60,0.08);
    box-shadow: var(--shadow);
}
.benefit-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26,93,231,0.15), rgba(42,212,191,0.15));
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 16px;
}

.preview-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.preview-card {
    min-height: 260px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: linear-gradient(180deg, #eef5ff, #ffffff);
}
.preview-card::before {
    content: '';
    position: absolute;
    inset: 18px 18px auto 18px;
    height: 150px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(123, 152, 255, 0.14), rgba(43, 212, 191, 0.18));
    border: 1px solid rgba(17,32,61,0.06);
}
.preview-card .preview-content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(17,32,61,0.08);
    padding: 18px 12px 0;
    margin-top: auto;
}

.author-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: center;
}
.author-photo {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,31,57,0.08);
}
.author-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pricing-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.pricing-card {
    width: min(560px, 100%);
    background: linear-gradient(180deg, #0f2347, #122d57);
    color: var(--white);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 28px 60px rgba(19, 34, 59, 0.28);
}
.pricing-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #dfe9ff;
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.pricing-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 1vw + 1rem, 2.2rem);
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 22px; }
.price-row .currency { font-size: 1.7rem; font-weight: 700; }
.price-row .amount { font-size: clamp(2.8rem, 2vw + 1.2rem, 4rem); font-weight: 900; }
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
    color: #dfe8fd;
}
.pricing-card li { position: relative; padding-left: 26px; }
.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal-500);
    font-weight: 900;
}

.faq-list {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}
.faq-item {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15,31,57,0.08);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 26px rgba(17,31,57,0.05);
}
.faq-item h3 { margin: 0 0 10px; }

.cta-box {
    background: linear-gradient(135deg, rgba(26,93,231,0.1), rgba(42,212,191,0.12));
    border: 1px solid rgba(26,93,231,0.12);
    border-radius: 28px;
    padding: 28px;
    text-align: center;
}

.site-footer {
    padding: 26px 0 18px;
    background: #0b1831;
    color: rgba(255,255,255,0.85);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
    padding-bottom: 18px;
}
.footer-brand {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.footer-brand-logo { display: block; width: auto; max-width: 180px; max-height: 64px; object-fit: contain; object-position: left center; }
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.site-footer a { color: rgba(255,255,255,0.92); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    border-radius: 26px;
    border: 1px solid rgba(15,31,57,0.08);
    box-shadow: var(--shadow);
    padding: 32px;
}
.checkout-product-summary {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: 24px 0 28px;
    padding: 14px;
    border: 1px solid rgba(15,31,57,0.09);
    border-radius: 10px;
    background: #f4f7fb;
}
.checkout-product-summary img {
    display: block;
    width: 104px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}
.checkout-product-details { min-width: 0; }
.checkout-product-label { color: var(--gray-500); font-size: .68rem; font-weight: 800; }
.checkout-product-details h2 { margin: 5px 0 10px; color: var(--navy-950); font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.checkout-product-details p { margin: 0; color: var(--navy-900); font-size: 1.2rem; font-weight: 800; }
.delivery-panel {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 20px;
    background: #f4f7fb;
    border: 1px solid rgba(15,31,57,0.08);
    border-radius: 12px;
}
.delivery-panel img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}
.delivery-panel h2 { margin: 0 0 6px; font-size: 1.35rem; }
.delivery-panel p { margin: 0 0 16px; color: var(--gray-700); }
.email-verification-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.email-verification-actions .btn, .email-code-row .btn { width: auto; min-height: 42px; padding: 10px 15px; border-radius: 8px; box-shadow: none; }
.email-verification-actions span { color: var(--gray-500); font-size: .82rem; }
.email-code-controls { margin-top: 16px; }
.email-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.email-verification-message { margin: 10px 0 0; font-size: .9rem; }
.email-verification-message.is-error { color: #9f3c36; }
.email-verification-message.is-success { color: #18724c; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}
label {
    display: block;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 8px;
}
input, textarea, select {
    width: 100%;
    border: 1px solid rgba(17,32,61,0.15);
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    color: var(--navy-900);
}
.input-full { grid-column: 1 / -1; }
.form-actions { margin-top: 24px; }

.notice {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}
.notice.error {
    background: rgba(220, 53, 69, 0.08);
    color: #7f1d1d;
    border: 1px solid rgba(220, 53, 69, 0.12);
}
.notice.success {
    background: rgba(24, 147, 92, 0.08);
    color: #0c5132;
    border: 1px solid rgba(24, 147, 92, 0.12);
}

@media (max-width: 900px) {
    .hero-grid, .author-wrap, .footer-grid { grid-template-columns: 1fr; }
    .book-visual { min-height: 380px; }
    .book-mockup { width: min(84%, 370px); }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contents-table { grid-template-columns: 1fr; }
    .preview-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cover-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .hero { padding-top: 48px; }
    .hero-grid { gap: 12px; }
    .book-visual { min-height: 310px; }
    .book-mockup { width: min(76%, 290px); }
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn, .btn-secondary { width: 100%; }
    .site-header .btn { width: auto; padding: 11px 14px; font-size: .78rem; }
    .site-header .nav-wrap { gap: 10px; min-height: 68px; }
    .brand { font-size: .94rem; }
    .site-brand-logo {         width: 180px;
        height: 60px;
        flex: 0 0 30px;}
    .section { padding: 72px 0; }
    .preview-stack { grid-template-columns: 1fr; }
    .delivery-panel { grid-template-columns: 1fr; }
    .delivery-panel img { width: min(180px, 100%); margin: 0 auto; }
    .email-verification-actions { align-items: flex-start; flex-direction: column; }
    .email-verification-actions .btn { width: 100%; }
    .email-code-row { grid-template-columns: 1fr; }
    .email-code-row .btn { width: 100%; }
    .form-card { padding: 22px 18px; }
    .checkout-product-summary { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; margin: 20px 0 24px; padding: 11px; }
    .checkout-product-summary img { width: 78px; }
    .checkout-product-details h2 { font-size: 1rem; }
    .checkout-product-details p { font-size: 1.05rem; }
    .card, .benefit-card, .who-card, .preview-card { padding: 22px 18px; }
    .container { width: min(100% - 24px, 1180px); }
}

.admin-body {
    min-height: 100vh;
    background: #f2f5f2;
    color: #183530;
    font-family: 'Inter', sans-serif;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #173b37;
    color: #f5f8f4;
    box-shadow: 0 4px 18px rgba(18, 45, 40, .12);
}
.admin-topbar-inner {
    width: min(1320px, calc(100% - 40px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.admin-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; white-space: nowrap; }
.admin-brand small { display: block; margin-top: 2px; color: #a9c3b5; font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.admin-brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 10px; color: #183530; background: #f2bd62; font-size: 1.1rem; }
.admin-nav { display: flex; align-items: center; gap: 5px; min-width: 0; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 7px; color: #d2e1d9; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }
.admin-nav .admin-nav-logout { margin-left: 8px; color: #f8d1bc; }
.admin-settings-dropdown { position: relative; flex: 0 0 auto; }
.admin-settings-dropdown summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 7px; color: #d2e1d9; cursor: pointer; font-size: .84rem; font-weight: 600; list-style: none; white-space: nowrap; }
.admin-settings-dropdown summary::-webkit-details-marker { display: none; }
.admin-settings-dropdown summary::after { content: 'v'; margin-left: 8px; color: #a9c3b5; font-size: .65rem; }
.admin-settings-dropdown summary:hover, .admin-settings-dropdown summary.is-active, .admin-settings-dropdown[open] summary { background: rgba(255,255,255,.13); color: #fff; }
.admin-settings-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; width: 190px; padding: 6px; border: 1px solid #dfe8e1; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(15, 40, 32, .18); }
.admin-settings-menu a, .admin-nav .admin-settings-menu a { display: flex; min-height: 42px; padding: 0 11px; color: #315348; font-size: .82rem; }
.admin-settings-menu a:hover, .admin-settings-menu a[aria-current="page"] { background: #edf5ef; color: #173b37; }
.admin-main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 64px; }
.admin-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 26px; }
.admin-page-heading h1 { margin: 5px 0 0; color: #193b34; font-size: 2rem; line-height: 1.15; letter-spacing: 0; }
.admin-page-heading p { margin: 8px 0 0; color: #677a71; font-size: .95rem; }
.admin-eyebrow { color: #628573; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.dashboard-filters, .admin-table-panel, .chart-panel { background: #fff; border: 1px solid #e0e9e2; border-radius: 10px; box-shadow: 0 5px 20px rgba(24, 53, 48, .045); }
.dashboard-filters { margin-bottom: 18px; padding: 18px 20px; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: #24463c; }
.filter-heading span { color: #7a8981; font-size: .82rem; }
.filter-controls { display: grid; grid-template-columns: repeat(6, minmax(115px, 1fr)) auto; align-items: end; gap: 12px; }
.filter-field label { margin-bottom: 5px; font-size: .75rem; }
.filter-field input, .filter-field select { min-height: 42px; padding: 8px 10px; border-color: #d8e2da; border-radius: 6px; font-size: .86rem; }
.filter-controls .btn { min-height: 42px; padding: 10px 16px; border-radius: 6px; box-shadow: none; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-width: 0; min-height: 128px; padding: 17px 18px; background: #fff; border: 1px solid #e0e9e2; border-radius: 9px; box-shadow: 0 5px 20px rgba(24, 53, 48, .04); }
.metric-card.metric-revenue { background: #173b37; border-color: #173b37; color: #fff; }
.metric-label { display: block; margin-bottom: 11px; color: #718178; font-size: .76rem; font-weight: 700; }
.metric-revenue .metric-label, .metric-revenue small { color: #bad0c4; }
.metric-card strong { display: block; overflow-wrap: anywhere; color: #193b34; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; }
.metric-revenue strong { color: #fff; }
.metric-card small { display: block; margin-top: 9px; color: #85938c; font-size: .74rem; }
.metric-card .growth-value { font-size: 1.16rem; }
.growth-positive { color: #258465 !important; }
.growth-negative { color: #b44c3d !important; }
.growth-neutral { color: #66766e !important; }
.dashboard-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.chart-panel { min-width: 0; padding: 20px; }
.panel-heading, .table-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.panel-heading h2 { margin: 0; color: #24463c; font-size: 1rem; }
.panel-heading p { margin: 4px 0 0; color: #819088; font-size: .78rem; }
.chart-canvas-wrap { position: relative; width: 100%; height: 290px; }
.recent-orders-panel { margin-top: 0; }
.text-link { color: #267360; font-size: .83rem; font-weight: 700; }
.admin-form-panel { padding: 24px; }
.settings-section-heading { padding-top: 19px; border-top: 1px solid #e3ebe5; }
.settings-section-heading h2 { margin: 0 0 5px; color: #24463c; font-size: 1rem; }
.settings-section-heading p { margin: 0; color: #819088; font-size: .82rem; }
.settings-logo-preview { display: block; width: auto; max-width: min(240px, 100%); max-height: 100px; margin-top: 12px; padding: 8px; border: 1px solid #e0e9e2; border-radius: 7px; background: #f6f8f6; object-fit: contain; }
.settings-security-note { margin: 18px 0 0; color: #718078; font-size: .8rem; line-height: 1.6; }
.setting-checkbox { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #718078; font-size: .82rem; }
.setting-checkbox input { width: auto; margin: 0; }
.admin-table-panel { overflow: hidden; }
.table-panel-heading { min-height: 58px; margin: 0; padding: 12px 18px; border-bottom: 1px solid #e8eee9; }
.table-panel-heading strong { color: #24463c; font-size: .9rem; }
.table-panel-heading span { margin-left: 10px; color: #85938c; font-size: .78rem; }
.table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.admin-data-table { width: 100% !important; border-collapse: collapse !important; color: #344b43; font-size: .82rem; }
.admin-data-table thead th { padding: 13px 12px !important; border-bottom: 1px solid #dce7df !important; background: #f6f9f6; color: #60736a; font-size: .7rem; font-weight: 800; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.admin-data-table tbody td { padding: 12px !important; border-bottom: 1px solid #edf1ee !important; vertical-align: middle; }
.admin-data-table tbody tr:hover { background: #f8faf8; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #eef1ef; color: #64736c; font-size: .7rem; font-weight: 800; text-transform: capitalize; }
.status-paid { background: #e4f4eb; color: #19794f; }
.status-pending { background: #fff3d8; color: #95661a; }
.status-failed, .status-refunded { background: #fce9e4; color: #a44c3e; }
.status-cancelled { background: #edf0f1; color: #5e6d73; }
.status-editor { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 7px; min-width: 185px; }
.status-editor select { min-height: 36px; padding: 6px 8px; border-radius: 6px; font-size: .75rem; }
.status-editor .btn { min-height: 36px; padding: 7px 11px; border: 1px solid #d7e4dc; border-radius: 6px; background: #edf5f0; color: #285746; box-shadow: none; font-size: .74rem; }
.status-editor .btn:disabled { opacity: .5; }
.btn-danger { min-height: 36px; padding: 7px 11px; border: 1px solid #f2c9bf; border-radius: 6px; background: #fff2ed; color: #a24639; box-shadow: none; font-size: .74rem; }
.delete-form { min-width: 80px; }
.table-tools, .table-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.table-tools { margin-bottom: 12px; }
.table-excel-export { display: inline-grid; flex: 0 0 40px; place-items: center; width: 40px; min-height: 40px; padding: 0; border: 1px solid #d1e2d7; border-radius: 7px; background: #eaf3ed; color: #245843; box-shadow: none; }
.table-excel-export:hover, .table-excel-export:focus-visible { background: #dcebe1; color: #173b37; outline: 2px solid #93bba2; outline-offset: 2px; }
.download-icon { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.dataTables_wrapper { padding: 14px 16px 12px; color: #6b7b72; font-size: .8rem; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { margin-bottom: 12px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { min-height: 36px; margin-left: 6px; padding: 6px 9px; border: 1px solid #d9e3dc; border-radius: 6px; background: #fff; font-size: .8rem; }
.dataTables_wrapper .dataTables_filter input { width: min(230px, 55vw); }
.dataTables_wrapper .dataTables_info { padding-top: 12px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 7px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 6px 10px !important; border: 0 !important; border-radius: 5px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: #e7f1eb !important; color: #245843 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #edf4ef !important; color: #245843 !important; }
.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before { background: #34765d; border: 0; box-shadow: none; }

@media (max-width: 1050px) {
    .admin-topbar-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0 10px; }
    .admin-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .admin-nav a { padding: 0 10px; }
    .filter-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .admin-topbar-inner, .admin-main { width: min(100% - 24px, 1320px); }
    .admin-main { padding: 24px 0 42px; }
    .admin-page-heading { margin-bottom: 18px; }
    .admin-form-panel { padding: 16px; }
    .admin-page-heading h1 { font-size: 1.65rem; }
    .dashboard-filters { padding: 15px; }
    .filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-controls > .btn { grid-column: 1 / -1; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .metric-card { min-height: 112px; padding: 14px; }
    .dashboard-chart-grid { grid-template-columns: 1fr; }
    .chart-panel { padding: 16px 13px; }
    .chart-canvas-wrap { height: 245px; }
    .admin-table-panel .table-wrap { overflow: visible; }
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control { padding-left: 32px !important; }
    .dataTables_wrapper { padding: 12px 10px; }
    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { float: none; width: 100%; text-align: left; }
    .dataTables_wrapper .dataTables_filter input { width: calc(100% - 82px); max-width: none; }
    .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; }
    .dataTables_wrapper .dataTables_paginate { display: flex; flex-wrap: wrap; justify-content: center; }
    .table-tools, .table-footer { align-items: stretch; flex-direction: column; gap: 10px; }
    .table-panel-heading { padding: 12px; }
    .table-panel-heading > div { min-width: 0; }
    .table-panel-heading strong { display: block; }
    .table-panel-heading span { display: block; margin: 4px 0 0; }
    .admin-data-table tbody td { overflow-wrap: anywhere; }
    .panel-heading { align-items: flex-start; }
    .admin-settings-menu { position: fixed; top: 118px; right: 12px; left: 12px; width: auto; }
}
@media (max-width: 420px) {
    .admin-nav a { min-height: 36px; padding: 0 8px; font-size: .76rem; }
    .filter-controls { grid-template-columns: 1fr; }
    .filter-controls > .btn { grid-column: auto; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card strong { font-size: 1.25rem; }
    .metric-card .growth-value { font-size: .95rem; }
    .filter-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}
