/* ═══════════════════════════════════════════════════════════
   EMAIL CAMPAIGN SYSTEM — THEME
   Colors: White (#FFFFFF), Yellow (#FFD200), Black (#1A1A1A)
   Font: DM Sans + JetBrains Mono
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* ── Core Palette ──────────────────────────── */
    --c-black: #1A1A1A;
    --c-black-soft: #2A2A2A;
    --c-black-muted: #3A3A3A;
    --c-yellow: #FFD200;
    --c-yellow-hover: #FFC000;
    --c-yellow-light: #FFF4B8;
    --c-yellow-pale: #FFFDE6;
    --c-white: #FFFFFF;
    --c-offwhite: #FAFAFA;
    --c-gray-50: #F8F8F8;
    --c-gray-100: #F0F0F0;
    --c-gray-200: #E4E4E4;
    --c-gray-300: #CCCCCC;
    --c-gray-400: #999999;
    --c-gray-500: #777777;
    --c-gray-600: #555555;

    /* ── Status Colors ─────────────────────────── */
    --c-success: #2CB67D;
    --c-success-bg: #E8F8F0;
    --c-danger: #E53E3E;
    --c-danger-bg: #FEE8E8;
    --c-warning: #F59E0B;
    --c-warning-bg: #FFF8E1;
    --c-info: #3B82F6;
    --c-info-bg: #EBF2FF;

    /* ── Typography ────────────────────────────── */
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ── Spacing ───────────────────────────────── */
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;

    /* ── Shadows ───────────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-yellow: 0 4px 20px rgba(255,210,0,0.25);

    /* ── Transitions ───────────────────────────── */
    --transition: all 0.2s ease;
    --transition-slow: all 0.35s ease;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL RESETS & BASE
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--c-black);
    background-color: var(--c-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--c-black);
    letter-spacing: -0.02em;
}

a {
    color: var(--c-black);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--c-black-soft);
}

code, pre {
    font-family: var(--font-mono);
}

::selection {
    background-color: var(--c-yellow);
    color: var(--c-black);
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--c-gray-300);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-gray-400);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT — SIDEBAR + MAIN
   ═══════════════════════════════════════════════════════════ */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────── */

.sidebar {
    width: var(--sidebar-width);
    background: var(--c-black);
    color: var(--c-white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--c-black-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--c-yellow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--c-black);
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sidebar-brand .brand-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--c-gray-400);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-nav .nav-section {
    margin-bottom: 24px;
}

.sidebar-nav .nav-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gray-500);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--c-gray-300);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav .nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.sidebar-nav .nav-link:hover {
    background: var(--c-black-soft);
    color: var(--c-white);
}

.sidebar-nav .nav-link:hover i {
    opacity: 1;
}

.sidebar-nav .nav-link.active {
    background: var(--c-yellow);
    color: var(--c-black);
    font-weight: 600;
}

.sidebar-nav .nav-link.active i {
    opacity: 1;
    color: var(--c-black);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--c-black-muted);
}

.sidebar-footer .admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-footer .admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-black);
    flex-shrink: 0;
}

.sidebar-footer .admin-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-white);
}

.sidebar-footer .admin-email {
    font-size: 11px;
    color: var(--c-gray-500);
}

.sidebar-footer .btn-logout {
    background: none;
    border: 1px solid var(--c-black-muted);
    color: var(--c-gray-400);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
}

.sidebar-footer .btn-logout:hover {
    border-color: var(--c-danger);
    color: var(--c-danger);
}

/* ── Main Content ──────────────────────────────── */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top Header ────────────────────────────────── */

.top-header {
    height: var(--header-height);
    background: var(--c-white);
    border-bottom: 1px solid var(--c-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header .page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.top-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Page Body ─────────────────────────────────── */

.page-body {
    padding: 28px 32px;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */

.card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--c-gray-100);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 20px;
}

/* ── Stat Cards ────────────────────────────────── */

.stat-card {
    background: var(--c-white);
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--c-yellow);
    border-radius: 4px 0 0 4px;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--c-yellow-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--c-black);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--c-black);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--c-gray-500);
    font-weight: 400;
}

