body.theme-modern {
    --atb-bg: #f6f7fb;
    --atb-surface: #ffffff;
    --atb-text: #101828;
    --atb-muted: #667085;
    --atb-primary: #1e5aa8;
    --atb-primary-600: #174b8a;
    --atb-accent: #14b8a6;
    --atb-border: #e5e7eb;
    --atb-success: #16a34a;
    --atb-warning: #f59e0b;
    --atb-danger: #dc2626;
    background: var(--atb-bg);
    color: var(--atb-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.theme-modern .content-wrapper {
    background: transparent;
}

body.theme-modern .container {
    max-width: 980px;
}

body.theme-modern .modern-shell {
    padding: 32px 16px 24px;
}

body.theme-modern .modern-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

body.theme-modern .modern-hero-text {
    max-width: 640px;
}

body.theme-modern .modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid rgba(20, 184, 166, 0.35);
    margin-bottom: 8px;
}

body.theme-modern .modern-title {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

body.theme-modern .modern-subtitle {
    color: var(--atb-muted);
    margin: 0;
    font-size: 1rem;
}

body.theme-modern .modern-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.theme-modern .modern-step {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--atb-border);
    color: var(--atb-muted);
    font-size: 0.8rem;
    font-weight: 600;
    background: #fff;
}

body.theme-modern .modern-step.is-active {
    color: #fff;
    background: var(--atb-primary);
    border-color: var(--atb-primary);
}

body.theme-modern .modern-step.is-complete {
    color: #0f5132;
    background: #e8f7f4;
    border-color: rgba(20, 184, 166, 0.35);
}

body.theme-modern .modern-card {
    background: var(--atb-surface);
    border: 1px solid var(--atb-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

body.theme-modern .form-control {
    border-radius: 10px;
    border-color: var(--atb-border);
    padding: 0.75rem 0.9rem;
    height: auto;
    font-size: 0.95rem;
}

body.theme-modern .form-control:focus {
    border-color: var(--atb-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

body.theme-modern label {
    font-weight: 600;
    color: #344054;
}

body.theme-modern .btn {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

body.theme-modern .btn-primary {
    background: var(--atb-primary);
    border-color: var(--atb-primary);
}

body.theme-modern .btn-primary:hover {
    background: var(--atb-primary-600);
    border-color: var(--atb-primary-600);
}

body.theme-modern .btn-outline-primary {
    border-color: var(--atb-primary);
    color: var(--atb-primary);
}

body.theme-modern .btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.08);
}

body.theme-modern .btn-secondary {
    background: #f2f4f7;
    border-color: #e4e7ec;
    color: #344054;
}

body.theme-modern .alert-info {
    background: #ecf5ff;
    border-color: #cfe0f5;
    color: #123a73;
}

body.theme-modern .table thead th {
    border-bottom: 1px solid var(--atb-border);
    color: var(--atb-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

body.theme-modern .table tbody tr {
    background: transparent;
}

body.theme-modern .table td,
body.theme-modern .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

body.theme-modern #parts-summary,
body.theme-modern #payout-summary-step2,
body.theme-modern #qr-parts-counter {
    font-weight: 600;
    color: #111827;
}

body.theme-modern .modal-content {
    border-radius: 16px;
    border: 1px solid var(--atb-border);
}

body.theme-modern .modal-header,
body.theme-modern .modal-footer {
    border-color: var(--atb-border);
}

body.theme-modern .main-footer {
    background: transparent;
    border-top: 1px solid var(--atb-border);
    color: var(--atb-muted);
    padding: 16px;
}

body.theme-modern .modern-closed {
    background: var(--atb-surface);
    border: 1px solid var(--atb-border);
    border-radius: 18px;
    padding: 32px 24px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

@media (max-width: 768px) {
    body.theme-modern .modern-card {
        padding: 18px;
    }

    body.theme-modern .modern-shell {
        padding: 24px 12px 16px;
    }
}
