/* ================================================
   TicinoHub Master CSS — v2.0
   Brand Manual Implementation
   Estratto e ottimizzato dal Brand Manual v2.0
   ================================================= */

:root {
    /* TicinoHub Primary — Institutional Blue */
    --th-midnight: #0c1220;
    --th-deep: #152238;
    --th-navy: #1b3a5f;
    --th-prussian: #234875;
    --th-slate: #3d5a80;
    --th-steel: #5c7a99;
    --th-silver: #98a9bc;
    --th-light: #e8ecf1;
    --th-white: #f8fafb;

    /* TicinoHub Accent — Ticino Red */
    --th-crimson: #c41e3a;
    --th-ruby: #a31b32;
    --th-garnet: #8b172a;

    /* TicinoHub Premium — Institutional Gold */
    --th-bronze: #8b6914;
    --th-gold: #b8860b;
    --th-amber: #d4a853;
    --th-amber-rgb: 212, 168, 83;

    /* Vertical Colors */
    --artigiani-color: #2563eb;
    --associazioni-color: #C41E3A;
    --crypto-color: #0066FF;
    --civic-color: #7C3AED;
    --ripetizioni-color: #059669;
    --presto-color: #DC2626;
    --spazio-color: #D97706;
    --alloggi-color: #0D9488;
    --manifestazioni-color: #EC4899;
    --professionisti-color: #4F46E5;

    /* Typography */
    --font-display: 'Crimson Pro', Georgia, serif;
    --font-primary: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ================================================
   RESET & BASE
   ================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.65;
    color: var(--th-midnight);
    background: var(--th-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   TYPOGRAPHY
   ================================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--th-navy);
}

h3 {
    font-size: 1.25rem;
    color: var(--th-crimson);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h4 {
    font-size: 1.125rem;
    color: var(--th-midnight);
}

p {
    margin-bottom: 1rem;
    color: var(--th-slate);
}

p.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--th-steel);
}

/* ================================================
   LAYOUT SYSTEM
   ================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

/* ================================================
   COMPONENTS
   ================================================= */

/* Cards */
.card {
    background: var(--th-white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--th-light);
}

.card-dark {
    background: var(--th-deep);
    color: var(--th-white);
}

.card-bordered {
    border-left: 4px solid var(--th-crimson);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--th-crimson);
    color: var(--th-white);
}

.btn-primary:hover {
    background: var(--th-ruby);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: var(--th-navy);
    color: var(--th-white);
}

.btn-secondary:hover {
    background: var(--th-prussian);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(27, 58, 95, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--th-crimson);
    color: var(--th-crimson);
}

.btn-outline:hover {
    background: var(--th-crimson);
    color: var(--th-white);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--th-light);
    border-radius: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--th-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--th-crimson);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

/* ================================================
   NAVIGATION
   ================================================= */

.nav {
    background: var(--th-white);
    border-bottom: 1px solid var(--th-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--th-navy);
    text-decoration: none;
}

.nav-logo .ticino { color: var(--th-navy); }
.nav-logo .hub { 
    color: var(--th-crimson);
    font-style: italic;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--th-slate);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--th-crimson);
}

/* ================================================
   HERO SECTIONS
   ================================================= */

.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--th-white) 0%, var(--th-light) 100%);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    color: var(--th-midnight);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: var(--th-steel);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ================================================
   SECTIONS
   ================================================= */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 600;
    color: var(--th-midnight);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--th-steel);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   VERTICAL TAGS (per identificare i servizi)
   ================================================= */

.vertical-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vertical-artigiani {
    background: rgba(37, 99, 235, 0.12);
    color: var(--artigiani-color);
}

.vertical-associazioni {
    background: rgba(196, 30, 58, 0.12);
    color: var(--associazioni-color);
}

.vertical-civic {
    background: rgba(124, 58, 237, 0.12);
    color: var(--civic-color);
}

.vertical-crypto {
    background: rgba(0, 102, 255, 0.12);
    color: var(--crypto-color);
}

.vertical-ripetizioni {
    background: rgba(5, 150, 105, 0.12);
    color: var(--ripetizioni-color);
}

.vertical-presto {
    background: rgba(220, 38, 38, 0.12);
    color: var(--presto-color);
}

.vertical-spazio {
    background: rgba(217, 119, 6, 0.12);
    color: var(--spazio-color);
}

.vertical-alloggi {
    background: rgba(13, 148, 136, 0.12);
    color: var(--alloggi-color);
}

.vertical-manifestazioni {
    background: rgba(236, 72, 153, 0.12);
    color: var(--manifestazioni-color);
}

.vertical-professionisti {
    background: rgba(79, 70, 229, 0.12);
    color: var(--professionisti-color);
}

/* ================================================
   FOOTER
   ================================================= */

.footer {
    background: var(--th-midnight);
    color: var(--th-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--th-amber);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--th-silver);
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--th-silver);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--th-amber);
}

.footer-bottom {
    border-top: 1px solid var(--th-slate);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--th-amber);
}

