/* SendGear - CSS Styles */
/* Bold, Epic, Extreme Sports Aesthetic */
/* Inspired by: GoPro, Red Bull, Insta360 */

/* Theme: Light (primary for v0.1 "Perfect Feel") */
:root {
    /* Brand colors - Electric & Bold */
    --brand-primary: #00d4ff;      /* Electric cyan */
    --brand-primary-dark: #00a8cc;
    --brand-secondary: #ff3366;    /* Hot pink/red accent */
    --brand-accent: #ffcc00;       /* GoPro yellow */

    /* Gradient stops */
    --gradient-start: #00d4ff;
    --gradient-end: #7c3aed;       /* Purple */
    --gradient-hot: linear-gradient(135deg, #ff3366 0%, #ff6b35 100%);
    --gradient-cool: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-gold: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);

    /* Semantic colors */
    --primary: var(--brand-primary);
    --primary-dark: var(--brand-primary-dark);
    --secondary: #64748b;
    --success: #00cc6a;
    --success-bg: rgba(0, 204, 106, 0.15);
    --warning: #ffcc00;
    --warning-bg: rgba(255, 204, 0, 0.15);
    --danger: #ff3366;
    --danger-bg: rgba(255, 51, 102, 0.15);

    /* Surface colors - Clean White */
    --background: #ffffff;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.98);

    /* Text colors */
    --text: #1a1a2e;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Border colors */
    --border: #e0e0e8;
    --border-glow: rgba(0, 212, 255, 0.3);
    --border-focus: var(--primary);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius - Angular for extreme sports */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;

    /* Shadows - Crisp & Bold */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 20px rgba(0, 212, 255, 0.25);
    --shadow-glow-danger: 0 4px 20px rgba(255, 51, 102, 0.25);
    --shadow-glow-success: 0 4px 20px rgba(0, 204, 106, 0.25);
}

