/* =============================================================================
   File        : assets/css/style.css
   Purpose     : Main application stylesheet — dashboard, media kit, landing page.
                 Light theme. Brand colors: #164836 (green), #0531a9 (blue).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Variables — Light Theme
   ----------------------------------------------------------------------------- */
:root {
    /* Brand */
    --color-primary:        #164836;
    --color-primary-dark:   #0f3226;
    --color-primary-light:  #e8f5ef;
    --color-primary-glow:   rgba(22, 72, 54, 0.10);
    --color-accent:         #0531a9;
    --color-accent-light:   #e8ecfb;
    --color-accent-glow:    rgba(5, 49, 169, 0.10);

    /* Backgrounds */
    --color-bg:             #f5f7fa;
    --color-surface:        #ffffff;
    --color-surface-2:      #f0f2f5;
    --color-surface-3:      #e8eaed;
    --color-sidebar:        #164836;

    /* Borders */
    --color-border:         #d8dde6;
    --color-border-light:   #eaedf2;

    /* Text */
    --color-text:           #111827;
    --color-text-muted:     #4b5563;
    --color-text-faint:     #9ca3af;

    /* Feedback */
    --color-success:        #164836;
    --color-success-bg:     #e8f5ef;
    --color-error:          #dc2626;
    --color-error-bg:       #fef2f2;
    --color-warning:        #d97706;
    --color-warning-bg:     #fffbeb;
    --color-info:           #0531a9;
    --color-info-bg:        #e8ecfb;

    /* File type badge colours */
    --badge-png:    #1A8CFF;
    --badge-jpg:    #164836;
    --badge-pdf:    #dc2626;
    --badge-psd:    #0531a9;
    --badge-ai:     #d97706;
    --badge-cdr:    #7c3aed;
    --badge-other:  #4b5563;

    /* Layout */
    --sidebar-width:        240px;
    --header-height:        60px;
    --radius-sm:            6px;
    --radius-md:            12px;
    --radius-lg:            18px;
    --shadow-card:          0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
    --shadow-modal:         0 20px 60px rgba(0,0,0,0.18);

    /* Typography */
    --font-display:         'Syne', sans-serif;
    --font-body:            'DM Sans', sans-serif;
    --font-mono:            'JetBrains Mono', monospace;
}

/* -----------------------------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* -----------------------------------------------------------------------------
   App Shell
   ----------------------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.sidebar-logo:hover { text-decoration: none; }

.sidebar-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    max-width: 160px;
}

.sidebar-logo-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
}
.sidebar-logo-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 0 8px;
    margin: 16px 0 6px;
}
.sidebar-section-label:first-child { margin-top: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.10); color: #ffffff; text-decoration: none; }
.nav-item.active { background: rgba(255,255,255,0.15); color: #ffffff; }
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item.active svg { opacity: 1; }
.nav-lock { margin-left: auto; font-size: 11px; opacity: 0.4; }

.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #ffffff;
    flex-shrink: 0; text-transform: uppercase;
}

.user-chip-info { overflow: hidden; flex: 1; }
.user-chip-name {
    font-size: 13px; font-weight: 600; color: #ffffff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-chip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px; font-weight: 600;
    padding: 1px 6px;
    border-radius: 99px;
    margin-top: 2px;
}
.badge-paid { background: rgba(255,255,255,0.2); color: #ffffff; }
.badge-free { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

/* ---- Main Content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Topbar ---- */
.topbar {
    height: var(--header-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    color: var(--color-text);
    flex: 1;
}
.topbar-title .topbar-sub {
    font-size: 12px; color: var(--color-text-muted);
    font-weight: 400; font-family: var(--font-body);
    margin-left: 8px;
}

.sidebar-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--color-text-muted); padding: 4px;
    align-items: center; justify-content: center;
}

