/* --------------------------------------------------
   3D PRINT TICKETS - DESIGN SYSTEM
   Colors: 
     - RAL 9001 Cremeweiß (Cream): #FDFBF7 / #F8F5EE
     - RAL 1003 Signalgelb (Signal Yellow): #F8A800 / #FFB800
   -------------------------------------------------- */
:root {
    /* Color Palette */
    --ral-9001: #FDFBF7;
    --ral-9001-darker: #F4EFDF;
    --ral-9001-card: #FFFFFF;
    
    --signal-yellow: #F8A800;
    --signal-yellow-hover: #E09400;
    --signal-yellow-active: #C88200;
    --signal-yellow-light: rgba(248, 168, 0, 0.12);
    --signal-yellow-border: rgba(248, 168, 0, 0.35);

    --dark-obsidian: #16181B;
    --dark-slate: #212529;
    --dark-muted: #495057;

    --text-main: #1D2125;
    --text-muted: #5E6770;
    --text-light: #8C96A0;

    --border-warm: #E6E1D3;
    --border-light: #EFECE1;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(22, 24, 27, 0.04);
    --shadow-md: 0 8px 24px rgba(22, 24, 27, 0.07);
    --shadow-lg: 0 16px 36px rgba(22, 24, 27, 0.11);
    --shadow-yellow: 0 8px 20px rgba(248, 168, 0, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--ral-9001);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-obsidian);
    font-weight: 700;
    line-height: 1.25;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-yellow {
    background-color: var(--signal-yellow);
    color: var(--dark-obsidian);
    border-color: var(--signal-yellow);
    box-shadow: var(--shadow-yellow);
}

.btn-yellow:hover {
    background-color: var(--signal-yellow-hover);
    border-color: var(--signal-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(248, 168, 0, 0.35);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark-obsidian);
    border-color: var(--dark-obsidian);
}

.btn-outline-dark:hover {
    background-color: var(--dark-obsidian);
    color: var(--ral-9001);
    transform: translateY(-2px);
}

.btn-outline-yellow {
    background-color: transparent;
    color: var(--dark-obsidian);
    border-color: var(--signal-yellow);
}

.btn-outline-yellow:hover {
    background-color: var(--signal-yellow-light);
    border-color: var(--signal-yellow-hover);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark-obsidian);
    color: #FFFFFF;
    border-color: var(--dark-obsidian);
}

.btn-dark:hover {
    background-color: var(--dark-slate);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.w-100 {
    width: 100%;
}

/* NAVBAR */
.header-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-warm);
    padding: 12px 6%;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    gap: 20px;
}

/* Left side of Navbar: Authentication Links / User Status */
.nav-auth-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth-link {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    color: var(--dark-obsidian);
}

.nav-auth-link:hover {
    background-color: var(--signal-yellow-light);
    color: var(--dark-obsidian);
}

/* Form Input Placeholders */
::placeholder {
    color: #525B68 !important;
    opacity: 0.85 !important;
}

body.dark-mode ::placeholder {
    color: #A0AEC0 !important;
    opacity: 0.9 !important;
}

.nav-auth-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode table,
body.dark-mode .table,
body.dark-mode .table > :not(caption) > * > * {
    background-color: var(--ral-9001-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-warm) !important;
}

body.dark-mode .modal-content {
    background-color: var(--ral-9001-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-warm) !important;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: var(--border-warm) !important;
}

body.dark-mode .avatar-select-card,
body.dark-mode .avatar-option-btn {
    background-color: var(--ral-9001-darker) !important;
    border-color: var(--border-warm) !important;
}

body.dark-mode code {
    background-color: rgba(248, 168, 0, 0.25) !important;
    color: var(--signal-yellow) !important;
}

/* Points Icon styling for Filamento points */
.points-icon {
    height: 1.25em;
    width: auto;
    vertical-align: -0.2em;
    display: inline-block;
    object-fit: contain;
}

