:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #e5e7eb;
    --sidebar: #ffffff;
    --danger: #ef4444;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
    --bg: #080b12;
    --card: #111827;
    --text: #f9fafb;
    --muted: #9ca3af;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --border: #1f2937;
    --sidebar: #0f172a;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.top-nav {
    height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 99;
}

html[data-theme="dark"] .top-nav {
    background: rgba(15, 23, 42, 0.75);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    box-shadow: var(--shadow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions a {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.active-lang {
    color: var(--primary) !important;
}

.theme-btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.hero-section {
    padding: 80px 20px 40px;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(980px, 100%);
    padding: 70px 40px;
    border-radius: 36px;
    background: var(--card);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.badge-soft {
    display: inline-flex;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-card h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-card p {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: white;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 800;
    border: 0;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.btn-main:hover {
    color: white;
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--text);
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid var(--border);
}

.full {
    width: 100%;
}

.pricing-section {
    padding: 30px 20px 90px;
    max-width: 1100px;
    margin: auto;
}

.pricing-section h2 {
    text-align: center;
    font-weight: 900;
    margin-bottom: 25px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.price-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 28px;
    padding: 28px;
}

.price-card h3 {
    font-weight: 900;
}

.price {
    font-size: 34px;
    font-weight: 900;
    margin: 12px 0;
}

.price-card p {
    color: var(--muted);
}

.popular {
    border: 2px solid var(--primary);
}

.popular-label {
    position: absolute;
    top: -14px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.auth-wrap {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 35px 15px;
}

.auth-card {
    width: min(460px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 32px;
    border-radius: 28px;
}

.auth-card h2 {
    font-weight: 900;
    margin-bottom: 20px;
}

.auth-card label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text);
}

.form-control {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 13px;
    padding: 12px 14px;
}

.form-control:focus {
    background: var(--bg);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: none;
}

.auth-link {
    margin-top: 18px;
    color: var(--muted);
}

.auth-link a {
    color: var(--primary);
    font-weight: 800;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

.sidebar {
    width: 260px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html[dir="rtl"] .sidebar {
    border-right: 0;
    border-left: 1px solid var(--border);
}

.sidebar a {
    padding: 13px 15px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 800;
}

.sidebar a.active,
.sidebar a:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 30px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.page-head h1 {
    font-weight: 900;
    margin: 0;
}

.page-head p {
    color: var(--muted);
    margin: 4px 0 0;
}

.plan-pill {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card,
.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 24px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.stat-card h3 {
    margin-top: 10px;
    font-weight: 900;
}

.content-card h3 {
    font-weight: 900;
}

.content-card p {
    color: var(--muted);
}

@media (max-width: 900px) {
    .pricing-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        padding: 20px;
    }

    .top-nav {
        padding: 0 14px;
    }

    .brand span:last-child {
        display: none;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
.table {
    color: var(--text);
}

.table thead th {
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    text-transform: uppercase;
}

.table td {
    border-color: var(--border);
    color: var(--text);
}

.product-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.product-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 1px solid var(--border);
}

.badge {
    padding: 8px 10px;
    border-radius: 999px;
}

textarea.form-control {
    min-height: 95px;
}

.table-responsive {
    border-radius: 18px;
}
.bank-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    height: 100%;
}

.bank-card h4 {
    font-weight: 900;
    margin-bottom: 12px;
}

.bank-card p {
    margin-bottom: 8px;
    color: var(--text);
}

.bank-card small {
    color: var(--muted);
}