/* ---- Page Content ---- */
.page-content {
    padding: 28px;
    flex: 1;
    animation: pageFadeIn 0.3s ease;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------------
   Alert / Flash Messages
   ----------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px; line-height: 1.5;
    margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid transparent;
    animation: alertIn 0.25s ease;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert--success { background: var(--color-success-bg); border-color: rgba(22,72,54,0.2);  color: var(--color-success); }
.alert--error   { background: var(--color-error-bg);   border-color: rgba(220,38,38,0.2); color: var(--color-error); }
.alert--warning { background: var(--color-warning-bg); border-color: rgba(217,119,6,0.2);  color: var(--color-warning); }
.alert--info    { background: var(--color-info-bg);    border-color: rgba(5,49,169,0.2);   color: var(--color-info); }

/* -----------------------------------------------------------------------------
   Stat Cards
   ----------------------------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    display: flex; align-items: flex-start; gap: 14px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}
.stat-card:hover { border-color: var(--color-primary); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(22,72,54,0.1); }

.stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.stat-icon--green  { background: var(--color-success-bg); }
.stat-icon--blue   { background: var(--color-info-bg); }
.stat-icon--yellow { background: var(--color-warning-bg); }

.stat-label { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.stat-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-text); }

/* -----------------------------------------------------------------------------
   Section Card
   ----------------------------------------------------------------------------- */
.section-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.section-card + .section-card { margin-top: 20px; }

.section-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--color-surface);
}

.section-title {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    color: var(--color-text);
}
.section-subtitle {
    font-size: 13px; color: var(--color-text-muted); margin-top: 2px;
}
.section-body { padding: 22px; }

/* -----------------------------------------------------------------------------
   Welcome Banner
   ----------------------------------------------------------------------------- */
.welcome-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: relative; overflow: hidden;
}
.welcome-banner::after {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-text h2 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700;
    color: #ffffff; margin-bottom: 4px;
}
.welcome-text p { font-size: 14px; color: rgba(255,255,255,0.75); }

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    border-radius: var(--radius-sm); border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none; padding: 9px 18px; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--color-primary); color: #ffffff;
    box-shadow: 0 2px 8px rgba(22,72,54,0.25);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 4px 16px rgba(22,72,54,0.3); }

.btn-primary-lg { font-size: 15px; padding: 13px 28px; }

.btn-accent {
    background: var(--color-accent); color: #ffffff;
    box-shadow: 0 2px 8px rgba(5,49,169,0.25);
}
.btn-accent:hover { background: #0428921; }

.btn-outline {
    background: transparent; color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.btn-outline:hover { background: var(--color-surface-2); color: var(--color-text); }

.btn-preview {
    background: var(--color-info-bg); color: var(--color-info);
    border: 1px solid rgba(5,49,169,0.15);
    font-size: 12px; padding: 5px 12px;
}
.btn-preview:hover { background: rgba(5,49,169,0.12); }

.btn-download {
    background: var(--color-primary-light); color: var(--color-primary);
    border: 1px solid rgba(22,72,54,0.2);
    font-size: 12px; padding: 5px 12px;
}
.btn-download:hover { background: rgba(22,72,54,0.12); }

.btn-download-locked {
    background: var(--color-surface-2); color: var(--color-text-faint);
    border: 1px solid var(--color-border);
    font-size: 12px; padding: 5px 12px;
    cursor: not-allowed; opacity: 0.7;
}

/* -----------------------------------------------------------------------------
   Locked State
   ----------------------------------------------------------------------------- */
.locked-wrapper { position: relative; }
.locked-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(245,247,250,0.6) 30%, rgba(245,247,250,0.97) 65%, rgba(245,247,250,1) 100%);
    z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    padding-bottom: 40px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.locked-table-blur { filter: blur(4px); pointer-events: none; user-select: none; }
.locked-cta { text-align: center; padding: 0 20px; }
.locked-cta-icon { font-size: 34px; margin-bottom: 10px; }
.locked-cta h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.locked-cta p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 22px; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* -----------------------------------------------------------------------------
   Category Filter Tabs
   ----------------------------------------------------------------------------- */
.filter-tabs {
    display: flex; gap: 4px; flex-wrap: wrap;
    padding: 14px 22px; border-bottom: 1px solid var(--color-border-light);
    align-items: center;
}

.filter-tab {
    padding: 6px 14px; border-radius: 99px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    border: 1px solid var(--color-border);
    background: transparent; color: var(--color-text-muted);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: var(--font-body);
}
.filter-tab:hover { background: var(--color-surface-2); color: var(--color-text); }
.filter-tab.active { background: var(--color-primary-light); color: var(--color-primary); border-color: rgba(22,72,54,0.3); }

.tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; border-radius: 99px;
    font-size: 10px; font-weight: 700;
    background: var(--color-surface-2); color: var(--color-text-muted);
    margin-left: 5px; padding: 0 4px;
}
.filter-tab.active .tab-count { background: rgba(22,72,54,0.12); color: var(--color-primary); }

