/* ==========================================================================
   Sabre Alarm - Core Design System & Theme Layout
   ========================================================================== */

:root {
    --bg-dark: #070314;
    --bg-mid: #0d0925;
    --bg-light: #16113a;
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --accent-red: #f43f5e;
    --accent-red-glow: rgba(244, 63, 94, 0.4);
    --accent-yellow: #f59e0b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 10, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-secondary);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Glowing Backdrops */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.bg-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.bg-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

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

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

a:hover {
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    border: none;
    gap: 8px;
    transition: var(--transition);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, #e11d48 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05em;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75em;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Styled Form Fields */
.styled-select, input[type="text"], input[type="url"], input[type="tel"], input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9em;
    outline: none;
    transition: var(--transition);
}

.styled-select:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="tel"]:focus, input[type="email"]:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.styled-select optgroup {
    background: var(--bg-dark);
    color: #818cf8;
    font-weight: 700;
    font-style: normal;
}

.styled-select option {
    background: var(--bg-mid);
    color: var(--text);
}

/* ==========================================================================
   Header and Top Navigation
   ========================================================================== */

.main-header {
    background: rgba(7, 3, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shield {
    font-size: 2.2em;
}

.logo-text h1 {
    font-size: 1.4em;
    line-height: 1;
}

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

.sub-logo {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* View Swapper Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-muted);
}

/* Content Layout Wrapper */
.content-wrapper {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    min-height: calc(100vh - 200px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECTION 1: MARKETING & PRICING SITE
   ========================================================================== */

/* Hero Banner */
.hero-banner {
    text-align: center;
    padding: 60px 20px 80px;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-banner h2 {
    font-size: 3em;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-desc {
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto 35px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.h-feat {
    text-align: left;
}

.feat-icon {
    font-size: 1.8em;
    margin-bottom: 12px;
    display: block;
}

.h-feat h4 {
    margin-bottom: 6px;
    font-size: 1.05em;
}

.h-feat p {
    font-size: 0.85em;
}

/* Sections and Titles */
.marketing-block {
    margin-bottom: 70px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
}

/* Hardware Showcase Grid */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.hardware-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.hardware-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

.hw-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    border-bottom: 1px solid var(--glass-border);
}

.hw-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hw-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.7em;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hw-tag.best-value {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.hardware-card h4 {
    font-size: 1.15em;
    margin-bottom: 8px;
}

.hardware-card p {
    font-size: 0.85em;
    margin-bottom: 16px;
    flex-grow: 1;
}

.hw-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.hw-price .curr-symbol {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1em;
}

.hw-price .price-val {
    font-family: var(--font-primary);
    font-size: 1.6em;
    font-weight: 800;
    color: var(--text);
}

.hw-price .price-type {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-left: 4px;
}

/* SaaS Pricing Plan Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
    transform: scale(1.03);
}

.pricing-card:hover:not(.featured) {
    border-color: rgba(255,255,255,0.2);
}

.card-featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.8em;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 10px var(--primary-glow);
    text-transform: uppercase;
}

.p-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.p-header h4 {
    font-size: 1.5em;
    margin-bottom: 4px;
}

.p-header p {
    font-size: 0.85em;
    margin-bottom: 16px;
}

.p-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.p-amount .curr-symbol {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent);
}

.p-amount .price-val {
    font-family: var(--font-primary);
    font-size: 2.5em;
    font-weight: 800;
    color: var(--text);
}

.p-amount .p-term {
    font-size: 0.9em;
    color: var(--text-muted);
}

.p-sub-detail {
    font-size: 0.75em;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.p-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.p-body ul {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.p-body li {
    margin-bottom: 12px;
    font-size: 0.9em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-body li strong {
    color: var(--text);
}

/* Low-Cost Community shared layout */
.community-block {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-top: 80px;
}

.community-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.comm-text h3 {
    font-size: 2.2em;
    margin: 10px 0 15px;
}

.subtitle {
    font-size: 1.1em;
    color: var(--accent);
    margin-bottom: 20px;
}

.model-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.m-step {
    display: flex;
    gap: 16px;
}

.step-num {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-desc h5 {
    font-size: 1.05em;
    margin-bottom: 4px;
}

.step-desc p {
    font-size: 0.85em;
}

/* Infrastructure Node Diagram */
.comm-visual {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.infra-diagram {
    height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.infra-diagram .node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    z-index: 2;
}

.node-icon {
    font-size: 1.2em;
    margin-bottom: 2px;
}

.node-label {
    font-size: 0.65em;
    font-weight: 600;
    text-transform: uppercase;
}

.central-hub {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary) !important;
    border-color: #a78bfa;
    box-shadow: 0 0 20px var(--primary-glow);
}

.client-node {
    transform: scale(0.9);
}

.c1 { top: 20%; left: 20%; }
.c2 { top: 20%; right: 20%; }
.c3 { bottom: 20%; left: 15%; }
.c4 { bottom: 15%; right: 25%; }

/* Pulsing concentric rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1.5px solid rgba(124, 58, 237, 0.4);
    border-radius: 50%;
    animation: pulseRing 3s infinite linear;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { width: 50px; height: 50px; opacity: 1; }
    100% { width: 260px; height: 260px; opacity: 0; }
}

.comm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comm-stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.comm-stat h5 {
    font-size: 1.5em;
    color: var(--accent);
    margin-bottom: 4px;
}

.comm-stat p {
    font-size: 0.75em;
}

/* ==========================================================================
   SECTION 2: CELLPHONE APP SIMULATOR
   ========================================================================== */

.sim-container {
    display: grid;
    grid-template-columns: 320px 380px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 10px;
}

/* Left Trip Panel */
.sim-ctrl-panel, .sim-info-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sim-ctrl-panel h3, .sim-info-panel h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-desc {
    font-size: 0.8em;
    margin-bottom: 20px;
}

.sim-trip-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 20px;
}

.trip-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.trip-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.trip-item-info {
    display: flex;
    flex-direction: column;
}

.trip-item-info strong {
    font-size: 0.85em;
}

.trip-item-info span {
    font-size: 0.7em;
    color: var(--text-muted);
}

.trip-btn {
    padding: 5px 10px;
    font-size: 0.75em;
}

.trip-btn.bypassed {
    opacity: 0.4;
    cursor: not-allowed;
}

.sim-globals-panel {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.sim-globals-panel h4 {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.power-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.power-toggle-row span {
    font-size: 0.8em;
    font-weight: 500;
}

.helper-text {
    font-size: 0.7em;
    color: var(--text-muted);
}

/* Smartphone Mockup Frame */
.phone-frame {
    width: 360px;
    height: 720px;
    background: #111;
    border: 12px solid #2e2e2e;
    border-radius: 40px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.6), 
        0 0 0 2px rgba(255,255,255,0.05),
        inset 0 0 10px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 20px;
    background: #2e2e2e;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.phone-header {
    height: 38px;
    padding: 10px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-muted);
    z-index: 5;
}

.phone-network {
    display: flex;
    gap: 6px;
}

/* Cell App Styles */
.phone-app {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 16px 20px;
    overflow: hidden;
}

.app-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.shield-mini {
    font-size: 1.1em;
}

.app-brand h3 {
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
}

/* Active Siren Alerts Inside App */
.siren-alarm-bar {
    background: linear-gradient(90deg, var(--accent-red) 0%, #e11d48 100%);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px var(--accent-red-glow);
    animation: appAlertFlash 1.5s infinite alternate;
}

.siren-alarm-bar.hidden {
    display: none;
}

@keyframes appAlertFlash {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.02); filter: brightness(1.2); }
}

.siren-pulse {
    font-size: 1.4em;
    animation: spinSlow 3s infinite linear;
}

@keyframes spinSlow {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.siren-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.siren-text strong {
    font-size: 0.75em;
    color: #fff;
}

.siren-text span {
    font-size: 0.6em;
    color: rgba(255,255,255,0.8);
}

/* Loadshedding Warning inside App */
.loadshedding-alarm-bar {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.65em;
    font-weight: 600;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 10px;
}

.loadshedding-alarm-bar.hidden {
    display: none;
}

/* circular visual status ring */
.status-circle-container {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}

.status-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid #222;
    transition: var(--transition);
    text-align: center;
}

.status-circle.disarmed {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.status-circle.armed_perimeter {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

.status-circle.armed_away {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
}

.status-circle.panic {
    border-color: var(--accent-red);
    background: rgba(244, 63, 94, 0.08);
    box-shadow: 0 0 35px var(--accent-red-glow);
    animation: panicRingFlash 0.8s infinite alternate;
}

@keyframes panicRingFlash {
    0% { transform: scale(1); box-shadow: 0 0 25px var(--accent-red-glow); }
    100% { transform: scale(1.04); box-shadow: 0 0 45px rgba(244, 63, 94, 0.7); }
}

.status-icon {
    font-size: 1.8em;
    margin-bottom: 2px;
}

.status-text {
    font-family: var(--font-primary);
    font-size: 0.9em;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.status-subtext {
    font-size: 0.55em;
    color: var(--text-muted);
    max-width: 100px;
    margin-top: 2px;
}

/* Smartphone Controls Arm Buttons */
.arm-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.arm-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.arm-btn:hover {
    background: rgba(255,255,255,0.06);
}

.arm-btn.active {
    background: var(--bg-light);
    border-color: var(--primary);
    box-shadow: inset 0 0 10px rgba(124, 58, 237, 0.15);
}

.arm-btn.active strong {
    color: #a78bfa;
}

.arm-btn.panic {
    grid-column: span 2;
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
}

.arm-btn.panic:hover {
    background: rgba(244, 63, 94, 0.2);
}

.arm-btn.panic.active {
    background: var(--accent-red);
    border-color: #fca5a5;
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.arm-btn.panic.active strong {
    color: #fff;
}

.arm-icon {
    font-size: 1.1em;
    margin-bottom: 4px;
}

.arm-btn strong {
    font-size: 0.7em;
    font-weight: 700;
    color: var(--text);
}

.arm-btn span {
    font-size: 0.55em;
    color: var(--text-muted);
}

/* Smartphone Tab Inner Navigation */
.app-inner-nav {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
}

.inner-tab-btn {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 6px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.75em;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.inner-tab-btn.active {
    color: var(--text);
    border-color: var(--primary);
}

.app-scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.inner-tab-content {
    display: none;
}

.inner-tab-content.active {
    display: block;
}

.device-section-header {
    font-size: 0.6em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--glass-border);
    padding-bottom: 4px;
}

/* Smartphone Sensors List */
.app-device-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-dev-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.app-dev-row.bypassed {
    opacity: 0.5;
}

.app-dev-row.tripped {
    border-color: var(--accent-red);
    background: rgba(244, 63, 94, 0.05);
}

.app-dev-lead {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-dev-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.app-dev-row.tripped .app-dev-indicator {
    background: var(--accent-red);
    box-shadow: 0 0 6px var(--accent-red);
}

.app-dev-row.bypassed .app-dev-indicator {
    background: var(--text-muted);
}

.app-dev-name {
    display: flex;
    flex-direction: column;
}

.app-dev-name strong {
    font-size: 0.75em;
}

.app-dev-name span {
    font-size: 0.65em;
    color: var(--text-muted);
}

.app-dev-trail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-dev-battery {
    font-size: 0.55em;
    color: var(--text-muted);
}

.app-bypass-toggle {
    font-size: 0.6em;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

.app-bypass-toggle.active {
    background: var(--accent-yellow);
    color: #000;
    border-color: #fbbf24;
}

/* Smartphone Logs List */
.app-log-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-log-row {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 6px;
    font-size: 0.65em;
    border-left: 2.5px solid var(--primary);
}

.app-log-row.info { border-left-color: #3b82f6; }
.app-log-row.warning { border-left-color: var(--accent-yellow); }
.app-log-row.danger { border-left-color: var(--accent-red); }
.app-log-row.success { border-left-color: var(--accent); }

.app-log-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 2px;
}

.app-log-msg {
    color: var(--text);
    line-height: 1.3;
}

/* Right Info Monitor Panel */
.timeline-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.t-step {
    display: flex;
    gap: 12px;
    position: relative;
    opacity: 0.4;
    transition: var(--transition);
}

.t-step.active {
    opacity: 1;
}

.t-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1.5px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.t-step.active .t-dot {
    background: var(--primary);
    border-color: #a78bfa;
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.t-step h5 {
    font-size: 0.85em;
    margin-bottom: 2px;
}

.t-step p {
    font-size: 0.75em;
}

.patriot-dispatch-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dispatch-header {
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dispatch-header span {
    font-size: 0.7em;
    font-weight: 600;
}

.dispatch-pulse-dot {
    font-size: 0.85em;
}

.dispatch-pulse-dot.firing {
    color: var(--accent-red);
    animation: appAlertFlash 0.5s infinite alternate;
}

.dispatch-pulse-dot.success {
    color: var(--accent);
}

.patriot-dispatch-preview pre {
    padding: 12px;
    font-family: monospace;
    font-size: 0.7em;
    color: var(--accent);
    overflow-x: auto;
}

/* ==========================================================================
   SECTION 3: CLIENT BACKEND DASHBOARD
   ========================================================================== */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.admin-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-card-full {
    grid-column: span 2;
}

.ac-header {
    background: rgba(255,255,255,0.02);
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-header h3 {
    font-size: 1.15em;
    font-weight: 700;
}

.card-action-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.65em;
    padding: 4px 10px;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
}

.ac-body {
    padding: 24px;
}

.ac-desc {
    font-size: 0.85em;
    margin-bottom: 20px;
}

/* Database lists */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.scrollable-admin-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-list-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-row-meta {
    display: flex;
    flex-direction: column;
}

.admin-row-meta strong {
    font-size: 0.9em;
}

.admin-row-meta span {
    font-size: 0.75em;
    color: var(--text-muted);
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inline forms */
.admin-inline-form {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-inline-form h4 {
    font-size: 0.9em;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.form-group label {
    font-size: 0.75em;
    color: var(--text-muted);
    font-weight: 500;
}

.inline-checkbox-group {
    justify-content: center;
}

.inline-checkbox-group label {
    font-size: 0.85em;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Webhook Queue */
.patriot-webhook-history {
    margin-top: 24px;
    border-top: 1px dashed var(--glass-border);
    padding-top: 20px;
}

.patriot-webhook-history h4 {
    font-size: 0.85em;
    margin-bottom: 12px;
}

.webhook-queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.wh-row {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wh-info {
    display: flex;
    flex-direction: column;
}

.wh-info strong {
    font-size: 0.75em;
    color: var(--primary);
}

.wh-info span {
    font-size: 0.6em;
    color: var(--text-muted);
}

/* Billing Panel layout */
.billing-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.billing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.b-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b-lbl {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.b-val {
    font-size: 1.25em;
}

.invoice-history h4 {
    font-size: 0.9em;
    margin-bottom: 14px;
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    text-align: left;
}

.billing-table th {
    border-bottom: 2px solid var(--glass-border);
    padding: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.billing-table td {
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
    background: #04010a;
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px;
    margin-top: 60px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .sim-container {
        grid-template-columns: 1fr;
    }
    .phone-frame {
        grid-row: 1;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-card-full {
        grid-column: span 1;
    }
    .billing-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .community-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .hero-banner h2 {
        font-size: 2em;
    }
    .hero-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   QR ACTIVATION, GPS & VECTOR NEIGHBORHOOD MAP DYNAMICS
   ========================================================================== */

.qr-preloaded-list {
    margin-top: 15px;
    margin-bottom: 20px;
}

.qr-preloaded-list h4 {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.coverage-map-container {
    padding: 10px 0;
}

.coverage-layout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .coverage-layout-grid {
        grid-template-columns: 1fr;
    }
}

.coverage-params {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.incentive-box-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 10px;
}

.sharing-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    cursor: pointer;
    margin-bottom: 6px;
    color: var(--text);
}

.sharing-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.incentive-helper {
    font-size: 0.8em;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.incentive-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.incentive-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: glowAlert 2s infinite ease-in-out;
}

@keyframes glowAlert {
    0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
    100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.2); }
}

.neighbor-lookup-tool {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    margin-top: 10px;
}

.neighbor-lookup-tool h4 {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
}

.coverage-alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    line-height: 1.4;
    margin-top: 12px;
    border: 1px solid transparent;
}

.coverage-alert-box.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.coverage-alert-box.alert-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #fca5a5;
    border-color: rgba(244, 63, 94, 0.25);
}

/* SVG Coverage Vector Map styling */
.coverage-vector-map {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.vector-map-wrapper {
    width: 100%;
    max-width: 320px;
    position: relative;
}

#neighborhood-svg {
    border-radius: var(--radius-md);
    background: radial-gradient(circle at center, rgba(17, 10, 40, 0.8) 0%, rgba(7, 3, 20, 0.95) 100%);
    cursor: crosshair;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

#svg-coverage-range-pulse {
    transform-origin: 200px 200px;
    animation: svgPulse 3s infinite linear;
}

@keyframes svgPulse {
    0% { transform: scale(0.85); opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { transform: scale(1.15); opacity: 0; }
}

.pulse-node {
    animation: centralPulse 2s infinite ease-in-out;
}

@keyframes centralPulse {
    0% { r: 8; opacity: 0.8; }
    50% { r: 11; opacity: 0.4; }
    100% { r: 8; opacity: 0.8; }
}

.map-property-node {
    cursor: pointer;
    transition: var(--transition);
}

.map-property-node:hover {
    transform: translate(-3px, -3px) scale(1.15);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.75em;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.central { background: var(--primary); }
.legend-dot.covered { background: #10b981; }
.legend-dot.out { background: #475569; }

