/* ============================================
   RUHRPOTT RYDER – Industrial Dark Theme
   Mobile-First | Performant | Modular
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Farben – Stahl & Kohle */
    --clr-bg:          #0a0a0a;
    --clr-bg-elevated: #111113;
    --clr-bg-card:     #161619;
    --clr-bg-hover:    #1c1c20;
    --clr-surface:     #1e1e22;
    --clr-border:      #2a2a2f;
    --clr-border-light:#3a3a40;

    /* Text */
    --clr-text:        #e8e6e3;
    --clr-text-muted:  #8a8890;
    --clr-text-dim:    #5c5a62;

    /* Akzent – Glühendes Orange (Stahlwerk-Vibe) */
    --clr-accent:      #e85d26;
    --clr-accent-hover:#ff6b35;
    --clr-accent-glow: rgba(232, 93, 38, 0.25);
    --clr-accent-dim:  rgba(232, 93, 38, 0.08);

    /* Sekundär */
    --clr-success:     #34d399;
    --clr-warning:     #fbbf24;
    --clr-danger:      #ef4444;
    --clr-info:        #60a5fa;

    /* Typografie */
    --font-display:    'Bebas Neue', 'Impact', sans-serif;
    --font-heading:    'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:       'Barlow', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --nav-height:    70px;
    --appbar-height: 72px;
    --radius:        6px;
    --radius-lg:     12px;

    /* Transitions */
    --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--clr-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    transition: background var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.08em;
    color: var(--clr-text);
    line-height: 1;
}

.logo-accent {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.08em;
    color: var(--clr-accent);
    line-height: 1;
}

/* Desktop Nav (hidden on mobile) */
.desktop-nav {
    display: none;
}

.nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--clr-text-muted);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-text);
    background: var(--clr-accent-dim);
}

.nav-link.active {
    color: var(--clr-accent);
}

.nav-admin {
    color: var(--clr-warning) !important;
}

/* =========================================
   MOBILE APP BAR (Bottom Tab Bar)
   ========================================= */
.mobile-appbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: var(--appbar-height);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--clr-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.appbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    text-decoration: none;
    color: var(--clr-text-dim);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
    padding: 10px 0;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

.appbar-item svg {
    width: 26px;
    height: 26px;
    transition: all var(--transition);
}

.appbar-item:hover,
.appbar-item.active {
    color: var(--clr-accent);
}

.appbar-item.active svg {
    filter: drop-shadow(0 0 6px var(--clr-accent-glow));
}

/* Body padding for app bar on mobile */
body {
    padding-bottom: calc(var(--appbar-height) + env(safe-area-inset-bottom, 0));
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}
.btn-primary:hover {
    background: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
    color: #fff;
    box-shadow: 0 0 30px var(--clr-accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text);
    border-color: var(--clr-border-light);
}
.btn-outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Industrieller Hintergrund-Effekt */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 20% 50%, rgba(232, 93, 38, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 80% 100% at 80% 20%, rgba(30, 30, 34, 0.9) 0%, transparent 50%),
        linear-gradient(180deg, var(--clr-bg) 0%, transparent 30%, transparent 70%, var(--clr-bg) 100%);
    z-index: 1;
}