.filter-search { margin-left: auto; position: relative; }
.filter-search input {
    background: var(--color-surface-2); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); padding: 6px 12px 6px 32px;
    font-family: var(--font-body); font-size: 13px; color: var(--color-text);
    outline: none; width: 180px; transition: border-color 0.2s, width 0.2s;
}
.filter-search input:focus { border-color: var(--color-primary); width: 220px; }
.filter-search input::placeholder { color: var(--color-text-faint); }
.filter-search svg {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--color-text-faint);
}

/* -----------------------------------------------------------------------------
   Media Kit Table
   ----------------------------------------------------------------------------- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.media-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.media-table thead th {
    padding: 11px 16px; text-align: left;
    font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--color-text-faint); background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border); white-space: nowrap;
}
.media-table thead th:first-child  { padding-left: 22px; }
.media-table thead th:last-child   { padding-right: 22px; text-align: right; }

.media-table tbody tr { border-bottom: 1px solid var(--color-border-light); transition: background 0.12s; }
.media-table tbody tr:last-child { border-bottom: none; }
.media-table tbody tr:hover { background: var(--color-surface-2); }
.media-table tbody tr.row-hidden { display: none; }

.media-table tbody td { padding: 13px 16px; vertical-align: middle; color: var(--color-text); }
.media-table tbody td:first-child { padding-left: 22px; }
.media-table tbody td:last-child  { padding-right: 22px; }

.col-srno { font-size: 12px; color: var(--color-text-faint); width: 48px; font-family: var(--font-mono), monospace; }
.col-name { font-weight: 500; min-width: 180px; }

/* File type badges */
.file-badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-png  { background: rgba(26,140,255,0.12);  color: var(--badge-png);  }
.badge-jpg,
.badge-jpeg { background: rgba(22,72,54,0.10);    color: var(--badge-jpg);  }
.badge-pdf  { background: rgba(220,38,38,0.10);   color: var(--badge-pdf);  }
.badge-psd  { background: rgba(5,49,169,0.10);    color: var(--badge-psd);  }
.badge-ai   { background: rgba(217,119,6,0.10);   color: var(--badge-ai);   }
.badge-cdr  { background: rgba(124,58,237,0.10);  color: var(--badge-cdr);  }
.badge-other{ background: rgba(75,85,99,0.10);    color: var(--badge-other);}