.footer-copyright {
    color: var(--th-silver);
    font-size: 0.875rem;
}

/* ================================================
   UTILITIES
   ================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ================================================
   RESPONSIVE DESIGN
   ================================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .vertical-profile-display,
    .ati-profile-display {
        width: 48px;
        height: 48px;
    }

    .service-label {
        font-size: 7px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .services {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .vertical-profile-display,
    .ati-profile-display {
        width: 40px;
        height: 40px;
    }

    .service-label {
        font-size: 6px;
        letter-spacing: 0;
    }
}

/* ================================================
   ACCESSIBILITY & PREFERENCES
   ================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--th-crimson);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --th-white: #ffffff;
        --th-light: #f0f0f0;
        --th-silver: #c0c0c0;
        --th-steel: #808080;
        --th-slate: #404040;
    }
}

/* ================================================
   BRAND WORDMARK & LOGO COMPONENTS
   ================================================= */

/* Brand Card — Brand Manual Style */
.brand-card {
    background: linear-gradient(135deg, rgba(248, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(27, 58, 95, 0.15);
    border-radius: 12px;
    padding: 32px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--th-crimson) 0%, var(--th-navy) 100%);
}

.brand-wordmark {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(32px, 6vw, 42px);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.brand-wordmark .ticino {
    color: var(--th-navy);
}

.brand-wordmark .hub {
    color: var(--th-crimson);
    font-style: italic;
    font-weight: 600;
}

.brand-tagline {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.5vw, 20px);
    font-style: italic;
    font-weight: 400;
    color: var(--th-steel);
    line-height: 1.5;
    margin: 0;
}

.brand-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--th-amber);
    margin-top: 16px;
    padding: 6px 12px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 4px;
}

/* Status Badge — Brand Manual Style */
.status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--th-steel);
    margin-bottom: 40px;
    padding: 12px 24px;
    border: 1px solid var(--th-light);
    background: var(--th-light);
    border-radius: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--th-crimson);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(196, 30, 58, 0);
    }
}

/* Headlines — Display Typography */
.headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--th-midnight);
}

.headline .heavy {
    font-weight: 600;
}

.headline .light {
    font-weight: 400;
    font-style: italic;
    color: var(--th-crimson);
}

.headline-sub {
    font-family: var(--font-primary);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--th-steel);
}

/* Tagline — Crimson Pro Italic */
.tagline {
    font-family: var(--font-display);
    font-size: clamp(14px, 2.5vw, 16px);
    font-style: italic;
    color: var(--th-slate);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ================================================
   SERVICES GRID
   ================================================= */

.services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service:hover {
    background: var(--th-light);
    transform: translateY(-2px);
}

.service-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.service-icon {
    font-size: 28px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.service:hover .service-icon,
.service-link:hover .service-icon {
    filter: grayscale(0%);
}

.service-link:hover .service-label {
    color: var(--th-crimson);
}

.service-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--th-steel);
    text-align: center;
}

