/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* App-specific overflow hidden for timer/stopwatch pages */
body.app-page {
    overflow: hidden;
}

/* ===== THEME SYSTEM ===== */
:root {
    /* Colors - Linear.app inspired */
    --bg-primary: #0d0e10;
    --bg-secondary: #1a1b1e;
    --bg-tertiary: #25262b;
    --bg-elevated: #2c2d32;

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;

    --border-primary: #374151;
    --border-secondary: #4b5563;

    --accent-primary: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-active: #7c3aed;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Animation */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body.theme-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* View Classes */
body.view-super-minimal .app-header {
    display: none;
}

/* ===== LAYOUT ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-md);
}

.app-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.view-controls {
    display: flex;
    gap: var(--space-xs);
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.view-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.app-main {
    padding-top: 48px;
    height: 100vh;
    overflow: hidden;
}

/* ===== VIEWS ===== */
.view {
    display: none;
    height: 100%;
    padding: var(--space-lg);
}

.view.active {
    display: block;
}

/* Default View */
.default-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    max-width: 480px;
    margin: 0 auto;
    padding-top: var(--space-2xl);
}

/* Minimal View */
.minimal-view {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 48px);
    padding: var(--space-md);
}

/* Super Minimal View */
.super-minimal-view {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    cursor: pointer;
}

.minimal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 280px;
}

.minimal-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.minimal-time {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-primary);
    font-feature-settings: 'tnum';
    letter-spacing: -0.02em;
}

