/* ==========================================================================
   Apple Enterprise Design System - Self-Service IT Portal
   Comprehensive Responsive Architecture for Desktop, Tablet & Mobile
   ========================================================================== */

:root {
    /* Apple Light Mode Palette */
    --bg-body: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --bg-glass-strong: rgba(255, 255, 255, 0.94);
    --bg-subtle: rgba(0, 0, 0, 0.04);
    --bg-input: #fbfbfd;
    --bg-hover: rgba(0, 0, 0, 0.06);
    
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --text-secondary: #515154;
    --text-inverse: #ffffff;
    
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --border-glass: rgba(255, 255, 255, 0.6);
    
    /* Company Primary Palette (#2EA49E) */
    --apple-blue: #2EA49E;
    --apple-blue-hover: #268a85;
    --apple-blue-subtle: rgba(46, 164, 158, 0.12);
    --apple-green: #34c759;
    --apple-green-subtle: rgba(52, 199, 89, 0.1);
    --apple-orange: #ff9500;
    --apple-orange-subtle: rgba(255, 149, 0, 0.1);
    --apple-red: #ff3b30;
    --apple-red-subtle: rgba(255, 59, 48, 0.1);
    --apple-purple: #af52de;
    --apple-purple-subtle: rgba(175, 82, 222, 0.1);
    --apple-teal: #30b0c7;
    --apple-gray: #8e8e93;

    /* Elevations & Radii */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.09);
    --shadow-spotlight: 0 24px 64px rgba(0, 0, 0, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --font-stack: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    /* Apple OLED Dark Mode Palette */
    --bg-body: #000000;
    --bg-surface: #1c1c1e;
    --bg-surface-elevated: #2c2c2e;
    --bg-glass: rgba(28, 28, 30, 0.82);
    --bg-glass-strong: rgba(28, 28, 30, 0.94);
    --bg-subtle: rgba(255, 255, 255, 0.06);
    --bg-input: #242426;
    --bg-hover: rgba(255, 255, 255, 0.09);
    
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-secondary: #d2d2d7;
    --text-inverse: #000000;
    
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --border-glass: rgba(255, 255, 255, 0.12);
    
    --apple-blue: #35b8b2;
    --apple-blue-hover: #4cd5ce;
    --apple-blue-subtle: rgba(46, 164, 158, 0.22);
    --apple-green: #30d158;
    --apple-green-subtle: rgba(48, 209, 88, 0.15);
    --apple-orange: #ff9f0a;
    --apple-orange-subtle: rgba(255, 159, 10, 0.15);
    --apple-red: #ff453a;
    --apple-red-subtle: rgba(255, 69, 58, 0.15);
    --apple-purple: #bf5af2;
    --apple-purple-subtle: rgba(191, 90, 242, 0.15);
    --apple-teal: #40c8e0;
    --apple-gray: #98989d;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-spotlight: 0 24px 64px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.47059;
    letter-spacing: -0.016em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    text-decoration: underline;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Apple Translucent Navigation Bar
   ========================================================================== */

.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 8px;
}

/* Brand Logo */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand:hover {
    text-decoration: none;
    opacity: 0.9;
}

.nav-brand-icon {
    font-size: 19px;
    color: var(--text-main);
}

.nav-brand-text {
    font-weight: 600;
}

.nav-brand-badge {
    background: var(--apple-blue-subtle);
    color: var(--apple-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Desktop Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    white-space: nowrap;
    margin: 0 auto;
    padding: 0 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link i {
    font-size: 12px;
}

.nav-link:hover {
    color: var(--text-main);
    background: var(--bg-subtle);
    text-decoration: none;
}

.nav-link.active {
    color: var(--text-main);
    font-weight: 600;
    background: var(--bg-subtle);
}

/* Action Controls (Search, Theme, Notifs, Avatar, Hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ⌘K Spotlight Trigger Button */
.spotlight-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.spotlight-trigger:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.spotlight-trigger kbd {
    font-family: inherit;
    font-size: 11px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--text-muted);
}

/* Icon Buttons in Nav */
.nav-icon-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 14px;
    flex-shrink: 0;
}