/* Noise-Textur */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    width: clamp(180px, 30vw, 280px);
    height: auto;
    margin: 0 auto var(--space-lg);
    display: block;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
    animation: fadeInUp 0.8s ease both;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-accent);
    border: 1px solid rgba(232, 93, 38, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: var(--clr-text);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title .highlight {
    color: var(--clr-accent);
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: var(--clr-text-muted);
    max-width: 550px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.45s both;
}

/* Scroll-Indikator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--clr-text-dim);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    color: var(--clr-text);
    line-height: 1;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--clr-accent);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

/* =========================================
   FEATURE CARDS (Startseite)
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    border-color: var(--clr-border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--clr-accent-dim);
    color: var(--clr-accent);
    margin-bottom: var(--space-md);
}

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

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--clr-text);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
    background: var(--clr-bg-elevated);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--space-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item .stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, var(--clr-accent-dim) 0%, transparent 70%);
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    color: var(--clr-text);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--clr-bg-elevated);
    border-top: 1px solid var(--clr-border);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-tagline {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-text);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--clr-accent);
}

.social-icons {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    color: var(--clr-text-muted);
    transition: all var(--transition);
}
.social-link:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-dim);
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--clr-text-dim);
    font-size: 0.85rem;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

/* =========================================
   FLASH MESSAGES
   ========================================= */
.flash-message {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 998;
    padding: var(--space-md) 0;
    animation: slideDown 0.4s ease both;
}

.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-success { background: rgba(52, 211, 153, 0.12); color: var(--clr-success); border-bottom: 1px solid rgba(52, 211, 153, 0.2); }
.flash-error   { background: rgba(239, 68, 68, 0.12);  color: var(--clr-danger);  border-bottom: 1px solid rgba(239, 68, 68, 0.2); }
.flash-warning { background: rgba(251, 191, 36, 0.12); color: var(--clr-warning); border-bottom: 1px solid rgba(251, 191, 36, 0.2); }
.flash-info    { background: rgba(96, 165, 250, 0.12); color: var(--clr-info);    border-bottom: 1px solid rgba(96, 165, 250, 0.2); }

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 var(--space-sm);
    opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%      { opacity: 1;   transform: scaleY(1.3); }
}

/* Scroll-triggered Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE – Tablet
   ========================================= */
@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* =========================================
   RESPONSIVE – Desktop
   ========================================= */
@media (min-width: 1024px) {
    :root {
        --nav-height: 80px;
    }

    /* Desktop: Show top nav, hide bottom app bar */
    .desktop-nav {
        display: block;
    }

    .mobile-appbar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

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

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* =========================================
   AUTH / FORMS
   ========================================= */
.auth-section {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
}

.auth-container {
    max-width: 680px;
    margin: 0 auto;
}

.auth-container-narrow {
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-accent);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--clr-border);
    margin-top: var(--space-md);
}

.auth-switch {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--clr-text);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-text);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--clr-text-dim);
}

.form-input:hover {
    border-color: var(--clr-border-light);
}

.form-input:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

.form-input.input-error {
    border-color: var(--clr-danger);
}

.form-input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Select */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option,
.form-select optgroup {
    background: var(--clr-bg-card);
    color: var(--clr-text);
}

/* Password toggle */
.input-password-wrap {
    position: relative;
}

.input-password-wrap .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--clr-text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.password-toggle:hover,
.password-toggle.active {
    color: var(--clr-accent);
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 20px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--clr-border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Hints & Errors */
.form-hint {
    font-size: 0.8rem;
    color: var(--clr-text-dim);
}

.form-error {
    font-size: 0.8rem;
    color: var(--clr-danger);
    font-weight: 500;
}

/* Checkbox */
.form-checkbox-group {
    padding-top: var(--space-sm);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    display: none;
}

.form-checkbox .checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--clr-border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-top: 1px;
}

.form-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
}

.form-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.form-checkbox a {
    color: var(--clr-accent);
}

/* Alert boxes */
.form-alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--clr-danger);
}

.form-alert-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--clr-success);
}

/* Full-width button */
.btn-full {
    width: 100%;
}

/* Responsive form rows */
@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   DASHBOARD
   ========================================= */
.dashboard-header {
    margin-bottom: var(--space-2xl);
}

.dashboard-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-top: var(--space-sm);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.dashboard-card {
    display: block;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.dashboard-card:hover {
    border-color: var(--clr-border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    color: var(--clr-text);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--space-xs);
}

.dashboard-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.dashboard-card-admin {
    border-color: rgba(251, 191, 36, 0.2);
}

.dashboard-card-admin::before {
    background: var(--clr-warning);
}

.feature-icon-admin {
    background: rgba(251, 191, 36, 0.08) !important;
    color: var(--clr-warning) !important;
}

.dashboard-info {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--clr-border);
}

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

.info-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--clr-text-muted);
}