/* ArtigianiTI Logo (ATI Mark) - Profile Picture Style */
.ati-profile-display {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #141414;
    border: 2px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-link:hover .ati-profile-display {
    transform: scale(1.05);
    border-color: #555555;
}

.ati-mark {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
    transform: skewX(-8deg);
    display: inline-block;
    font-size: 28px;
}

.ati-mark .a {
    color: #f9f9f9;
}

.ati-mark .ti {
    color: #E89A2E;
}

/* Vertical Profile Displays */
.vertical-profile-display {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    font-size: 24px;
}

.service-link:hover .vertical-profile-display {
    transform: scale(1.05);
}

/* AssociazioniTI */
.associazioni-profile {
    background: linear-gradient(135deg, #FAFAF8 0%, #FFF5F5 100%);
    border: 2px solid rgba(196, 30, 58, 0.3);
}

.service-link:hover .associazioni-profile {
    border-color: var(--associazioni-color);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

/* CryptoTI */
.crypto-profile {
    background: linear-gradient(135deg, #0c1220 0%, #152238 100%);
    border: 2px solid rgba(0, 102, 255, 0.3);
}

.service-link:hover .crypto-profile {
    border-color: var(--crypto-color);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* CivicTI */
.civic-profile {
    background: linear-gradient(135deg, #F8F5FF 0%, #EDE9FE 100%);
    border: 2px solid rgba(124, 58, 237, 0.3);
}

.service-link:hover .civic-profile {
    border-color: var(--civic-color);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* RipetizioniTI */
.ripetizioni-profile {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid rgba(5, 150, 105, 0.3);
}

.service-link:hover .ripetizioni-profile {
    border-color: var(--ripetizioni-color);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

/* PrestoTI */
.presto-profile {
    background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.service-link:hover .presto-profile {
    border-color: var(--presto-color);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* SpazioTI */
.spazio-profile {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px solid rgba(217, 119, 6, 0.3);
}

.service-link:hover .spazio-profile {
    border-color: var(--spazio-color);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

/* AlloggiTI */
.alloggi-profile {
    background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
    border: 2px solid rgba(13, 148, 136, 0.3);
}

.service-link:hover .alloggi-profile {
    border-color: var(--alloggi-color);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* ManifestazioniTI */
.manifestazioni-profile {
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    border: 2px solid rgba(236, 72, 153, 0.3);
}

.service-link:hover .manifestazioni-profile {
    border-color: var(--manifestazioni-color);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

/* ProfessionistiTI */
.professionisti-profile {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border: 2px solid rgba(79, 70, 229, 0.3);
}

.service-link:hover .professionisti-profile {
    border-color: var(--professionisti-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Vertical Mark Typography */
.vertical-mark {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 14px;
}

.vertical-mark .name {
    color: #1a1a1a;
}

.vertical-mark .ti {
    font-weight: 800;
}

.vertical-mark.dark .name {
    color: #f8fafb;
}

/* Crypto specific mark */
.crypto-mark {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.crypto-mark .crypto {
    color: #f8fafb;
}

.crypto-mark .ti {
    color: #F7931A;
}

/* ================================================
   FORMS — USER TYPE SELECTION & SIGNUP
   ================================================= */

.user-type-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.user-type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--th-slate);
    transition: color 0.3s ease;
}

.user-type-option:hover {
    color: var(--th-crimson);
}

.user-type-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--th-light);
    border-radius: 50%;
    background: var(--th-white);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-option input[type="radio"]:checked {
    border-color: var(--th-crimson);
    background: var(--th-crimson);
}

.user-type-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--th-white);
    border-radius: 50%;
}

.user-type-label {
    user-select: none;
}

/* Email signup */
.signup {
    display: flex;
    gap: 0;
    max-width: 500px;
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--th-light);
    transition: border-color 0.3s ease;
}

.signup:focus-within {
    border-color: var(--th-crimson);
}

.signup-input {
    flex: 1;
    background: var(--th-white);
    border: none;
    padding: 16px 20px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--th-midnight);
    outline: none;
}

.signup-input::placeholder {
    color: var(--th-steel);
}

.signup-btn {
    background: var(--th-crimson);
    border: none;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--th-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: var(--th-ruby);
}

.signup-note {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--th-steel);
    letter-spacing: 0.05em;
    text-align: center;
}

/* ================================================
   FOOTER — COMING SOON STYLE
   ================================================= */

.footer-coming-soon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 18, 32, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(196, 30, 58, 0.3);
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-company {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--th-white);
    margin-bottom: 4px;
}

.footer-address {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--th-silver);
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-brand {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--th-amber);
}

.footer-brand .light {
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    font-family: var(--font-primary);
    font-size: 11px;
    color: var(--th-silver);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--th-amber);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--th-amber);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-contact {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--th-silver);
}

.footer-contact a {
    color: var(--th-silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--th-amber);
}

.elarateq-jupiter-mass-banner {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(var(--th-amber-rgb), 0.1);
    border: 1px solid rgba(var(--th-amber-rgb), 0.3);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.elarateq-jupiter-mass-banner:hover {
    background: rgba(var(--th-amber-rgb), 0.2);
    border-color: var(--th-amber);
    text-decoration: none;
}

.elarateq-jupiter-mass-banner img {
    height: 24px;
    width: auto;
}

/* ================================================
   ADMIN LOGIN PAGE
   ================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--th-deep) 0%, var(--th-midnight) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(27, 58, 95, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.5rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.login-brand .ticino {
    color: var(--th-steel);
}

.login-brand .hub {
    color: var(--th-crimson);
    font-style: italic;
    font-weight: 600;
}

.login-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--th-silver);
    margin-top: 0.5rem;
}

.login-card {
    background: linear-gradient(135deg, rgba(248, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(27, 58, 95, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--th-crimson) 0%, var(--th-navy) 100%);
}

.login-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 600;
    color: var(--th-midnight);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.login-error {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--th-ruby);
}

.login-error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--th-midnight);
    display: block;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--th-steel);
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--th-crimson);
}

.login-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--th-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--th-midnight);
    background: var(--th-white);
    transition: all 0.2s ease;
}

.login-input::placeholder {
    color: var(--th-steel);
}

.login-input:focus {
    outline: none;
    border-color: var(--th-crimson);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.login-input:focus + .login-input-icon,
.login-input-wrapper:focus-within .login-input-icon {
    color: var(--th-crimson);
}

.login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--th-crimson) 0%, var(--th-ruby) 100%);
    color: var(--th-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--th-ruby) 0%, var(--th-garnet) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.login-btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(196, 30, 58, 0.2),
        0 4px 12px rgba(196, 30, 58, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--th-silver);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-back-link:hover {
    color: var(--th-white);
}

.login-back-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.login-back-link:hover .login-back-icon {
    transform: translateX(-2px);
}

/* Responsive adjustments for login */
@media (max-width: 480px) {
    .login-page {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header {
        margin-bottom: 2rem;
    }
}

/* ================================================
   PRINT STYLES
   ================================================= */

@media print {
    .btn,
    .nav {
        display: none !important;
    }
}

