* {
    box-sizing: border-box;
}

:root {
    --bg: #07111f;
    --bg-soft: #0b1830;
    --panel: rgba(14, 27, 53, 0.88);
    --panel-2: rgba(10, 22, 43, 0.92);
    --line: rgba(120, 160, 230, 0.18);
    --line-strong: rgba(120, 160, 230, 0.3);
    --text: #f5f8ff;
    --muted: #a9b8d6;
    --blue: #4f8cff;
    --blue-hover: #3c79eb;
    --green: #2cc58d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79, 140, 255, 0.2), transparent 32%),
        radial-gradient(circle at bottom right, rgba(44, 197, 141, 0.14), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #08192f 100%);
    color: var(--text);
}

body {
    position: relative;
}

.app-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.page {
    min-height: 100vh;
    padding: 32px 20px;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.landing {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.landing-copy {
    padding: 24px 10px 24px 0;
}

.eyebrow,
.topbar-label,
.brand-sub {
    color: #8fb7ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    margin: 0 0 10px 0;
}

h1 {
    font-size: 64px;
    line-height: 1.02;
    margin: 0 0 18px 0;
    max-width: 760px;
}

.hero-text {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 28px;
}

.hero-points {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dfe9ff;
    font-size: 16px;
}

.point-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7db0ff, #2cc58d);
    box-shadow: 0 0 18px rgba(79, 140, 255, 0.6);
}

.login-panel {
    padding: 28px;
}

.card-head h2,
.section-head h3 {
    margin: 8px 0 8px 0;
    font-size: 30px;
}

.card-head p,
.section-head p {
    color: var(--muted);
    margin: 0;
}

.card-tag,
.product-badge,
.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: #d7e5ff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    color: #cbd8ef;
}

input,
select {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(7, 17, 31, 0.72);
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus {
    border-color: #6da0ff;
    transform: translateY(-1px);
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #e5eeff;
}

.checkbox input {
    width: auto;
    transform: scale(1.05);
}

.actions {
    margin-top: 22px;
}

.actions-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #4f8cff, #6ea8ff);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3f7ef1, #5f9eff);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid var(--line-strong);
}

.btn-full {
    width: 100%;
}

.message {
    margin-top: 14px;
    min-height: 22px;
    color: #aecdff;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    min-height: calc(100vh - 64px);
}

.sidebar {
    background: rgba(9, 19, 37, 0.9);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand-box {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, #4f8cff, #2cc58d);
    color: white;
}

.brand-name {
    margin: 0 0 4px 0;
    font-weight: 700;
}

.menu {
    display: grid;
    gap: 10px;
}

.menu-item {
    text-align: left;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #dce8ff;
    cursor: pointer;
    font-size: 15px;
}

.menu-item.active,
.menu-item:hover {
    background: rgba(79, 140, 255, 0.12);
    border-color: rgba(79, 140, 255, 0.24);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

#dealer-name-display {
    color: #e7f0ff;
    margin-bottom: 12px;
    font-weight: 600;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topbar {
    background: rgba(14, 27, 53, 0.8);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h2 {
    margin: 0;
    font-size: 32px;
}

.view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-grid,
.quick-grid,
.result-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.quick-card,
.result-box {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.stat-label {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
    font-size: 13px;
}

.stat-card strong {
    font-size: 20px;
    line-height: 1.5;
}

.quick-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.result-grid {
    grid-template-columns: 1fr 1fr;
}

.result-box h4 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #dce7ff;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: var(--muted);
}

.total-box {
    margin-top: 20px;
    padding: 18px 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(44, 197, 141, 0.14));
    border: 1px solid var(--line-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
}

.total-box strong {
    font-size: 30px;
}

.offers-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.offer-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.offer-item-meta h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.offer-item-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.offer-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1200px) {
    .landing {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 42px;
    }

    .form-grid,
    .stats-grid,
    .quick-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .section-head,
    .offer-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.lang-btn.active {
    background: #fff;
    color: #111;
    font-weight: 600;
}