.stat-card .stat-change {
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.stat-card .stat-change.up { color: var(--c-success); }
.stat-card .stat-change.down { color: var(--c-danger); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn i { font-size: 16px; }

/* Primary: Yellow bg, black text */
.btn-primary {
    background: var(--c-yellow) !important;
    color: var(--c-black) !important;
    border: 2px solid var(--c-yellow) !important;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--c-yellow-hover) !important;
    border-color: var(--c-yellow-hover) !important;
    box-shadow: var(--shadow-yellow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Outline: Black border */
.btn-outline-dark {
    background: transparent;
    color: var(--c-black);
    border: 2px solid var(--c-gray-300);
}

.btn-outline-dark:hover {
    border-color: var(--c-black);
    background: var(--c-black);
    color: var(--c-white);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--c-gray-600);
    border: none;
    padding: 6px 12px;
}

.btn-ghost:hover {
    background: var(--c-gray-100);
    color: var(--c-black);
}

/* Danger */
.btn-danger {
    background: var(--c-danger);
    color: var(--c-white);
    border: 2px solid var(--c-danger);
}

.btn-danger:hover {
    background: #c53030;
    border-color: #c53030;
}

/* Sizes */
.btn-sm { font-size: 12px; padding: 5px 12px; }
.btn-lg { font-size: 16px; padding: 12px 28px; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-black);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.form-label .required {
    color: var(--c-danger);
    margin-left: 2px;
}

.form-control, .form-select {
    font-family: var(--font-body);
    border: 1.5px solid var(--c-gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--c-black);
    background: var(--c-white);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--c-yellow);
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--c-gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 12px;
    color: var(--c-gray-500);
    margin-top: 4px;
}

.input-group-text {
    background: var(--c-gray-50);
    border: 1.5px solid var(--c-gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--c-gray-500);
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */

.table {
    font-size: 14px;
    margin: 0;
}

.table thead th {
    background: var(--c-gray-50);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-gray-500);
    padding: 12px 16px;
    border-bottom: 2px solid var(--c-gray-200);
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--c-gray-100);
    color: var(--c-black);
}

.table tbody tr:hover {
    background: var(--c-yellow-pale);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════
   BADGES & STATUS
   ═══════════════════════════════════════════════════════════ */

.badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-draft { background: var(--c-gray-100); color: var(--c-gray-600); }
.badge-draft::before { background: var(--c-gray-400); }

.badge-active { background: var(--c-success-bg); color: var(--c-success); }
.badge-active::before { background: var(--c-success); animation: pulse-dot 2s infinite; }

.badge-paused { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-paused::before { background: var(--c-warning); }

.badge-stopped { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-stopped::before { background: var(--c-danger); }

.badge-completed { background: var(--c-yellow-pale); color: var(--c-black); }
.badge-completed::before { background: var(--c-yellow); }

.badge-sent { background: var(--c-info-bg); color: var(--c-info); }
.badge-pending { background: var(--c-gray-100); color: var(--c-gray-600); }
.badge-failed { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-bounced { background: #FEE2E2; color: #991B1B; }

.badge-positive { background: var(--c-success-bg); color: var(--c-success); }
.badge-neutral { background: var(--c-info-bg); color: var(--c-info); }
.badge-negative { background: var(--c-danger-bg); color: var(--c-danger); }

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--c-gray-100);
    padding: 20px 24px;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--c-gray-100);
    padding: 16px 24px;
}

/* ═══════════════════════════════════════════════════════════
   ALERTS & TOASTS
   ═══════════════════════════════════════════════════════════ */

.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    padding: 14px 18px;
}

.alert-success { background: var(--c-success-bg); color: #166534; }
.alert-danger { background: var(--c-danger-bg); color: #991B1B; }
.alert-warning { background: var(--c-warning-bg); color: #92400E; }
.alert-info { background: var(--c-info-bg); color: #1E40AF; }

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: var(--c-white);
    min-width: 300px;
}

.toast-header {
    border-bottom: 1px solid var(--c-gray-100);
    padding: 10px 14px;
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BARS
   ═══════════════════════════════════════════════════════════ */

.progress {
    height: 8px;
    border-radius: 10px;
    background: var(--c-gray-100);
    overflow: hidden;
}

.progress-bar {
    background: var(--c-yellow);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-bar-success { background: var(--c-success); }
.progress-bar-danger { background: var(--c-danger); }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-yellow-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--c-black);
}

.empty-state h5 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--c-gray-500);
    font-size: 14px;
    max-width: 360px;
    margin: 0 auto 20px;
}

/* ═══════════════════════════════════════════════════════════
   FILE UPLOAD
   ═══════════════════════════════════════════════════════════ */

.file-upload-zone {
    border: 2px dashed var(--c-gray-300);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--c-gray-50);
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--c-yellow);
    background: var(--c-yellow-pale);
}