.col-category { font-size: 13px; color: var(--color-text-muted); }
.col-size { font-size: 12px; color: var(--color-text-muted); font-family: var(--font-mono), monospace; white-space: nowrap; }
.col-downloads { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.col-actions { white-space: nowrap; text-align: right; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

.table-empty { text-align: center; padding: 48px 20px; color: var(--color-text-muted); }
.table-empty svg { margin: 0 auto 12px; opacity: 0.3; }
.table-empty p { font-size: 14px; }

/* -----------------------------------------------------------------------------
   Lightbox Modal
   ----------------------------------------------------------------------------- */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }

.lightbox-box {
    background: #ffffff;
    border: 1px solid #d8dde6;
    border-radius: 16px;
    max-width: 760px; width: 100%; max-height: 92vh;
    overflow: hidden; display: flex; flex-direction: column;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.lightbox-overlay.is-open .lightbox-box { transform: scale(1) translateY(0); }

.lightbox-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #eaedf2; flex-shrink: 0;
    background: #ffffff;
}
.lightbox-title {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: #111827; flex: 1; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; margin-right: 12px;
}
.lightbox-close {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f5f7fa; border: 1px solid #d8dde6;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #4b5563; transition: background 0.15s, color 0.15s;
    flex-shrink: 0; font-size: 20px; line-height: 1; font-family: monospace;
}
.lightbox-close:hover { background: #fef2f2; color: #dc2626; border-color: rgba(220,38,38,0.3); }

.lightbox-image-wrap {
    flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: #f5f7fa; min-height: 240px; max-height: 58vh; position: relative;
}
.lightbox-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.lightbox-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: #4b5563; font-size: 13px; padding: 48px 24px; text-align: center;
    width: 100%;
}
.lightbox-loader {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #f5f7fa;
}

.spinner {
    width: 28px; height: 28px;
    border: 2px solid #d8dde6;
    border-top-color: #164836;
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-footer {
    padding: 14px 20px; border-top: 1px solid #eaedf2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-shrink: 0; flex-wrap: wrap;
    background: #ffffff;
}
.lightbox-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lightbox-meta-name { font-size: 14px; color: #111827; font-weight: 500; }
.lightbox-meta-detail { font-size: 12px; color: #4b5563; }

/* -----------------------------------------------------------------------------
   Tooltip
   ----------------------------------------------------------------------------- */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap .tooltip-text {
    position: absolute; bottom: calc(100% + 6px); right: 0;
    background: var(--color-text); color: var(--color-surface);
    font-size: 12px; padding: 5px 10px; border-radius: var(--radius-sm);
    white-space: nowrap; pointer-events: none; opacity: 0;
    transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; z-index: 20;
}
.tooltip-wrap:hover .tooltip-text { opacity: 1; transform: translateY(0); }

/* -----------------------------------------------------------------------------
   Toast Notifications
   ----------------------------------------------------------------------------- */
.toast-container {
    position: fixed; bottom: 24px; right: 24px; z-index: 500;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: 13px; color: var(--color-text);
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-card); animation: toastIn 0.25s ease;
    min-width: 240px; max-width: 320px;
}
.toast--success { border-left: 3px solid var(--color-success); }
.toast--error   { border-left: 3px solid var(--color-error); }
.toast--info    { border-left: 3px solid var(--color-info); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* -----------------------------------------------------------------------------
   Sidebar Backdrop
   ----------------------------------------------------------------------------- */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
.sidebar-backdrop.is-visible { display: block; }

/* =============================================================================
   LANDING PAGE STYLES  (page--landing)
   ============================================================================= */

/* ---------- Container ---------- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.navbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 16px;
}
.navbar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar__brand:hover { text-decoration: none; }
.navbar__brand-img { height: 40px; width: auto; object-fit: contain; }
.navbar__brand-sub {
    font-size: 11px; font-weight: 600; color: var(--color-primary);
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 2px 8px; border: 1px solid rgba(22,72,54,0.25);
    border-radius: 99px; background: var(--color-primary-light);
}
.navbar__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Landing Buttons ---------- */
.btn--outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: background 0.2s, color 0.2s; text-decoration: none;
    padding: 8px 18px; white-space: nowrap;
    background: transparent; color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.btn--outline:hover { background: var(--color-surface-2); color: var(--color-text); text-decoration: none; }

.btn--primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    text-decoration: none; padding: 8px 20px; white-space: nowrap;
    background: var(--color-primary); color: #ffffff; border: none;
    box-shadow: 0 3px 12px rgba(22,72,54,0.25);
}
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: 0 4px 18px rgba(22,72,54,0.35); text-decoration: none; transform: translateY(-1px); }
.btn--primary:active { transform: scale(0.97); }

.btn--ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--font-body); font-size: 15px; font-weight: 500;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: color 0.2s; text-decoration: none; padding: 10px 4px;
    background: transparent; color: var(--color-text-muted); border: none;
}
.btn--ghost:hover { color: var(--color-text); text-decoration: none; }
.btn--lg { font-size: 15px; padding: 13px 30px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary-light) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.hero__inner {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 32px; position: relative; z-index: 1;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--color-primary); background: var(--color-primary-light);
    border: 1px solid rgba(22,72,54,0.2); padding: 5px 14px; border-radius: 99px;
}
.hero__eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary);
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.7); } }

