@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES - UNIFIED DESIGN SYSTEM ===== */
:root {
    --primary: #5e72e4;
    --primary-light: #8b9ef9;
    --primary-lighter: #e8ecff;
    --primary-dark: #3d50c4;
    --primary-rgb: 94, 114, 228;
    --secondary: #825ee4;
    --secondary-light: #a888f0;
    --secondary-dark: #5d3fa8;
    --secondary-rgb: 130, 94, 228;
    --accent: #ff6b6b;
    --accent-light: #ff9999;
    --accent-dark: #e55555;
    --accent-rgb: 255, 107, 107;
    --success: #2dce89;
    --success-light: #e6f9f0;
    --success-rgb: 45, 206, 137;
    --warning: #fb6340;
    --warning-light: #fff0ec;
    --warning-rgb: 251, 99, 64;
    --info: #11cdef;
    --info-light: #e3f9fd;
    --info-rgb: 17, 205, 239;
    --danger: #f5365c;
    --danger-light: #fde8ec;
    --danger-rgb: 245, 54, 92;
    --light: #f7fafc;
    --lighter: #ecf0f1;
    --white: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --dark: #32325d;
    --darker: #1a1e3f;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-forest: linear-gradient(135deg, #2dce89 0%, #11cdef 100%);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.15);
    --shadow-2xl: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-primary: 0 4px 14px rgba(var(--primary-rgb), 0.3);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 800;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
::selection { background: rgba(var(--primary-rgb), 0.2); color: var(--primary-dark); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; color: var(--darker); line-height: 1.3; }
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 24px; }
h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }
p { margin-bottom: 12px; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: var(--transition); font-family: 'Prompt', sans-serif;
    text-decoration: none; white-space: nowrap; gap: 8px;
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.15);
    border-radius: 50%; transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn:active::after { width: 300px; height: 300px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-primary); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover:not(:disabled) { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover:not(:disabled) { background: var(--primary-lighter); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { transform: translateY(-2px); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { transform: translateY(-2px); }
.btn-warning { background: var(--warning); color: white; }
.btn-xs { padding: 6px 10px; font-size: 11px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 16px 36px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full); font-size: 18px; }
.btn-icon.btn-sm { width: 32px; height: 32px; font-size: 14px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label, label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); font-size: 14px; }
.form-control, input[type="text"], input[type="email"], input[type="password"],
input[type="phone"], input[type="number"], input[type="tel"], input[type="search"],
input[type="date"], textarea, select {
    width: 100%; padding: 12px 15px; border: 2px solid var(--gray-300);
    border-radius: var(--radius); font-size: 14px; font-family: 'Prompt', sans-serif;
    background: white; transition: var(--transition); color: var(--dark);
}
.form-control:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gray-600); margin-top: 6px; }
.input-icon-wrapper { position: relative; }
.input-icon-wrapper input { padding-left: 42px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-500); font-size: 16px; pointer-events: none; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px; border-radius: var(--radius-lg); margin-bottom: 16px;
    font-size: 14px; font-weight: 500; border-left: 4px solid;
    display: flex; align-items: center; gap: 10px; animation: slideDown 0.3s ease-out;
}
.alert-success { background: var(--success-light); border-color: var(--success); color: #155724; }
.alert-danger { background: var(--danger-light); border-color: var(--danger); color: #721c24; }
.alert-warning { background: var(--warning-light); border-color: var(--warning); color: #856404; }
.alert-info { background: var(--info-light); border-color: var(--info); color: #0c5460; }

/* ===== CARDS ===== */
.card {
    background: white; border-radius: var(--radius-xl);
    box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-no-hover:hover { transform: none; box-shadow: var(--shadow); }
.card-header { padding: 20px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); font-weight: 600; }
.card-body { padding: 20px; }
.card-footer { padding: 20px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }
.card-glass { background: rgba(255,255,255,0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.3); }

/* ===== CONTAINERS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700; white-space: nowrap; gap: 4px;
}
.badge-primary { background: rgba(var(--primary-rgb), 0.15); color: var(--primary); }
.badge-success { background: rgba(var(--success-rgb), 0.15); color: var(--success); }
.badge-danger { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.badge-warning { background: rgba(var(--warning-rgb), 0.15); color: var(--warning); }
.badge-info { background: rgba(var(--info-rgb), 0.15); color: var(--info); }
.badge-dark { background: var(--dark); color: white; }

/* ===== AVATAR ===== */
.avatar {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    object-fit: cover; background: var(--gradient-primary);
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-xl { width: 80px; height: 80px; font-size: 32px; }

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-image { height: 200px; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed; top: 80px; right: 20px;
    z-index: var(--z-toast); display: flex; flex-direction: column;
    gap: 10px; pointer-events: none;
}
.toast {
    background: white; border-radius: var(--radius-xl); padding: 16px 20px;
    box-shadow: var(--shadow-xl); display: flex; align-items: center;
    gap: 12px; min-width: 320px; max-width: 420px;
    transform: translateX(120%); transition: var(--transition-spring);
    pointer-events: auto; border-left: 4px solid var(--primary);
}
.toast.show { transform: translateX(0); }
.toast.removing { transform: translateX(120%); opacity: 0; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-icon { font-size: 24px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 14px; }
.toast-message { font-size: 13px; color: var(--gray-600); }
.toast-close { background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.4; }
.toast-close:hover { opacity: 1; }

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px); z-index: var(--z-modal-backdrop);
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white; border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl); z-index: var(--z-modal);
    width: 90%; max-width: 560px; max-height: 85vh; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: var(--transition-spring);
}
.modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 700; margin: 0; }
.modal-close {
    width: 32px; height: 32px; border-radius: var(--radius-full); border: none;
    background: var(--gray-100); cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 18px; transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); transform: rotate(90deg); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; overflow-x: auto; }
.tab {
    padding: 12px 20px; cursor: pointer; font-weight: 500; color: var(--gray-600);
    border: none; border-bottom: 2px solid transparent; transition: var(--transition);
    white-space: nowrap; margin-bottom: -2px; background: none; font-family: inherit; font-size: 14px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

/* ===== PROGRESS BAR ===== */
.progress { height: 8px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); transition: width 0.6s ease; }

/* ===== STEP INDICATOR ===== */
.steps { display: flex; align-items: center; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; position: relative; }
.step::after { content: ''; flex: 1; height: 2px; background: var(--gray-300); margin: 0 8px; }
.step:last-child::after { display: none; }
.step-number {
    width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0; color: var(--gray-600);
}
.step.active .step-number { background: var(--primary); color: white; box-shadow: var(--shadow-primary); }
.step.completed .step-number { background: var(--success); color: white; }
.step.completed::after { background: var(--success); }
.step-label { font-size: 13px; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* ===== CHIP ===== */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500; background: var(--gray-100);
    color: var(--dark); border: 1px solid var(--gray-200); transition: var(--transition);
}
.chip-clickable { cursor: pointer; }
.chip-clickable:hover { background: var(--primary-lighter); border-color: var(--primary); color: var(--primary); }
.chip-active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.6; }
.empty-state-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-state-text { font-size: 15px; color: var(--gray-600); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 13px; color: var(--gray-600); }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb-sep { color: var(--gray-400); font-size: 10px; }

