/* ==========================================================================
   LUMIN DENTAL CLINIC V2 - ADVANCED SCIFI EDITORIAL SYSTEM
   ========================================================================== */

/* 1. BRAND VARIABLES */
:root {
    --bg-darker: #040608;
    --bg-dark: #0a0d10;
    --bg-medium: #111518;
    --bg-light: #181c20;
    --accent-cyan: #00f5d4;
    --accent-cyan-hover: #00ddbe;
    --accent-cyan-glow: rgba(0, 245, 212, 0.35);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-cyan: rgba(0, 245, 212, 0.25);
    --color-text: #ffffff;
    --color-text-muted: #8e9fae;
    --font-body: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --shadow-sci: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 245, 212, 0.05);
    --shadow-cyan-glow: 0 0 25px rgba(0, 245, 212, 0.4);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE CONFIGURATION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
    color: var(--color-text);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.65;
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 245, 212, 0.04) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(0, 245, 212, 0.03) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 65px 65px, 65px 65px;
    background-attachment: scroll, scroll, fixed, fixed;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-medium);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    color: var(--color-text-muted);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.container-full {
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

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

.text-cyan {
    color: var(--accent-cyan) !important;
}

.section-header {
    margin-bottom: 70px;
}

.section-tagline {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-cyan {
    background-color: var(--accent-cyan);
    color: var(--bg-darker);
}

.btn-cyan:hover {
    background-color: var(--accent-cyan-hover);
    box-shadow: var(--shadow-cyan-glow);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-darker);
    box-shadow: var(--shadow-cyan-glow);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.72rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.85rem;
}

.disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* 3. MAIN NAVIGATION HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition-smooth);
    background-color: rgba(4, 6, 8, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.main-header.scrolled {
    padding: 16px 0;
    background-color: rgba(4, 6, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-container {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: rgba(0, 245, 212, 0.1);
    border: 1.5px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon {
    color: var(--accent-cyan);
    font-size: 1.15rem;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 4. FULL SCREEN HERO SECTION WITH CYBER HUD */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    background-color: var(--bg-darker);
}

.hero-bg-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) contrast(1.05) saturate(0.85);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at 65% 50%, rgba(4, 6, 8, 0.15) 0%, rgba(4, 6, 8, 0.95) 75%);
    pointer-events: none;
}

.hero-scan-line-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 8px var(--accent-cyan);
    z-index: 3;
    pointer-events: none;
    animation: scanLineMove 6s ease-in-out infinite;
}

@keyframes scanLineMove {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-container-v2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-glass-card {
    max-width: 580px;
    background: rgba(10, 13, 16, 0.72);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sci);
}

.hero-hud-decor {
    position: absolute;
    bottom: 40px;
    right: 24px;
    display: flex;
    gap: 20px;
    z-index: 6;
}

.hud-box {
    background: rgba(10, 13, 16, 0.85);
    border: 1px solid var(--border-cyan);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
}

.hud-title {
    color: var(--color-text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.hud-status {
    color: var(--accent-cyan);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 5px var(--accent-cyan-glow);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: beaconPulse 1.5s infinite;
}

@keyframes beaconPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(0, 245, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.pulse-button {
    animation: btnPulse 1.6s infinite !important;
    border: 1px solid var(--accent-cyan) !important;
    background-color: var(--accent-cyan) !important;
    color: var(--bg-darker) !important;
}

/* 5. DIAGNOSTIC LENS SIMULATOR SECTION */
.diagnostico-section {
    padding: 120px 0;
    background-color: transparent;
}

/* Spotlight circular mask lens wrapper */
.lens-simulator-wrapper {
    position: relative;
    max-width: 850px;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sci);
    overflow: hidden;
    cursor: none; /* Hide default cursor to render circular lens ring instead */
}

.lens-base-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.lens-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 4;
    /* Circular lens path. Initialized centered and 0 size, JS will track cursor */
    clip-path: circle(0px at 0px 0px);
    -webkit-clip-path: circle(0px at 0px 0px);
    transition: clip-path 0.08s ease-out, -webkit-clip-path 0.08s ease-out;
}

/* Circular HUD tracking lens cursor */
.lens-scanner-ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1.5px dashed var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    z-index: 10;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.08s ease-out;
}