.nav-icon-btn:hover {
    background: var(--bg-subtle);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--apple-red);
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}

/* User Avatar Nav Button */
.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px 3px 3px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.user-menu-btn:hover {
    border-color: var(--border-strong);
    background: var(--bg-hover);
}

.user-menu-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-btn span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.mobile-nav-toggle:hover {
    background: var(--bg-hover);
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-drawer {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    cursor: pointer;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-subtle);
}

.mobile-nav-item i {
    font-size: 16px;
    color: var(--apple-blue);
    width: 22px;
    text-align: center;
}

.mobile-nav-item.active {
    background: var(--apple-blue-subtle);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    font-weight: 600;
}

/* ==========================================================================
   App Layout & Views
   ========================================================================== */

.app-container {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 76px 20px 60px;
}

.portal-view {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-view.active {
    display: block;
}

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

/* Section & Page Headers */
.view-header {
    margin-bottom: 28px;
}

.view-header-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
    line-height: 1.15;
}

.view-header-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 700px;
}

.view-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Apple-Style Hero Banner
   ========================================================================== */

.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--apple-blue-subtle) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--apple-green-subtle);
    color: var(--apple-green);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 24px;
}

/* Quick Search in Hero */
.hero-search-wrapper {
    position: relative;
    max-width: 580px;
    width: 100%;
}

.hero-search-input {
    width: 100%;
    padding: 13px 18px 13px 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.hero-search-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px var(--apple-blue-subtle);
}

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

/* Hero Quick Actions Pills */
.hero-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}

.hero-shortcuts-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 4px;
}

.shortcut-pill {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.shortcut-pill:hover {
    color: var(--apple-blue);
    border-color: var(--apple-blue);
    background: var(--apple-blue-subtle);
}

/* ==========================================================================
   Metrics & KPI Grid
   ========================================================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

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

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.metric-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.metric-blue { background: var(--apple-blue-subtle); color: var(--apple-blue); }
.metric-green { background: var(--apple-green-subtle); color: var(--apple-green); }
.metric-orange { background: var(--apple-orange-subtle); color: var(--apple-orange); }
.metric-purple { background: var(--apple-purple-subtle); color: var(--apple-purple); }

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-number {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-top: 4px;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Dashboard Split Grid (Primary Device & Tickets Feed)
   ========================================================================== */

.dashboard-split {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 20px;
    margin-bottom: 28px;
}

.panel-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.panel-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.panel-action {
    font-size: 13px;
    color: var(--apple-blue);
    font-weight: 500;
    cursor: pointer;
}

/* Mini Ticket Card in Feed */
.ticket-mini-card {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.ticket-mini-card:last-child {
    margin-bottom: 0;
}

.ticket-mini-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
    transform: translateX(2px);
}

.ticket-mini-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ticket-mini-id {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-blue);
    font-family: ui-monospace, monospace;
}

.ticket-mini-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-mini-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Primary Device Highlight Widget */
.primary-device-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    align-items: center;
}

.device-img-thumb {
    width: 80px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.device-info-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.device-info-serial {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 6px;
    word-break: break-all;
}

.device-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ==========================================================================
   Badges & Pills
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-open {
    background: var(--apple-blue-subtle);
    color: var(--apple-blue);
}
.badge-open .badge-dot { background: var(--apple-blue); }

.badge-progress {
    background: var(--apple-orange-subtle);
    color: var(--apple-orange);
}
.badge-progress .badge-dot { background: var(--apple-orange); }

.badge-resolved, .badge-closed {
    background: var(--apple-green-subtle);
    color: var(--apple-green);
}
.badge-resolved .badge-dot { background: var(--apple-green); }

.badge-high, .badge-critical {
    background: var(--apple-red-subtle);
    color: var(--apple-red);
}

.badge-medium {
    background: var(--apple-orange-subtle);
    color: var(--apple-orange);
}

.badge-low {
    background: var(--bg-subtle);
    color: var(--text-secondary);
}

/* ==========================================================================
   Buttons & Controls
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--apple-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--apple-blue-hover);
    color: #ffffff;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    text-decoration: none;
}

.btn-danger {
    background: var(--apple-red-subtle);
    color: var(--apple-red);
    border-color: transparent;
}

.btn-danger:hover {
    background: var(--apple-red);
    color: #ffffff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================================================
   Service Catalog Grid & Cards
   ========================================================================== */

.catalog-section {
    margin-bottom: 36px;
}

.catalog-section-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.catalog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--apple-blue);
}

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