/* Theme: Dark (optional toggle) */
[data-theme="dark"] {
    --background: #0a0a0f;
    --surface: #12121a;
    --surface-elevated: #1a1a24;
    --surface-glass: rgba(18, 18, 26, 0.8);
    --text: #ffffff;
    --text-muted: #8b8b9a;
    --text-inverse: #0a0a0f;
    --border: #2a2a3a;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}


/* Password Gate (Beta Access) */
.password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-gate-content {
    text-align: center;
    padding: var(--space-2xl);
}

.password-gate-content h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.password-gate-content p {
    color: #8b8b9a;
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.password-gate-content input {
    display: block;
    width: 280px;
    padding: var(--space-md);
    margin: 0 auto var(--space-md);
    border: 2px solid #2a2a3a;
    background: #12121a;
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.password-gate-content input:focus {
    border-color: var(--brand-primary);
}

.password-gate-content .btn {
    width: 280px;
}

.password-error {
    color: var(--danger);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    min-height: 1.5em;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Header - Sleek & Bold */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.75rem;
    -webkit-text-fill-color: initial;
}

.logo-text {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav {
    display: none;
    gap: var(--space-xs);
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-link:hover {
    color: #1a1a2e;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-hot);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Show nav on larger screens */
@media (min-width: 640px) {
    .nav {
        display: flex;
    }
}

/* Main content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* Buttons - Bold, Skewed, Dynamic */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-hot);
    color: white;
    transform: skewX(-5deg);
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
}

.btn-primary span {
    display: inline-block;
    transform: skewX(5deg);
}

.btn-primary:hover {
    transform: skewX(-5deg) translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
    transform: skewX(-5deg);
}

.btn-secondary span {
    display: inline-block;
    transform: skewX(5deg);
}

.btn-secondary:hover {
    background: #1a1a2e;
    color: white;
    transform: skewX(-5deg) translateY(-2px);
}

.btn-success {
    background: var(--gradient-gold);
    color: #1a1a2e;
    transform: skewX(-5deg);
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.4);
}

.btn-danger {
    background: var(--gradient-hot);
    color: white;
    transform: skewX(-5deg);
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
}

.btn-danger:hover {
    transform: skewX(-5deg) translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.6);
}

.btn-cool {
    background: var(--gradient-cool);
    color: white;
    transform: skewX(-5deg);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn-cool:hover {
    transform: skewX(-5deg) translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: var(--space-sm);
    min-width: 40px;
    min-height: 40px;
    transform: none;
}

/* Cards - Angular with gradient accent */
.card {
    background: #ffffff;
    border: none;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleY(1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a2e;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: var(--space-sm);
}

/* Spaces Grid Layout */
.spaces-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Space Card - Hero style card */
.space-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.space-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.15);
}

/* Sport quick add buttons */
.sport-quick-add:hover {
    border-color: var(--brand-primary) !important;
    background: rgba(0, 212, 255, 0.1) !important;
    transform: translateY(-4px);
}

/* Sport option selection in modal */
.sport-option:has(input:checked) {
    border-color: var(--brand-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Equipment Grid Layout */
.equipment-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Equipment Card - Bold & Dynamic with Design Guide styling */
.equipment-card {
    background: #ffffff;
    border: none;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Left gradient accent bar */
.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Corner accent triangle */
.equipment-card::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: all 0.3s;
}

.equipment-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.15);
}

.equipment-card:hover::before {
    transform: scaleY(1);
}

.equipment-card:hover::after {
    opacity: 1;
}

.equipment-card-header {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid #e0e0e8;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.equipment-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.equipment-card-title {
    flex: 1;
    min-width: 0;
}

.equipment-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.equipment-type {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.equipment-card-body {
    padding: var(--space-md);
}

.equipment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.equipment-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #64748b;
    background: #f8f9fa;
    padding: 4px 8px;
}

.equipment-meta-item .meta-icon {
    font-size: 0.875rem;
}

.equipment-card-footer {
    padding: var(--space-sm) var(--space-md);
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e8;
}

/* Equipment Card Photo */
.equipment-card-photo {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f5;
    border-bottom: 1px solid #e0e0e8;
}

.equipment-card.has-photo .equipment-card-header {
    padding-top: var(--space-md);
}

/* Assembly Card Styles */
.equipment-card.is-assembly {
    border-left: 3px solid var(--primary);
}

.assembly-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.assembly-badge .component-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
}

.assembly-alerts {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assembly-alert {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.assembly-alert.overdue {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
}

.assembly-alert.upcoming {
    background: rgba(255, 204, 0, 0.15);
    color: #b38f00;
}

.assembly-alert.task {
    background: rgba(0, 212, 255, 0.1);
    color: #0095b3;
}

.assembly-alert.more {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    font-style: italic;
}

/* Components List in Assembly Detail */
.components-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.component-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #f8f9fa;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.component-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.component-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
    border: 1px solid #e0e0e8;
}

.component-info {
    flex: 1;
    min-width: 0;
}

.component-name {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.component-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.component-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Component Selection Modal */
.component-select-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
}

.component-select-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #f8f9fa;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.component-select-item:hover {
    background: white;
    border-color: var(--primary);
}

.component-select-item .fa-plus {
    opacity: 0;
    transition: opacity 0.2s;
}

.component-select-item:hover .fa-plus {
    opacity: 1;
}

/* Toggle Switch for Assembly */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 26px;
    background: #e0e0e8;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

.toggle-label {
    font-weight: 500;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toggle-label i {
    color: var(--primary);
}

/* Equipment Detail Page Photo */
.equipment-detail-photo {
    position: relative;
    margin-bottom: var(--space-lg);
    border: 2px solid #e0e0e8;
    overflow: hidden;
    cursor: zoom-in;
    max-height: 300px;
}

.equipment-detail-photo img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.equipment-detail-photo .photo-zoom-hint {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.equipment-detail-photo:hover .photo-zoom-hint {
    opacity: 1;
}

/* Photo Upload Form Styles */
.photo-upload-container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.photo-preview {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.photo-preview.has-photo {
    border-style: solid;
    border-color: var(--primary);
}

.photo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.photo-upload-actions .btn {
    justify-content: flex-start;
    min-width: 100px;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.bulk-select-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
}

.bulk-select-info input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.bulk-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Selection Checkbox on Cards */
.selection-checkbox {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.15s;
}

.selection-checkbox:hover {
    border-color: var(--primary);
}

.selection-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.equipment-card.is-selected {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

/* Journal Entries */
.journal-entries {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.journal-entry {
    position: relative;
    padding: var(--space-md);
    background: #f8f9fa;
    border-left: 3px solid var(--primary);
}

.journal-entry-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.journal-entry-content {
    color: #1a1a2e;
    line-height: 1.5;
    white-space: pre-wrap;
}

.journal-delete-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.journal-entry:hover .journal-delete-btn {
    opacity: 1;
}

.journal-delete-btn:hover {
    color: #ff3366;
}

/* Photo Lightbox */
.photo-lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Badges */
.equipment-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.equipment-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-ok {
    color: var(--success);
    background: var(--success-bg);
}

.status-warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.status-danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.status-lent {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Service Due Indicator */
.service-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.service-indicator.overdue {
    color: var(--danger);
    font-weight: 600;
}

.service-indicator.soon {
    color: var(--warning);
    font-weight: 500;
}

.service-indicator.upcoming {
    color: #00d4ff;
}

.service-indicator.scheduled {
    color: #94a3b8;
    font-size: 0.7rem;
}

/* Tasks Badge */
.tasks-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Lending Indicator */
.lending-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px var(--space-md);
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.equipment-card.is-lent .equipment-card-header {
    padding-top: calc(var(--space-md) + 28px);
}

/* Equipment age badge */
.age-badge {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 8px;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 5;
}

.age-badge i {
    font-size: 0.6rem;
}

/* Legacy equipment-item support */
.equipment-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
}

.equipment-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.equipment-info {
    flex: 1;
}

/* Pro/Premium feature badge */
.badge-pro {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px var(--space-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    border-radius: var(--radius-sm);
}

/* Feature locked overlay */
.feature-locked {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.feature-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--surface);
    opacity: 0.5;
    border-radius: inherit;
}

.equipment-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Forms - Angular, Bold */
.form-group {
    margin-bottom: var(--space-lg);
}

/* Icon Picker */
.icon-picker-container {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: var(--space-sm);
}

.form-label-required::after {
    content: ' *';
    color: #ff3366;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e8;
    background: #ffffff;
    font-size: 0.95rem;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: var(--space-xs);
}

.form-row {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Checklist styles - Bold, Angular */
.checklist-section {
    margin-bottom: var(--space-xl);
}

.checklist-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00d4ff;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid #00d4ff;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-sm);
    background: #f8f9fa;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-item:hover {
    background: #ffffff;
    border-left-color: #00d4ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.checklist-item.completed {
    opacity: 0.7;
}

.checklist-checkbox {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checklist-checkbox:hover {
    border-color: #00d4ff;
}

.checklist-checkbox.checked {
    background: linear-gradient(135deg, #00cc6a 0%, #00ff88 100%);
    border-color: #00cc6a;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 204, 106, 0.3);
}

.checklist-checkbox.checked::after {
    content: '\2713';
    font-weight: bold;
    font-size: 1rem;
}

.checklist-content {
    flex: 1;
}

.checklist-label {
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: #1a1a2e;
    font-size: 1rem;
}

.checklist-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.checklist-input {
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.checklist-input input {
    width: 120px;
    padding: 10px 12px;
    border: 2px solid #e0e0e8;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
}

.checklist-input input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.checklist-unit {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* Progress bar - Gradient */
.progress-bar {
    height: 6px;
    background: #e0e0e8;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    text-align: center;
    margin-bottom: var(--space-sm);
}

/* Page headers */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #1a1a2e;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    color: #64748b;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* =============================================
   LANDING PAGE - WILD, DYNAMIC, ADRENALINE
   ============================================= */

.landing {
    background: #ffffff;
    color: #1a1a2e;
    overflow-x: hidden;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
}

/* Diagonal Clip Paths */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-diagonal-reverse {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.clip-arrow {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

/* HERO - Full Impact */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.hero-bg {
    position: absolute;
    top: -10%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: center/cover;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 10% 100%);
    z-index: 2;
}

/* Floating geometric shapes */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    z-index: 0;
    animation: morphBlob 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    transform: rotate(45deg);
    opacity: 0.15;
    z-index: 0;
    animation: floatRotate 6s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1); }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: scale(1.1); }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes floatRotate {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(55deg) translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: var(--space-xl);
    text-align: left;
    margin-right: auto;
    margin-left: 5%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b35 100%);
    color: white;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
    transform: skewX(-5deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: skewX(-5deg) scale(1); }
    50% { transform: skewX(-5deg) scale(1.05); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #1a1a2e;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    transform: skewX(-5deg);
    padding: 16px 32px;
    font-size: 0.9rem;
}

.hero-actions .btn-primary span {
    display: inline-block;
    transform: skewX(5deg);
}

.hero-actions .btn-secondary {
    background: transparent;
    border: 2px solid #1a1a2e;
    color: #1a1a2e;
    transform: skewX(-5deg);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid rgba(0,0,0,0.1);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* SPORTS SECTION - Chaotic Grid */
.sports-section {
    position: relative;
    padding: 120px var(--space-md) 80px;
    background: #1a1a2e;
    color: white;
    margin-top: -60px;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}

.sports-section::before {
    content: '';
    position: absolute;
    top: 100px;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    transform: rotate(15deg);
    animation: floatRotate 10s ease-in-out infinite reverse;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #00d4ff;
    margin-bottom: var(--space-sm);
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid #00d4ff;
}

.section-heading {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Container for section content alignment */
.sports-section > .section-heading,
.features-section > .section-heading {
    max-width: calc(1200px + 2 * var(--space-md));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Section labels left-aligned within the content area (matching section-heading alignment) */
.sports-section > .section-label,
.features-section > .section-label {
    max-width: calc(1200px + 2 * var(--space-md));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

/* SPORTS GRID - Chaotic Masonry-like Layout */
.sports-grid {
    display: grid;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
}

@media (min-width: 768px) {
    .sports-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
    }
}

.sport-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

/* Varied card sizes for chaotic feel */
.sport-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.sport-card:nth-child(2) {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 10%);
}

.sport-card:nth-child(3) {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%, 0 90%);
}

.sport-card:nth-child(4) {
    grid-column: span 2;
    clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
}

.sport-card:hover {
    transform: scale(1.05) rotate(-1deg);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.sport-card-bg {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sport-card:hover .sport-card-bg {
    filter: brightness(0.6) saturate(1.4);
    transform: scale(1.15) rotate(2deg);
}

.sport-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,0.9) 100%);
}

.sport-card-name {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.sport-card-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FEATURES SECTION - Explosive Layout */
.features-section {
    position: relative;
    padding: 100px var(--space-md);
    background: #ffffff;
    color: #1a1a2e;
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
    margin-top: -40px;
}

.features-section .section-label {
    color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
    border-left-color: #ff3366;
}

.features-section .section-heading {
    color: #1a1a2e;
}

.features-grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
    text-align: left;
    padding: var(--space-xl);
    background: #ffffff;
    border: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: -10px 20px 40px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover::after {
    opacity: 1;
}

/* Feature Icons - Font Awesome with Vibrant Gradients */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    border-radius: 16px;
    font-size: 1.75rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon i {
    position: relative;
    z-index: 1;
}

/* Cyan gradient icon */
.feature-icon.icon-cyan {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 168, 204, 0.25) 100%);
    color: #00d4ff;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.feature-icon.icon-cyan::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Hot gradient icon (red/orange) */
.feature-icon.icon-hot {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15) 0%, rgba(255, 107, 53, 0.25) 100%);
    color: #ff3366;
    box-shadow: 0 8px 32px rgba(255, 51, 102, 0.2);
}

.feature-icon.icon-hot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #ff3366, #ff6b35);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Purple gradient icon */
.feature-icon.icon-purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
}

.feature-icon.icon-purple::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Gold gradient icon */
.feature-icon.icon-gold {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15) 0%, rgba(255, 149, 0, 0.25) 100%);
    color: #f59e0b;
    box-shadow: 0 8px 32px rgba(255, 204, 0, 0.2);
}

.feature-icon.icon-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #ffcc00, #ff9500);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card:hover .feature-icon.icon-cyan {
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

.feature-card:hover .feature-icon.icon-hot {
    box-shadow: 0 12px 40px rgba(255, 51, 102, 0.4);
}

.feature-card:hover .feature-icon.icon-purple {
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.feature-card:hover .feature-icon.icon-gold {
    box-shadow: 0 12px 40px rgba(255, 204, 0, 0.4);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a2e;
}

.feature-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
}

/* CTA SECTION - Maximum Impact */
.cta-section {
    position: relative;
    padding: 150px var(--space-md);
    overflow: hidden;
    background: #1a1a2e;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1602192103604-a03e95fd0a16?w=1920&q=80') center/cover;
    filter: brightness(0.15) saturate(1.5);
}

/* Dynamic diagonal stripes */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(0, 212, 255, 0.03) 50px,
        rgba(0, 212, 255, 0.03) 100px
    );
    animation: stripeMove 20s linear infinite;
}

@keyframes stripeMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    line-height: 1;
    color: white;
}