.info-value {
    color: var(--clr-text);
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   PLACEHOLDER CONTENT
   ========================================= */
.placeholder-content {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.placeholder-text {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   MEMBER LISTING
   ========================================= */
.section-count {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
    margin-top: var(--space-md);
}

.members-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.member-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.member-card:hover {
    border-color: var(--clr-border-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.member-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--clr-border);
    flex-shrink: 0;
}

.member-avatar-placeholder {
    background: var(--clr-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(232, 93, 38, 0.3);
}

.member-avatar-placeholder span {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--clr-accent);
    line-height: 1;
}

/* Role Badges */
.member-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.member-badge-admin {
    background: rgba(232, 93, 38, 0.15);
    color: var(--clr-accent);
    border: 1px solid rgba(232, 93, 38, 0.3);
}

.member-badge-moderator {
    background: rgba(96, 165, 250, 0.12);
    color: var(--clr-info);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.member-card-body {
    padding: 0 var(--space-lg) var(--space-xl);
    text-align: center;
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--space-sm);
}

.member-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.35rem;
}

.member-meta svg {
    flex-shrink: 0;
    color: var(--clr-text-dim);
}

.member-vehicle {
    color: var(--clr-text-dim);
    font-size: 0.8rem;
}

.member-since {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-dim);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--clr-border);
}

@media (min-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   MEMBER AREA BODY
   ========================================= */
.member-body {
    padding-bottom: calc(var(--appbar-height) + env(safe-area-inset-bottom, 0));
}

@media (min-width: 1024px) {
    .member-body {
        padding-bottom: 0;
    }
}

/* Desktop nav helpers */
.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--clr-border);
    margin: 0 var(--space-xs);
}

.nav-back {
    color: var(--clr-text-dim) !important;
    font-size: 0.85rem !important;
}
.nav-back:hover {
    color: var(--clr-text-muted) !important;
}

/* =========================================
   PROFILE PAGE
   ========================================= */
.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;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

.profile-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--clr-border);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--clr-accent-dim);
    border: 3px solid rgba(232, 93, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--clr-accent);
    line-height: 1;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--clr-accent);
    border: 2px solid var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all var(--transition);
}

.profile-avatar-edit:hover {
    background: var(--clr-accent-hover);
    transform: scale(1.1);
}

.profile-avatar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.profile-avatar-info strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text);
}

.profile-avatar-info span {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.profile-role-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-top: 4px;
}

.profile-role-admin {
    background: rgba(232, 93, 38, 0.15);
    color: var(--clr-accent);
    border: 1px solid rgba(232, 93, 38, 0.3);
}

.profile-role-moderator {
    background: rgba(96, 165, 250, 0.12);
    color: var(--clr-info);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.profile-role-member {
    background: rgba(52, 211, 153, 0.1);
    color: var(--clr-success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--clr-border);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--clr-bg-card);
}

.profile-info-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--clr-text-muted);
}

.profile-info-value {
    font-size: 0.9rem;
    color: var(--clr-text);
}

/* =========================================
   TOURS & EVENTS
   ========================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-xl);
}
.back-link:hover { color: var(--clr-accent); }

/* Tabs */
.tour-tabs {
    display: flex;
    gap: 2px;
    background: var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.tour-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    background: var(--clr-bg-card);
    color: var(--clr-text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.tour-tab:hover { color: var(--clr-text); }
.tour-tab.active {
    background: var(--clr-accent);
    color: #fff;
}

.tour-tab-content { display: none; }
.tour-tab-content.active { display: block; }

/* Tour Cards (List) */
.tours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tour-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    text-decoration: none;
    color: var(--clr-text);
    transition: all var(--transition);
    flex-wrap: wrap;
}
.tour-card:hover {
    border-color: var(--clr-accent);
    transform: translateX(4px);
    color: var(--clr-text);
}
.tour-card-past { opacity: 0.6; }
.tour-card-past:hover { opacity: 0.85; }

.tour-date-badge {
    width: 52px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--clr-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.tour-date-badge.past { background: var(--clr-text-dim); }

.tour-date-day {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
}
.tour-date-month {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.tour-card-body { flex: 1; min-width: 0; }
.tour-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 2px;
}
.tour-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.tour-card-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.tour-card-km {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text-dim);
}
.tour-card-riders {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-accent);
    letter-spacing: 0.03em;
}

.tour-card-actions {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* Tour Detail */
.tour-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.tour-detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.03em;
    color: var(--clr-text);
    line-height: 1.1;
}

.tour-detail-sub {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.tour-status-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}
.tour-status-badge.past {
    background: rgba(92, 90, 98, 0.2);
    color: var(--clr-text-dim);
    border: 1px solid var(--clr-border);
}

