/* Iceland Trip Planner - Beautiful Travel Theme */

:root {
    /* Iceland-inspired color palette */
    --color-primary: #0ea5e9;           /* Ocean blue */
    --color-primary-dark: #0284c7;
    --color-primary-light: #e0f2fe;

    --color-accent: #14b8a6;            /* Northern lights teal */
    --color-accent-dark: #0d9488;

    --color-warm: #f97316;              /* Volcanic orange */
    --color-warm-light: #fff7ed;

    --color-secondary: #64748b;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    --color-bg: #f0f9ff;                /* Soft sky blue tint */
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 15px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

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

/* ==========================================
   NAVIGATION - Glass morphism style
   ========================================== */
.nav {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand span {
    background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(14, 165, 233, 0.25);
    color: white;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-username {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ==========================================
   HOMEPAGE MAP
   ========================================== */
.homepage-map-wrap {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    max-height: 550px;
}

.homepage-map {
    width: 100%;
    height: 100%;
}

.homepage-map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.homepage-map-controls .map-btn {
    background: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-map-controls .map-btn:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.homepage-map-controls .map-btn svg {
    width: 18px;
    height: 18px;
}

.homepage-map-wrap.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    max-height: none;
    z-index: 2000;
}

.homepage-map-wrap.fullscreen .homepage-map-overlay {
    display: none;
}

.homepage-map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: white;
    z-index: 400;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.homepage-map-overlay.hidden {
    opacity: 0;
}

.homepage-map-overlay h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.homepage-map-overlay p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Trip Stats Cards */
.trip-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.trip-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trip-card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.trip-card-label {
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-top: 0.25rem;
}

.trip-card-sub {
    font-size: 0.65rem;
    color: var(--color-secondary);
    opacity: 0.7;
    margin-top: 0.15rem;
}

.trip-card--energy {
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-fast);
}

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

.trip-card--energy .trip-card-value {
    color: var(--color-success);
}

.trip-stats-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .homepage-map-wrap {
        height: 40vh;
        min-height: 280px;
    }

    .homepage-map-overlay h1 {
        font-size: 1.35rem;
    }

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

/* ==========================================
   HERO SECTION - For dashboard
   ========================================== */
.hero {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 64, 100, 0.9) 50%,
        rgba(14, 116, 144, 0.85) 100%
    );
    background-size: cover;
    background-position: center;
    padding: 3rem 1.5rem;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #a5f3fc 50%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

.hero-countdown {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5eead4;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* ==========================================
   CARDS - Elevated with subtle shadows
   ========================================== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), transparent);
}

.card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

/* Interactive card */
.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Image card */
.card-image {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-interactive:hover .card-image img {
    transform: scale(1.05);
}

.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

/* ==========================================
   BUTTONS - Rounded, colorful
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ==========================================
   QUICK ACTIONS - Visual cards
   ========================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    text-align: center;
}

.quick-action:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md), 0 0 0 4px var(--color-primary-light);
    text-decoration: none;
    transform: translateY(-3px);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.quick-action:hover .quick-action-icon {
    transform: scale(1.1);
}

.quick-action-icon svg {
    width: 28px;
    height: 28px;
}

/* ==========================================
   STATS - Visual cards with gradients
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.05;
    transform: translate(30%, -30%);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* ==========================================
   FORMS - Clean and modern
   ========================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    transition: all var(--transition-fast);
}

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

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

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

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

/* ==========================================
   GRID SYSTEM
   ========================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   LIST ITEMS - Interactive
   ========================================== */
.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--color-bg);
}

.list-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.list-item:hover .list-item-icon {
    transform: scale(1.05);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--color-text);
}

.list-item-subtitle {
    font-size: 0.8125rem;
    color: var(--color-secondary);
}

.list-item-action {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
}