/* ===== DIVIDER ===== */
.divider { border: none; height: 1px; background: var(--gray-200); margin: 24px 0; }
.divider-text { display: flex; align-items: center; gap: 16px; color: var(--gray-500); font-size: 13px; margin: 24px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ===== TOOLTIP ===== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%) translateY(4px);
    background: var(--darker); color: white; padding: 6px 12px;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
    white-space: nowrap; opacity: 0; visibility: hidden;
    transition: var(--transition-fast); pointer-events: none; z-index: 700;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.text-primary { color: var(--primary) !important; } .text-secondary { color: var(--secondary) !important; }
.text-danger { color: var(--danger) !important; } .text-success { color: var(--success) !important; }
.text-muted { color: var(--gray-600) !important; } .text-white { color: white !important; }
.text-bold { font-weight: 700; } .text-semibold { font-weight: 600; }
.text-sm { font-size: 12px; } .text-lg { font-size: 16px; } .text-xl { font-size: 20px; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-0 { padding: 0; } .p-2 { padding: 8px; } .p-3 { padding: 16px; } .p-4 { padding: 24px; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }

.d-flex { display: flex; } .d-grid { display: grid; } .d-block { display: block; } .d-none { display: none; }
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; } .flex-col { flex-direction: column; } .flex-1 { flex: 1; }
.align-center { align-items: center; } .align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.w-full { width: 100%; } .h-full { height: 100%; }
.rounded { border-radius: var(--radius); } .rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); } .rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; } .shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); } .shadow-lg { box-shadow: var(--shadow-lg); }
.bg-white { background: white; } .bg-light { background: var(--light); }
.border { border: 1px solid var(--gray-200); } .border-0 { border: none; }
.cursor-pointer { cursor: pointer; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hover-lift:hover { transform: translateY(-4px); }
.hover-scale:hover { transform: scale(1.05); }
.opacity-50 { opacity: 0.5; } .opacity-75 { opacity: 0.75; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.3); } 50% { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease-out; }
.animate-slide-up { animation: slideUp 0.3s ease-out; }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) { .container { max-width: 1000px; } }
@media (max-width: 768px) {
    h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
    .container, .container-lg { padding: 0 16px; }
    .btn { padding: 10px 16px; font-size: 13px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }
    .modal { width: 95% !important; max-height: 90vh; }
    .toast-container { right: 12px; left: 12px; }
    .toast { min-width: auto; max-width: 100%; }
    .steps { flex-direction: column; gap: 16px; }
    .step::after { display: none; }
    .books-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 12px; }
    .d-md-none { display: none !important; }
}
@media (max-width: 480px) {
    h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
    body { font-size: 13px; }
    .container { padding: 0 12px; }
    .btn { padding: 8px 14px; font-size: 12px; }
    .card { border-radius: var(--radius-lg); }
    .card-body { padding: 16px; }
    .books-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important; gap: 8px; }
    .d-sm-none { display: none !important; }
}
@media print {
    .header, .footer, .toast-container, .modal-backdrop { display: none !important; }
    body { background: white; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== DARK MODE GLOBAL ===== */
body.dark-mode .toast {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
body.dark-mode .btn-outline-primary {
    border-color: #818cf8;
    color: #818cf8;
}
body.dark-mode .btn-outline-primary:hover {
    background: #818cf8;
    color: white;
}
body.dark-mode .text-muted { color: #94a3b8 !important; }
body.dark-mode .modal-backdrop { background: rgba(0,0,0,0.7); }
body.dark-mode .modal-content {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}