.tour-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.tour-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tour-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: var(--space-md);
}
.tour-info-card svg {
    flex-shrink: 0;
    color: var(--clr-accent);
    margin-top: 2px;
}
.tour-info-label {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-dim);
    margin-bottom: 2px;
}
.tour-info-card strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text);
}

.tour-description {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    white-space: pre-line;
}

.tour-creator {
    font-size: 0.8rem;
    color: var(--clr-text-dim);
    margin-bottom: var(--space-xl);
}

.tour-action {
    margin-bottom: var(--space-xl);
}

/* Participants */
.tour-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--space-md);
}

.tour-no-participants {
    font-size: 0.85rem;
    color: var(--clr-text-dim);
}

.tour-participants-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tour-participant {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
}

.tp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.tp-avatar-ph {
    background: var(--clr-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--clr-accent);
}

.tp-info { display: flex; flex-direction: column; min-width: 0; }
.tp-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-text);
}
.tp-vehicle {
    font-size: 0.75rem;
    color: var(--clr-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .tour-info-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .tour-detail-grid {
        grid-template-columns: 1fr 300px;
    }
}

/* =========================================
   ADMIN AREA
   ========================================= */
.admin-header {
    border-bottom-color: rgba(251, 191, 36, 0.2);
}

.admin-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-warning);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: var(--space-sm);
    align-self: center;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition);
    display: block;
}
.admin-stat-card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-2px);
    color: var(--clr-text);
}

.admin-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.admin-stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

.admin-stat-alert {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-warning);
    margin-top: var(--space-sm);
}

.admin-stat-sub {
    font-size: 0.75rem;
    color: var(--clr-text-dim);
    margin-top: var(--space-xs);
}

@media (min-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Admin Section */
.admin-section {
    margin-bottom: var(--space-2xl);
}

/* Filter Tabs */
.admin-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.admin-filter-tab {
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--clr-text-muted);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}
.admin-filter-tab:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}
.admin-filter-tab.active {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
}
.admin-filter-alert {
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--clr-warning);
}

/* Admin Table */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table thead {
    background: var(--clr-surface);
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    border-bottom: 1px solid var(--clr-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text);
    vertical-align: middle;
}

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

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

/* Role & Status Badges */
.admin-role-badge,
.admin-status-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 50px;
}

.role-admin     { background: rgba(232,93,38,0.15); color: var(--clr-accent); }
.role-moderator { background: rgba(96,165,250,0.12); color: var(--clr-info); }
.role-member    { background: rgba(138,136,144,0.1); color: var(--clr-text-muted); }

.status-open     { background: rgba(251,191,36,0.15); color: var(--clr-warning); }
.status-approved { background: rgba(52,211,153,0.12); color: var(--clr-success); }
.status-blocked  { background: rgba(239,68,68,0.12); color: var(--clr-danger); }

/* Admin Action Icon Buttons */
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    color: var(--clr-text-muted);
    background: none;
    cursor: pointer;
}
.admin-icon-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-dim);
}

.admin-icon-btn.action-approve { color: var(--clr-success); border-color: rgba(52,211,153,0.25); }
.admin-icon-btn.action-approve:hover { background: rgba(52,211,153,0.08); border-color: var(--clr-success); }
.admin-icon-btn.action-block { color: var(--clr-warning); border-color: rgba(251,191,36,0.25); }
.admin-icon-btn.action-block:hover { background: rgba(251,191,36,0.08); border-color: var(--clr-warning); }
.admin-icon-btn.action-delete { color: var(--clr-danger); border-color: rgba(239,68,68,0.2); }
.admin-icon-btn.action-delete:hover { background: rgba(239,68,68,0.08); border-color: var(--clr-danger); }
.admin-icon-btn.action-mod { color: var(--clr-info); border-color: rgba(96,165,250,0.25); }
.admin-icon-btn.action-mod:hover { background: rgba(96,165,250,0.08); border-color: var(--clr-info); }
.admin-icon-btn.action-demote { color: var(--clr-text-dim); }

