@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-0: #07111f;
    --bg-1: #0b1630;
    --surface: rgba(9, 15, 29, 0.72);
    --surface-strong: rgba(12, 20, 39, 0.92);
    --surface-soft: rgba(148, 163, 184, 0.08);
    --text: #eef4ff;
    --muted: #a8b6d4;
    --border: rgba(148, 163, 184, 0.18);
    --primary: #6d7cff;
    --primary-strong: #4f67ff;
    --secondary: #38bdf8;
    --accent: #7c3aed;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-lg: 0 24px 80px rgba(2, 6, 23, 0.38);
    --shadow-md: 0 14px 40px rgba(2, 6, 23, 0.26);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.24), transparent 26%),
        linear-gradient(180deg, #07111f 0%, #0b1430 44%, #080f1d 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 86%);
    opacity: 0.55;
}

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

.container {
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(109, 124, 255, 0.35);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6478ff, #38bdf8);
    border-radius: 999px;
    border: 2px solid rgba(7, 17, 31, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7a88ff, #4cc9f0);
}

header,
footer,
.surface-card,
.content-card,
.form-card,
.auth-card,
.pricing-card,
.feature-card,
.stat-card,
.table-shell,
.admin-sidebar {
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 17, 31, 0.76);
}

header nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link,
.admin-sidebar__brand h2 {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.nav-link,
.nav-pill,
.lang-switch a,
.admin-nav a {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link {
    padding: 0.78rem 1rem;
    border-radius: 999px;
    color: var(--muted);
}

.nav-link:hover,
.nav-link:focus-visible,
.lang-switch a:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text);
    transform: translateY(-1px);
}

.nav-pill,
.btn-primary,
.btn-secondary,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.92rem 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.nav-pill,
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.22);
}

.btn-secondary {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
}

.btn-accent {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.btn-primary:hover,
.nav-pill:hover,
.btn-secondary:hover,
.btn-accent:hover,
.admin-nav a:hover,
.admin-nav a.active {
    transform: translateY(-2px);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
}

.lang-switch a {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--muted);
}

.lang-switch a.font-bold,
.lang-switch a.active {
    background: rgba(255, 255, 255, 0.95);
    color: #0b1220;
}

.mobile-menu-btn {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.7rem;
}

.page-hero,
.section-surface {
    position: relative;
    z-index: 1;
}

.page-hero {
    padding: 5.5rem 0 4rem;
}

.hero-panel,
.auth-layout,
.order-layout {
    display: grid;
    gap: 1.5rem;
}

.hero-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
}

.hero-copy,
.hero-side,
.section-copy-wrap,
.auth-copy {
    position: relative;
}

.hero-eyebrow,
.section-kicker,
.badge,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-title,
.section-title,
.page-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.hero-title {
    margin-top: 1rem;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    max-width: 10ch;
}

.section-title,
.page-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.hero-subtitle,
.section-copy,
.page-intro,
.muted,
.text-gray-500,
.text-gray-600 {
    color: var(--muted) !important;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 58ch;
    margin-top: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-side,
.auth-panel,
.summary-panel {
    padding: 1.3rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(9, 15, 29, 0.74));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-stats-grid,
.stats-grid,
.feature-grid,
.pricing-grid,
.auth-highlights,
.contact-grid {
    display: grid;
    gap: 1rem;
}

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

.mini-card,
.feature-card,
.pricing-card,
.stat-card,
.contact-card,
.auth-note,
.dashboard-card {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.mini-card {
    padding: 1rem;
}

.mini-card strong,
.stat-value,
.price {
    letter-spacing: -0.05em;
    font-weight: 800;
}

.mini-card strong,
.stat-value {
    display: block;
    font-size: 1.45rem;
}

.mini-card span,
.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.feature-grid,
.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.pricing-card,
.stat-card,
.contact-card,
.auth-note,
.dashboard-card {
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.feature-card {
    min-height: 100%;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.22);
}

.feature-card h3,
.pricing-card h3,
.contact-card h2,
.contact-card h3,
.auth-card h2,
.auth-card h3,
.dashboard-card h2,
.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card--featured {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 28px 70px rgba(59, 130, 246, 0.22);
    transform: translateY(-8px);
}

.pricing-tag,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: #a6e8ff;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card__header {
    padding: 1.3rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(79, 103, 255, 0.95), rgba(56, 189, 248, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.price {
    display: block;
    margin-top: 0.3rem;
    font-size: 2.5rem;
    color: #fff;
}

.price small {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.list-check {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin: 1.25rem 0;
    padding: 0;
}

.list-check li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text);
    line-height: 1.5;
}

.list-check li::before {
    content: '';
    width: 1rem;
    height: 1rem;
    margin-top: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--success), var(--secondary));
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    flex-shrink: 0;
}

