/* ========================================
   SELLER PANEL â€” PREMIUM DARK THEME
   Edusekart Purple Identity
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand — deeper, richer purple */
    --primary: #6D28D9;
    --primary-hover: #7C3AED;
    --primary-soft: #F5F3FF;
    --primary-glow: rgba(109, 40, 217, 0.08);
    --primary-border: rgba(109, 40, 217, 0.15);
    --primary-gradient: linear-gradient(135deg, #6D28D9, #7C3AED);

    /* Sidebar — light */
    --sidebar-bg: #ffffff;
    --sidebar-text: #4A5568;
    --sidebar-text-hover: #6D28D9;
    --sidebar-active-bg: #F5F3FF;
    --sidebar-active-text: #6D28D9;
    --sidebar-section: #A0AEC0;
    --sidebar-border: rgba(109, 40, 217, 0.06);
    --sidebar-width: 260px;

    /* Backgrounds */
    --bg-body: #F7FAFC;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-input: #ffffff; /* keep white to prevent fading */

    /* Text */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-inverse: #ffffff;

    /* Borders */
    --border: #E2E8F0;
    --border-hover: #CBD5E0;
    --border-focus: #6D28D9;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-elevated: 0 10px 25px -5px rgba(109, 40, 217, 0.05), 0 8px 10px -6px rgba(109, 40, 217, 0.05);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions — crisp and specific to avoid generic layout shifting */
    --transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;

    /* Status */
    --success: #10B981;
    --success-soft: #ECFDF5;
    --warning: #F59E0B;
    --warning-soft: #FFFBEB;
    --danger: #EF4444;
    --danger-soft: #FEF2F2;
    --info: #3B82F6;
    --info-soft: #EFF6FF;

    /* Layout */
    --header-height: 64px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html { font-size: 13.5px !important; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); text-decoration: none !important; }

img { max-width: 100%; height: auto; }

::selection { background: var(--primary-soft); color: var(--primary); }

/* ========================================
   UTILITY
   ======================================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.ml-1 { margin-left: 8px; }
.ml-2 { margin-left: 16px; }
.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }

.hidden { display: none !important; }

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover:not(:disabled) { background: #d97706; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ========================================
   FORMS
   ======================================== */

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.form-input::placeholder { color: #c0c7d5; }
.form-textarea::placeholder { color: #c0c7d5; }

.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

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

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
    display: block;
}

.form-error:empty {
    display: none !important;
}

/* Server-side live validation error states */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-soft);
}

.invalid-feedback {
    display: none;
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 4px;
    align-items: center;
    gap: 4px;
}

.invalid-feedback.visible {
    display: flex;
}

.form-success {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}

.form-success.visible { display: flex; }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-soft);
}

.form-input.valid,
.form-textarea.valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.form-input.valid:focus,
.form-textarea.valid:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

/* File upload */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-body);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
}

.file-upload-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* File upload progress */
.file-upload .upload-progress {
    display: none;
    width: 100%;
    margin-top: 4px;
}

.file-upload.uploading .upload-progress {
    display: block;
}

.file-upload .upload-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-body);
    border-radius: 4px;
    overflow: hidden;
}

.file-upload .upload-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.file-upload .upload-progress-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

/* File upload completed state */
.file-upload.completed {
    border-color: var(--success);
    background: var(--success-soft);
    cursor: default;
    padding: 16px;
    flex-direction: row;
}

.file-upload.completed:hover {
    border-color: var(--success);
    background: var(--success-soft);
}

.file-upload.completed .file-upload-icon {
    font-size: 1.3rem;
    color: var(--success);
}

.file-upload.completed .file-upload-text {
    font-size: 0.83rem;
    color: var(--success);
    font-weight: 500;
}

.file-upload.completed .file-upload-text small {
    color: var(--text-secondary);
    font-weight: 400;
}

.file-upload.completed input[type="file"] {
    display: none;
}

.file-upload.completed .upload-progress {
    display: none !important;
}

.file-upload .file-name-display {
    display: none;
    font-size: 0.82rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 4px;
}

.file-upload.completed .file-name-display {
    display: block;
}

/* ========================================
   SEARCHABLE SELECT
   ======================================== */

.search-select {
    position: relative;
    width: 100%;
}

.search-select .ss-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-select .ss-input::placeholder {
    color: #c0c7d5;
}

.search-select .ss-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.search-select .ss-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-select.open .ss-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.search-select .ss-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.search-select.open .ss-dropdown {
    display: block;
    animation: fadeIn 0.15s ease;
}