/* Legacy text buttons (gallery, pois, tours admin) */
.admin-action-btn {
    display: inline-block;
    padding: 3px 8px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    color: var(--clr-text-muted);
}
.admin-action-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.action-approve { color: var(--clr-success); border-color: rgba(52,211,153,0.3); }
.action-approve:hover { border-color: var(--clr-success); color: var(--clr-success); }
.action-block   { color: var(--clr-warning); border-color: rgba(251,191,36,0.3); }
.action-delete  { color: var(--clr-danger); border-color: rgba(239,68,68,0.3); }
.action-delete:hover { border-color: var(--clr-danger); color: var(--clr-danger); }
.action-mod     { color: var(--clr-info); border-color: rgba(96,165,250,0.3); }
.action-demote  { color: var(--clr-text-dim); }

/* Sortable Table Headers */
.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
    white-space: nowrap;
}

.sortable-table th.sortable:hover {
    color: var(--clr-accent);
}

.sortable-table th.sortable .sort-icon {
    font-size: 0.6rem;
    opacity: 0.6;
}

.sortable-table th.sort-asc,
.sortable-table th.sort-desc {
    color: var(--clr-accent);
}

.sortable-table th.sort-asc .sort-icon,
.sortable-table th.sort-desc .sort-icon {
    opacity: 1;
}

/* Permissions Page */
.perm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
}

.perm-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

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

.perm-dot-none   { background: var(--clr-border-light); }
.perm-dot-view   { background: var(--clr-info); }
.perm-dot-edit   { background: var(--clr-warning); }
.perm-dot-delete { background: var(--clr-danger); }

.perms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.perms-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.perms-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--clr-border);
}

.perms-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
}

.perms-card-username {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-dim);
}

.perms-module-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.perms-module-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
}

.perms-module-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: 0.03em;
}

.perms-level-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.perms-level-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.perms-level-option:hover {
    border-color: var(--clr-border-light);
    background: var(--clr-bg-hover);
}

.perms-level-option.selected {
    border-color: var(--clr-accent);
    background: var(--clr-accent-dim);
}

.perms-level-option input[type="radio"] {
    display: none;
}

.perms-level-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--clr-border-light);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.perms-level-option.selected .perms-level-radio {
    border-color: var(--clr-accent);
}

.perms-level-option.selected .perms-level-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clr-accent);
}

.perms-level-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    letter-spacing: 0.03em;
}

.perms-level-option.selected .perms-level-text {
    color: var(--clr-text);
}

@media (min-width: 640px) {
    .perms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .perms-level-options {
        grid-template-columns: repeat(4, 1fr);
    }
    .perms-module-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .perms-level-options {
        flex: 1;
        max-width: 500px;
    }
}

/* =========================================
   ADMIN USER DETAIL
   ========================================= */
.user-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
}

.user-detail-avatar-wrap {
    flex-shrink: 0;
}

.user-detail-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--clr-border);
}

.user-detail-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-accent-dim);
    border-color: rgba(232, 93, 38, 0.3);
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--clr-accent);
}

.user-detail-info {
    min-width: 0;
}

.user-detail-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.03em;
    color: var(--clr-text);
    line-height: 1.1;
}

.user-detail-username {
    font-size: 0.9rem;
    color: var(--clr-text-dim);
    margin-top: 2px;
}

.user-detail-badges {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.user-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--clr-border);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-2xl);
}

.user-detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-md);
    background: var(--clr-bg-card);
    text-align: center;
}

.user-detail-stat strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text);
}

.user-detail-stat span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-dim);
}

/* Danger Zone */
.danger-zone {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.03);
}

.danger-zone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

@media (min-width: 480px) {
    .user-detail-stats {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* =========================================
   COOKIE INFO BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: var(--space-md) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0));
    background: var(--clr-bg-card);
    border-top: 1px solid var(--clr-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cookie-banner-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cookie-banner p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--clr-text-muted);
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cookie-banner-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-dim);
    text-decoration: none;
}
.cookie-banner-link:hover { color: var(--clr-accent); }

.cookie-banner-btn {
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--clr-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.cookie-banner-btn:hover { background: var(--clr-accent-hover); }

@media (min-width: 640px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
    }
    .cookie-banner p { flex: 1; }
}

/* Mobile: Banner über App Bar schieben */
@media (max-width: 1023px) {
    .cookie-banner {
        bottom: var(--appbar-height);
    }
}

/* =========================================
   MOBILE OPTIMIERUNGEN
   ========================================= */