.minimal-controls {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.minimal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.progress-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

/* Super Minimal Components */
.super-minimal-time {
    font-size: 72px;
    font-weight: 200;
    color: var(--text-primary);
    font-feature-settings: 'tnum';
    letter-spacing: -0.02em;
    text-align: center;
    user-select: none;
    transition: all var(--transition-fast);
}

.super-minimal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.super-minimal-view:hover .super-minimal-header {
    opacity: 1;
    pointer-events: all;
}

/* Super Minimal Responsive */
@media (max-width: 768px) {
    .super-minimal-time {
        font-size: 56px;
    }
}

@media (max-height: 600px) {
    .super-minimal-time {
        font-size: 48px;
    }
}

/* ===== MODE SELECTOR ===== */
.mode-selector {
    display: flex;
    justify-content: center;
}

.mode-tabs {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mode-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.mode-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mode-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.mode-tab svg {
    transition: color var(--transition-fast);
}

/* ===== TIME DISPLAY ===== */
.time-display {
    text-align: center;
}

.time-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    font-feature-settings: 'tnum';
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.time-value {
    font-size: 64px;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: text;
}

.time-value:hover {
    color: var(--accent-primary);
}

.time-separator {
    font-size: 48px;
    font-weight: 200;
    color: var(--text-tertiary);
    line-height: 1;
    margin: 0 var(--space-xs);
}

.time-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.milliseconds .time-value {
    font-size: 32px;
    color: var(--text-secondary);
}

/* Timer Animation */
body.timer-running .time-separator {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Stopwatch Mode Styling */
body.mode-stopwatch .time-value {
    color: var(--success);
}

body.mode-stopwatch .time-separator {
    color: var(--success);
}

body.mode-stopwatch .milliseconds .time-value {
    color: rgba(16, 185, 129, 0.8);
}

/* ===== CONTROLS ===== */
.controls-container {
    display: flex;
    justify-content: center;
}

.controls {
    display: none;
    flex-direction: row;
    gap: var(--space-md);
}

.controls.active {
    display: flex;
}

.btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    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.1), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

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

.btn svg {
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: scale(1.1);
}

/* Running State */
.btn-primary.running {
    background: var(--error);
}

.btn-primary.running:hover {
    background: #dc2626;
}

/* ===== LAP SECTION ===== */
.lap-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.lap-section.hidden {
    display: none;
}

.lap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.lap-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.lap-count {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.lap-list {
    max-height: 200px;
    overflow-y: auto;
}

.lap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    transition: background-color var(--transition-fast);
}

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

.lap-item:hover {
    background: var(--bg-tertiary);
}

.lap-number {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    min-width: 60px;
}

.lap-time {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-feature-settings: 'tnum';
}

.lap-diff {
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

.lap-diff.faster {
    color: var(--success);
}

.lap-diff.slower {
    color: var(--error);
}

/* Custom Scrollbar */
.lap-list::-webkit-scrollbar {
    width: 4px;
}

.lap-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.lap-list::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 2px;
}

.lap-list::-webkit-scrollbar-thumb:hover {
    background: var(--border-secondary);
}

/* ===== SETTINGS PANEL ===== */
.settings-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

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

.setting-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-description {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-switch:hover {
    border-color: var(--border-secondary);
}

.toggle-switch.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-slider {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

/* Opacity Control */
.opacity-control {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.opacity-slider {
    width: 80px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.opacity-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.opacity-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 36px;
    text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .default-view {
        padding: var(--space-md);
        gap: var(--space-lg);
    }

    .time-value {
        font-size: 48px;
    }

    .time-separator {
        font-size: 36px;
    }

    .milliseconds .time-value {
        font-size: 24px;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-height: 600px) {
    .default-view {
        gap: var(--space-lg);
        padding-top: var(--space-lg);
    }

    .time-value {
        font-size: 48px;
    }

    .lap-list {
        max-height: 120px;
    }
}

/* ===== UTILITIES ===== */
/* ===== STITCH STYLE BLOG REDESIGN ===== */

.stitch-grid {
    column-count: 3;
    column-gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .stitch-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .stitch-grid {
        column-count: 1;
    }
}

.stitch-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    /* More rounded like Stitch */
    padding: 0;
    margin-bottom: 24px;
    break-inside: avoid;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stitch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.stitch-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.stitch-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stitch-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stitch-card-category {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.stitch-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

.stitch-card-title a {
    color: inherit;
    text-decoration: none;
}

.stitch-card-title a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.stitch-card-summary {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stitch-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

.stitch-read-more {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    z-index: 2;
    /* Above the full card link */
    position: relative;
}

.stitch-read-more:hover {
    color: var(--accent-primary);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.animate-in {
    animation: slideIn var(--transition-normal) ease-out;
}

.animate-out {
    animation: slideOut var(--transition-normal) ease-in;
}

/* ===== NAVIGATION (SITE SHELL) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    z-index: 101;
}

.navbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.brand {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.main-nav {
    display: none;
}

@media (min-width: 900px) {
    .main-nav {
        display: block;
    }
}

.nav {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
}

.nav-item:hover>.dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
}

.dropdown a:hover {
    background: var(--bg-tertiary);
}

.header-actions {
    display: flex;
    gap: var(--space-sm);
}

.link-muted {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

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

/* ===== HERO / LANDING ===== */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.hero-desc {
    color: var(--text-secondary);
    max-width: 640px;
}

.hero-cta {
    margin-top: var(--space-lg);
}

.hero-cta .btn {
    padding: 12px 16px;
}

/* ===== APPS SHOWCASE ===== */
.apps-card {
    margin-top: var(--space-2xl);
}

.apps-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.app-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin: 0 auto;
}

.app-icon:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.app-label {
    display: block;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.app-item {

    display: flex;

    flex-direction: column;

    align-items: center;

}

/* Modern Header Navigation (Injected) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header .brand {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 20px;
    text-indent: 0.12em;
}

.header .brand a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header .brand a:hover {
    opacity: 0.8;
}

.header .nav-pills {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header .nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.header .nav-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.header .nav-pill:hover::before {
    left: 100%;
}

.header .nav-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.header .nav-pill.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.header .nav-pill-icon {
    font-size: 16px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
        gap: 16px;
    }

    .header .nav-pills {
        gap: 8px;
    }

    .header .nav-pill {
        padding: 10px 16px;
        font-size: 13px;
    }

    .header .brand {
        font-size: 18px;
    }
}