.cta-title span {
    display: block;
    background: linear-gradient(90deg, #00d4ff, #ff3366, #ffcc00, #00d4ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    font-size: 1rem;
    padding: 20px 50px;
    transform: skewX(-5deg);
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(255, 51, 102, 0.4); }
}

/* Sign In button - always vibrant */
#auth-btn {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b35 100%);
    border: none;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    transform: skewX(-5deg);
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#auth-btn:hover {
    transform: skewX(-5deg) translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.6);
}

/* When user is signed in, show user info differently */
#auth-btn:has(.user-info) {
    background: transparent;
    border: 2px solid #e0e0e8;
    color: #1a1a2e;
    transform: none;
    box-shadow: none;
    padding: 8px 16px;
}

#auth-btn:has(.user-info):hover {
    border-color: #00d4ff;
    transform: none;
    box-shadow: none;
}

/* Mobile responsive for landing */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px var(--space-md) 40px;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 50%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    }

    .hero-overlay {
        width: 100%;
        height: 50%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
        padding-top: 50%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: var(--space-lg);
    }

    .hero-stat {
        text-align: center;
    }

    .sports-section {
        padding-top: 80px;
        margin-top: -30px;
        clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    }

    .sports-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .sport-card:nth-child(1),
    .sport-card:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .sport-card {
        clip-path: none !important;
        border-radius: var(--radius-lg);
    }

    .features-section {
        clip-path: none;
        margin-top: 0;
        padding: 60px var(--space-md);
    }

    .cta-section {
        padding: 80px var(--space-md);
    }
}

/* Floating dots - disabled due to overflow-x: hidden breaking position: fixed */
/* The particles would need to be actual DOM elements outside the .landing container to work properly */

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.2); }
}

/* Modal - Angular, bold */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--space-md);
}

.modal {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Gradient accent on modal */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid #e0e0e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff3366;
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid #e0e0e8;
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* Trip tabs */
.trip-tab {
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.trip-tab:hover {
    color: #1a1a2e;
}

.trip-tab.active {
    color: #00d4ff;
}

.trip-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
}

/* Print styles */
@media print {
    .header,
    .nav,
    .btn,
    .no-print {
        display: none !important;
    }

    .main {
        max-width: none;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .checklist-item {
        break-inside: avoid;
    }
}

/* Print-specific view */
.print-view {
    max-width: 800px;
    margin: 0 auto;
}

.print-header {
    text-align: center;
    padding: var(--space-lg);
    border-bottom: 2px solid var(--text);
    margin-bottom: var(--space-lg);
}

.print-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.print-date {
    color: var(--text-muted);
}

.print-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.print-meta-item {
    font-size: 0.875rem;
}

.print-meta-label {
    font-weight: 600;
}

/* Checklist history */
.checklist-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background: var(--surface);
}

.checklist-history-info {
    flex: 1;
}

.checklist-history-name {
    font-weight: 600;
}

.checklist-history-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* User info */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-md {
    margin-top: var(--space-md);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.hidden {
    display: none !important;
}

/* Mobile bottom navigation */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--space-sm);
    justify-content: space-around;
    z-index: 100;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm);
    transition: color 0.2s;
}

.mobile-nav-link.active {
    color: #00d4ff;
}

.mobile-nav-link:hover {
    color: #1a1a2e;
}

.mobile-nav-icon {
    font-size: 1.25rem;
}

@media (min-width: 640px) {
    .mobile-nav {
        display: none;
    }
}

/* Add padding to main content to account for mobile nav */
@media (max-width: 639px) {
    .main {
        padding-bottom: 80px;
    }
}

/* ==================
   Equipment Detail View
   ================== */

.equipment-detail {
    max-width: 800px;
    margin: 0 auto;
}

.equipment-detail-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: #ffffff;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Gradient top bar */
.equipment-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
}

.equipment-detail-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    flex-shrink: 0;
    position: relative;
}

/* Gradient border for icon */
.equipment-detail-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.equipment-detail-info {
    flex: 1;
}

.equipment-detail-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #1a1a2e;
}

.equipment-detail-type {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.equipment-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-meta-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.detail-meta-value {
    font-weight: 700;
    color: #1a1a2e;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: #ffffff;
    border: 2px solid #e0e0e8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cool);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.quick-action-btn:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.quick-action-btn:hover::before {
    transform: scaleX(1);
}

.quick-action-btn .action-icon {
    font-size: 1.5rem;
}

.quick-action-btn .action-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Service History Timeline */
.service-timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.service-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.service-entry {
    position: relative;
    padding-bottom: var(--space-lg);
}

.service-entry::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) + 4px);
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.service-entry.overdue::before {
    background: var(--danger);
}

.service-entry.upcoming::before {
    background: var(--warning);
}

.service-entry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.service-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.service-entry-type {
    font-weight: 600;
}

.service-entry-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-entry-next {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--border);
}

.service-entry-next.overdue {
    color: var(--danger);
}

.service-entry-next.soon {
    color: var(--warning);
}