.scanner-crosshairs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scanner-crosshairs::before, .scanner-crosshairs::after {
    content: '';
    position: absolute;
    background-color: rgba(0, 245, 212, 0.3);
}

/* Vertical crosshair line */
.scanner-crosshairs::before {
    top: -15px;
    bottom: -15px;
    left: 50%;
    width: 1px;
}

/* Horizontal crosshair line */
.scanner-crosshairs::after {
    left: -15px;
    right: -15px;
    top: 50%;
    height: 1px;
}

.scanner-hud-text {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    font-family: monospace;
    text-shadow: 0 0 5px var(--accent-cyan-glow);
}

.lens-static-hud {
    position: absolute;
    top: 20px;
    left: 25px;
    right: 25px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    pointer-events: none;
}

.lens-static-hud i {
    color: var(--accent-cyan);
}

/* 6. HORIZONTAL TREATMENTS ACCORDION */
.especialidades-section {
    padding: 120px 0;
    background-color: transparent;
}

.horizontal-accordion {
    display: flex;
    width: 100%;
    height: 520px;
    gap: 15px;
    margin-top: 50px;
}

.accordion-column {
    flex: 1; /* Collapsed width */
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1.5px solid var(--border-light);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.column-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.2);
    transition: var(--transition-smooth);
}

.column-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 8, 0.95) 90%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.column-header {
    position: absolute;
    z-index: 5;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 20px;
}

.column-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.35rem;
    transition: var(--transition-smooth);
}

.column-header h3 {
    font-size: 1.6rem;
    color: var(--color-text);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.column-content {
    position: relative;
    z-index: 5;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    max-width: 600px;
}

.column-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.column-content h4 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.column-content p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.column-details {
    display: flex;
    align-items: center;
    gap: 30px;
}

.col-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
}

/* Collapse / Expand Transitions classes */
.accordion-column:not(.active) {
    justify-content: center;
    align-items: center;
}

.accordion-column:not(.active) .column-header {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.accordion-column:not(.active) .column-icon-box {
    transform: rotate(90deg); /* Counter rotate icon to remain upright relatively */
}

.accordion-column:not(.active) .column-content {
    pointer-events: none;
}

/* Active Column adjustments */
.accordion-column.active {
    flex: 3.8; /* Expanded width */
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-sci);
}

.accordion-column.active .column-bg {
    filter: brightness(0.32);
    transform: scale(1.03);
}

.accordion-column.active .column-header {
    top: 40px;
    left: 40px;
    transform: none;
}

.accordion-column.active .column-icon-box {
    background-color: rgba(0, 245, 212, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.accordion-column.active .column-header h3 {
    opacity: 0;
    visibility: hidden;
}

.accordion-column.active .column-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

/* 7. ASYMMETRICAL PORTRAIT SPECIALISTS GRID */
.team-section {
    padding: 120px 0;
    background-color: transparent;
}

.asym-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 60px;
}

.asym-doc-card {
    background: rgba(24, 28, 32, 0.6);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sci);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.asym-doc-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
}