/* Schnellere Touch-Response */
a, button, .poi-item, .tour-card, .gallery-item, .img-grid-item,
.appbar-item, .nav-link, .admin-icon-btn, .admin-filter-tab {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Admin-Tabellen: bessere Lesbarkeit auf Mobile */
@media (max-width: 768px) {
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .admin-table th {
        font-size: 0.6rem;
    }

    .admin-icon-btn {
        width: 34px;
        height: 34px;
    }

    .admin-actions {
        gap: 3px;
    }

    /* Filter-Tabs scrollen statt wrappen */
    .admin-filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .admin-filter-tabs::-webkit-scrollbar { display: none; }
    .admin-filter-tab {
        flex-shrink: 0;
    }

    /* Stat-Karten: 2 Spalten beibehalten aber kompakter */
    .admin-stats-grid {
        gap: var(--space-sm);
    }
    .admin-stat-card {
        padding: var(--space-md);
    }
    .admin-stat-number {
        font-size: 1.8rem;
    }

    /* User-Detail Header: vertikal auf Mobile */
    .user-detail-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    /* Danger Zone kompakter */
    .danger-zone-actions {
        flex-direction: column;
    }
    .danger-zone-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Kleine Screens: POI Sidebar unter Karte */
@media (max-width: 639px) {
    .poi-map-wrap {
        height: 350px;
    }

    .poi-toolbar {
        gap: 6px;
    }

    .poi-search-input,
    .poi-cat-filter {
        font-size: 0.8rem;
        padding: 0.55rem 0.75rem;
    }

    /* Gallery Group Header kompakter */
    .gallery-group-title {
        font-size: 1.2rem;
    }

    /* Upload Queue: Progress Bar kleiner */
    .upload-item-progress {
        flex: 0 0 80px;
    }

    /* Perms: 1 Spalte auf kleinen Screens */
    .perms-level-options {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   LEGAL PAGES
   ========================================= */
.legal-content {
    max-width: 720px;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-size: 0.9rem;
}

.legal-content a {
    color: var(--clr-accent);
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--clr-text);
    font-weight: 600;
}

.legal-updated {
    font-size: 0.8rem;
    color: var(--clr-text-dim);
    margin-bottom: var(--space-xl);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-decoration: none;
    margin-bottom: var(--space-xl);
    transition: color var(--transition);
}
.back-link:hover {
    color: var(--clr-accent);
}

/* =========================================
   HOMEPAGE SEO SECTIONS
   ========================================= */
.intro-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-lg);
}
.intro-text p:last-child {
    margin-bottom: 0;
}
.intro-text strong {
    color: var(--clr-text);
    font-weight: 600;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}
.vehicle-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--transition);
}
.vehicle-card:hover {
    border-color: var(--clr-accent);
}
.vehicle-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--space-sm);
}
.vehicle-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin: 0;
}

@media (min-width: 640px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   WHATSAPP GRUPPEN
   ========================================= */
.wa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.wa-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}
.wa-card:hover {
    border-color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.08);
}

.wa-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.08);
    border: 2px solid rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
}

.wa-card-icon-tours {
    background: rgba(232, 93, 38, 0.08);
    border-color: rgba(232, 93, 38, 0.2);
    color: var(--clr-accent);
}

.wa-card-icon-tips {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.2);
    color: var(--clr-info);
}

.wa-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: var(--space-sm);
}

.wa-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin: 0;
}

@media (min-width: 640px) {
    .wa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   PWA INSTALL BANNER
   ========================================= */
.pwa-banner {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #161619 0%, #1c1c20 100%);
    border-bottom: 1px solid var(--clr-accent);
    box-shadow: 0 4px 24px rgba(232, 93, 38, 0.1);
    animation: pwaSlideIn 0.4s ease-out;
}

@keyframes pwaSlideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.pwa-banner-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--clr-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1.3;
}

.pwa-banner-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.pwa-banner-install {
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--clr-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.pwa-banner-install:hover {
    background: var(--clr-accent-hover);
}

.pwa-banner-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    color: var(--clr-text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.pwa-banner-close:hover {
    border-color: var(--clr-text-muted);
    color: var(--clr-text-muted);
}

/* Mobile: Text kürzen */
@media (max-width: 480px) {
    .pwa-banner-text span {
        display: none;
    }
    .pwa-banner-text strong {
        font-size: 0.8rem;
    }
}