.search-select .ss-dropdown .ss-search-inner {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

.search-select .ss-dropdown .ss-search-inner input {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: var(--bg-input);
    transition: var(--transition);
}

.search-select .ss-dropdown .ss-search-inner input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.search-select .ss-dropdown .ss-search-inner input::placeholder {
    color: #c0c7d5;
}

.search-select .ss-dropdown .ss-option {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.search-select .ss-dropdown .ss-option:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.search-select .ss-dropdown .ss-option.selected {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.search-select .ss-dropdown .ss-option.hidden {
    display: none;
}

.search-select .ss-dropdown .ss-no-result {
    padding: 16px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.3;
}

.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--bg-body); color: var(--text-muted); }

/* ========================================
   STATUS DOT
   ======================================== */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.active { background: var(--success); }
.status-dot.pending { background: var(--warning); }
.status-dot.inactive { background: var(--text-muted); }
.status-dot.rejected { background: var(--danger); }

/* ========================================
   AUTH PAGES (Login, Register, OTP)
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F3F7 0%, #EDE7F6 50%, #E8DEF8 100%);
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(91, 0, 128, 0.08);
    animation: authFadeIn 0.4s ease;
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img { height: 44px; }

.auth-logo h1 {
    font-size: 1.4rem;
    margin-top: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.otp-section {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.otp-section.verified {
    background: var(--success-soft);
    border-color: var(--success);
}

.otp-section .otp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.otp-section .otp-header .otp-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.otp-section .otp-header .otp-label small {
    font-weight: 400;
    color: var(--text-secondary);
}

.otp-section .otp-header .otp-status {
    font-size: 0.78rem;
    font-weight: 600;
}

.otp-section .otp-status.verified {
    color: var(--success);
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 16px 0 12px;
}

.otp-input {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    outline: none;
    transition: var(--transition);
    color: var(--text-primary);
}

.otp-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.otp-timer {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-timer .timer-count {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    min-width: 28px;
}

.otp-timer.expired {
    color: var(--danger);
}

.otp-resend-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: var(--transition);
}

.otp-resend-btn:hover:not(:disabled) {
    color: var(--primary-hover);
    text-decoration: underline;
}

.otp-resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.otp-verify-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.otp-verify-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px var(--primary-glow);
}

.otp-verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otp-verify-btn.verified {
    background: var(--success);
    cursor: default;
}

.otp-verify-btn.verified:hover {
    box-shadow: none;
    transform: none;
}

.otp-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 6px;
    display: none;
}

.otp-error.visible {
    display: block;
}

.otp-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-soft);
}

.reg-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.reg-divider::before,
.reg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.reg-methods {
    display: flex;
    gap: 12px;
}

.reg-method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.reg-method-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.reg-method-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* ========================================
   LAYOUT
   ======================================== */

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

/* Sidebar â€” Dark Purple Gradient */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.15s ease;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: var(--header-height);
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-section-title {
    padding: 16px 20px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-section);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    margin: 2px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sidebar-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: none;
    width: calc(100% - 20px);
    text-align: left;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--primary-soft);
    color: var(--sidebar-text-hover);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.nav-item .nav-icon {
    font-size: 1.2rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item .nav-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
}

.nav-item.active .nav-badge {
    background: var(--primary);
    color: #fff;
}

/* Completed nav-item (for Dashboard when done) */
.nav-item.completed {
    color: var(--text-muted);
}

.nav-item.completed:hover {
    color: var(--sidebar-text-hover);
}

.nav-item.completed .nav-icon {
    color: var(--success);
}

/* Step indicator styles */
.nav-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    margin: 2px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.nav-step .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    line-height: 1;
}

.nav-step.completed .step-icon {
    background: var(--success);
    color: #fff;
}

.nav-step.completed {
    color: var(--text-muted);
}

.nav-step.completed:hover {
    color: var(--sidebar-text-hover);
    background: var(--primary-soft);
}

.nav-step.active .step-icon {
    background: var(--primary);
    color: #fff;
    animation: pulse-step 2s infinite;
}

.nav-step.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.nav-step.locked .step-icon {
    background: var(--border);
    color: var(--text-muted);
}

.nav-step.locked {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.6;
}

.nav-step.locked:hover {
    background: transparent;
    color: var(--text-muted);
}

.nav-step.pending .step-icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-step.pending {
    color: var(--sidebar-text);
}

.nav-step.pending:hover {
    background: var(--primary-soft);
    color: var(--sidebar-text-hover);
}

.nav-step .step-label {
    display: flex;
    flex-direction: column;
}

.nav-step .step-label small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
}

@keyframes pulse-step {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 0, 128, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(91, 0, 128, 0); }
}

/* Sub-nav for collapsible sections */
.nav-item.has-sub .nav-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-item.has-sub.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-sub-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-sub-items.open {
    max-height: 200px;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 42px;
    margin: 1px 10px;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--sidebar-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.nav-sub-item:hover {
    background: var(--primary-soft);
    color: var(--sidebar-text-hover);
}

.nav-sub-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 500;
}