.doc-media {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    background-color: var(--bg-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1.5px solid var(--border-light);
}

.doc-media-placeholder {
    font-size: 5rem;
    color: var(--bg-light);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.doc-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.asym-doc-card:hover .doc-media-img {
    transform: scale(1.04);
}

.doc-title-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: var(--accent-cyan);
    color: var(--bg-darker);
}

.doc-meta {
    padding: 30px;
}

.doc-specialty {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.doc-meta h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.doc-meta p {
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.doc-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-certifications span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border: 1px solid var(--border-light);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Asymmetric offsets for premium editorial rhythm */
.doc-card-offset-1 {
    transform: translateY(35px);
}
.asym-doc-card.doc-card-offset-1:hover {
    transform: translateY(27px);
}

.doc-card-offset-2 {
    transform: translateY(70px);
}
.asym-doc-card.doc-card-offset-2:hover {
    transform: translateY(62px);
}

/* 8. CONVERSATIONAL BOOKING TERMINAL */
.booking-section {
    padding: 120px 0;
    background-color: transparent;
}

.terminal-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 340px;
    background-color: var(--bg-medium);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sci);
    overflow: hidden;
    min-height: 520px;
}

/* Left Vertical Steps */
.terminal-sidebar {
    background-color: var(--bg-dark);
    border-right: 1.5px solid var(--border-light);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-steps-indicator {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.terminal-step-dot {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.terminal-step-dot.active {
    opacity: 1;
}

.terminal-step-dot span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.terminal-step-dot.active span {
    border-color: var(--accent-cyan);
    background-color: var(--accent-cyan);
    color: var(--bg-darker);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.terminal-step-dot label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.terminal-step-dot.active label {
    color: var(--accent-cyan);
}

/* Central slide panel question wizard */
.terminal-main-panel {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1.5px solid var(--border-light);
}

.conversational-form {
    flex-grow: 1;
}

.form-slide {
    display: none;
    opacity: 0;
    animation: fadeSlideIn 0.5s ease forwards;
}

.form-slide.active {
    display: block;
    opacity: 1;
}

@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.slide-question-num {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.slide-question-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Option selector grid cards */
.terminal-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.terminal-options-grid.options-doctors {
    grid-template-columns: 1fr;
}

.terminal-option-card {
    cursor: pointer;
}

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

.option-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.option-card-inner i {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.option-card-inner strong {
    font-size: 0.92rem;
    display: block;
    color: var(--color-text);
}

.option-card-inner small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.terminal-option-card input:checked + .option-card-inner {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 245, 212, 0.06);
}

.terminal-option-card input:checked + .option-card-inner i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
}

/* Slide 3/4 Forms elements */
.terminal-inputs-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.form-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label-v2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.input-field-v2 {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-light);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-field-v2:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.1);
}

/* Slide Nav buttons footer */
.terminal-navigation {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

/* Right digital receipt prescription card */
.terminal-receipt-panel {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.receipt-header {
    border-bottom: 1.5px dashed var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.receipt-barcode {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--color-text-muted);
    opacity: 0.5;
    margin-bottom: 10px;
}

.receipt-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: monospace;
}

.receipt-header span {
    font-family: monospace;
    font-size: 0.65rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-text-muted);
    display: inline-block;
    margin-top: 5px;
}

.receipt-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.r-label {
    font-family: monospace;
    color: var(--color-text-muted);
}

.r-val {
    font-weight: 700;
    color: var(--color-text);
}

.receipt-divider {
    height: 1px;
    border-bottom: 1px dashed var(--border-light);
    margin: 8px 0;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.8rem;
}

.receipt-total span:nth-child(2) {
    font-size: 1.3rem;
    font-weight: 900;
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.receipt-footer {
    margin-top: 30px;
}

/* 9. SATELLITE MAP - FULL CANVAS WITH OVERLAYS */
.branches-section {
    position: relative;
    width: 100%;
    height: 620px;
    border-top: 1.5px solid var(--border-light);
    border-bottom: 1.5px solid var(--border-light);
    overflow: hidden;
}

.map-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* CSS tile color inverts to turn OSM Dark Mint styled */
#dentMap .leaflet-tile-container {
    filter: invert(95%) hue-rotate(185deg) brightness(95%) contrast(92%) !important;
}

/* Overlay Glass Panels stack */
.map-panel-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    bottom: 40px;
    width: 380px;
    background: rgba(10, 13, 16, 0.85);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sci);
    z-index: 5;
    overflow: hidden;
}

.overlay-scroll-container {
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.overlay-header p {
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.branch-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 20px;
}

/* Scroll styling for branches inner scroll */
.branch-cards-stack::-webkit-scrollbar {
    width: 4px;
}
.branch-cards-stack::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.branch-card-v2 {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.branch-card-v2:hover, .branch-card-v2.active {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 245, 212, 0.05);
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.05);
    color: var(--color-text-muted);
}

.branch-card-v2.active .branch-badge {
    background-color: var(--accent-cyan);
    color: var(--bg-darker);
}

.branch-card-v2 h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.branch-card-v2.active h3 {
    color: var(--accent-cyan);
}

.branch-card-v2 p {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.branch-card-v2 p i {
    color: var(--accent-cyan);
}

/* Custom dark styling Leaflet popups */
.leaflet-popup-content-wrapper {
    background-color: var(--bg-light) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
}

.leaflet-popup-tip {
    background-color: var(--bg-light) !important;
}

/* 10. FOOTER */
.main-footer {
    background-color: var(--bg-darker);
    padding: 90px 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-info h3, .footer-links h3, .footer-contact h3 {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 6px;
}

.footer-contact p {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact p i {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 30px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* 11. RESPONSIVE QUERIES */
@media (max-width: 1199px) {
    .horizontal-accordion {
        height: 480px;
    }
    
    .terminal-wrapper {
        grid-template-columns: 180px 1fr 300px;
    }

    .terminal-main-panel {
        padding: 35px;
    }
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(4, 6, 8, 0.98);
        border-top: 1.5px solid var(--border-light);
        border-bottom: 1.5px solid var(--border-light);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .hero-visual-scan {
        aspect-ratio: 16 / 10;
        max-width: 500px;
        margin: 0 auto;
    }

    .horizontal-accordion {
        flex-direction: column;
        height: auto;
    }

    .accordion-column {
        height: 120px;
        justify-content: center;
        padding: 25px;
    }

    .accordion-column.active {
        height: 380px;
        flex: none;
    }

    .accordion-column:not(.active) .column-header {
        top: 50%;
        left: 30px;
        transform: translateY(-50%);
    }

    .accordion-column:not(.active) .column-icon-box {
        transform: none;
    }

    .accordion-column.active .column-header {
        top: 25px;
        left: 25px;
    }

    .asym-team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .doc-card-offset-1, .doc-card-offset-2 {
        transform: none !important;
    }

    .terminal-wrapper {
        grid-template-columns: 1fr;
    }

    .terminal-sidebar {
        border-right: none;
        border-bottom: 1.5px solid var(--border-light);
        padding: 25px;
    }

    .terminal-steps-indicator {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .terminal-step-dot label {
        display: none;
    }

    .terminal-main-panel {
        border-right: none;
        border-bottom: 1.5px solid var(--border-light);
        min-height: 400px;
    }

    .branches-section {
        height: auto;
        display: flex;
        flex-direction: column-reverse;
    }

    .map-bg-canvas {
        position: relative;
        height: 350px;
        width: 100%;
    }

    .map-panel-overlay {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        border-radius: 0;
        border: none;
        border-bottom: 1.5px solid var(--border-light);
    }

    .overlay-scroll-container {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

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

    .lens-simulator-wrapper {
        aspect-ratio: 4 / 3;
    }

    .lens-scanner-ring {
        width: 140px;
        height: 140px;
    }

    .terminal-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
    
    .container-full {
        padding: 0 16px;
    }
}

/* Simulator mode controls */
.simulator-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.sim-control-btn {
    border: 1.5px solid var(--border-light) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--color-text-muted) !important;
    transition: var(--transition-smooth);
}

.sim-control-btn:hover {
    border-color: var(--accent-cyan) !important;
    color: var(--color-text) !important;
}

.sim-control-btn.active {
    background-color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--bg-darker) !important;
    box-shadow: var(--shadow-cyan-glow) !important;
}

/* Linear Slider Handle styles */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--accent-cyan);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.handle-line {
    flex-grow: 1;
    width: 2px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.handle-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-darker);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan-glow), 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1rem;
    margin: 8px 0;
    transition: transform 0.1s ease;
}

.slider-handle:hover .handle-button {
    transform: scale(1.1);
}