.table-shell {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
}

.table-modern,
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th,
table thead th {
    position: sticky;
    top: 0;
    background: rgba(12, 20, 39, 0.96);
    color: #dbe7ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.table-modern th,
.table-modern td,
table th,
table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.table-modern tbody tr,
table tbody tr {
    transition: background 0.16s ease, transform 0.16s ease;
}

.table-modern tbody tr:hover,
table tbody tr:hover {
    background: rgba(148, 163, 184, 0.06);
}

.table-modern code,
code {
    padding: 0.25rem 0.5rem;
    border-radius: 0.6rem;
    background: rgba(148, 163, 184, 0.12);
    color: #dbe7ff;
}

.auth-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    align-items: center;
}

.auth-copy {
    padding-right: 1rem;
}

.auth-card,
.form-card,
.content-card,
.dashboard-card,
.contact-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.auth-card,
.form-card {
    padding: 1.75rem;
}

.form-card form,
.auth-card form {
    display: grid;
    gap: 1rem;
}

label {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #dce7fb;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(5, 10, 20, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: var(--text) !important;
    border-radius: 16px !important;
    padding: 0.95rem 1rem !important;
    box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(168, 182, 212, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: rgba(56, 189, 248, 0.78) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14) !important;
}

.input-radio-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.input-radio-card input {
    width: auto;
}

.btn-submit,
.btn-block {
    width: 100%;
}

.btn-submit {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(56, 189, 248, 0.18);
}

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

.dashboard-grid,
.admin-grid {
    display: grid;
    gap: 1.2rem;
}

.dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
}

.admin-content {
    min-width: 0;
}

.admin-sidebar {
    position: sticky;
    top: 6rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(7, 17, 31, 0.84);
}

.admin-sidebar__brand {
    padding: 1.4rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar__brand p {
    margin-top: 0.45rem;
    color: var(--muted);
}

.admin-nav {
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.02);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(148, 163, 184, 0.12);
}

.admin-nav a.danger {
    color: #fda4af;
}

.flash-message {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow-md);
}

.flash-message--success {
    background: rgba(16, 185, 129, 0.16);
    color: #d1fae5;
}

.flash-message--error {
    background: rgba(239, 68, 68, 0.16);
    color: #fee2e2;
}

.flash-message--warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fef3c7;
}

footer {
    margin-top: 5rem;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.36), rgba(5, 10, 20, 0.92));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-chip,
.payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
}

.footer-link-list {
    display: grid;
    gap: 0.55rem;
}

.footer-link-list a {
    color: var(--muted);
}

.footer-link-list a:hover {
    color: var(--text);
}

.hero-banner,
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(79, 103, 255, 0.18), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.stack {
    display: grid;
    gap: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.text-blue-600,
.text-blue-700 {
    color: #7ecbff !important;
}

.text-green-600,
.text-green-700 {
    color: #6ee7a7 !important;
}

.text-red-600,
.text-red-700 {
    color: #ff9090 !important;
}

.text-orange-600,
.text-orange-700 {
    color: #f7c56b !important;
}

.bg-white {
    background: rgba(9, 15, 29, 0.74) !important;
    color: var(--text);
}

.bg-gray-50,
.bg-gray-100 {
    background: transparent !important;
}

.shadow,
.shadow-lg,
.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.rounded-lg,
.rounded-xl {
    border-radius: var(--radius-lg) !important;
}

.rounded-full {
    border-radius: 999px !important;
}

.border,
.border-b,
.border-t {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.fade-in {
    animation: fadeIn 0.55s ease-out;
}

.float {
    animation: float 6s ease-in-out infinite;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .hero-panel,
    .auth-layout,
    .order-layout,
    .footer-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-grid,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: 4rem;
    }

    .hero-title {
        max-width: none;
    }

    .dashboard-grid,
    .feature-grid,
    .pricing-grid,
    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: start;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.8rem 0.7rem !important;
    }

    .nav-links {
        gap: 0.45rem;
    }
}