/* Tasks List */
.tasks-section {
    margin-bottom: var(--space-lg);
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.task-item.priority-high {
    border-left: 3px solid var(--danger);
}

.task-item.priority-medium {
    border-left: 3px solid var(--warning);
}

.task-item.priority-low {
    border-left: 3px solid var(--success);
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.task-checkbox:hover {
    border-color: var(--primary);
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.task-checkbox.checked::after {
    content: '\2713';
    font-size: 0.875rem;
    font-weight: bold;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: var(--space-sm);
}

.task-due {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.task-due.due-soon {
    color: var(--warning);
}

.task-due.overdue {
    color: var(--danger);
    font-weight: 600;
}

.task-item.task-overdue {
    border-left: 3px solid var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.priority-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.priority-badge.high {
    background: var(--danger-bg);
    color: var(--danger);
}

.priority-badge.medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.priority-badge.low {
    background: var(--success-bg);
    color: var(--success);
}

/* Lending Section */
.lending-section {
    margin-bottom: var(--space-lg);
}

.lending-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.lending-active-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.lending-active-info h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.lending-active-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.lending-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.lending-history-item:last-child {
    border-bottom: none;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.qr-code-container {
    display: inline-block;
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.qr-code-container canvas,
.qr-code-container img {
    display: block;
}

.qr-id {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title .count {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    background: var(--background);
    border-radius: 100px;
    color: var(--text-muted);
}

/* Alerts Banner */
.alerts-banner {
    margin-bottom: var(--space-lg);
}

.alert-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.alert-item.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
}

.alert-item.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
}

.alert-icon {
    font-size: 1.25rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.alert-item.alert-danger .alert-title {
    color: var(--danger);
}

.alert-item.alert-warning .alert-title {
    color: var(--warning);
}

.alert-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Filter/Sort Bar */
.filter-bar {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e0e0e8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}

.filter-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.filter-btn.active {
    background: var(--gradient-cool);
    border-color: transparent;
    color: white;
}

.filter-btn .count {
    margin-left: var(--space-xs);
    opacity: 0.7;
}

/* Empty State Enhancement */
.empty-state-card {
    text-align: center;
    padding: var(--space-xl) * 2;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-card .empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.equipment-card {
    animation: slideIn 0.3s ease;
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    cursor: pointer;
}

.back-btn:hover {
    color: var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
}

.tab {
    padding: var(--space-md) var(--space-lg);
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* ==========================================
   FISHBONE TIMELINE
   Visual timeline showing next 12 months
   ========================================== */

.fishbone-container {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.fishbone-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed, #ff3366);
}

.fishbone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.fishbone-title {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.fishbone-title i {
    color: #00d4ff;
    font-size: 1rem;
}

.fishbone-legend {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.75rem;
    color: #64748b;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Timeline filtering on legend hover */
.fishbone-container.filter-trip .fishbone-event:not([data-event-type="trip"]),
.fishbone-container.filter-service .fishbone-event:not([data-event-type="service"]),
.fishbone-container.filter-overdue .fishbone-event:not([data-is-overdue="true"]) {
    opacity: 0.15;
    filter: grayscale(1);
    pointer-events: none;
}

.fishbone-container.filter-trip .fishbone-event[data-event-type="trip"],
.fishbone-container.filter-service .fishbone-event[data-event-type="service"],
.fishbone-container.filter-overdue .fishbone-event[data-is-overdue="true"] {
    transform: scale(1.1);
    z-index: 10;
}

.fishbone-timeline {
    position: relative;
    height: 220px;
    margin: 0 var(--space-md);
}

.fishbone-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    transform: translateY(-50%);
    background: #e0e0e8;
    z-index: 1;
}

.fishbone-bar-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        #00d4ff 0%,
        #7c3aed 50%,
        #ff3366 100%
    );
    opacity: 0.3;
}

.fishbone-now-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.fishbone-now-pulse {
    width: 16px;
    height: 16px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.3);
    animation: nowPulse 2s infinite;
}

.fishbone-now-marker span {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00d4ff;
    white-space: nowrap;
}

@keyframes nowPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.1);
    }
}

.fishbone-months {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    z-index: 2;
}

.fishbone-month {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fishbone-month-tick {
    width: 2px;
    height: 12px;
    background: #64748b;
    margin-bottom: 4px;
}

.fishbone-month-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 16px;
}

.fishbone-events {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.fishbone-event {
    position: absolute;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.2s;
}

.fishbone-event:hover {
    transform: translateX(-50%) scale(1.05);
    z-index: 10;
}

.fishbone-event.top {
    bottom: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fishbone-event.bottom {
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center nodes on timeline - services (28px node = 14px offset) */
.fishbone-event.is-service.top {
    bottom: calc(50% - 14px);
}

.fishbone-event.is-service.bottom {
    top: calc(50% - 14px);
}

/* Center nodes on timeline - trips (48px node = 24px offset) */
.fishbone-event.is-trip.top {
    bottom: calc(50% - 24px);
}

.fishbone-event.is-trip.bottom {
    top: calc(50% - 24px);
}

/* Center nodes on timeline - trips with images (60px node = 30px offset) */
.fishbone-event.is-trip.has-image.top {
    bottom: calc(50% - 30px);
}

.fishbone-event.is-trip.has-image.bottom {
    top: calc(50% - 30px);
}

.fishbone-bone {
    width: 3px;
    height: 50px;
    background: #00d4ff;
}

.fishbone-event.top .fishbone-bone {
    order: 2;
}

.fishbone-event.top .fishbone-node {
    order: 3;
}

.fishbone-event.bottom .fishbone-bone {
    order: 2;
}

.fishbone-event.bottom .fishbone-node {
    order: 1;
}

.fishbone-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00d4ff;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    overflow: hidden;
}

.fishbone-node.with-image {
    width: 48px;
    height: 48px;
    padding: 0;
}

.fishbone-node-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fishbone-event.has-image .fishbone-bone {
    height: 35px;
}

.fishbone-event.has-image.top .fishbone-bone {
    top: auto;
    bottom: 100%;
}

.fishbone-event.has-image.bottom .fishbone-bone {
    bottom: auto;
    top: 100%;
}

.fishbone-event.overdue .fishbone-node {
    animation: overdueGlow 1.5s infinite;
}

@keyframes overdueGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 51, 102, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 51, 102, 0.6);
    }
}

.fishbone-label {
    text-align: center;
    max-width: 100px;
    padding: 4px 0;
}

.fishbone-event.is-trip .fishbone-label {
    max-width: 160px;
}

/* Hover popup */
.fishbone-popup {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 180px;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) translateX(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    left: 50%;
}

.fishbone-event.top .fishbone-popup {
    bottom: calc(100% + 10px);
    top: auto;
}

.fishbone-event.bottom .fishbone-popup {
    top: calc(100% + 10px);
    bottom: auto;
}

.fishbone-event:hover .fishbone-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.fishbone-popup-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a1a2e;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fishbone-popup-location {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: var(--space-xs);
}

.fishbone-popup-location i {
    color: #00d4ff;
    margin-right: 4px;
}

.fishbone-popup-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.fishbone-popup-type.overdue {
    color: #ff3366;
}

.fishbone-popup-date {
    font-size: 0.75rem;
    color: #64748b;
}

.fishbone-popup-date i {
    margin-right: 4px;
}

.fishbone-event.top .fishbone-label {
    order: 1;
    margin-bottom: 4px;
}

.fishbone-event.bottom .fishbone-label {
    order: 3;
    margin-top: 4px;
}

.fishbone-label-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.fishbone-event.is-trip .fishbone-label-title {
    max-width: 160px;
    font-size: 0.75rem;
}

.fishbone-label-date {
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 2px;
}

.fishbone-label-subtitle {
    font-size: 0.55rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 1px;
}

.fishbone-event.is-trip .fishbone-label-subtitle {
    color: #00d4ff;
    max-width: 160px;
    font-size: 0.6rem;
}

.fishbone-event.is-service .fishbone-label-subtitle {
    font-size: 0.5rem;
    max-width: 80px;
    color: #ffcc00;
}

.fishbone-event.is-service.overdue .fishbone-label-subtitle {
    color: #ff3366;
}

.fishbone-empty {
    text-align: center;
    padding: var(--space-xl);
    color: #64748b;
}

.fishbone-empty i {
    font-size: 2rem;
    color: #00d4ff;
    opacity: 0.5;
    margin-bottom: var(--space-md);
    display: block;
}

.fishbone-empty p {
    font-size: 0.9rem;
}

/* Timeline toggle buttons */
.fishbone-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.fishbone-toggles {
    display: flex;
    gap: 4px;
}

.timeline-toggle {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    transition: all 0.2s;
    position: relative;
}

.timeline-toggle:hover {
    background: #e2e8f0;
    color: #64748b;
}

.timeline-toggle.active {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: white;
}

/* Timeline toggle tooltips */
.timeline-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 100;
}

.timeline-toggle::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a2e;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 100;
}

.timeline-toggle:hover::after,
.timeline-toggle:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Make trips visually dominant (Concept 1 + 3) */
.fishbone-event.is-trip .fishbone-node {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    z-index: 10;
}

.fishbone-event.is-trip .fishbone-bone {
    height: 35px;
    width: 4px;
}

.fishbone-event.is-trip .fishbone-label-title {
    font-size: 0.8rem;
    font-weight: 800;
    max-width: 120px;
    white-space: normal;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.fishbone-event.is-trip.has-image .fishbone-node {
    width: 60px;
    height: 60px;
    border-width: 3px;
}

/* Services are smaller (support role) */
.fishbone-event.is-service .fishbone-node {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
}

.fishbone-event.is-service .fishbone-bone {
    height: 18px;
    width: 2px;
}

.fishbone-event.is-service .fishbone-label-title {
    font-size: 0.6rem;
    max-width: 60px;
}

.fishbone-event.is-service .fishbone-label-date {
    font-size: 0.55rem;
}

/* Lanes mode (Concept 4) - trips top, services bottom */
.fishbone-container.lanes-mode .fishbone-timeline {
    height: 180px;
}

.fishbone-container.lanes-mode .fishbone-bar {
    top: 50%;
}

.fishbone-container.lanes-mode .fishbone-event.is-trip {
    flex-direction: column;
}

.fishbone-container.lanes-mode .fishbone-event.is-trip .fishbone-bone {
    bottom: 100%;
    top: auto;
}

.fishbone-container.lanes-mode .fishbone-event.is-trip .fishbone-label {
    order: 1;
    margin-bottom: 4px;
}

.fishbone-container.lanes-mode .fishbone-event.is-service {
    flex-direction: column-reverse;
}

.fishbone-container.lanes-mode .fishbone-event.is-service .fishbone-bone {
    top: 100%;
    bottom: auto;
}

.fishbone-container.lanes-mode .fishbone-event.is-service .fishbone-label {
    order: 3;
    margin-top: 4px;
}

/* Dim services mode (Concept 5) - focus on trips */
.fishbone-container.dim-services .fishbone-event.is-service {
    opacity: 0.4;
    transition: opacity 0.3s;
}

.fishbone-container.dim-services .fishbone-event.is-service:hover {
    opacity: 1;
}

.fishbone-container.dim-services .fishbone-event.is-service.overdue {
    opacity: 0.7;
}

/* Overdue services always visible */
.fishbone-container.dim-services .fishbone-event.is-service.overdue:hover {
    opacity: 1;
}

/* Multi-row mode (Concept 6) - Three distinct rows */
.fishbone-container.multi-row-mode .fishbone-timeline {
    height: 320px;
    padding-top: 100px;
    padding-bottom: 100px;
}

.fishbone-container.multi-row-mode .fishbone-bar {
    top: 50%;
}

/* Row labels */
.fishbone-container.multi-row-mode::before {
    content: 'TRIPS';
    position: absolute;
    left: var(--space-sm);
    top: 120px;
    font-size: 0.55rem;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.fishbone-container.multi-row-mode::after {
    content: 'SERVICES';
    position: absolute;
    left: var(--space-sm);
    bottom: 100px;
    font-size: 0.55rem;
    font-weight: 700;
    color: #ffcc00;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Trips always on top row */
.fishbone-container.multi-row-mode .fishbone-event.is-trip {
    flex-direction: column;
}

.fishbone-container.multi-row-mode .fishbone-event.is-trip .fishbone-bone {
    top: 100%;
    bottom: auto;
    height: 60px;
}

.fishbone-container.multi-row-mode .fishbone-event.is-trip .fishbone-label {
    order: 1;
    margin-bottom: 4px;
}

/* Services on bottom row - non-overdue */
.fishbone-container.multi-row-mode .fishbone-event.is-service:not(.overdue) {
    flex-direction: column-reverse;
}

.fishbone-container.multi-row-mode .fishbone-event.is-service:not(.overdue) .fishbone-bone {
    top: auto;
    bottom: 100%;
    height: 40px;
}

.fishbone-container.multi-row-mode .fishbone-event.is-service:not(.overdue) .fishbone-label {
    order: 3;
    margin-top: 4px;
}

/* Overdue items get special treatment - middle-bottom with red accent */
.fishbone-container.multi-row-mode .fishbone-event.is-service.overdue {
    flex-direction: column-reverse;
}

.fishbone-container.multi-row-mode .fishbone-event.is-service.overdue .fishbone-bone {
    top: auto;
    bottom: 100%;
    height: 55px;
    background: linear-gradient(to top, #ff3366 0%, rgba(255,51,102,0.3) 100%) !important;
}

.fishbone-container.multi-row-mode .fishbone-event.is-service.overdue .fishbone-label {
    order: 3;
    margin-top: 4px;
}

/* Responsive fishbone */
@media (max-width: 768px) {
    .fishbone-timeline {
        height: 180px;
    }

    .fishbone-bone {
        height: 35px;
    }

    .fishbone-node {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    .fishbone-label {
        display: none;
    }

    .fishbone-month-label {
        font-size: 0.55rem;
    }
}

/* ==========================================
   Gear Picker Modal - Trip gear selection
   ========================================== */

.gear-picker-modal {
    display: flex;
    flex-direction: column;
}

.gear-picker-item {
    border-radius: 8px;
    transition: all 0.15s ease;
}

.gear-picker-item:hover {
    border-color: #7c3aed !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.gear-picker-item.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.gear-picker-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gear-picker-tabs::-webkit-scrollbar {
    display: none;
}

.gear-picker-tab {
    transition: all 0.15s ease;
}

.gear-picker-tab:hover {
    color: #7c3aed !important;
}

/* ==========================================
   Location Card - Trip location display
   ========================================== */

.location-card {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.location-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Stat Widget - Expandable Dashboard Cards
   ========================================== */

.stats-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-widget {
    background: #ffffff;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

.stat-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-widget.expanded {
    grid-column: 1 / -1;
    text-align: left;
}

.stat-widget-main {
    position: relative;
}

.stat-widget.expanded .stat-widget-main {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #e0e0e8;
    margin-bottom: var(--space-md);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
}

.stat-widget.expanded .stat-value {
    font-size: 2rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-top: var(--space-xs);
}

.stat-widget.expanded .stat-label {
    margin-top: 0;
}

.stat-expand-icon {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: var(--space-sm);
}

.stat-widget.expanded .stat-expand-icon {
    margin-top: 0;
    margin-left: auto;
}

.stat-widget-details {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: #f8f9fa;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

.widget-list-item:hover {
    background: #f0f0f5;
}

.trip-countdown {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    background: #f0f0f5;
}

.trip-countdown.soon {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}

.trip-countdown.urgent {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
}

/* ==========================================
   Header Search
   ========================================== */

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: #f0f0f5;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 280px;
    transition: all 0.2s;
}

.header-search:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--primary);
}

.header-search > i {
    color: #94a3b8;
    font-size: 0.875rem;
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search-kbd {
    background: white;
    border: 1px solid #e0e0e8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: #64748b;
    font-family: system-ui, -apple-system, sans-serif;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.header-search-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background 0.1s;
}

.header-search-item:hover,
.header-search-item.selected {
    background: #f0f4ff;
}

.header-search-item > i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f5;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.8rem;
}

.header-search-item-content {
    flex: 1;
    min-width: 0;
}

.header-search-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-item-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-item-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.header-search-empty {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    color: #94a3b8;
    font-size: 0.875rem;
}

.header-search-empty i {
    font-size: 1rem;
}

/* Responsive header search */
@media (max-width: 768px) {
    .header-search {
        min-width: 140px;
        max-width: 180px;
        padding: 6px 10px;
    }

    .header-search-kbd {
        display: none;
    }

    .header-search-results {
        position: fixed;
        top: 56px;
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
}

/* ==========================================
   Header Icon Buttons
   ========================================== */

.header-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.2s;
    border-radius: 50%;
}

.header-icon-btn:hover {
    color: var(--primary);
    background: rgba(255, 77, 77, 0.1);
}

/* ==========================================
   Notification Center
   ========================================== */

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.2s;
}

.notification-btn:hover {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--gradient-hot);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.notification-dropdown {
    position: fixed;
    top: 60px;
    right: var(--space-md);
    width: 360px;
    max-height: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    overflow: hidden;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: #f8f9fa;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid #f0f0f5;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.read {
    opacity: 0.6;
}

.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.danger {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
}

.notification-icon.warning {
    background: rgba(255, 204, 0, 0.15);
    color: #cc9900;
}

.notification-icon.info {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.notification-message {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notification-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: #64748b;
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* ==========================================
   Drag & Drop Styles
   ========================================== */

.gear-drag-item {
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.gear-drag-item:active {
    cursor: grabbing;
}

.gear-drag-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.gear-drag-item.drag-over {
    border-top: 3px solid var(--primary);
    margin-top: -3px;
}

.gear-drag-item.drag-over::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.drag-handle {
    cursor: grab;
    color: #94a3b8;
    padding: var(--space-sm);
    margin-right: var(--space-sm);
}

.drag-handle:hover {
    color: #64748b;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media (max-width: 640px) {
    .stats-widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-widget.expanded {
        grid-column: 1 / -1;
    }

    .notification-dropdown {
        width: calc(100vw - var(--space-md) * 2);
        right: var(--space-md);
    }

    .command-palette {
        max-width: calc(100vw - var(--space-md) * 2);
        margin: 0 var(--space-md);
    }

    .command-footer {
        display: none;
    }
}

/* ==========================================
   Logbook / Activity Feed
   ========================================== */

.logbook-events {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.logbook-event {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid #f0f0f5;
    cursor: pointer;
    transition: all 0.15s ease;
}

.logbook-event:last-child {
    border-bottom: none;
}

.logbook-event:hover {
    background: #f8f9fa;
}

.logbook-event-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    flex-shrink: 0;
    font-size: 1rem;
}

.logbook-event-content {
    flex: 1;
    min-width: 0;
}

.logbook-event-title {
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logbook-event-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logbook-event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.logbook-event-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    background: #f0f0f5;
    color: #64748b;
}

.logbook-event-type.activity { background: rgba(0, 255, 136, 0.15); color: #00cc6a; }
.logbook-event-type.service { background: rgba(255, 204, 0, 0.15); color: #cc9900; }
.logbook-event-type.checklist { background: rgba(0, 212, 255, 0.15); color: #00a8cc; }
.logbook-event-type.lending { background: rgba(124, 58, 237, 0.15); color: #7c3aed; }
.logbook-event-type.trip { background: rgba(255, 107, 53, 0.15); color: #ff6b35; }

.logbook-event-date {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .logbook-event {
        flex-wrap: wrap;
    }

    .logbook-event-meta {
        flex-direction: row;
        width: 100%;
        margin-top: var(--space-xs);
        padding-left: calc(44px + var(--space-md));
    }
}

/* ===========================================
   Gear Corner Table
   =========================================== */
.gear-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gear-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e8;
}

.gear-table th {
    padding: var(--space-md);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
    user-select: none;
}

.gear-table th:hover {
    color: #1a1a2e;
    background: #f0f0f5;
}

.gear-table tbody tr {
    border-bottom: 1px solid #f0f0f5;
    transition: background 0.15s;
}

.gear-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.04);
}

.gear-table td {
    padding: var(--space-sm) var(--space-md);
    vertical-align: middle;
}

@media (max-width: 768px) {
    .gear-table {
        font-size: 0.8rem;
    }

    .gear-table th,
    .gear-table td {
        padding: var(--space-sm);
    }

    /* Hide less important columns on mobile */
    .gear-table th:nth-child(3),
    .gear-table td:nth-child(3),
    .gear-table th:nth-child(4),
    .gear-table td:nth-child(4) {
        display: none;
    }
}

/* ===========================================
   Gear Gallery View
   =========================================== */
.gear-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.gear-gallery-card {
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gear-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #00d4ff;
}

.gear-gallery-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gear-gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
}

.gear-gallery-status {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gear-gallery-badge {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.gear-gallery-badge.lent {
    background: #7c3aed;
}

.gear-gallery-info {
    padding: var(--space-md);
}

.gear-gallery-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gear-gallery-meta {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gear-gallery-sport {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}

.gear-gallery-sport span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dark mode */
[data-theme="dark"] .gear-gallery-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .gear-gallery-name {
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .gear-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .gear-gallery-image {
        height: 120px;
    }

    .gear-gallery-info {
        padding: var(--space-sm);
    }

    .gear-gallery-name {
        font-size: 0.85rem;
    }
}

/* ===========================================
   Lazy Loading
   =========================================== */
.lazy {
    background-color: #f0f0f5;
    background-image: none !important;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Skeleton loading placeholder */
.skeleton {
    background: linear-gradient(90deg, #f0f0f5 25%, #e0e0e8 50%, #f0f0f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===========================================
   Quick Add FAB (Floating Action Button)
   =========================================== */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3366, #ff6b35);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 51, 102, 0.5);
}

.fab-main.active {
    background: #1a1a2e;
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.85rem;
}

.fab-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--primary);
    color: white;
}

.fab-item i {
    width: 20px;
    text-align: center;
}

@media (max-width: 640px) {
    .fab-container {
        bottom: 80px; /* Above mobile nav */
        right: 16px;
    }

    .fab-main {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .fab-menu {
        bottom: 60px;
    }
}

/* ===========================================
   QR Code Scan Page
   =========================================== */
.scan-page {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.scan-header {
    text-align: center;
    padding: var(--space-xl) 0;
}

.scan-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: var(--space-md) 0 var(--space-xs);
    color: #1a1a2e;
}

.scan-type {
    color: #64748b;
    font-size: 0.9rem;
}

.scan-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.scan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

.scan-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.scan-card {
    background: white;
    padding: var(--space-lg);
    border: 1px solid #e0e0e8;
}

.scan-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.scan-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    font-weight: 700;
    font-size: 1.1rem;
}

.scan-status.status-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.scan-status.status-warning {
    background: rgba(255, 204, 0, 0.1);
    color: #d97706;
}

.scan-status.status-danger {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
}

.scan-lent-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    margin-top: var(--space-sm);
}

.scan-service-info,
.scan-tasks-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: #64748b;
    font-size: 0.9rem;
}

.scan-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.scan-detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #f0f0f5;
}

.scan-detail-row:last-child {
    border-bottom: none;
}

.scan-detail-row .label {
    color: #64748b;
    font-size: 0.85rem;
}

.scan-detail-row .value {
    font-weight: 600;
    color: #1a1a2e;
}

.scan-found-card {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-color: #ffcccc;
}

.scan-found-card h3 {
    color: #ff3366;
}

.scan-found-card p {
    color: #64748b;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.scan-branding {
    text-align: center;
    padding: var(--space-xl) 0;
    color: #94a3b8;
}

.scan-branding p {
    margin: var(--space-xs) 0;
}

.scan-logo {
    font-size: 1.5rem;
    color: #1a1a2e;
    text-decoration: none;
}

/* ===========================================
   Dashboard Widgets System
   =========================================== */

/* Widget grid container */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Widget base styles */
.dashboard-widget {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Widget sizes */
.dashboard-widget[data-widget-size="full"] {
    grid-column: 1 / -1;
}

.dashboard-widget[data-widget-size="half"] {
    grid-column: span 1;
}

/* Widget header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    cursor: grab;
    user-select: none;
}

.widget-header:active {
    cursor: grabbing;
}

.widget-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.widget-title i {
    font-size: 0.9rem;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.widget-size-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.widget-size-btn:hover {
    opacity: 1;
    color: var(--primary);
}

.widget-drag-handle {
    color: var(--text-muted);
    opacity: 0.4;
    padding: 6px 8px;
    cursor: grab;
}

.widget-drag-handle:hover {
    opacity: 0.8;
}

/* Widget content */
.widget-content {
    padding: var(--space-lg);
}

/* Drag states */
.dashboard-widget.dragging {
    opacity: 0.5;
    border: 2px dashed var(--primary);
    box-shadow: var(--shadow-glow);
}

.dashboard-widget.drag-over {
    border: 2px solid var(--primary);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: var(--shadow-glow);
    transform: scale(1.01);
}

/* Widget settings modal */
.widget-settings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.widget-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--background);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.widget-settings-item:hover {
    border-color: var(--primary);
}

.widget-settings-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.widget-settings-info i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.widget-settings-name {
    font-weight: 600;
    color: var(--text);
}

.widget-settings-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.widget-settings-size-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px;
}

.widget-settings-size-toggle button {
    background: none;
    border: none;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-settings-size-toggle button.active {
    background: var(--gradient-cool);
    color: white;
}

.widget-settings-size-toggle button:hover:not(.active) {
    color: var(--text);
}

/* Dashboard widget toggle (standalone, no checkbox) */
.widget-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
}

.widget-toggle.active {
    background: var(--gradient-cool);
}

.widget-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.widget-toggle.active::after {
    left: 23px;
}

/* Customize button in header */
.btn-customize {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-customize:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Reset button in modal */
.btn-reset {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Responsive: Stack widgets on mobile */
@media (max-width: 768px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    .dashboard-widget[data-widget-size="half"] {
        grid-column: 1 / -1;
    }

    .widget-header {
        padding: var(--space-sm) var(--space-md);
    }

    .widget-content {
        padding: var(--space-md);
    }

    .widget-settings-item {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .widget-settings-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   Toast Notification System
   ========================================== */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-sm);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-warning i { color: var(--warning); }
.toast-info i { color: var(--primary); }

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--primary); }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text);
}

.toast-action {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.toast-action:hover {
    background: var(--primary-alpha);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile toast positioning */
@media (max-width: 768px) {
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: calc(70px + var(--space-md));
        max-width: none;
    }

    .toast {
        transform: translateY(120%);
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast.hide {
        transform: translateY(120%);
    }
}

/* ==========================================
   PWA Install Banner
   ========================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-top: 2px solid var(--brand-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cool);
    border-radius: 12px;
    flex-shrink: 0;
}

.pwa-install-icon i {
    font-size: 1.5rem;
    color: white;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwa-install-text strong {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.pwa-install-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-cool);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.pwa-install-dismiss {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-install-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .pwa-install-content {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .pwa-install-icon {
        width: 40px;
        height: 40px;
    }

    .pwa-install-icon i {
        font-size: 1.25rem;
    }

    .pwa-install-text strong {
        font-size: 0.9rem;
    }

    .pwa-install-text span {
        font-size: 0.75rem;
    }

    .pwa-install-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }

    .pwa-install-dismiss {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================
   Keyboard Shortcuts Help Modal
   ========================================== */
.keyboard-help-modal .modal {
    max-width: 420px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.shortcut-row:last-child {
    border-bottom: none;
}

.shortcut-row kbd {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.shortcut-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Skeleton Loading
   ========================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--border-subtle) 25%,
        var(--bg) 50%,
        var(--border-subtle) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius);
}

.skeleton-image {
    height: 200px;
    border-radius: var(--radius);
}

/* Equipment card skeleton */
.equipment-card-skeleton {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
}

.equipment-card-skeleton .skeleton-image {
    height: 140px;
    margin-bottom: var(--space-md);
}

.equipment-card-skeleton .skeleton-title {
    margin-bottom: var(--space-sm);
}

.equipment-card-skeleton .skeleton-text {
    height: 0.8em;
}

/* ==========================================
   Empty State Actions (Contextual CTAs)
   ========================================== */
.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.empty-state-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.empty-state-action:hover {
    border-color: var(--primary);
    border-style: solid;
    transform: translateY(-2px);
}

.empty-state-action i {
    font-size: 1.5rem;
    color: var(--primary);
}

.empty-state-action span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.empty-state-action small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   Service Calendar View
   ========================================== */
.calendar-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.calendar-nav {
    display: flex;
    gap: var(--space-sm);
}

.calendar-nav-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    padding: var(--space-sm);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.calendar-day {
    min-height: 80px;
    padding: var(--space-xs);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface);
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: var(--bg);
}

.calendar-day.other-month {
    background: var(--bg);
    opacity: 0.5;
}

.calendar-day.today {
    background: var(--primary-alpha);
}

.calendar-day-number {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.calendar-day.today .calendar-day-number {
    color: var(--primary);
    font-weight: 700;
}

.calendar-event {
    font-size: 0.7rem;
    padding: 2px var(--space-xs);
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event.service {
    background: var(--warning-bg);
    color: var(--warning);
    border-left: 2px solid var(--warning);
}

.calendar-event.certification {
    background: var(--danger-bg);
    color: var(--danger);
    border-left: 2px solid var(--danger);
}

.calendar-event.task {
    background: var(--primary-alpha);
    color: var(--primary);
    border-left: 2px solid var(--primary);
}

/* ==========================================
   Gear Comparison View
   ========================================== */
.comparison-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th:first-child {
    width: 150px;
}

.comparison-item-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.comparison-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg);
}

.comparison-item-name {
    font-weight: 600;
    color: var(--text);
}

.comparison-item-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comparison-highlight {
    background: var(--success-bg);
    font-weight: 600;
}

.comparison-remove {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--danger);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Import/Export Styles
   ========================================== */
.import-export-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.import-export-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.import-export-title i {
    color: var(--primary);
}

.import-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.import-drop-zone:hover,
.import-drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-alpha);
}

.import-drop-zone i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.import-drop-zone p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.import-drop-zone small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.export-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.export-option {
    flex: 1;
    min-width: 150px;
    padding: var(--space-md);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.export-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.export-option i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.export-option span {
    font-weight: 500;
    color: var(--text);
}

/* ==========================================
   Equipment Templates
   ========================================== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.template-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hot);
}

.template-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.template-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.template-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.template-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.template-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.template-item-tag {
    font-size: 0.75rem;
    background: var(--bg);
    color: var(--text-muted);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
}

/* ==========================================
   Drag Reorder
   ========================================== */
.sortable-item {
    position: relative;
    transition: transform 0.2s ease;
}

.sortable-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.sortable-item.drag-over {
    border-top: 2px solid var(--primary);
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: var(--space-sm);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.drag-handle:hover {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

/* ==========================================
   Bulk Edit Mode
   ========================================== */
.bulk-edit-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bulk-edit-bar.visible {
    transform: translateY(0);
}

.bulk-edit-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.bulk-edit-count {
    font-weight: 600;
    color: var(--primary);
}

.bulk-edit-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ==========================================
   Global Search Improvements
   ========================================== */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: var(--space-xs);
}

.search-results-section {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.search-results-section:last-child {
    border-bottom: none;
}

.search-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: var(--space-xs) var(--space-md);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background: var(--bg);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-icon i {
    color: var(--primary);
    font-size: 0.9rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-result-badge {
    font-size: 0.7rem;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-muted);
}

.search-recent {
    padding: var(--space-md);
}

.search-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.search-recent-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-recent-clear {
    font-size: 0.75rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.search-filters {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
}

.search-filter-chip {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.search-filter-chip:hover,
.search-filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-keyboard-hint {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg);
    border-top: 1px solid var(--border-subtle);
}

.search-keyboard-hint kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.7rem;
}

/* ==========================================
   Dark Mode Refinements
   ========================================== */
[data-theme="dark"] {
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

[data-theme="dark"] .toast {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .calendar-day {
    border-color: var(--border);
}

[data-theme="dark"] .comparison-table th,
[data-theme="dark"] .comparison-table td {
    border-color: var(--border);
}

[data-theme="dark"] .template-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

[data-theme="dark"] .search-results-dropdown {
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

[data-theme="dark"] .bulk-edit-bar {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

/* ==========================================
   VERTICAL TIMELINE FOR TRIP AGENDA
   ========================================== */

.vertical-timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

/* The main connecting line */
.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
    border-radius: 3px;
}

/* Day headers */
.timeline-day-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    position: relative;
    z-index: 2;
}

.timeline-day-header.is-past {
    opacity: 0.6;
}

.timeline-day-marker {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.timeline-day-header.is-today .timeline-day-marker {
    background: linear-gradient(135deg, #ff3366 0%, #ffcc00 100%);
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.timeline-day-marker .day-num {
    font-size: 1.3rem;
}

.timeline-day-info {
    flex: 1;
}

.timeline-day-label {
    font-weight: 800;
    font-size: 1rem;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-day-sub {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.day-badge {
    background: #7c3aed20;
    color: #7c3aed;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.today-badge {
    background: linear-gradient(135deg, #ff3366 0%, #ffcc00 100%);
    color: white;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Timeline events */
.timeline-event {
    position: relative;
    padding: var(--space-sm) 0 var(--space-md) 60px;
    display: flex;
    align-items: flex-start;
}

.timeline-event.is-past {
    opacity: 0.7;
}

.timeline-connector {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #00d4ff;
    border-radius: 50%;
    position: relative;
}

.timeline-dot.pulse {
    animation: dot-pulse 2s ease-in-out infinite;
}

.timeline-event.is-current .timeline-dot {
    background: #ff3366;
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

/* Event card */
.timeline-event-card {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.timeline-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #00d4ff;
}

.timeline-event.is-current .timeline-event-card {
    border-color: #ff3366;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.15);
}

.timeline-event-photo {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.timeline-event-photo .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-sm);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-event-photo:hover .photo-overlay {
    opacity: 1;
}

.timeline-event-photo .photo-overlay i {
    color: white;
    font-size: 1.2rem;
}

.timeline-event-content {
    padding: var(--space-md);
}

.timeline-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.timeline-event-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.timeline-edit-btn {
    background: transparent !important;
    color: #ff3366 !important;
    padding: 4px !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-event-card:hover .timeline-edit-btn {
    opacity: 1;
}

.timeline-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.timeline-event-meta .meta-item {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-event-meta .meta-item i {
    color: #00d4ff;
    font-size: 0.75rem;
}

.timeline-event-notes {
    font-size: 0.85rem;
    color: #64748b;
    margin: var(--space-sm) 0 0 0;
    line-height: 1.5;
}

/* Participant avatars */
.timeline-event-participants {
    display: flex;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.participant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: -8px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.participant-avatar:first-child {
    margin-left: 0;
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.participant-avatar.more {
    background: #64748b;
    font-size: 0.65rem;
}

/* End marker */
.timeline-end {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    position: relative;
}

.timeline-end-marker {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.timeline-end span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 51, 102, 0.7);
    }
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
    }
}

/* Responsive: Stack on mobile */
@media (max-width: 640px) {
    .vertical-timeline::before {
        left: 20px;
    }

    .timeline-day-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-day-marker .day-num {
        font-size: 1.1rem;
    }

    .timeline-event {
        padding-left: 52px;
    }

    .timeline-connector {
        left: 20px;
    }

    .timeline-dot {
        width: 10px;
        height: 10px;
    }

    .timeline-event-photo {
        height: 120px;
    }

    .timeline-end-marker {
        width: 40px;
        height: 40px;
    }
}

/* Dark mode */
[data-theme="dark"] .timeline-day-label {
    color: white;
}

[data-theme="dark"] .timeline-event-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .timeline-event-title {
    color: white;
}

[data-theme="dark"] .participant-avatar {
    border-color: var(--surface);
}

/* ==========================================
   SUPER TIMELINE - Immersive Trip View
   ========================================== */

.super-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Day Divider */
.super-day-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

.super-day-divider.is-past {
    opacity: 0.6;
}

.super-day-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.super-day-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.super-day-divider.is-today .super-day-badge {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b35 100%);
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
}

.super-day-num {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.super-day-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    font-size: 0.65rem;
    margin-left: var(--space-sm);
}

.super-today-pulse {
    position: absolute;
    right: -4px;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Event Card */
.super-event {
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.super-event:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.super-event.is-current {
    border: 2px solid #ff3366;
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.2);
}

.super-event.is-past {
    opacity: 0.7;
}

/* Hero Image */
.super-event-hero {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.super-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
}

.super-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.super-event-hero .super-event-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.super-event-hero .super-event-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.super-event-hero .super-event-quick-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.super-event-hero .super-event-quick-meta i {
    color: #00d4ff;
}

.super-expand-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.super-expand-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Header Only (no photo) */
.super-event-header-only {
    padding: var(--space-xl);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white;
}

.super-event-header-only .super-event-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.super-event-header-only .super-event-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.super-event-header-only .super-event-quick-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.super-event-header-only .super-event-quick-meta i {
    color: #00d4ff;
}

/* Event Body */
.super-event-body {
    padding: var(--space-xl);
}

.super-event-notes {
    padding: var(--space-md);
    background: #f8fafc;
    border-left: 3px solid #00d4ff;
    margin-bottom: var(--space-lg);
    color: #475569;
    line-height: 1.6;
}

.super-event-notes p {
    margin: 0;
}

/* Section Label */
.super-section-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: var(--space-md);
}

.super-section-label i {
    color: #00d4ff;
}

/* Participants Section */
.super-participants-section {
    margin-bottom: var(--space-lg);
}

.super-participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.super-participant-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.super-participant-card:hover {
    background: #f1f5f9;
    border-color: #00d4ff;
}

.super-participant-card.is-organizer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.super-participant-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
}

.super-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #f59e0b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.super-participant-info {
    flex: 1;
    min-width: 0;
}

.super-participant-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.super-participant-role {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: capitalize;
}

/* Event Actions */
.super-event-actions {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid #e2e8f0;
}

/* Timeline End */
.super-timeline-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2xl);
    color: #64748b;
    font-size: 0.9rem;
    gap: var(--space-md);
}

.super-end-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Dark mode */
[data-theme="dark"] .super-event {
    background: var(--surface);
    border-color: var(--border);
}

/* ==========================================
   Trips Timeline (List Page) - Center Axis Design
   ========================================== */

/* Main container */
.tl-container {
    position: relative;
    padding: var(--space-xl) 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Center axis line */
.tl-axis {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff 0%, #7c3aed 50%, #ff3366 100%);
    transform: translateX(-50%);
    z-index: 0;
}

/* NOW marker at top */
.tl-now-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    z-index: 5;
}

.tl-now-marker .tl-now-dot {
    width: 16px;
    height: 16px;
    background: #00cc6a;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #00cc6a40, 0 4px 12px rgba(0, 204, 106, 0.4);
    animation: nowPulse 2s infinite;
}

.tl-now-marker span {
    position: absolute;
    left: calc(50% + 24px);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #00cc6a;
    white-space: nowrap;
}

@keyframes nowPulse {
    0%, 100% { box-shadow: 0 0 0 3px #00cc6a40, 0 4px 12px rgba(0, 204, 106, 0.4); }
    50% { box-shadow: 0 0 0 8px #00cc6a20, 0 4px 20px rgba(0, 204, 106, 0.6); }
}

/* Month markers */
.tl-month-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) 0;
    z-index: 2;
}

.tl-month-marker .tl-month-tick {
    width: 24px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.tl-month-marker span {
    position: absolute;
    left: calc(50% + 24px);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    white-space: nowrap;
}

/* Timeline items (alternating left/right) */
.tl-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    cursor: pointer;
    z-index: 1;
}

.tl-item.tl-left {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.tl-item.tl-right {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
}

.tl-item.is-past {
    opacity: 0.6;
}

.tl-item.is-past:hover {
    opacity: 1;
}

/* Connector line from card to axis */
.tl-connector {
    position: absolute;
    top: 24px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.tl-item.tl-left .tl-connector {
    right: calc(50% - 24px);
    flex-direction: row-reverse;
}

.tl-item.tl-right .tl-connector {
    left: calc(50% - 24px);
}

/* Node (circle) on axis */
.tl-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tl-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-item:hover .tl-node {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.tl-item.is-ongoing .tl-node {
    animation: ongoingNodePulse 2s infinite;
}

@keyframes ongoingNodePulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 204, 106, 0.3); }
    50% { box-shadow: 0 4px 32px rgba(0, 204, 106, 0.6); }
}

/* Trip card */
.tl-card {
    background: white;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tl-item:hover .tl-card {
    border-color: #00d4ff;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.tl-item.is-ongoing .tl-card {
    border-color: #00cc6a;
    box-shadow: 0 8px 32px rgba(0, 204, 106, 0.15);
}

/* Card image header */
.tl-card-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tl-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
}

/* Card body */
.tl-card-body {
    padding: var(--space-md);
}

.tl-card-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    flex-wrap: wrap;
}

.tl-date {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.tl-countdown {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-countdown.upcoming {
    background: #dbeafe;
    color: #2563eb;
}

.tl-countdown.today {
    background: #fef3c7;
    color: #d97706;
}

.tl-countdown.ongoing {
    background: #dcfce7;
    color: #16a34a;
}

.tl-countdown.past {
    background: #f1f5f9;
    color: #64748b;
}

.tl-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a2e;
    line-height: 1.2;
}

.tl-sports {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: var(--space-xs);
}

.tl-sport-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border: 1px solid;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-location {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: var(--space-xs);
}

.tl-location i {
    color: #ff3366;
    margin-right: 4px;
}

.tl-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: var(--space-sm);
    line-height: 1.5;
}

/* Participants section */
.tl-people {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #f1f5f9;
}

.tl-people-avatars {
    display: flex;
}

.tl-participant {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    margin-left: -8px;
    overflow: hidden;
}

.tl-participant:first-child {
    margin-left: 0;
}

.tl-participant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-people-names {
    font-size: 0.75rem;
    color: #64748b;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gear status indicator */
.tl-gear-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
}

.tl-gear-status.success {
    background: #dcfce7;
    color: #16a34a;
}

.tl-gear-status.warning {
    background: #fef3c7;
    color: #d97706;
}

.tl-gear-status.danger {
    background: #fee2e2;
    color: #dc2626;
}

.tl-gear-status.info {
    background: #dbeafe;
    color: #2563eb;
}

.tl-gear-status.neutral {
    background: #f1f5f9;
    color: #64748b;
}

/* Mobile responsive - stack cards vertically */
@media (max-width: 768px) {
    .tl-container {
        padding: var(--space-md) 0;
    }

    .tl-axis {
        left: 24px;
    }

    .tl-now-marker {
        justify-content: flex-start;
        padding-left: 16px;
    }

    .tl-now-marker span {
        left: 48px;
    }

    .tl-month-marker {
        justify-content: flex-start;
        padding-left: 12px;
    }

    .tl-month-marker span {
        left: 48px;
    }

    .tl-item.tl-left,
    .tl-item.tl-right {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }

    .tl-item.tl-left .tl-connector,
    .tl-item.tl-right .tl-connector {
        left: 0;
        right: auto;
        flex-direction: row;
    }

    .tl-node {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tl-card {
        max-width: none;
    }
}

/* Dark mode */
[data-theme="dark"] .tl-axis {
    background: linear-gradient(180deg, #00d4ff80 0%, #7c3aed80 50%, #ff336680 100%);
}

[data-theme="dark"] .tl-month-marker .tl-month-tick {
    background: #475569;
}

[data-theme="dark"] .tl-month-marker span {
    color: #64748b;
}

[data-theme="dark"] .tl-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .tl-card-title {
    color: white;
}

[data-theme="dark"] .tl-people {
    border-top-color: var(--border);
}

[data-theme="dark"] .tl-participant {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: var(--surface);
}

[data-theme="dark"] .super-event-body {
    background: var(--surface);
}

[data-theme="dark"] .super-event-notes {
    background: rgba(0, 212, 255, 0.1);
}

[data-theme="dark"] .super-participant-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

[data-theme="dark"] .super-participant-name {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .super-event-hero {
        height: 200px;
    }

    .super-event-hero .super-event-title {
        font-size: 1.3rem;
    }

    .super-hero-overlay {
        padding: var(--space-lg);
    }

    .super-participants-grid {
        grid-template-columns: 1fr;
    }

    .super-day-badge {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.65rem;
    }

    .super-day-num {
        font-size: 1.2rem;
    }
}

/* ==========================================
   Friends Page Styles
   ========================================== */

.friends-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.friends-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid #f0f0f5;
    padding-bottom: var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.friends-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.friends-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.friends-tab.active {
    background: var(--primary);
    color: white;
}

.friends-tab .tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.friends-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.friends-tab .tab-count.badge {
    background: var(--danger);
    color: white;
}

.friends-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.friend-card {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.friend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-info > div:first-child {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-info > div:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-actions {
    display: flex;
    gap: var(--space-xs);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.request-card,
.suggestion-card {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all 0.2s ease;
}

.request-card:hover,
.suggestion-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.friend-context-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: var(--space-sm);
    min-width: 180px;
    z-index: 1000;
    animation: menu-appear 0.15s ease;
}

@keyframes menu-appear {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.friend-context-menu .menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.friend-context-menu .menu-item:hover {
    background: #f0f0f5;
}

/* Dark mode for Friends */
[data-theme="dark"] .friends-tabs {
    border-color: var(--border);
}

[data-theme="dark"] .friends-tab {
    color: var(--text-muted);
}

[data-theme="dark"] .friends-tab:hover {
    background: rgba(0, 212, 255, 0.15);
}

[data-theme="dark"] .friends-tab.active {
    background: var(--primary);
}

[data-theme="dark"] .friend-context-menu {
    background: var(--surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .friend-context-menu .menu-item:hover {
    background: var(--border);
}

[data-theme="dark"] .btn-icon {
    background: var(--border);
    color: var(--text-muted);
}

[data-theme="dark"] .btn-icon:hover {
    background: var(--primary);
    color: white;
}
