/* Custom Stylesheet - WiFi Order PPSK SaaS DM Page */
/* Theme: Glassmorphism / Palette: Indigo + Emerald / Typography: Plus Jakarta Sans */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #818CF8;
    --cta: #10B981;
    --cta-hover: #059669;
    --background: #F5F3FF;
    --text: #1E1B4B;
    --text-muted: #58508d;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-hover: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.08);
    --terminal-bg: #0F172A;
    --font: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Language-specific Visibility Rules (CSS Only) */
html[lang^="zh"] .lang-en {
    display: none !important;
}
html:not([lang^="zh"]) .lang-zh {
    display: none !important;
}

/* Glowing Background Spheres */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}
.glow-1 {
    top: 5%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(129, 140, 248, 0.1) 70%);
}
.glow-2 {
    top: 35%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(99, 102, 241, 0.05) 70%);
}
.glow-3 {
    bottom: 10%;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.3) 0%, rgba(245, 243, 255, 0) 70%);
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Headings & Text */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 9999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--cta);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-secondary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-secondary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 1px solid rgba(30, 27, 75, 0.2);
}
.btn-outline:hover {
    background-color: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-danger {
    background-color: #ef4444;
    color: white;
}
.btn-danger:hover {
    background-color: #dc2626;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}
.btn-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: var(--transition);
}
.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* LINE Green Button Styles */
.btn-line {
    background-color: #06C755;
    color: white;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
}
.btn-line:hover {
    background-color: #05b04b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}
.line-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}
.line-icon-large {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

/* Language Toggle Custom Button */
.lang-toggle-btn {
    padding: 5px 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    background: transparent;
    transition: var(--transition);
}
.lang-toggle-btn:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
}

.cursor-pointer {
    cursor: pointer;
}
.w-full {
    width: 100%;
}
.hidden {
    display: none !important;
}

/* Floating Navbar Container */
.navbar-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--glass-shadow);
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 18px;
}
.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    margin-right: 8px;
}
.logo-badge {
    font-size: 10px;
    background-color: var(--primary-glow);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 4px;
    font-weight: 600;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}
.menu-icon {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cta);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--cta);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
.hero-title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 580px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Tech Row */
.tech-row {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(30, 27, 75, 0.08);
    padding-top: 24px;
    width: 100%;
}
.tech-item {
    display: flex;
    flex-direction: column;
}
.tech-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.tech-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

/* Hero Visual Card */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}
.visual-card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: var(--glass-shadow), 0 20px 40px rgba(99, 102, 241, 0.04);
    position: relative;
    z-index: 10;
}
.visual-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.visual-dots {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}
.visual-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.visual-dots span:nth-child(1) { background-color: #ef4444; }
.visual-dots span:nth-child(2) { background-color: #f59e0b; }
.visual-dots span:nth-child(3) { background-color: #10b981; }
.visual-title {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
}
.visual-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.qr-preview-box {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 20px;
    padding: 16px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.qr-svg {
    width: 100%;
    height: auto;
    color: var(--text);
}
.qr-scanner-line {
    position: absolute;
    width: calc(100% - 32px);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cta), transparent);
    top: 16px;
    animation: scanner 2.5s infinite ease-in-out;
}
@keyframes scanner {
    0% { top: 16px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 184px; opacity: 0; }
}
.table-tag {
    position: absolute;
    bottom: -10px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}
.active-pulse-card {
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
}
.pulse-icon-container {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-emerald {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--cta);
}
.pulse-text-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pulse-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.pulse-desc {
    font-size: 11px;
    color: var(--text-muted);
}
.active-badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--cta);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}

/* Sections Global */
.section-padding {
    padding: 100px 0;
}
.alt-bg {
    background-color: rgba(99, 102, 241, 0.02);
}
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}
.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}
.section-badge {
    display: inline-block;
    background-color: var(--primary-glow);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}
