/* =====================================================
   Dapper Dry Cleaners - Professional Modern Design System
   Cool Tones • Clean • Professional
   ===================================================== */

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

/* =====================================================
   Light Theme (Default)
   ===================================================== */
:root {
    /* Brand Colors - Cool Teal/Slate */
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.1);

    /* Backgrounds */
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-input: #f3f4f6;
    --bg-hover: #f3f4f6;
    --bg-muted: #f3f4f6;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    --text-sidebar: #4b5563;
    --text-sidebar-muted: #9ca3af;
    --text-sidebar-hover: #111827;

    /* Borders */
    --border: #e5e7eb;
    --border-light: #f9fafb;
    --border-input: transparent;

    /* Status Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;

    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;

    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;

    --info: #0ea5e9;
    --info-bg: #e0f2fe;
    --info-text: #0c4a6e;

    /* Shadows For Minimalist Look */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Legacy spacing support */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;

    /* Border Radius - Moderately Rounded */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 200ms ease;
    --transition-fast: 100ms ease;
    --transition-base: 200ms ease;

    /* Layout */
    --sidebar-width: 260px;

    /* Legacy variables */
    --bg-primary: var(--bg-card);
    --bg-secondary: var(--bg-body);
    --bg-tertiary: var(--bg-muted);
    --bg-elevated: var(--bg-card);
    --border-color: var(--border);
    --border-light: var(--border-light);
    --accent-primary: var(--primary);
    --accent-hover: var(--primary-hover);
    --accent-light: var(--primary-light);
}

/* =====================================================
   Dark Theme
   ===================================================== */
[data-theme="dark"] {
    /* Backgrounds */
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #1e293b;
    --bg-input: #0f172a;
    --bg-hover: #334155;
    --bg-muted: #334155;

    /* Text Colors - PROPERLY VISIBLE */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --text-sidebar: #cbd5e1;
    --text-sidebar-muted: #64748b;
    --text-sidebar-hover: #f8fafc;

    /* Borders */
    --border: #334155;
    --border-light: #1e293b;
    --border-input: transparent;

    /* Brand - Lighter for dark mode */
    --primary: #14b8a6;
    --primary-hover: #2dd4bf;
    --primary-light: rgba(20, 184, 166, 0.15);

    /* Status Colors - Lighter for dark mode */
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.15);
    --success-text: #6ee7b7;

    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.15);
    --warning-text: #fcd34d;

    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.15);
    --danger-text: #fca5a5;

    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.15);
    --info-text: #7dd3fc;

    /* Shadows - Deepened for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    /* Legacy variables */
    --bg-primary: var(--bg-card);
    --bg-secondary: var(--bg-body);
    --bg-tertiary: var(--bg-muted);
    --bg-elevated: var(--bg-card);
    --border-color: var(--border);
    --accent-primary: var(--primary);
    --accent-hover: var(--primary-hover);
    --accent-light: var(--primary-light);
}

/* =====================================================
   Base Reset
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
}

/* =====================================================
   Typography
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-3xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-2xl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

h5,
h6 {
    font-size: var(--font-base);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

small {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* =====================================================
   Layout
   ===================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* =====================================================
   Sidebar - Modern UI
   ===================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

.sidebar-logo {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.sidebar-logo-link {
    display: block;
    text-align: center;
}

.sidebar-logo-img {
    max-width: 140px;
    height: auto;
}

.sidebar-logo-text {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-logo-text .logo-x {
    color: var(--primary);
}

.sidebar-logo-tagline {
    font-size: var(--font-xs);
    color: var(--text-sidebar-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-1);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4) 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0 var(--space-3);
}

.sidebar-menu li {
    margin-bottom: var(--space-1);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-sidebar);
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.sidebar-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-sidebar-hover);
}

.sidebar-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-menu .menu-icon {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    color: var(--text-sidebar-muted);
    transition: color var(--transition);
}

.sidebar-menu a.active .menu-icon {
    color: var(--primary);
}

.sidebar-menu a:hover .menu-icon {
    color: var(--text-sidebar-hover);
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

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

.theme-toggle {
    width: 100%;
    padding: var(--space-3);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-sidebar);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}


.sidebar-close {
    display: none;
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-hover);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

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

.top-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
    background: var(--bg-muted);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.top-header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

main {
    flex: 1;
    padding: var(--space-6);
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

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

.card-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-5);
}

.card-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 0;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.6rem var(--space-5);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: var(--shadow);
}

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

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

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #1e293b;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-info {
    background: var(--info);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-light);
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 1px solid var(--success);
    box-shadow: none;
}

.btn-outline-success:hover:not(:disabled) {
    background: var(--success-bg);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    box-shadow: none;
}

.btn-outline-danger:hover:not(:disabled) {
    background: var(--danger-bg);
}

.btn-sm {
    padding: 0.4rem var(--space-3);
    font-size: var(--font-xs);
}

.btn-lg {
    padding: 0.8rem var(--space-8);
    font-size: var(--font-base);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =====================================================
   Forms
   ===================================================== */
.form-group {
    margin-bottom: var(--space-5);
}

label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.6rem var(--space-4);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.form-control:hover {
    background: var(--bg-hover);
}

.form-control:focus {
    outline: none;
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 44px;
}

/* =====================================================
   Modern Floating Tables
   ===================================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--space-3);
}

th, td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
}

th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: transparent;
    border-bottom: none;
    padding-bottom: var(--space-2);
}

td {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition);
}

td:first-child {
    border-left: 1px solid var(--border);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

td:last-child {
    border-right: 1px solid var(--border);
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

tr:hover td {
    background: var(--bg-hover);
}

td a {
    font-weight: 600;
}

/* =====================================================
   Selection Checkmark
   ===================================================== */
.selection-check {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    background: var(--success);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    font-weight: 700;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    main {
        padding: var(--space-4);
    }

    .card {
        padding: var(--space-4);
    }

    h1 {
        font-size: var(--font-2xl);
    }

    .pricing-mode-toggle {
        grid-template-columns: 1fr;
    }

    .garment-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-5);
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {

    .sidebar,
    .top-header,
    .btn,
    .no-print {
        display: none !important;
    }

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

    body {
        background: #fff;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* =====================================================
   Modern Layout Overrides
   ===================================================== */
.modern-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: var(--space-6) var(--space-8) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-titles .page-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.header-titles .page-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.user-greeting {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--space-8) var(--space-8) !important;
}

/* Glass Floating Auth */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-split-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 900px) {
    .auth-split-visual {
        display: flex;
    }
}

.auth-split-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-split-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: var(--bg-body);
}

.modern-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: var(--space-8);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.glass-pill-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.glass-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

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

.glass-stat-icon {
    position: absolute;
    right: -10%;
    top: -10%;
    font-size: 8rem;
    opacity: 0.03;
    color: var(--primary);
}

.glass-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.glass-stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   Info Detail Grid
   ===================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.info-item {
    background: var(--bg-card);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-base);
}

/* =====================================================
   Modals
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition) ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition) cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: .5;
    cursor: pointer;
    transition: color var(--transition);
    z-index: 10;
}

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

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    margin: 0;
    font-size: var(--font-lg);
    font-weight: 600;
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    background: var(--bg-muted);
}