.hero__text { max-width: 700px; }
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px); font-weight: 800;
    line-height: 1.08; letter-spacing: -2px;
    color: var(--color-text); margin-bottom: 20px;
}
.hero__title-highlight { color: var(--color-primary); display: block; }
.hero__subtitle {
    font-size: clamp(15px, 2vw, 18px); color: var(--color-text-muted);
    line-height: 1.65; max-width: 560px; margin: 0 auto 28px;
}
.hero__cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.hero__stat { text-align: center; }
.hero__stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--color-primary); letter-spacing: -1px; line-height: 1; }
.hero__stat-label { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.hero__stat-divider { width: 1px; height: 36px; background: var(--color-border); }

/* ---------- Section shared ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 36px); font-weight: 800;
    color: var(--color-text); letter-spacing: -1px;
    text-align: center; margin-bottom: 12px;
}
.section-sub {
    font-size: 15px; color: var(--color-text-muted); text-align: center;
    max-width: 520px; margin: 0 auto 52px; line-height: 1.6;
}

/* ---------- Features ---------- */
.features {
    padding: 80px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--color-bg); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0; transition: opacity 0.25s;
}
.feature-card:hover { border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(22,72,54,0.1); }
.feature-card:hover::before { opacity: 1; }
.feature-card__icon { font-size: 30px; margin-bottom: 16px; display: block; line-height: 1; }
.feature-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ---------- How It Works ---------- */
.how-it-works { padding: 80px 0; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 160px; max-width: 220px; text-align: center; padding: 0 12px; }
.step__number {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-surface); border: 2px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 20px; font-weight: 800;
    color: var(--color-primary); margin: 0 auto 18px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.step:hover .step__number { background: var(--color-primary-light); border-color: var(--color-primary); box-shadow: 0 0 0 6px var(--color-primary-glow); }
.step__title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.step__desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }
.step__arrow { font-size: 22px; color: var(--color-border); align-self: flex-start; margin-top: 14px; padding: 0 4px; flex-shrink: 0; }

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner__title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: #ffffff; letter-spacing: -1px; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner__sub { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 32px; position: relative; z-index: 1; }
.cta-banner__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-banner .btn--outline { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); }
.cta-banner .btn--outline:hover { background: rgba(255,255,255,0.18); color: #ffffff; }
.cta-banner .btn--primary { background: #ffffff; color: var(--color-primary); }
.cta-banner .btn--primary:hover { background: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--color-border-light); background: var(--color-surface); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 13px; color: var(--color-text-faint); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 13px; color: var(--color-text-faint); text-decoration: none; transition: color 0.15s; }
.footer__links a:hover { color: var(--color-primary); }

/* ---------- Landing Responsive ---------- */
@media (max-width: 768px) {
    .hero { padding: 64px 0 56px; }
    .hero__stats { gap: 20px; }
    .hero__stat-divider { display: none; }
    .features { padding: 56px 0; }
    .how-it-works { padding: 56px 0; }
    .steps { gap: 32px; }
    .step__arrow { display: none; }
    .step { min-width: 140px; }
    .cta-banner { padding: 52px 0; }
    .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .navbar__brand-sub { display: none; }
    .hero__title { letter-spacing: -1px; }
    .features__grid { grid-template-columns: 1fr; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn--primary, .hero__cta .btn--ghost { text-align: center; justify-content: center; }
    .cta-banner__actions { flex-direction: column; align-items: stretch; }
    .cta-banner__actions .btn--primary, .cta-banner__actions .btn--outline { justify-content: center; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; width: 100%; }
}

/* ---------- Dashboard Responsive ---------- */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.2); }
    .main-content { margin-left: 0; }
    .topbar { padding: 0 16px; }
    .sidebar-toggle { display: flex; }
    .page-content { padding: 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .welcome-banner { flex-direction: column; align-items: flex-start; }
    .filter-tabs { padding: 12px 16px; }
    .filter-search { display: none; }
    .col-actions { flex-direction: column; gap: 4px; }
    .media-table thead th, .media-table tbody td { padding: 10px 12px; }
    .media-table thead th:first-child, .media-table tbody td:first-child { padding-left: 16px; }
}
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .col-srno, .col-size { display: none; }
}