:root {
    --bg: #f3f7ff;
    --bg-soft: #eaf1ff;
    --panel: rgba(255, 255, 255, 0.9);
    --ink: #081226;
    --muted: #5e6b84;
    --line: #dbe5ff;
    --brand: #2563eb;
    --brand-dark: #1746af;
    --danger: #b91c1c;
    --shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

body.theme-dashboard {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 22%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 30%),
        linear-gradient(180deg, #091120 0%, #0d1729 100%);
    color: #eef4ff;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    backdrop-filter: blur(14px);
    background: rgba(248, 251, 255, 0.84);
    border-bottom: 1px solid rgba(191, 208, 255, 0.7);
}

.theme-dashboard .site-header {
    background: rgba(9, 17, 32, 0.76);
    border-color: rgba(84, 114, 177, 0.32);
}

.nav-wrap,
.hero-grid,
.split-section,
.contact-grid,
.dashboard-hero-wrap,
.cart-layout,
.footer-wrap {
    display: grid;
    gap: 24px;
}

.nav-wrap {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
}

.brand-mark { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-text span { color: var(--brand); }

.site-nav { display: inline-flex; justify-content: center; gap: 28px; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 600; }
.theme-dashboard .site-nav a { color: rgba(226, 237, 255, 0.72); }
.site-nav a:hover, .site-nav a.is-active { color: var(--brand); }

.nav-actions { display: inline-flex; align-items: center; gap: 14px; }
.cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--brand);
    font-weight: 700;
}

.cart-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.theme-dashboard .button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(226, 237, 255, 0.18);
}

.button-danger {
    background: rgba(185, 28, 28, 0.14);
    color: #ffb4b4;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.button-block { width: 100%; }
.button-large { min-height: 54px; padding-inline: 28px; }

.hero, .section, .dashboard-section { padding: 72px 0; }
.hero { padding-top: 56px; }

.hero-grid, .split-section, .contact-grid, .dashboard-hero-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.eyebrow,
.section-tag,
.card-chip,
.panel-label,
.featured-badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.eyebrow,
.section-tag,
.card-chip,
.featured-badge {
    color: var(--brand);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.theme-dashboard .section-tag,
.theme-dashboard .card-chip {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(96, 165, 250, 0.22);
}

.hero h1,
.section-heading h2,
.split-section h2,
.auth-intro h1,
.dashboard-hero h1,
.cart-section h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.8rem, 6vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-copy,
.section-heading p,
.split-section p,
.contact-grid p,
.auth-intro p,
.dashboard-hero p,
.cart-section p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.theme-dashboard .hero-copy,
.theme-dashboard .section-heading p,
.theme-dashboard .split-section p,
.theme-dashboard .contact-grid p,
.theme-dashboard .auth-intro p,
.theme-dashboard .dashboard-hero p,
.theme-dashboard .cart-section p {
    color: rgba(225, 235, 252, 0.72);
}

.hero-actions, .dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0 34px;
}

.hero-stats,
.info-stack,
.service-grid,
.product-grid,
.package-grid,
.work-grid,
.project-grid,
.project-panel,
.contact-list,
.auth-card,
.contact-form,
.admin-form-grid,
.flash-stack {
    display: grid;
    gap: 14px;
}

.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid, .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }

.hero-panel-card,
.stat-card,
.info-card,
.service-card,
.product-card,
.package-card,
.work-card,
.auth-card,
.cart-table-card,
.summary-card,
.project-card,
.tutorial-card,
.admin-table-shell,
.empty-state,
.contact-form {
    background: var(--panel);
    border: 1px solid rgba(191, 208, 255, 0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.theme-dashboard .hero-panel-card,
.theme-dashboard .stat-card,
.theme-dashboard .info-card,
.theme-dashboard .service-card,
.theme-dashboard .product-card,
.theme-dashboard .package-card,
.theme-dashboard .work-card,
.theme-dashboard .auth-card,
.theme-dashboard .cart-table-card,
.theme-dashboard .summary-card,
.theme-dashboard .project-card,
.theme-dashboard .tutorial-card,
.theme-dashboard .admin-table-shell,
.theme-dashboard .empty-state,
.theme-dashboard .contact-form {
    background: rgba(10, 17, 31, 0.82);
    border-color: rgba(84, 114, 177, 0.32);
    box-shadow: 0 28px 80px rgba(4, 10, 23, 0.34);
}

.hero-panel-card,
.stat-card,
.info-card,
.service-card,
.product-card,
.package-card,
.work-card,
.summary-card,
.project-card,
.tutorial-card,
.empty-state,
.auth-card,
.contact-form {
    padding: 28px;
}

.product-card, .package-card, .project-card { display: flex; flex-direction: column; gap: 18px; }
.product-card h3, .package-card h3, .project-card h3, .service-card h3, .info-card h3, .work-card h3, .auth-card h2 { margin: 0; font-size: 1.45rem; }
.product-heading, .project-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }

.product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(147, 197, 253, 0.14));
    color: var(--brand);
    font-weight: 800;
}