.catalog-card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--apple-blue);
    background: var(--apple-blue-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.catalog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.catalog-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Ticket Creation Wizard Layout
   ========================================================================== */

.ticket-creation-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* ==========================================================================
   Tickets View & Table Layout
   ========================================================================== */

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    max-width: 100%;
}

.filter-tab {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.filter-tab.active {
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.filter-search {
    position: relative;
    min-width: 220px;
    flex: 1;
    max-width: 320px;
}

.filter-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-main);
    outline: none;
}

.filter-search input:focus {
    border-color: var(--apple-blue);
}

.filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

/* Table Container with Horizontal Scroll */
.enterprise-table-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
}

.enterprise-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    min-width: 720px;
}

.enterprise-table th {
    background: var(--bg-subtle);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.enterprise-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.enterprise-table tbody tr {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.enterprise-table tbody tr:hover {
    background: var(--bg-subtle);
}

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

/* ==========================================================================
   Ticket Details Drawer (Slide-Over)
   ========================================================================== */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 620px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-spotlight);
    border-left: 1px solid var(--border-subtle);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.drawer-overlay.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-subtle);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

/* SLA Banner in Ticket Drawer */
.sla-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--apple-blue-subtle);
    color: var(--apple-blue);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

/* Conversation Timeline */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    gap: 12px;
}

.timeline-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.timeline-bubble {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.timeline-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.timeline-time {
    font-size: 11px;
    color: var(--text-muted);
}

.timeline-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Reply Box */
.drawer-reply-box {
    border-top: 1px solid var(--border-subtle);
    padding: 16px 22px;
    background: var(--bg-surface);
}

.reply-textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 13px;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

.reply-textarea:focus {
    border-color: var(--apple-blue);
}

/* ==========================================================================
   Assets View (Hardware & Software)
   ========================================================================== */

.assets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    overflow-x: auto;
}

.assets-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.assets-tab-btn.active {
    color: var(--text-main);
    background: var(--bg-subtle);
    font-weight: 600;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.asset-hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.asset-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.asset-img-container {
    height: 180px;
    position: relative;
    background: var(--bg-subtle);
    overflow: hidden;
}

.asset-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-tag-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.asset-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.asset-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.asset-chip {
    font-size: 13px;
    color: var(--apple-blue);
    font-weight: 500;
    margin-bottom: 14px;
}

.asset-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-val {
    font-weight: 500;
    color: var(--text-main);
    text-align: right;
    word-break: break-all;
}

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

/* ==========================================================================
   Knowledge Base Portal
   ========================================================================== */

.kb-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.kb-cat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.kb-cat-card:hover {
    transform: translateY(-2px);
    border-color: var(--apple-blue);
    box-shadow: var(--shadow-md);
}

.kb-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--apple-blue-subtle);
    color: var(--apple-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.kb-cat-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.kb-cat-count {
    font-size: 12px;
    color: var(--text-muted);
}

.kb-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.kb-article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.kb-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--apple-blue);
}

.kb-article-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.kb-article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 8px;
}

.kb-article-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
}

/* ==========================================================================
   Article Reader View
   ========================================================================== */

.article-reader-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--apple-blue);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}

.article-header-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-body-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 24px;
}

.article-body-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-main);
    margin: 28px 0 12px;
}