.list-item:hover .list-item-action {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.badge-success {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #166534;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    color: #1e40af;
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ==========================================
   PROGRESS
   ========================================== */
.progress {
    height: 10px;
    background: var(--color-border);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 9999px;
    transition: width var(--transition-slow);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-secondary);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
    font-size: 1.125rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--color-secondary);
    margin: 0;
    font-size: 1rem;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   TRIP INFO - Visual box
   ========================================== */
.trip-info {
    background: linear-gradient(135deg,
        rgba(14, 165, 233, 0.05) 0%,
        rgba(20, 184, 166, 0.05) 100%
    );
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.trip-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.trip-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trip-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.trip-info-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.trip-info-content p {
    margin: 0;
    font-weight: 600;
    color: var(--color-text);
}

/* ==========================================
   TABLE
   ========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-bg);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

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

/* ==========================================
   REGION CARDS - Visual with gradients
   ========================================== */
.region-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.region-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: opacity var(--transition-normal);
}

.region-card:hover::before {
    opacity: 0.95;
}

.region-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.region-card-content {
    position: relative;
    z-index: 1;
}

.region-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.region-card span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Region gradients */
.region-north::before { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.region-westfjords::before { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.region-south::before { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.region-reykjavik::before { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.region-east::before { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.region-snaefellsnes::before { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.region-west::before { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }

/* ==========================================
   POI CARD - Feature cards
   ========================================== */
.poi-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.poi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.poi-card-image {
    height: 160px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    position: relative;
    overflow: hidden;
}

.poi-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poi-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.poi-card-body {
    padding: 1.25rem;
}

.poi-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
}

.poi-card-region {
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin: 0;
}

/* ==========================================
   MOBILE STYLES
   ========================================== */
.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 1100;
        overflow-y: auto;
    }

    .nav-link {
        padding: 1rem;
        justify-content: flex-start;
    }

    .container {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

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

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-primary { color: var(--color-primary); }

/* SVG icon colors - inherit from parent or use specific color */
svg {
    color: inherit;
}
.text-primary svg,
svg.text-primary {
    color: var(--color-primary);
}
.text-success svg,
svg.text-success {
    color: var(--color-success);
}
.text-warning svg,
svg.text-warning {
    color: var(--color-warning);
}
.text-danger svg,
svg.text-danger {
    color: var(--color-danger);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }

.rounded { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ==========================================================================
   Itinerary Preview Card (Dashboard)
   ========================================================================== */

.itinerary-preview {
    display: block;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0e7490 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.itinerary-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(14, 165, 233, 0.2);
}

.itinerary-preview-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.itinerary-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.itinerary-preview-text {
    flex: 1;
}

.itinerary-preview-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.itinerary-preview-text p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.itinerary-preview-dates {
    display: flex;
    gap: 1.5rem;
}

.preview-date {
    text-align: center;
}

.preview-date-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.preview-date-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.itinerary-preview-arrow {
    opacity: 0.6;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.itinerary-preview:hover .itinerary-preview-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .itinerary-preview-content {
        flex-wrap: wrap;
    }

    .itinerary-preview-dates {
        width: 100%;
        justify-content: space-around;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .itinerary-preview-arrow {
        display: none;
    }
}

/* ==========================================================================
   Itinerary Timeline
   ========================================================================== */

.itinerary-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.itinerary-phase {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: white;
    font-weight: 600;
}

.phase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
}

.phase-title {
    flex: 1;
}

.phase-badge {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.phase-pretrip {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.phase-ferry {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.phase-iceland {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.phase-return {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.itinerary-items {
    padding: 1rem 1.25rem;
}

.itinerary-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.itinerary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.itinerary-item:first-child {
    padding-top: 0;
}

.itinerary-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #e0f2fe 100%);
    border-radius: var(--radius-md);
    text-align: center;
}

.itinerary-date-range {
    min-width: 70px;
}

.date-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.date-month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
}

.itinerary-content {
    flex: 1;
}

.itinerary-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.itinerary-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.itinerary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-ferry {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    color: var(--color-primary);
}

.itinerary-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
}

/* Ferry route special styling */
.itinerary-ferry {
    padding: 1rem 0 !important;
}

.ferry-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-md);
}

.ferry-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ferry-location {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.ferry-time {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
}

.ferry-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
}

.ferry-duration {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .ferry-route {
        flex-direction: column;
        gap: 1rem;
    }

    .ferry-arrow {
        flex-direction: row;
        transform: rotate(90deg);
    }

    .ferry-duration {
        transform: rotate(-90deg);
    }

    .itinerary-highlights {
        flex-direction: column;
    }
}

/* Itinerary Page Specific */
.stat-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-mini-content {
    flex: 1;
}

.stat-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.stat-mini-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.itinerary-details {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.itinerary-details h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.itinerary-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.itinerary-details li {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
    line-height: 1.5;
}

.itinerary-details li:last-child {
    margin-bottom: 0;
}

.itinerary-alert {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-primary-dark);
}

.itinerary-alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ferry-country {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ferry-via {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
}

.ferry-details-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.ferry-detail {
    display: flex;
    flex-direction: column;
}

.ferry-detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.ferry-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Highlight tag variants */
.highlight-nature {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #166534;
}

.highlight-wildlife {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
}

.highlight-pool {
    background: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
    color: #0e7490;
}

.highlight-food {
    background: linear-gradient(135deg, #fce7f3 0%, #fae8ff 100%);
    color: #9d174d;
}

/* Budget Table */
.budget-table {
    width: 100%;
    border-collapse: collapse;
}

.budget-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

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

.budget-amount {
    text-align: right;
    font-weight: 500;
    color: var(--color-text);
}

.budget-total td {
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
    border-bottom: none;
}

.budget-total .budget-amount {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Contacts Grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-item p {
    margin: 0 0 0.375rem 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.contact-item a:not(.btn) {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-item a:not(.btn):hover {
    text-decoration: underline;
}

.contact-item .btn {
    margin-top: 0.75rem;
}

/* Journey Map */
.journey-map-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.journey-map {
    width: 100%;
    height: 450px;
}

.map-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-line {
    display: inline-block;
    width: 24px;
    height: 4px;
    border-radius: 2px;
}

.legend-pretrip {
    background: #64748b;
}

.legend-ferry {
    background: #0ea5e9;
    background: repeating-linear-gradient(
        90deg,
        #0ea5e9 0px,
        #0ea5e9 6px,
        transparent 6px,
        transparent 10px
    );
}

.legend-iceland {
    background: #14b8a6;
}

.legend-return {
    background: #8b5cf6;
}

.journey-marker {
    background: transparent !important;
    border: none !important;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 12px 16px;
}

.leaflet-popup-tip {
    box-shadow: none;
}

@media (max-width: 768px) {
    .journey-map {
        height: 350px;
    }

    .map-legend {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Tools Page - Currency Converter & Expenses
   ========================================================================== */

/* Currency Converter */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.converter-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.converter-input-group .input-lg {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.converter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.converter-currency {
    flex: 1;
}

.converter-currency .input {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    min-width: auto;
}

.converter-result {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
}

.result-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.converter-rate {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.converter-rate label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.converter-rate .input {
    margin-bottom: 0.5rem;
}

.text-muted {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

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

/* Expense Summary */
.expense-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-total {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.summary-balance {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.balance-positive {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
}

.balance-negative {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
}

.balance-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.balance-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Expense Pie Chart */
.expense-chart-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

#expense-pie-chart {
    flex-shrink: 0;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-pct {
    font-weight: 600;
    color: var(--color-text);
}

.category-breakdown {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.category-breakdown h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0 0 0.75rem 0;
}

.category-bar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.category-bar-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-bar-value {
    font-weight: 500;
    color: var(--color-text);
}

/* Expense Filters */
.filter-section {
    margin-bottom: 1.25rem;
}

.filter-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: white;
    transition: all 0.15s;
    color: var(--color-text-secondary);
}

.filter-chip:hover {
    border-color: #94a3b8;
}

.filter-chip.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-active-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

/* Date Range Slider */
.date-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.date-range-slider {
    position: relative;
    height: 36px;
}

.date-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transform: translateY(-50%);
}

.date-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
}

.date-range-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.date-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
}

.date-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
}

/* Chart/legend interactive */
.legend-item,
.category-bar-item {
    cursor: pointer;
}

.legend-item.toggled-off,
.category-bar-item.toggled-off {
    opacity: 0.35;
}

/* Expense Form */
.expense-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

.input-with-select {
    display: flex;
    gap: 0.5rem;
}

.input-with-select .input:first-child {
    flex: 1;
}

.input-with-select .input-sm {
    width: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

/* Expense List */
.expense-list {
    display: flex;
    flex-direction: column;
}

.expense-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-item:hover {
    background: var(--color-bg);
}

.expense-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.expense-details {
    flex: 1;
    min-width: 0;
}

.expense-title {
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expense-meta {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.expense-amount {
    text-align: right;
}

.amount-eur {
    font-weight: 600;
    color: var(--color-text);
}

.amount-original {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 0.5rem;
}

.btn-ghost:hover {
    background: var(--color-danger);
    color: white;
}

/* Category Manager */
.card-header-toggle {
    cursor: pointer;
    user-select: none;
}

.card-header-toggle .toggle-arrow {
    transition: transform var(--transition-fast);
}

.card-header-toggle.open .toggle-arrow {
    transform: rotate(90deg);
}

.cat-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cat-row:last-child {
    border-bottom: none;
}

.cat-row.editing {
    background: var(--color-primary-bg);
    margin: 0 -1.25rem;
    padding: 0.5rem 1.25rem;
}

.cat-row-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cat-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cat-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.cat-row-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cat-form {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.cat-form h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.cat-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.input-color {
    width: 44px;
    height: 38px;
    padding: 2px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .cat-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cat-form-grid .form-group:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .converter-row {
        flex-direction: column;
    }

    .converter-currency {
        width: 100%;
    }
}

/* ==========================================================================
   Offline / Sync UI
   ========================================================================== */

/* Offline banner - yellow warning bar below nav */
.offline-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #fcd34d;
    position: sticky;
    top: 64px;
    z-index: 99;
}

.offline-banner svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.offline-banner.hidden {
    display: none !important;
}

/* Sync pending badge - small amber count badge */
.sync-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f59e0b;
    color: white;
    border-radius: 9999px;
    line-height: 1;
}

/* Sync indicator in nav - spinning sync icon */
.sync-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.sync-indicator.syncing {
    animation: spin 1s linear infinite;
    color: #5eead4;
}

.sync-indicator.has-pending {
    color: #fbbf24;
}

/* Connectivity indicator dot */
.connectivity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.3s;
}
.connectivity-dot.online {
    background-color: #34d399;
}
.connectivity-dot.offline {
    background-color: #f87171;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: #0f172a;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 360px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    border: 1px solid #22c55e;
}

.toast-warning {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    border: 1px solid #f59e0b;
}

.toast-error {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    border: 1px solid #ef4444;
}

/* Pending marker style on map */
.custom-marker.pending-sync {
    opacity: 0.6;
    outline: 2px dashed #f59e0b;
    outline-offset: 2px;
}

/* Pending badge for inline items */
.badge-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
}

/* Expense item pending state */
.expense-item.pending-sync {
    opacity: 0.7;
    border-left: 3px solid #f59e0b;
}

.expense-item.editing {
    background: var(--color-primary-light);
    border-left: 3px solid var(--color-primary);
}

/* Failed sync items */
.sync-failed-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: #991b1b;
    margin-bottom: 1rem;
}

.sync-failed-banner button {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    background: white;
    color: #991b1b;
    cursor: pointer;
}

.sync-failed-banner button:hover {
    background: #fef2f2;
}

/* ===== Toggle Switch ===== */
.toggle-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ===== Feed Items ===== */
.feed-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feed-hidden {
    display: none;
}

.feed-end {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0 1rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.feed-card {
    display: flex;
    flex-direction: column;
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.feed-card-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg);
}

.feed-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feed slider */
.feed-slider {
    position: absolute;
    inset: 0;
}

.feed-slider-track {
    display: flex;
    overflow: hidden;
    height: 100%;
    cursor: grab;
}

.feed-slider-slide {
    flex: 0 0 100%;
    height: 100%;
}

.feed-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-slider-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.feed-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.feed-slider-dot.active {
    background: white;
    transform: scale(1.25);
}

.feed-slider-slide--video::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='23' fill='rgba(0,0,0,0.5)' stroke='white' stroke-width='2'/%3E%3Cpolygon points='19,14 36,24 19,34' fill='white'/%3E%3C/svg%3E") no-repeat center center;
    pointer-events: none;
}

.feed-slider-slide--video {
    position: relative;
    cursor: pointer;
}

.feed-card-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.feed-card-type {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.feed-card-type-inline {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.feed-card-type--checkin {
    background: #22c55e;
}

.feed-card-type--checkin.feed-card-type-inline {
    background: #22c55e;
}

.feed-card-type--track {
    background: #f59e0b;
}

.feed-card-map {
    width: 100%;
    height: 140px;
    background: var(--color-bg);
}

.feed-card-body {
    padding: 0.75rem 1rem;
}

.feed-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feed-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.3;
}

.feed-card-meta {
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-top: 0.1rem;
}

.feed-card-stars {
    color: #f59e0b;
}

.feed-card-excerpt {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin: 0.4rem 0 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
    .feed-list {
        grid-template-columns: 1fr;
    }
    .feed-card-body {
        padding: 0.6rem 0.75rem;
    }
    .feed-card-map {
        height: 120px;
    }
}

/* ===== Blog Content ===== */
.blog-content h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.blog-content h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem 0;
}

.blog-content p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.blog-content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.25rem;
}

.blog-content strong {
    color: var(--color-text);
}

/* ===== Audio Player ===== */
.blog-audio-player {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.blog-audio-player audio {
    width: 100%;
    height: 36px;
}

/* ===== Offline Storage Bar ===== */
#offline-storage-bar {
    width: 100%;
    margin-top: 0.5rem;
}

.offline-storage-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.offline-storage-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background: var(--color-success);
}

.offline-storage-fill.warn {
    background: var(--color-warning);
}

.offline-storage-fill.critical {
    background: var(--color-danger);
}

.offline-storage-label {
    display: block;
    font-size: 0.7rem;
    text-align: right;
    margin-top: 0.15rem;
    opacity: 0.85;
}

/* ===== Feed Card Actions (Likes & Comments) ===== */
.feed-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.feed-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--color-border);
}

.feed-like-btn,
.feed-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-secondary);
    padding: 0.25rem 0.35rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
}

.feed-like-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.feed-like-btn:hover svg {
    stroke: #ef4444;
}

.feed-like-btn .like-label {
    display: none;
    font-size: 0.75rem;
}

.feed-like-btn:hover .like-label {
    display: inline;
}

.feed-comment-btn:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.feed-like-btn svg,
.feed-comment-btn svg {
    width: 18px;
    height: 18px;
}

.feed-like-btn.liked {
    color: #ef4444;
}

.feed-like-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

@keyframes like-pulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.like-pulse svg {
    animation: like-pulse 0.35s ease;
}

/* ===== Detail Page Like Button ===== */
.detail-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-2xl);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.detail-like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.detail-like-btn.liked {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.detail-like-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.detail-like-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== Comment Section ===== */
.comment-section {
    margin-top: 1.5rem;
}

.comment-list {
    padding: 0;
}

.comment-item {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--color-secondary);
}

.comment-edited {
    font-size: 0.7rem;
    color: var(--color-secondary);
    font-style: italic;
}

.comment-body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    white-space: pre-line;
    word-break: break-word;
}

.comment-actions {
    margin-top: 0.4rem;
}

.comment-edit-btn,
.comment-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: background var(--transition-fast);
}

.comment-edit-btn {
    color: var(--color-primary);
}

.comment-edit-btn:hover {
    background: var(--color-primary-light);
}

.comment-delete-btn {
    color: var(--color-danger);
}

.comment-delete-btn:hover {
    background: #fef2f2;
}

.comment-edit-area {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    margin-top: 0.5rem;
}

.comment-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.comment-form {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

.comment-form-row {
    margin-bottom: 0.75rem;
}

.comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.comment-form textarea {
    min-height: 80px;
    resize: vertical;
}

.comment-form-honeypot {
    position: absolute;
    left: -9999px;
}

.comment-reply {
    margin-left: 2rem;
    border-left: 2px solid var(--color-border);
}

.comment-reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--color-primary);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: background var(--transition-fast);
}

.comment-reply-btn:hover {
    background: var(--color-primary-light);
}

.comment-reply-form {
    margin-left: 2rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--color-primary);
    border-bottom: 1px solid var(--color-border);
}

.comment-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-secondary);
    font-size: 0.875rem;
}