.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--glass-bg-hover);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.12);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-icon svg {
    width: 24px;
    height: 24px;
}
.bg-indigo { background-color: rgba(99, 102, 241, 0.1); color: var(--primary); }
.bg-purple { background-color: rgba(168, 85, 247, 0.1); color: #a855f7; }
.bg-amber { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.bg-rose { background-color: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.bg-cyan { background-color: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Architecture Section */
.architecture-tabs-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--glass-shadow);
}
.architecture-tabs-nav {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(30, 27, 75, 0.08);
    padding-bottom: 20px;
    margin-bottom: 32px;
    gap: 12px;
    overflow-x: auto;
}
.tab-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}
.tab-btn:hover {
    background-color: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}
.tab-btn.active {
    background-color: var(--primary-glow);
    color: var(--primary);
}
.tab-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(30, 27, 75, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}
.tab-btn.active .tab-num {
    background-color: var(--primary);
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.tab-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.detail-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.tab-details h3 {
    font-size: 26px;
    margin-bottom: 16px;
}
.tab-details p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-list li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.icon-check {
    width: 18px;
    height: 18px;
    color: var(--cta);
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tab Code View */
.tab-visual-code {
    background-color: var(--terminal-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.code-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.tab-visual-code pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}
.tab-visual-code code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Simulator Grid */
.sim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.sim-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    height: 600px;
}
.pane-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(30, 27, 75, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pane-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.color-pos { background-color: var(--primary); }
.color-router { background-color: var(--terminal-bg); }
.color-phone { background-color: var(--cta); }

.pane-header h4 {
    font-size: 14px;
    font-weight: 700;
}
.pane-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.pane-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* POS Panel details */
.pos-tables-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pos-table-card {
    background: white;
    border: 1px solid rgba(30, 27, 75, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}
.pos-table-card.active-table {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.tbl-info {
    display: flex;
    flex-direction: column;
}
.tbl-num {
    font-weight: 700;
    font-size: 15px;
}
.tbl-status {
    font-size: 11px;
    color: var(--text-muted);
}
.tbl-status.occupied {
    color: var(--primary);
    font-weight: 600;
}
.tbl-status.closed {
    color: var(--cta);
    font-weight: 600;
}
.pos-actions-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 16px;
    border: 1px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pos-actions-box h5 {
    font-size: 14px;
    color: var(--primary);
}
.pos-qr-display {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 12px;
}
.mini-qr-frame {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-svg-mini {
    width: 100%;
    color: var(--text);
}
.pos-qr-details {
    display: flex;
    flex-direction: column;
    font-size: 11px;
}
.pos-ssid code, .pos-psk code {
    background-color: var(--background);
    padding: 1px 4px;
    border-radius: 4px;
    font-family: monospace;
}

/* Gateway terminal panel */
.terminal-body {
    background-color: var(--terminal-bg);
    padding: 0;
}
.terminal-bar {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}
.term-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.term-dot.close { background-color: #ef4444; }
.term-dot.minimize { background-color: #f59e0b; }
.term-dot.expand { background-color: #10b981; }
.term-title {
    font-family: monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 12px;
}
.terminal-content {
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #cbd5e1;
    overflow-y: auto;
    flex-grow: 1;
}
.term-line {
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-all;
}
.term-line.cmd::before {
    content: '$ ';
    color: var(--cta);
    font-weight: 700;
}
.term-line.output {
    color: #94a3b8;
}
.term-line.highlight {
    color: var(--cta);
    background: rgba(16, 185, 129, 0.08);
    border-left: 2px solid var(--cta);
    padding-left: 6px;
}
.term-line.info-highlight {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-left: 2px solid #38bdf8;
    padding-left: 6px;
}
.term-line.danger-highlight {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border-left: 2px solid #f87171;
    padding-left: 6px;
}

/* Smartphone Mockup Panel */
.pane-phone {
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 80%), var(--glass-bg);
}
.phone-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
}
.phone-frame {
    width: 250px;
    height: 500px;
    background: #000;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), inset 0 0 4px rgba(255,255,255,0.4);
    position: relative;
    border: 4px solid #1e293b;
}
.phone-notch {
    position: absolute;
    width: 100px;
    height: 18px;
    background: #000;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 100;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fafafa;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    animation: phoneFadeIn 0.3s ease;
}
@keyframes phoneFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.phone-view-header {
    background: white;
    padding: 24px 12px 10px 12px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text);
}
.phone-view-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.phone-instruction {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}
.scan-target-box {
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}
.scan-target-box:not(.disabled):hover {
    border-color: var(--cta);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.scan-target-box.disabled {
    border-color: rgba(30, 27, 75, 0.1);
    background: rgba(30, 27, 75, 0.02);
    cursor: not-allowed;
    opacity: 0.6;
}
.icon-camera {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
}
.scan-target-box:not(.disabled) .icon-camera {
    color: var(--primary);
    animation: cameraPulse 2s infinite;
}
@keyframes cameraPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.scan-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding: 0 8px;
}

/* Connecting Screen utilities */
.flex-center {
    justify-content: center;
    align-items: center;
    height: 100%;
}
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.mt-4 { margin-top: 16px; }
.mt-2 { margin-top: 8px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.text-muted { color: var(--text-muted); }
.icon-large {
    width: 48px;
    height: 48px;
}
.color-indigo { color: var(--primary); }
.color-emerald { color: var(--cta); }
.animate-bounce {
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.text-emerald { color: var(--cta); }

/* Menu Screen Panel */
.brand-header {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px 10px 16px;
    font-size: 12px;
}
.phone-table-badge {
    background: rgba(255,255,255,0.25);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}
.phone-menu-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}
.menu-banner {
    background: white;
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.menu-banner h5 {
    font-size: 11px;
    font-weight: 700;
}
.menu-banner p {
    font-size: 9px;
    color: var(--text-muted);
}
.menu-items-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}
.menu-item-row {
    background: white;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
}
.item-info h6 {
    font-size: 11px;
    font-weight: 700;
}
.item-info span {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}
.menu-checkout-bar {
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 10px 12px 14px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-summary {
    display: flex;
    flex-direction: column;
}
.cart-summary span:first-child {
    font-size: 9px;
    color: var(--text-muted);
}
.cart-summary span:last-child {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

/* Security & Logs layout */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.security-info h3 {
    font-size: 28px;
    margin-bottom: 16px;
}
.security-info p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.security-bullets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sec-bullet {
    display: flex;
    gap: 16px;
}
.sec-bullet-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-glow);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sec-bullet-icon svg {
    width: 18px;
    height: 18px;
}
.sec-bullet-content h5 {
    font-size: 15px;
    margin-bottom: 4px;
}
.sec-bullet-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Interactive Logs Window */
.security-interactive-logs {
    background-color: var(--terminal-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
.logs-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    font-size: 11px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
    gap: 8px;
}
.logs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.logs-dot.green { background-color: var(--cta); animation: flash 1.5s infinite; }
@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.logs-window {
    padding: 20px;
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.log-entry {
    line-height: 1.4;
}
.log-time {
    color: #64748b;
}
.log-tag {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    margin: 0 6px;
    display: inline-block;
}
.tag-info { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }
.tag-success { background: rgba(16, 185, 129, 0.1); color: var(--cta); }
.tag-gateway { background: rgba(99, 102, 241, 0.1); color: var(--primary-light); }
.tag-audit { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.tag-portal { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.log-text {
    word-break: break-word;
}

/* Contact CTA Block Styles (Replaces Wrangler deployment) */
.contact-cta-section {
    padding: 80px 0;
}
.cta-banner-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.cta-banner-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 199, 85, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 5;
}
.cta-content h2 {
    font-size: 32px;
    color: var(--text);
    line-height: 1.25;
}
.cta-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
.cta-actions {
    margin-top: 10px;
    width: 100%;
}
.cta-actions .btn {
    width: auto;
}
.cta-qrcode-box {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}
.line-qr-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(6, 199, 85, 0.15);
    width: 220px;
    transition: var(--transition);
}
.line-qr-card:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 30px rgba(6, 199, 85, 0.12);
}
.line-qr-title {
    font-size: 11px;
    font-weight: 700;
    color: #06C755;
    text-transform: uppercase;
}
.line-qr-frame {
    width: 150px;
    height: 150px;
    padding: 8px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.line-qr-desc {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

/* Footer Section */
.footer-container {
    background-color: #0f172a;
    color: white;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 80px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 30px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.footer-brand .nav-logo {
    color: white;
}
.footer-brand p {
    font-size: 13px;
    color: #94a3b8;
    max-width: 320px;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.footer-links-grid h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 16px;
}
.footer-links-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-grid a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 13px;
    transition: var(--transition);
}
.footer-links-grid a:hover {
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

/* Responsive CSS Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .tech-row {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sim-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sim-panel {
        height: auto;
        min-height: 480px;
    }
    .pane-phone {
        min-height: 560px;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-banner-glass {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .cta-content {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        top: 0;
        left: 0;
        right: 0;
    }
    .navbar {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        display: none;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-menu.mobile-open {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-title {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .tech-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .cta-actions .btn {
        width: 100%;
    }
}

/* POS Order Alert Banner */
.pos-order-alert {
    margin-top: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: orderPulse 1.5s infinite alternate;
}
@keyframes orderPulse {
    0% { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    100% { border-color: rgba(16, 185, 129, 0.8); box-shadow: 0 0 12px rgba(16, 185, 129, 0.15); }
}
.pos-order-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--cta);
    gap: 6px;
}
.pos-order-details {
    background: white;
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pos-order-table {
    font-weight: 800;
    color: var(--text);
}
.pos-order-items {
    color: var(--text-muted);
}
.pos-order-total {
    font-weight: 800;
    color: var(--primary);
    text-align: right;
    border-top: 1px dashed rgba(0,0,0,0.05);
    padding-top: 4px;
    margin-top: 4px;
}
.mb-4 {
    margin-bottom: 16px;
}

/* Consent Overlay Styles */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}
.consent-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.consent-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    max-width: 540px;
    width: 100%;
    padding: 36px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.consent-overlay.fade-out .consent-card-glass {
    transform: scale(0.9);
}
.consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.consent-lock-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.consent-header h3 {
    font-size: 20px;
    color: var(--text);
}
.consent-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Appended Confidentiality Overlay Styles */
.consent-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: consent-slide-up 300ms ease;
}

@keyframes consent-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.consent-warning {
    background-color: #fff5f5;
    border-left: 4px solid #ef4444;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: #991b1b;
    line-height: 1.5;
}

.consent-scroll-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.5);
}

.consent-list {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    list-style-type: decimal;
}

.consent-list li {
    margin-bottom: 12px;
}

.consent-form {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.form-group.col-span-2 {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input.input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

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

.consent-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
}

.consent-checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#consent-submit-btn:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.consent-error-message {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 8px;
    border-radius: 8px;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.col-span-2 {
        grid-column: span 1;
    }
    .consent-card {
        max-height: 95vh;
    }
}