/* Main Landing Background with Fixed Image (fondo.jpg) */
.main-landing-bg {
    background-image: url('fondo.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.main-landing-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 251, 247, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .main-landing-bg::before {
    background: rgba(18, 20, 23, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-landing-bg > * {
    position: relative;
    z-index: 1;
}

.main-landing-bg .hero-section {
    background: rgba(253, 251, 247, 0.4);
    border-bottom: 1px solid var(--border-warm);
}

.main-landing-bg .about-platform-section {
    background: rgba(248, 245, 238, 0.45);
}

.main-landing-bg .about-us-section {
    background: rgba(253, 251, 247, 0.5);
    border-top: 1px solid var(--border-warm);
}

body.dark-mode .main-landing-bg .hero-section {
    background: rgba(18, 20, 23, 0.4);
}

body.dark-mode .main-landing-bg .about-platform-section {
    background: rgba(22, 24, 27, 0.45);
}

body.dark-mode .main-landing-bg .about-us-section {
    background: rgba(18, 20, 23, 0.5);
}

.user-badge-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--ral-9001-darker);
    border: 1.5px solid var(--border-warm);
    padding: 5px 15px 5px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-obsidian);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.user-badge-nav:hover {
    background-color: var(--signal-yellow-light);
    border-color: var(--signal-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-avatar-emoji {
    width: 34px;
    height: 34px;
    background-color: var(--ral-9001-card);
    border: 1.5px solid var(--border-warm);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.user-name-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dark-obsidian);
    margin-right: 2px;
}

.nav-right-group .nav-link,
.header-navbar a.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
    text-decoration: none;
}

.nav-right-group .nav-link::after,
.header-navbar a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: -2px;
    left: 50%;
    background-color: var(--signal-yellow-hover);
    transition: all 0.25s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-right-group .nav-link:hover::after,
.header-navbar a.nav-link:hover::after {
    width: 100%;
}

/* Contact Method Radio Buttons Layout */
.contact-method-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-method-radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: var(--ral-9001-darker);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-method-radio-group label:hover {
    border-color: var(--signal-yellow);
    background-color: var(--signal-yellow-light);
}

/* Brand Logo (Center / Right) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark-obsidian);
    line-height: 1;
    text-decoration: none;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-height: 38px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--signal-yellow) 0%, #FFD000 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(248, 168, 0, 0.4);
    font-size: 1.1rem;
}

/* Right side of Navbar: Main Links & Language */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-menu-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-menu-links a:hover {
    color: var(--dark-obsidian);
}

/* Language Selector */
.lang-select-form select {
    background-color: var(--ral-9001-darker);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-obsidian);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.lang-select-form select:hover {
    border-color: var(--signal-yellow);
}

/* HERO LANDING SECTION */
.hero-section {
    padding: 80px 6% 60px;
    background: radial-gradient(circle at 80% 20%, rgba(248, 168, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(244, 239, 223, 0.6) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-warm);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--signal-yellow-light);
    border: 1px solid var(--signal-yellow-border);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-obsidian);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--dark-obsidian);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-title span {
    background: linear-gradient(135deg, var(--dark-obsidian) 40%, var(--signal-yellow-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Hero Showcase Card Visual */
.hero-visual {
    position: relative;
}

.hero-visual-card {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.visual-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0E9F6E;
    background-color: #DEF7EC;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.dot-active {
    width: 8px;
    height: 8px;
    background-color: #0E9F6E;
    border-radius: 50%;
}

.hero-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-mini-card {
    background-color: var(--ral-9001);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.feature-mini-card:hover {
    border-color: var(--signal-yellow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 38px;
    height: 38px;
    background-color: var(--signal-yellow-light);
    border: 1px solid var(--signal-yellow-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-mini-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.feature-mini-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SECTION COMMONS */
.section-padding {
    padding: 80px 6%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-obsidian);
    background-color: var(--signal-yellow);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* EXPLANATION / DE QUÉ VA LA WEB SECTION */
.about-platform-section {
    background-color: var(--ral-9001);
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: 35px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--signal-yellow);
}

.service-card:hover::before {
    background: var(--signal-yellow);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    background-color: var(--signal-yellow-light);
    border: 1px solid var(--signal-yellow-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* QUIÉNES SOMOS SECTION */
.about-us-section {
    background-color: var(--ral-9001-darker);
    border-top: 1px solid var(--border-warm);
    border-bottom: 1px solid var(--border-warm);
}

.about-us-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-us-content h2 {
    font-size: 2.3rem;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.about-us-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-obsidian);
    margin-bottom: 4px;
}

.stat-number span {
    color: var(--signal-yellow-hover);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* CATALOG SECTION */
.catalog-section {
    max-width: 1280px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-product {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--signal-yellow-border);
}

.card-img-wrapper {
    height: 230px;
    background-color: #EFECE1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--dark-obsidian);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* BOTTOM DUAL CTA HERO SECTION */
.bottom-cta-wrapper {
    width: 100%;
    padding: 50px 20px 70px;
    border-top: 1px solid var(--border-warm);
}

.main-landing-bg .bottom-cta-wrapper {
    background: rgba(253, 251, 247, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .main-landing-bg .bottom-cta-wrapper {
    background: rgba(18, 20, 23, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-cta-section {
    background: linear-gradient(135deg, rgba(18, 20, 23, 0.95) 0%, rgba(37, 42, 48, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-warm);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 1200px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.bottom-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(248, 168, 0, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.bottom-cta-section h2 {
    color: #FFFFFF;
    font-size: 2.4rem;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.bottom-cta-section p {
    color: #B0B7C0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 35px;
}

.dual-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FOOTER - MULTI-COLUMN ARTICLES */
.site-footer {
    background-color: var(--ral-9001-darker);
    border-top: 1px solid var(--border-warm);
    padding: 60px 6% 35px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto 45px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 45px;
}

.footer-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
}

.footer-article-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-obsidian);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
    width: 100%;
}

.footer-article-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    background-color: var(--signal-yellow);
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-nav-list a {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-nav-list a:hover {
    color: var(--dark-obsidian);
    transform: translateX(4px);
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 7px 14px;
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
}

.footer-contact-link:hover {
    border-color: var(--signal-yellow);
    background-color: var(--signal-yellow-light);
    color: var(--dark-obsidian);
    transform: translateX(4px);
}

.footer-bottom-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-warm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.88rem;
    text-align: left;
}

/* DARK MODE STYLES */
body.dark-mode {
    --ral-9001: #121417;
    --ral-9001-darker: #191C21;
    --ral-9001-card: #20242B;
    
    --text-main: #F4EFDF;
    --text-muted: #A5B0BC;
    --text-light: #707C88;

    --border-warm: #2C323B;
    --border-light: #252A32;

    --dark-obsidian: #FFFFFF;
    --dark-slate: #E6E1D3;
}

body.dark-mode .header-navbar {
    background-color: rgba(18, 20, 23, 0.92);
    border-bottom-color: var(--border-warm);
}

body.dark-mode .user-badge-nav {
    background-color: #20242B;
    border-color: var(--border-warm);
    color: #F4EFDF;
}

body.dark-mode .user-badge-nav:hover {
    background-color: rgba(248, 168, 0, 0.18);
    border-color: var(--signal-yellow);
}

body.dark-mode .user-avatar-emoji {
    background-color: #191C21;
    border-color: var(--border-warm);
}

body.dark-mode .contact-method-radio-group label {
    background-color: #191C21;
    border-color: #353C48;
    color: #F4EFDF;
}

body.dark-mode .contact-method-radio-group label:hover {
    border-color: var(--signal-yellow);
    background-color: rgba(248, 168, 0, 0.15);
}

body.dark-mode .service-card, 
body.dark-mode .card-product,
body.dark-mode .about-us-card-box,
body.dark-mode .stat-box,
body.dark-mode .form-card,
body.dark-mode .feature-mini-card,
body.dark-mode .modal-content {
    background-color: var(--ral-9001-card) !important;
    border-color: var(--border-warm) !important;
    color: var(--text-main) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: var(--border-warm) !important;
}

body.dark-mode .modal-title {
    color: var(--text-main) !important;
}

body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode .avatar-option {
    background-color: #191C21 !important;
    border-color: var(--border-warm) !important;
}

body.dark-mode .avatar-option:hover,
body.dark-mode .avatar-option.selected {
    background-color: rgba(248, 168, 0, 0.2) !important;
    border-color: var(--signal-yellow) !important;
}

body.dark-mode table,
body.dark-mode .table,
body.dark-mode .table > :not(caption) > * > * {
    background-color: var(--ral-9001-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-warm) !important;
}

body.dark-mode .footer-contact-link {
    background-color: #262B34;
    color: #F4EFDF;
    border-color: #353C48;
}

body.dark-mode .footer-contact-link:hover {
    background-color: var(--signal-yellow-light);
    color: var(--signal-yellow);
    border-color: var(--signal-yellow);
}

body.dark-mode .lang-select-form select,
body.dark-mode .theme-toggle-btn {
    background-color: #262B34;
    color: #F4EFDF;
    border-color: #353C48;
}

body.dark-mode .form-control, 
body.dark-mode .form-select {
    background-color: #191C21 !important;
    color: #F4EFDF !important;
    border-color: #353C48 !important;
}

/* CUSTOM SLIDING DARK MODE SWITCH */
.theme-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.theme-toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-obsidian);
}

.dark-switch-btn {
    width: 48px;
    height: 26px;
    border-radius: 50px;
    border: none;
    padding: 3px;
    cursor: pointer;
    position: relative;
    background-color: #EF4444; /* OFF: Red */
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    outline: none;
}

.dark-switch-btn:focus-visible {
    outline: 2px solid var(--signal-yellow);
    outline-offset: 2px;
}

.dark-switch-btn[aria-checked="true"] {
    background-color: #22C55E; /* ON: Green */
}

.dark-switch-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFFFFF;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.dark-switch-btn[aria-checked="true"] .dark-switch-knob {
    transform: translateX(22px);
}

/* TICKETS PAGE STYLING (DARK MODE COMPATIBLE) */
.tickets-table-card {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tickets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-main);
}

.tickets-table th {
    background-color: var(--ral-9001-darker);
    color: var(--dark-obsidian);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-warm);
    text-align: left;
}

.tickets-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-warm);
    color: var(--text-main);
    vertical-align: middle;
}

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

.tickets-table tbody tr:hover {
    background-color: var(--signal-yellow-light);
}

.no-tickets-card {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .tickets-table-card,
body.dark-mode .no-tickets-card {
    background-color: var(--ral-9001-card);
    border-color: var(--border-warm);
    color: #F4EFDF;
}

body.dark-mode .tickets-table th {
    background-color: #191C21;
    color: #F4EFDF;
    border-bottom-color: var(--border-warm);
}

body.dark-mode .tickets-table td {
    border-bottom-color: var(--border-warm);
    color: #F4EFDF;
}

body.dark-mode .tickets-table tbody tr:hover {
    background-color: rgba(248, 168, 0, 0.15);
}

/* BOTTOM CTA SEPARATED & HIGH CONTRAST BUTTONS */
.dual-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-cta-primary {
    background-color: var(--signal-yellow);
    color: #121417;
    border: 2px solid var(--signal-yellow);
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(248, 168, 0, 0.4);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    background-color: var(--signal-yellow-hover);
    border-color: var(--signal-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(248, 168, 0, 0.55);
}

.btn-cta-secondary {
    background-color: #FFFFFF;
    color: #121417;
    border: 2px solid #FFFFFF;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background-color: #F0F0F0;
    border-color: #F0F0F0;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.4);
}

/* FORM PAGES (LOGIN, REGISTER, TICKET FORMS) */
.form-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at 50% 30%, rgba(248, 168, 0, 0.1) 0%, transparent 60%);
}

.form-card {
    background-color: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
}

.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Override Crispy Forms & Bootstrap Inputs to match RAL 9001 + Signal Yellow */
.form-control, .form-select {
    background-color: var(--ral-9001) !important;
    border: 1px solid var(--border-warm) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    color: var(--text-main) !important;
    transition: var(--transition) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--signal-yellow) !important;
    box-shadow: 0 0 0 3px rgba(248, 168, 0, 0.25) !important;
    outline: none !important;
}

.form-label {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--dark-obsidian) !important;
    margin-bottom: 6px !important;
}

/* Responsive queries */
@media (max-width: 992px) {
    .hero-container, .about-us-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .nav-menu-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .dual-cta-container {
        flex-direction: column;
        width: 100%;
    }
    .dual-cta-container .btn {
        width: 100%;
    }
}

/* Centered Landing Hero */
.hero-centered {
    text-align: center;
    padding: 90px 6% 70px;
}

.hero-container-single {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-container-single .hero-subtitle {
    max-width: 680px;
    margin: 0 auto 10px;
}

.about-us-card-box {
    background: var(--ral-9001-card);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.about-us-card-box h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-icon-badge {
    background: var(--signal-yellow);
    padding: 6px;
    border-radius: 8px;
    font-size: 1rem;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tech-list li {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.tech-list strong {
    color: var(--dark-obsidian);
    min-width: 130px;
}

/* Dark mode styling for redeemed vouchers table */
body.dark-mode .redeemed-vouchers-table {
    background-color: var(--ral-9001-card) !important;
    color: var(--text-main) !important;
}
body.dark-mode .redeemed-vouchers-table th,
body.dark-mode .redeemed-vouchers-table td {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border-warm) !important;
}