/* Activation Progress Component */
.activation-progress {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ap-main {
    flex: 1;
    min-width: 0;
}

.ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ap-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ap-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.ap-bar-wrap {
    height: 6px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ap-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.ap-steps {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ap-step {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ap-step .ap-step-icon {
    font-size: 0.65rem;
}

.ap-step.done {
    color: var(--success);
}

.ap-step.active {
    color: var(--primary);
    font-weight: 600;
}

.ap-step.locked {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Brand Verification Tabs */
.bv-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 4px;
    overflow-x: auto;
}

.bv-tab {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    background: none;
}

.bv-tab:hover {
    color: var(--text-primary);
    background: rgba(91, 0, 128, 0.05);
}

.bv-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.bv-panel {
    display: none;
}

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

/* Header */
.app-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 8px 16px 8px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    width: 260px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
    width: 320px;
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.header-btn:hover { background: var(--primary-soft); color: var(--primary); }

.header-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-header);
}

/* Dropdown (Header Profile) */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.dropdown-toggle:hover {
    background: var(--primary-soft);
}

.avatar-circle {
    width: 34px;
    height: 34px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info {
    text-align: left;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.chevron {
    color: var(--text-muted);
    font-size: 1rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header-info {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-user-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.15s ease;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
}

.dropdown-link:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

.dropdown-link-danger {
    color: var(--danger);
}

.dropdown-link-danger:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.dropdown-divider {
    border-top: 1px solid var(--border);
}

/* Notification Dropdown */
/* ========================================
   NOTIFICATIONS PAGE (with checkboxes)
   ======================================== */

.notif-item-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.notif-item-wrap:last-child { border-bottom: none; }
.notif-item-wrap:hover { background: var(--primary-soft); margin: 0 -16px; padding: 16px; border-radius: var(--radius-sm); }
.notif-item-wrap.unread { background: #f8f6ff; margin: 0 -16px; padding: 16px; border-radius: var(--radius-sm); }

.notif-item-wrap .ni-check {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.notif-item-wrap .notification-item {
    flex: 1;
    border: none;
    padding: 0;
    margin: 0;
}

.notif-item-wrap .notification-item:hover { background: none; padding: 0; margin: 0; }

.notif-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.notif-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-toolbar-left .select-all-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notif-toolbar-left .select-all-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.notif-bulk-actions {
    display: flex;
    gap: 8px;
}

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

.notif-empty-state .ne-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.notif-empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.notif-empty-state p { color: var(--text-secondary); font-size: 0.9rem; }

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.header-avatar:hover { box-shadow: 0 0 0 3px var(--primary-glow); }

/* Page Content */
.page-content {
    flex: 1;
    padding: 32px;
}

.page-title {
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   DASHBOARD
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-border);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-card .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.progress-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}

.progress-ring svg {
    position: absolute;
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 6;
    cx: 40; cy: 40; r: 34;
}

.progress-ring .bg-circle { stroke: var(--bg-body); }
.progress-ring .fg-circle {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    transition: stroke-dashoffset 0.6s ease;
}

/* ========================================
   DASHBOARD STATUS CARDS
   ======================================== */

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.status-card .status-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.status-card .status-icon.verified { background: var(--success-soft); color: var(--success); }
.status-card .status-icon.pending { background: var(--warning-soft); color: var(--warning); }
.status-card .status-icon.rejected { background: var(--danger-soft); color: var(--danger); }
.status-card .status-icon.info { background: var(--info-soft); color: var(--info); }

.status-card .status-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-card .status-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.status-card .status-body .status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   ACTION LIST
   ======================================== */

.action-list {
    list-style: none;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.action-item:last-child { border-bottom: none; }

.action-item .action-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.action-item .action-info { flex: 1; }
.action-item .action-info h4 { font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; }
.action-item .action-info p { font-size: 0.82rem; color: var(--text-secondary); }

/* ========================================
   TABLES
   ======================================== */

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

table th {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-body);
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--primary-soft); }

/* ========================================
   ONBOARDING WIZARD
   ======================================== */

.wizard-container {
    max-width: 720px;
    margin: 0 auto;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.wizard-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.wizard-step.active .wizard-step-number {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.wizard-step.completed .wizard-step-number {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.wizard-step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.wizard-step.active .wizard-step-label { color: var(--primary); font-weight: 600; }
.wizard-step.completed .wizard-step-label { color: var(--success); }

.wizard-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 24px;
}

.wizard-line.completed { background: var(--success); }

.wizard-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.wizard-content h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.wizard-content .step-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.notification-list { list-style: none; }

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: var(--primary-soft); margin: 0 -16px; padding: 16px; border-radius: var(--radius-sm); }

.notification-item .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-item .notif-body { flex: 1; }
.notification-item .notif-body h4 { font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; }
.notification-item .notif-body p { font-size: 0.83rem; color: var(--text-secondary); }
.notification-item .notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ========================================
   KYC CENTER
   ======================================== */

.kyc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.kyc-document-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kyc-document-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-border);
}

.kyc-document-card .doc-info { display: flex; align-items: center; gap: 14px; }
.kyc-document-card .doc-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kyc-document-card .doc-name { font-weight: 500; font-size: 0.9rem; }
.kyc-document-card .doc-status { font-size: 0.82rem; }

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 0, 48, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.open .modal-content { transform: translateY(0); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

/* ========================================
   TOAST
   ======================================== */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   LOADING
   ======================================== */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

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

/* ========================================
   EMPTY STATE
   ======================================== */

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

.empty-state .empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .kyc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .header-search input {
        width: 180px;
    }

    .header-search input:focus {
        width: 180px;
    }

    .page-content {
        padding: 20px;
    }

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

    .wizard-step-label {
        display: none;
    }

    .auth-card {
        padding: 28px 24px;
    }

    .otp-inputs { gap: 8px; }
    .otp-input { width: 40px; height: 48px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-search input {
        width: 120px;
    }

    .header-search input:focus {
        width: 120px;
    }

    .page-content {
        padding: 16px;
    }

    .card {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 16px;
    }
}

/* ========================================
   WELCOME / LOCKED DASHBOARD
   ======================================== */



/* ========================================
   READINESS SCORE
   ======================================== */

.readiness-section {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.readiness-score-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.readiness-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.readiness-ring svg {
    transform: rotate(-90deg);
    width: 160px;
    height: 160px;
}

.readiness-ring .ring-bg {
    fill: none;
    stroke: var(--bg-body);
    stroke-width: 8;
}

.readiness-ring .ring-fg {
    fill: none;
    stroke: url(#readinessGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 452.4;
    transition: stroke-dashoffset 1s ease;
}

.readiness-ring .ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.readiness-ring .ring-score {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.readiness-ring .ring-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.readiness-status {
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 600;
}

.readiness-status.locked { background: var(--warning-soft); color: var(--warning); }
.readiness-status.ready { background: var(--success-soft); color: var(--success); }
.readiness-status.review { background: var(--info-soft); color: var(--info); }

.readiness-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.readiness-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.readiness-item:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-border);
}

.readiness-item .ri-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.readiness-item .ri-icon.done { background: var(--success-soft); color: var(--success); }
.readiness-item .ri-icon.pending { background: var(--warning-soft); color: var(--warning); }
.readiness-item .ri-icon.locked { background: var(--bg-body); color: var(--text-muted); }
.readiness-item .ri-icon.rejected { background: var(--danger-soft); color: var(--danger); }

.readiness-item .ri-info { flex: 1; }
.readiness-item .ri-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.readiness-item .ri-info p { font-size: 0.8rem; color: var(--text-secondary); }

.readiness-item .ri-score {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.readiness-item .ri-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-body);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.readiness-item .ri-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.readiness-item .ri-bar-fill.done { background: var(--success); }
.readiness-item .ri-bar-fill.pending { background: var(--warning); }
.readiness-item .ri-bar-fill.locked { background: var(--text-muted); }

/* ========================================
   TABS
   ======================================== */

.tabs {
    margin-bottom: 24px;
}

.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover { color: var(--primary); background: rgba(91,0,128,0.05); }
.tab-btn.active { background: var(--bg-card); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }

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

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    z-index: 1;
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.timeline-item.rejected .timeline-dot {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.timeline-item .tl-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-item .tl-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.timeline-item .tl-content .tl-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   BRAND TYPE SELECTION
   ======================================== */

.brand-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.brand-type-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.brand-type-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-elevated);
}

.brand-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.brand-type-card .bt-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 auto 12px;
    transition: var(--transition);
}

.brand-type-card.selected .bt-icon {
    background: var(--primary-gradient);
    color: #fff;
}

.brand-type-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.brand-type-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.brand-type-card .bt-badge {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    color: var(--text-muted);
}

.brand-type-card.selected .bt-badge {
    background: var(--primary);
    color: #fff;
}

.brand-type-card .bt-radio {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.brand-type-card.selected .bt-radio {
    border-color: var(--primary);
}

.brand-type-card.selected .bt-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

/* ========================================
   BRAND FORM
   ======================================== */

.brand-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: none;
}

.brand-form-section.active { display: block; animation: fadeIn 0.3s ease; }

.brand-form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.brand-form-section .section-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.doc-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.doc-upload-item {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.doc-upload-item .du-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.doc-upload-item .du-header .du-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-upload-item .file-upload {
    padding: 20px;
}

/* ========================================
   BRAND DASHBOARD CARDS
   ======================================== */

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.brand-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.brand-stat-card .bs-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px;
}

.brand-stat-card .bs-icon.pending { background: var(--warning-soft); color: var(--warning); }
.brand-stat-card .bs-icon.approved { background: var(--success-soft); color: var(--success); }
.brand-stat-card .bs-icon.rejected { background: var(--danger-soft); color: var(--danger); }

.brand-stat-card .bs-count {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-stat-card .bs-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.brand-list { display: flex; flex-direction: column; gap: 16px; }

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.brand-card .bc-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.brand-card .bc-info { flex: 1; }
.brand-card .bc-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.brand-card .bc-info p { font-size: 0.82rem; color: var(--text-secondary); }
.brand-card .bc-info .bc-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.brand-card .bc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.brand-verification-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.brand-verification-progress .bvp-step {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.brand-verification-progress .bvp-step.done { color: var(--success); }
.brand-verification-progress .bvp-step.active { color: var(--primary); font-weight: 600; }
.brand-verification-progress .bvp-step .bvp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.brand-verification-progress .bvp-step.done .bvp-dot { background: var(--success); }
.brand-verification-progress .bvp-step.active .bvp-dot { background: var(--primary); }

/* ========================================
   SUBMISSION CHECKLIST
   ======================================== */

.submission-checklist {
    max-width: 640px;
    margin: 0 auto 32px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: var(--transition);
}

.checklist-item:hover { box-shadow: var(--shadow-elevated); border-color: var(--primary-border); }

.checklist-item .cl-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.checklist-item .cl-icon.done { background: var(--success-soft); color: var(--success); }
.checklist-item .cl-icon.pending { background: var(--warning-soft); color: var(--warning); }
.checklist-item .cl-icon.locked { background: var(--bg-body); color: var(--text-muted); }

.checklist-item .cl-info { flex: 1; }
.checklist-item .cl-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.checklist-item .cl-info p { font-size: 0.82rem; color: var(--text-secondary); }

.checklist-item .cl-status {
    font-size: 0.78rem;
    font-weight: 600;
}

/* ========================================
   UNDER REVIEW PAGE
   ======================================== */

.review-hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto 24px;
}

.review-hero .review-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulse-ring 2s infinite;
}

.review-hero .review-icon.review {
    background: var(--info-soft);
    color: var(--info);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
    70% { box-shadow: 0 0 0 16px rgba(99,102,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

.review-hero h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.review-hero p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto 20px;
}

.review-hero .review-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-body);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.review-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.review-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-info-card .review-note {
    padding: 12px 16px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
    margin-bottom: 12px;
}

.review-info-card .review-note.empty {
    border-left-color: var(--text-muted);
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   APPROVAL SUCCESS
   ======================================== */

.approval-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 600px;
    margin: 0 auto 32px;
}

.approval-hero .approval-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 32px rgba(16,185,129,0.3);
    animation: approvalPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes approvalPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.approval-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.approval-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 20px;
    background: var(--success-soft);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 640px;
    margin: 0 auto 40px;
}

.next-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.next-step-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-border);
}

.next-step-card .ns-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px;
}

.next-step-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.next-step-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========================================
   STORE PREVIEW
   ======================================== */

.store-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.store-preview-banner {
    height: 160px;
    background: linear-gradient(135deg, #1A0030, #5B0080);
    position: relative;
}

.store-preview-banner .sp-logo {
    position: absolute;
    bottom: -32px;
    left: 32px;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.store-preview-body {
    padding: 44px 32px 24px;
}

.store-preview-body h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.store-preview-body .sp-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.store-preview-body .sp-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.store-preview-body .sp-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.store-preview-body .sp-policies {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-preview-body .sp-policies span {
    font-size: 0.78rem;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   ADDRESS CARDS
   ======================================== */

.address-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.address-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    position: relative;
    transition: var(--transition);
}

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

.address-card .ac-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.address-card h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-right: 60px;
}

.address-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.address-card .ac-actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   POLICY CARDS
   ======================================== */

.policy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.policy-card .pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.policy-card .pc-header h4 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-card .pc-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   KYC PROGRESS BANNER
   ======================================== */

.kyc-progress-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.kyc-progress-banner .kpb-ring {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.kyc-progress-banner .kpb-ring svg {
    transform: rotate(-90deg);
}

.kyc-progress-banner .kpb-ring .kpb-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.kyc-progress-banner .kpb-info { flex: 1; }
.kyc-progress-banner .kpb-info h3 { font-size: 1rem; margin-bottom: 4px; }
.kyc-progress-banner .kpb-info p { font-size: 0.83rem; color: var(--text-secondary); }

.kyc-progress-banner .kpb-steps {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.kyc-progress-banner .kpb-steps .kpb-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.kyc-progress-banner .kpb-steps .kpb-step.done { color: var(--success); }
.kyc-progress-banner .kpb-steps .kpb-step.active { color: var(--primary); font-weight: 600; }

/* ========================================
   KYC DOCUMENT STATUS GRID (enhanced)
   ======================================== */

.kyc-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kyc-doc-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.kyc-doc-item:hover { box-shadow: var(--shadow-elevated); }

.kyc-doc-item .kdi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.kyc-doc-item .kdi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kyc-doc-item .kdi-icon.required { background: var(--primary-soft); color: var(--primary); }
.kyc-doc-item .kdi-icon.optional { background: var(--bg-body); color: var(--text-muted); }

.kyc-doc-item .kdi-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.kyc-doc-item .kdi-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.kyc-doc-item .kdi-status {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kyc-doc-item .kdi-reason {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--danger-soft);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--danger);
    border-left: 3px solid var(--danger);
}

.kyc-doc-item .kdi-action {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ========================================
   DOCUMENT UPLOAD MODAL ENHANCEMENT
   ======================================== */

.upload-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.upload-preview .up-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.upload-preview .up-info { flex: 1; }
.upload-preview .up-info .up-name { font-size: 0.85rem; font-weight: 500; }
.upload-preview .up-info .up-size { font-size: 0.75rem; color: var(--text-muted); }

/* ========================================
   ACCORDION SECTIONS
   ======================================== */

.accordion-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-section:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-section.open {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    overflow: visible;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    gap: 16px;
}

.accordion-header .ah-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.accordion-header .ah-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.accordion-section.open .ah-step {
    background: var(--primary);
    color: #fff;
}

.accordion-section.completed .ah-step {
    background: var(--success);
    color: #fff;
}

.accordion-section.rejected .ah-step,
.accordion-section.resubmission .ah-step {
    background: var(--danger);
    color: #fff;
}

.accordion-header .ah-left h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.accordion-header .ah-left p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.accordion-header .ah-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ah-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-section.open .ah-arrow {
    transform: rotate(180deg);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.status-badge.not-started {
    background: var(--bg-input);
    color: var(--text-muted);
}

.status-badge.in-progress {
    background: var(--info-soft);
    color: var(--info);
}

.status-badge.submitted {
    background: var(--primary-soft);
    color: var(--primary);
}

.status-badge.approved {
    background: var(--success-soft);
    color: var(--success);
}

.status-badge.rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-badge.resubmission {
    background: #fef3c7;
    color: #d97706;
}

/* Accordion Body */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-section.open .accordion-body {
    max-height: 5000px;
    padding: 0 24px 24px;
    overflow: visible;
}

.accordion-body .section-content {
    padding-top: 4px;
}

.accordion-body .section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.accordion-body .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.accordion-body .form-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.accordion-body .form-grid.full {
    grid-template-columns: 1fr;
}

.accordion-body .section-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.accordion-body .section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-body .section-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Final Review Checklist */
.review-checklist {
    display: grid;
    gap: 12px;
}

.review-checklist .rc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.review-checklist .rc-item .rc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.review-checklist .rc-item.done .rc-icon {
    background: var(--success-soft);
    color: var(--success);
}

.review-checklist .rc-item.pending .rc-icon {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 2px dashed var(--border);
}

.review-checklist .rc-item .rc-label {
    flex: 1;
}

.review-checklist .rc-item.done {
    color: var(--text-primary);
}

.review-checklist .rc-item.pending {
    color: var(--text-muted);
}

/* Subject To section */
.subject-to-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.subject-to-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.subject-to-card:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.subject-to-card.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.subject-to-card .st-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.subject-to-card .st-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.subject-to-card .st-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Brand Type Radio Cards (simplified) */
.brand-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.brand-radio-card {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.brand-radio-card:hover {
    border-color: var(--primary);
}

.brand-radio-card.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.brand-radio-card .br-icon {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.brand-radio-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.brand-radio-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Doc upload inline */
.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.doc-item .di-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.doc-item .di-info {
    flex: 1;
    min-width: 0;
}

.doc-item .di-info h4 {
    font-size: 0.82rem;
    font-weight: 600;
}

.doc-item .di-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.doc-item .file-zone {
    width: 120px;
    flex-shrink: 0;
}

.doc-item .file-zone .file-upload-text {
    font-size: 0.7rem;
}

.doc-item .file-zone .upload-progress { display: none; }
.doc-item .file-zone.uploading .upload-progress { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .accordion-body .form-grid,
    .accordion-body .form-grid.three-col {
        grid-template-columns: 1fr;
    }
    .brand-radio-group {
        grid-template-columns: 1fr;
    }
    .doc-grid {
        grid-template-columns: 1fr;
    }
    .subject-to-grid {
        grid-template-columns: 1fr;
    }
    .accordion-header {
        flex-wrap: wrap;
    }
    .accordion-header .ah-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Brand form panels */
.brand-form-panel {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.brand-form-panel.active {
    display: block;
}

/* Category/Category compliance cards */
.subject-to-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.category-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-card:hover {
    border-color: var(--primary);
}

.category-card.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.category-card .cc-icon {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.category-card .cc-info h5 {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
}

.category-card .cc-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.category-extra {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.category-extra.active {
    display: block;
}

/* Info notices */
.info-notice {
    padding: 12px 16px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Highlight message */
.highlight-msg {
    padding: 16px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    border: 1px solid #fde68a;
    font-size: 0.82rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Simple text helper */
.simple-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

/* Full width form group */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Checklist items (for final review) */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.checklist-item .cli-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.checklist-item .cli-icon.done {
    background: var(--success-soft);
    color: var(--success);
}

.checklist-item .cli-icon.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.checklist-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Add brand button */
.add-brand-btn {
    margin-top: 12px;
}

/* ========================================
   RESPONSIVE ADDITIONS
   ======================================== */

@media (max-width: 1024px) {
    .readiness-section { grid-template-columns: 1fr; }
    .brand-type-grid { grid-template-columns: 1fr; }
    .brand-stats { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .next-steps { grid-template-columns: 1fr; }
    .address-grid { grid-template-columns: 1fr; }
    .doc-upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .brand-stats { grid-template-columns: 1fr; }
    .kpb-steps { flex-wrap: wrap; }
    
    .review-hero { padding: 32px 16px; }
    .approval-hero { padding: 32px 16px; }
    .store-preview-body { padding: 36px 16px 16px; }
    .store-preview-banner { height: 120px; }
    .store-preview-banner .sp-logo { left: 16px; bottom: -24px; width: 60px; height: 60px; font-size: 1.2rem; }
    .tab-nav { overflow-x: auto; }
}

/* ========================================
   KYC DOCUMENT PREVIEW MODAL
   ======================================== */

.doc-preview-modal .modal-content {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.doc-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}

.doc-preview-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-preview-header h3 i { color: var(--primary); }

.doc-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-preview-body {
    padding: 28px;
    min-height: 400px;
    max-height: 65vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.doc-preview-body img {
    max-width: 100%;
    max-height: 55vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.doc-preview-body .pdf-preview {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
}

.doc-preview-body .pdf-preview .pdf-icon {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: 16px;
}

.doc-preview-body .pdf-preview h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.doc-preview-body .pdf-preview p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* KYC re-upload zone inside rejected card */
.kyc-reupload-zone {
    margin-top: 12px;
    padding: 12px;
    border: 2px dashed var(--danger);
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
}

.kyc-reupload-zone .file-upload {
    padding: 8px !important;
    background: transparent;
}

.kyc-reupload-zone .file-upload-text { font-size: 0.8rem; }
.kyc-reupload-zone .file-upload-text small { font-size: 0.7rem; }
.kyc-reupload-zone .file-upload-icon { font-size: 1.1rem !important; }

/* Doc info row */
.doc-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.doc-info-row .doc-ref {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.doc-info-row .doc-ref strong { color: var(--text-primary); }

.doc-info-row .doc-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ========================================
   SVG GRADIENT DEF â€” added via HTML inline
   ======================================== */

/* ========================================
   STEP INDICATOR
   ======================================== */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 0 16px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.step-dot .sd-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-dot.active .sd-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.step-dot.done .sd-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.step-dot.done .sd-circle::after {
    content: '\2713';
    font-size: 1.1rem;
}

.step-dot .sd-circle .step-num {
    display: inline;
}

.step-dot.done .sd-circle .step-num {
    display: none;
}

.step-dot .sd-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.step-dot.active .sd-label {
    color: var(--primary);
    font-weight: 600;
}

.step-dot.done .sd-label {
    color: var(--success);
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 22px;
    transition: background 0.3s;
    border-radius: 1px;
}

.step-line.done {
    background: var(--success);
}

/* ========================================
   ACTIVATION CENTER FIELD STATES
   ======================================== */

.field-approved {
    background: var(--bg-input) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.field-pending {
    background: var(--bg-input) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.field-rejected {
    border-color: var(--danger) !important;
    background: #fff !important;
}

.field-rejection-reason {
    margin-top: 6px;
    padding: 6px 10px;
    background: var(--danger-soft);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--danger);
    border-left: 3px solid var(--danger);
}

.field-rejection-reason i {
    margin-right: 4px;
}

/* Status badges for accordion sections */
.status-badge.approved {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-badge.submitted {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.status-badge.rejected {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Spinning animation */
.spinning {
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Final submit container */
.final-submit-container {
    text-align: center;
    padding: 24px;
    margin-top: 16px;
}

.final-submit-container .btn-submit-review {
    min-width: 280px;
}

/* Under review page states */
.review-hero .review-icon.review {
    background: var(--primary-soft);
    color: var(--primary);
}

.review-hero .review-icon.rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.review-hero .review-icon.approved {
    background: var(--success-soft);
    color: var(--success);
}

/* ========================================
   SELLER PANEL - DYNAMIC DROPDOWN & DASHBOARD ADDITIONS
   ======================================== */

.notif-dropdown-wrapper {
    position: relative;
}

.notif-dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    animation: notifDropdownFade 0.2s ease;
}

.notif-dropdown-menu.open {
    display: block;
}

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

.notif-dropdown-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body);
}

.notif-dropdown-header h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
}

.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.notif-dropdown-item:hover {
    background: rgba(91, 0, 128, 0.02);
}

.notif-dropdown-item.unread {
    background: rgba(91, 0, 128, 0.04);
}

.notif-dropdown-item.unread:hover {
    background: rgba(91, 0, 128, 0.06);
}

.notif-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notif-dropdown-footer {
    display: block;
    text-align: center;
    padding: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-body);
    transition: background 0.15s ease;
}

.notif-dropdown-footer:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}

/* Premium Dashboard Additions */
.welcome-hero {
    background: linear-gradient(135deg, #5B0080 0%, #31004C 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--text-inverse);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(91, 0, 128, 0.15);
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.welcome-hero h1 {
    color: var(--text-inverse);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Stepper widget styling */
.stepper-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.stepper-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.stepper-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border);
    z-index: 1;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
    text-align: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
}

.step-label {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
    white-space: nowrap;
}

/* Stepper status styles */
.step-node.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-inverse);
}
.step-node.completed .step-label {
    color: var(--success);
    font-weight: 600;
}

.step-node.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 0 10px rgba(91, 0, 128, 0.3);
}
.step-node.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-node.rejected .step-circle {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--text-inverse);
}
.step-node.rejected .step-label {
    color: var(--danger);
    font-weight: 600;
}

/* ========================================
   PRODUCT CREATION FORM STYLES
   ======================================== */

.accordion-section {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-body {
    max-height: 2500px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.accordion-body.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 25px !important;
    overflow: hidden;
    pointer-events: none;
}

.image-preview-card img {
    transition: transform 0.3s ease;
}

.image-preview-card:hover img {
    transform: scale(1.05);
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.variant-attribute-group label {
    transition: color 0.2s;
}

.variant-attribute-group label:hover {
    color: var(--primary);
}

.table input.form-input {
    padding: 6px 8px;
    font-size: 13px;
    height: 32px;
}

/* ========================================
   STATUS BADGES
   ======================================== */

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
    transition: var(--transition);
}

.badge-status i {
    font-size: 0.85rem;
}

/* Product Status Badges */
.badge-draft {
    background: #f1eff4;
    color: #6b677a;
}

.badge-active {
    background: var(--success-soft);
    color: var(--success);
}

.badge-inactive {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-archived {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Approval Status Badges */
.badge-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-approved {
    background: var(--success-soft);
    color: var(--success);
}

.badge-rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-changes-requested {
    background: var(--info-soft);
    color: var(--info);
}

/* Badge hover effect */
.badge-status:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eef0f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-sm {
    height: 6px;
}

.progress-bar-lg {
    height: 12px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}



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

.progress-bar-warning .progress-bar-fill {
    background: var(--warning);
}

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

.progress-bar-info .progress-bar-fill {
    background: var(--info);
}

.progress-bar-primary .progress-bar-fill {
    background: var(--primary-gradient);
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 500;
}

.progress-label-text {
    color: var(--text-secondary);
}

.progress-label-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   PRODUCT TABLE ENHANCEMENTS
   ======================================== */

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

.product-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-body);
    z-index: 10;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.product-table tbody tr {
    transition: var(--transition);
}

.product-table tbody tr:hover {
    background: var(--primary-soft);
}

.product-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

/* Product Image Thumbnail */
.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-image:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Product Code */
.product-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Product Name */
.product-name {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Product Brand & Category */
.product-brand {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.88rem;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Product Price */
.product-price {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.product-price-range {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

/* Product Stock */
.product-stock {
    font-weight: 500;
    font-size: 0.88rem;
}

.product-stock.out-of-stock {
    color: var(--danger);
    font-weight: 600;
}

.product-stock.low-stock {
    color: var(--warning);
    font-weight: 600;
}

.product-stock.in-stock {
    color: var(--success);
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.product-actions .btn {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.product-actions .btn i {
    font-size: 1rem;
}

/* ========================================
   FILTER BAR
   ======================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.filter-bar .search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.filter-bar .search-input {
    width: 100%;
    padding: 9px 14px 9px 40px;
    font-size: 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.filter-bar .search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.filter-bar .search-input::placeholder {
    color: #c0c7d5;
}

.filter-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.filter-bar .filter-select-wrap {
    position: relative;
    min-width: 150px;
}

.filter-bar .filter-select {
    width: 100%;
    padding: 9px 36px 9px 14px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-primary);
}

.filter-bar .filter-select:hover {
    border-color: var(--border-hover);
}

.filter-bar .filter-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 0, 128, 0.08);
}

.filter-bar .filter-select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.filter-bar .filter-select-wrap:focus-within .filter-select-chevron {
    color: var(--primary);
    transform: translateY(-50%) rotate(180deg);
}

.filter-bar .btn-clear {
    padding: 10px 20px;
    font-size: 0.88rem;
    flex-shrink: 0;
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.4;
}



.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 8px;
}

/* ========================================
   AUTOCOMPLETE ENHANCEMENTS
   ======================================== */

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-input {
    padding-right: 40px !important;
}

.autocomplete-loading {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    display: none;
}

.autocomplete-loading.active {
    display: block;
}

.autocomplete-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: var(--primary-soft);
    color: var(--primary);
}

.autocomplete-item-name {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.autocomplete-item:hover .autocomplete-item-name,
.autocomplete-item.highlighted .autocomplete-item-name {
    color: var(--primary);
}

.autocomplete-item-path {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.autocomplete-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.autocomplete-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}

.selected-type-badge {
    display: flex;
    margin-top: 10px;
    padding: 12px 16px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.2s ease-in-out;
}

.selected-type-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.selected-type-info i {
    font-size: 1.1rem;
    color: var(--success);
}

.selected-type-clear {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.selected-type-clear:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* ========================================
   FORM VALIDATION STATES
   ======================================== */

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-soft);
}

.form-input.is-valid,
.form-select.is-valid,
.form-textarea.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 500;
}

.valid-feedback {
    display: block;
    margin-top: 5px;
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.1rem;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
    padding: 6px;
}

.btn-icon.btn-sm i {
    font-size: 1rem;
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .filter-bar {
        padding: 16px;
    }

    .filter-bar .search-wrapper {
        min-width: 200px;
    }

    .filter-bar .filter-select-wrap {
        min-width: 130px;
    }

    .product-table thead th {
        font-size: 0.72rem;
        padding: 12px 12px;
    }

    .product-table tbody td {
        padding: 12px 12px;
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .search-wrapper {
        min-width: 100%;
    }

    .filter-bar .filter-select-wrap {
        width: 100%;
        min-width: 100%;
    }

    .filter-bar .filter-select {
        width: 100%;
    }

    /* Responsive table - stack on mobile */
    .product-table thead {
        display: none;
    }

    .product-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
    }

    .product-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }

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

    .product-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.78rem;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-right: 12px;
    }

    .product-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-title {
        font-size: 1.1rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .badge-status {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .product-image {
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 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; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

.skeleton-image {
    width: 50px;
    height: 50px;
}

.skeleton-button {
    height: 36px;
    width: 80px;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 500px;
    animation: slideInRight 0.3s ease-out;
}

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

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast.toast-info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-info .toast-icon {
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

/* Pulse animation for pending items */
.badge-pending {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Scale on hover for interactive elements */
.interactive-hover {
    transition: var(--transition);
}

.interactive-hover:hover {
    transform: scale(1.05);
}

/* Smooth transitions for interactive elements — opt-in via classes */
.btn, .badge-status, .product-image {
    transition: var(--transition);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   CARD ENHANCEMENTS
   ======================================== */

.card-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.card-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========================================
   PAGINATION ENHANCEMENTS
   ======================================== */

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.pagination-info {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 4px;
}

.pagination-controls .btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-controls .btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

/* ========================================
   PREMIUM STYLING & SPECIFICITY OVERRIDES
   ======================================== */

/* 1. Link Hover Underline Removal */
a:hover,
.nav-item:hover,
.es-link:hover,
.rp-name:hover,
.pagination-controls .btn:hover {
    text-decoration: none !important;
}

/* 2. Inputs & Forms Focus Upgrade (No Fading, Subtle Outline) */
.form-input,
.form-select,
.form-textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e0 !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.ss-input:focus,
.otp-input:focus,
.header-search input:focus,
.ss-search-inner input:focus {
    background-color: #ffffff !important;
    border-color: #6D28D9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12) !important;
    outline: none !important;
}

/* Global Outline Reset on Click */
*:focus {
    outline: none !important;
}

/* 3. Modern Premium Sidebar */
.sidebar {
    background: #ffffff !important;
    border-right: 1px solid #edf2f7 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.01) !important;
}

.sidebar-header {
    border-bottom: 1px solid #edf2f7 !important;
}

.nav-item {
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #4A5568 !important;
    padding: 10px 16px !important;
    margin: 4px 12px !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.nav-item:hover {
    background: rgba(109, 40, 217, 0.05) !important;
    color: #6D28D9 !important;
    text-decoration: none !important;
}

.nav-item.active {
    background: linear-gradient(135deg, #6D28D9, #7C3AED) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.18) !important;
}

.nav-item.active .nav-icon {
    color: #ffffff !important;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* 4. Premium Elevated Cards & Stat Cards */
.card,
.stat-card {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

.card:hover,
.stat-card:hover {
    border-color: rgba(109, 40, 217, 0.15) !important;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.05) !important;
    transform: translateY(-2px) !important;
}

.stat-card .stat-icon {
    border-radius: 8px !important;
    background: rgba(109, 40, 217, 0.06) !important;
    color: #6D28D9 !important;
    width: 42px !important;
    height: 42px !important;
}

/* 5. Buttons Styling Upgrade */
.btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease-in-out !important;
    letter-spacing: -0.01em !important;
}

.btn-primary {
    background: linear-gradient(135deg, #6D28D9, #7C3AED) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15) !important;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b21b6, #6d28d9) !important;
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.25) !important;
    transform: translateY(-1px) !important;
}

.btn-secondary {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #4a5568 !important;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(109, 40, 217, 0.04) !important;
    border-color: #6D28D9 !important;
    color: #6D28D9 !important;
}

/* 6. Cleaner, Premium Tables */
table th {
    background: #f8fafc !important;
    color: #4a5568 !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

table td {
    padding: 14px 16px !important;
    font-size: 0.85rem !important;
    color: #2d3748 !important;
    border-bottom: 1px solid #edf2f7 !important;
}

table tr:hover td {
    background: #fcfbfe !important;
}

/* 7. Modern Status Badges */
.status-badge {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    letter-spacing: 0.01em !important;
    text-transform: capitalize !important;
}

/* 8. Login/Register Card Premium Enhancements */
.login-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
}