.status-pill {
    background: rgba(37, 99, 235, 0.14);
    color: #93c5fd;
}

.status-pending-consultation { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; }
.status-pending-payment, .status-verifying-payment { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.status-in-development { background: rgba(37, 99, 235, 0.16); color: #93c5fd; }
.status-ready { background: rgba(16, 185, 129, 0.16); color: #86efac; }

.feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--muted);
    line-height: 1.65;
}

.theme-dashboard .feature-list { color: rgba(225, 235, 252, 0.7); }
.compact { gap: 8px; }
.price-label, .package-price, .project-price, .summary-card h2 { margin: 0; font-size: 2rem; font-weight: 900; }
.featured-badge { align-self: flex-start; }
.package-card.is-featured { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-6px); }

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(219, 234, 254, 0.38));
    border-top: 1px solid rgba(191, 208, 255, 0.72);
    border-bottom: 1px solid rgba(191, 208, 255, 0.72);
}

.section-heading { max-width: 720px; margin-bottom: 36px; }
.align-left { margin-bottom: 28px; }

.auth-section { padding: 78px 0 92px; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 480px); gap: 32px; align-items: center; }
.cart-layout { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr); align-items: start; }
.summary-card { position: sticky; top: 110px; }

.dashboard-hero { padding: 72px 0 18px; }
.dashboard-section { padding-top: 26px; }
.tutorial-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }

.auth-card label, .contact-form label, .project-panel label { display: grid; gap: 10px; }
.auth-card span, .contact-form span, .project-panel span { font-weight: 700; }

input, textarea, select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(191, 208, 255, 0.9);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
}

textarea { resize: vertical; }

.theme-dashboard input,
.theme-dashboard textarea,
.theme-dashboard select {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(84, 114, 177, 0.36);
    color: #f4f8ff;
}

.field-error { color: var(--danger); font-weight: 700; }
.theme-dashboard .field-error { color: #fda4af; }
.auth-link { color: var(--muted); text-align: center; }
.auth-link a, .text-link { color: var(--brand); font-weight: 700; }

.flash { padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; font-weight: 700; }
.flash-success { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.28); color: #047857; }
.flash-error { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.28); color: #b91c1c; }
.flash-warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); color: #b45309; }
.theme-dashboard .flash-success { color: #86efac; }
.theme-dashboard .flash-error { color: #fda4af; }
.theme-dashboard .flash-warning { color: #fde68a; }

.cart-table, .admin-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td, .admin-table th, .admin-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(191, 208, 255, 0.4);
    vertical-align: top;
}

.theme-dashboard .cart-table th,
.theme-dashboard .cart-table td,
.theme-dashboard .admin-table th,
.theme-dashboard .admin-table td {
    border-bottom-color: rgba(84, 114, 177, 0.28);
}

.admin-table-shell { overflow-x: auto; padding: 12px; }
.admin-table td span, .admin-table td strong { display: block; }
.admin-table td span { margin-top: 8px; color: rgba(225, 235, 252, 0.7); }
.theme-light .admin-table td span { color: var(--muted); }
.admin-form-grid { min-width: 360px; }

.site-footer { padding: 28px 0 40px; }
.footer-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
    border-top: 1px solid rgba(191, 208, 255, 0.62);
    padding-top: 26px;
}

.theme-dashboard .footer-wrap { border-color: rgba(84, 114, 177, 0.28); }
.footer-brand { font-weight: 800; margin: 0 0 6px; }
.footer-copy, .footer-year { margin: 0; color: var(--muted); }
.theme-dashboard .footer-copy, .theme-dashboard .footer-year { color: rgba(225, 235, 252, 0.62); }

.menu-toggle { display: none; background: transparent; border: 0; padding: 0; }
.menu-toggle span { display: block; width: 28px; height: 3px; border-radius: 999px; background: currentColor; }

@media (max-width: 1100px) {
    .service-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid, .package-grid, .hero-grid, .split-section, .contact-grid, .dashboard-hero-wrap, .auth-wrap, .cart-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}

@media (max-width: 880px) {
    .nav-wrap {
        grid-template-columns: auto auto;
        grid-template-areas: "brand toggle" "menu menu" "actions actions";
    }

    .brand-mark { grid-area: brand; }
    .menu-toggle { grid-area: toggle; display: inline-grid; gap: 5px; justify-self: end; }
    .site-nav, .nav-actions { display: none; }
    .site-nav.is-open, .nav-actions.is-open { display: grid; }
    .site-nav { grid-area: menu; gap: 16px; justify-content: start; padding-top: 12px; }
    .nav-actions { grid-area: actions; gap: 12px; padding-top: 16px; }
    .hero h1, .section-heading h2, .split-section h2, .auth-intro h1, .dashboard-hero h1, .cart-section h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
    .hero-stats, .service-grid, .work-grid, .project-grid { grid-template-columns: 1fr; }
    .tutorial-card { flex-direction: column; align-items: stretch; }
}