.file-upload-zone .upload-icon {
    font-size: 36px;
    color: var(--c-gray-400);
    margin-bottom: 12px;
}

.file-upload-zone.has-file {
    border-color: var(--c-success);
    background: var(--c-success-bg);
}

.file-upload-zone.has-file .upload-icon {
    color: var(--c-success);
}

/* ═══════════════════════════════════════════════════════════
   STEP BUILDER (Campaign Steps)
   ═══════════════════════════════════════════════════════════ */

.step-item {
    background: var(--c-white);
    border: 1.5px solid var(--c-gray-200);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
}

.step-item:hover {
    border-color: var(--c-yellow);
    box-shadow: var(--shadow-sm);
}

.step-item .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-yellow);
    color: var(--c-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-item .step-fields {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.step-item .step-fields .form-select,
.step-item .step-fields .form-control {
    flex: 1;
    min-width: 180px;
}

.step-connector {
    width: 2px;
    height: 20px;
    background: var(--c-gray-300);
    margin: 0 0 0 38px;
}

/* ═══════════════════════════════════════════════════════════
   TEMPLATE PREVIEW
   ═══════════════════════════════════════════════════════════ */

.template-card {
    background: var(--c-white);
    border: 1.5px solid var(--c-gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    border-color: var(--c-yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: var(--c-yellow);
    box-shadow: var(--shadow-yellow);
}

.template-card .template-type-bar {
    height: 4px;
    background: var(--c-gray-200);
}

.template-card .template-type-bar.welcome { background: var(--c-info); }
.template-card .template-type-bar.initial { background: var(--c-yellow); }
.template-card .template-type-bar.follow_up { background: var(--c-warning); }
.template-card .template-type-bar.thank_you { background: var(--c-success); }

.template-card .template-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template-card .template-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.template-card .template-type-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-gray-400);
    font-weight: 600;
    margin-bottom: 10px;
}

.template-card .template-subject {
    font-size: 13px;
    color: var(--c-gray-600);
    margin-bottom: 10px;
    flex: 1;
}

.template-card .template-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slide-in {
    animation: slideInRight 0.4s ease forwards;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--c-black);
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--c-yellow);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: 20%;
    left: 10%;
}

.login-left .login-brand {
    text-align: center;
    margin-bottom: 40px;
    z-index: 1;
}

.login-left .login-brand h1 {
    color: var(--c-white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-left .login-brand h1 span {
    color: var(--c-yellow);
}

.login-left .login-brand p {
    color: var(--c-gray-500);
    font-size: 15px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.login-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.login-card p {
    color: var(--c-gray-500);
    font-size: 14px;
    margin-bottom: 28px;
}

.login-right {
    flex: 1;
    background: var(--c-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-right::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 3px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-right::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border: 3px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.login-feature {
    z-index: 1;
    max-width: 400px;
}

.login-feature h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--c-black);
    line-height: 1.2;
    margin-bottom: 20px;
}

.login-feature p {
    font-size: 15px;
    color: var(--c-black-soft);
    line-height: 1.6;
}

.login-feature .feature-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.login-feature .feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-black);
}

.login-feature .feature-list li i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-black);
    color: var(--c-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   LOADING & SKELETON
   ═══════════════════════════════════════════════════════════ */

.spinner-border {
    color: var(--c-yellow);
}

.skeleton {
    background: linear-gradient(90deg, var(--c-gray-100) 25%, var(--c-gray-50) 50%, var(--c-gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .login-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-body {
        padding: 20px 16px;
    }
    .top-header {
        padding: 0 16px;
    }
    .step-item .step-fields {
        flex-direction: column;
    }
}