/* ===== Dashboard Comments Card ===== */
.recent-comments-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.recent-comments-item:last-child {
    border-bottom: none;
}

.recent-comments-meta {
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-bottom: 0.15rem;
}

.recent-comments-body {
    font-size: 0.8rem;
    color: var(--color-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   Van Status (shared gauge styles)
   ======================================== */

.soc-gauge {
    width: 100%;
    height: 100%;
}

.soc-gauge-arc {
    transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.soc-gauge-value {
    font-size: 1.4rem;
    font-weight: 700;
    fill: var(--color-text);
}

.soc-gauge-label {
    font-size: 0.7rem;
    fill: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.van-status-charge-state {
    font-size: 0.65rem;
    color: var(--color-secondary);
    background: var(--color-primary-light);
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
}

.van-status-charge-state:empty {
    display: none;
}

.van-status-freshness {
    font-size: 0.75rem;
    color: var(--color-secondary);
}

.van-status-freshness.stale {
    color: var(--color-warning);
}

/* ========================================
   Van Stats Page
   ======================================== */

.van-stats-header {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

.van-stats-header-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.van-stats-gauge {
    width: 120px;
    height: 120px;
}

.van-stats-group h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.van-stats-group dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.75rem;
    font-size: 0.85rem;
}

.van-stats-group dt {
    color: var(--color-secondary);
}

.van-stats-group dd {
    font-weight: 600;
    color: var(--color-text);
}

.van-stats-orion-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.van-stats-orion-badge.active {
    background: #dcfce7;
    color: #166534;
}

.van-stats-orion-badge.inactive {
    background: #f1f5f9;
    color: var(--color-secondary);
}

.van-stats-updated {
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-align: right;
}

.van-chart-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

.van-chart-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.van-chart-wrap {
    width: 100%;
    min-height: 250px;
}

.van-day-cards {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.van-day-card {
    flex-shrink: 0;
    width: 130px;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
}

.van-day-card:hover {
    border-color: var(--color-primary);
}

.van-day-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.van-day-card-date {
    font-size: 0.7rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.van-day-card-yield {
    margin: 0.25rem 0;
}

.van-day-card-yield-solar {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
}

.van-day-card-yield-orion {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8B4513;
}

.van-day-card-split {
    font-size: 0.65rem;
    color: var(--color-secondary);
    white-space: nowrap;
}

.van-day-card-peak {
    font-size: 0.7rem;
    color: var(--color-secondary);
}

.van-day-card-soc {
    font-size: 0.7rem;
    color: var(--color-secondary);
    margin-top: 0.2rem;
}

.van-day-card-night {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.van-trip-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.van-trip-total {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.van-trip-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.van-trip-total-label {
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-top: 0.2rem;
}

.van-trip-total-value--solar {
    color: #f59e0b;
}

.van-trip-total-value--alternator {
    color: #8B4513;
}

.van-trip-total-value--split {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .van-stats-header-grid {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }
    .van-stats-gauge {
        width: 90px;
        height: 90px;
    }
    .van-stats-orion-badge {
        grid-column: 1 / -1;
    }
    .van-stats-updated {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* ========================================
   Daily Summary Feed Cards
   ======================================== */

.feed-card-type--daily {
    background: #7c3aed;
    color: #fff;
}

.daily-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    padding: 0.75rem 0;
}

.daily-summary-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text);
}

.daily-summary-stat svg {
    width: 14px;
    height: 14px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.daily-summary-stat strong {
    font-weight: 600;
}

.daily-summary-sparkline {
    height: 30px;
    margin-top: 0.5rem;
}

.daily-summary-sparkline svg {
    width: 100%;
    height: 100%;
}

/* ===== Livestream ===== */

.livestream-section {
    margin-top: 1.5rem;
}

.livestream-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.livestream-status {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.livestream-status-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.livestream-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.livestream-dot--live {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: livestream-pulse 2s infinite;
}

.livestream-dot--offline {
    background: #ef4444;
}

@keyframes livestream-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.livestream-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.livestream-viewer {
    position: relative;
    background: #0f172a;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.livestream-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.livestream-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

.livestream-controls {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
}

.livestream-transport {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.livestream-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.livestream-btn:hover {
    background: var(--color-primary-hover, #1d6fa3);
}

.livestream-time {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 3.5em;
}

.livestream-speed,
.livestream-day-picker {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
}

.livestream-day-picker {
    margin-left: auto;
    max-width: 160px;
}

.livestream-scrubber-wrap {
    position: relative;
}

.livestream-scrubber {
    width: 100%;
    height: 6px;
    appearance: none;
    background: var(--color-border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.livestream-scrubber::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.livestream-scrubber::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.livestream-ticks {
    position: relative;
    height: 16px;
    margin-top: 2px;
}

.livestream-tick {
    position: absolute;
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    transform: translateX(-50%);
    white-space: nowrap;
}

.livestream-section--page .livestream-viewer {
    max-height: 70vh;
}

.livestream-btn--delete,
.livestream-btn--delete-day {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.livestream-btn--delete:hover {
    background: var(--color-danger, #ef4444);
    color: white;
    border-color: var(--color-danger, #ef4444);
}

.livestream-btn--delete-day:hover {
    background: var(--color-danger, #ef4444);
    color: white;
    border-color: var(--color-danger, #ef4444);
}

.livestream-btn--delete:disabled,
.livestream-btn--delete-day:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.livestream-frame-info {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: right;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .livestream-transport {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .livestream-day-picker {
        max-width: none;
        flex: 1 1 100%;
        order: 10;
    }
}