.article-body-content p {
    margin-bottom: 16px;
}

.article-body-content ul, .article-body-content ol {
    margin: 0 0 18px 24px;
}

.article-body-content li {
    margin-bottom: 8px;
}

.article-body-content pre {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: var(--text-main);
}

.callout {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.callout-info {
    background: var(--apple-blue-subtle);
    color: var(--text-main);
    border-left-color: var(--apple-blue);
}

.callout-success {
    background: var(--apple-green-subtle);
    color: var(--text-main);
    border-left-color: var(--apple-green);
}

/* Article Feedback Box */
.article-feedback-box {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   System Status View
   ========================================================================== */

.status-overall-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
}

.status-pulse-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--apple-green);
    position: relative;
    flex-shrink: 0;
}

.status-pulse-circle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--apple-green-subtle);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.service-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-status-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.uptime-ticks {
    display: flex;
    gap: 3px;
}

.tick {
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: var(--apple-green);
}

.tick-warning {
    background: var(--apple-orange);
}

/* ==========================================================================
   Tech Bar Appointment Scheduler
   ========================================================================== */

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

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.time-slot-btn {
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--apple-blue);
    background: var(--apple-blue-subtle);
}

.time-slot-btn.selected {
    background: var(--apple-blue);
    color: #ffffff;
    border-color: var(--apple-blue);
}

/* ==========================================================================
   Modal Dialogs & Spotlight (⌘K)
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-spotlight);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.modal-header-box {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body-box {
    padding: 24px;
    overflow-y: auto;
}

/* Spotlight Search Modal */
.spotlight-modal {
    max-width: 660px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.spotlight-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.spotlight-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: var(--text-main);
    outline: none;
}

.spotlight-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.spotlight-item:hover, .spotlight-item.active {
    background: var(--bg-subtle);
}

.spotlight-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--apple-blue-subtle);
    color: var(--apple-blue);
    flex-shrink: 0;
}

.spotlight-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
}

/* ==========================================================================
   Form Controls & Wizards
   ========================================================================== */

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px var(--apple-blue-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Dropzone Upload */
.file-dropzone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-subtle);
}

.file-dropzone:hover {
    border-color: var(--apple-blue);
    background: var(--apple-blue-subtle);
    color: var(--apple-blue);
}

/* ==========================================================================
   Toasts & Notification Dropdowns
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100% - 48px);
}

.toast-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-main);
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

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

/* Notification Popover */
.notif-popover {
    position: absolute;
    top: 58px;
    right: 16px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2500;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.notif-popover.active {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.portal-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 28px 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 1. Large Laptops / Desktops (< 1200px) */
@media (max-width: 1200px) {
    .nav-link {
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
    }
    .spotlight-trigger {
        padding: 5px 8px;
    }
    .spotlight-text {
        display: none;
    }
}

/* 2. Tablets & Small Laptops (< 1024px) */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; /* Hide horizontal desktop links; hamburger drawer used */
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

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

    .ticket-creation-layout {
        grid-template-columns: 1fr;
    }

    .techbar-grid {
        grid-template-columns: 1fr;
    }

    .nav-user-name-text {
        display: none;
    }
}

/* 3. Mobile Devices (< 768px) */
@media (max-width: 768px) {
    .app-container {
        padding: 66px 14px 40px;
    }

    .view-header {
        margin-bottom: 20px;
    }

    .view-header-title {
        font-size: 24px;
    }

    .view-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-banner {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .metric-card {
        padding: 16px;
    }

    .metric-number {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .drawer-content {
        max-width: 100%;
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
    }
}

/* 4. Small Mobile (< 480px) */
@media (max-width: 480px) {
    .nav-brand-badge {
        display: none;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .primary-device-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .device-img-thumb {
        width: 100%;
        height: 120px;
    }

    .hero-shortcuts {
        flex-direction: column;
        align-items: flex-start;
    }

    .shortcut-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        max-width: 100%;
    }
}
