:root {
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #eff6ff 0%, #f1f5f9 100%);
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Mobile Header */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.brand-tag {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #e2e8f0;
}

/* Navigation Bar - Responsive Segmented Control */
.nav-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-tabs {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
        padding: 8px;
        background: #ffffff;
        border: 1px solid var(--card-border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    .nav-tabs.open {
        display: flex !important;
    }

    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
    }
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    touch-action: manipulation;
}

.nav-btn:hover, .nav-btn:active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
}

.nav-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Container & Mobile Layout */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 16px auto;
    padding: 0 16px;
    flex: 1;
}

.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
}

/* Cards & Light Theme Styling */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.card-header.border-bottom {
    border-bottom: 1px solid var(--card-border);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.subtext {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-body {
    padding: 18px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Badges & Pills */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge i, .badge svg {
    margin-right: 2px;
}

.badge-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-success { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.badge-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Buttons - Touch Optimized */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px; /* Touch target minimum height */
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.btn-primary { background: var(--primary); color: #ffffff; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2); }
.btn-primary:active { transform: scale(0.98); background: var(--primary-hover); }

.btn-secondary { background: #f1f5f9; color: var(--text-main); border: 1px solid var(--card-border); }
.btn-secondary:active { transform: scale(0.98); background: #e2e8f0; }

.btn-success { background: var(--success); color: #ffffff; box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2); }
.btn-success:active { transform: scale(0.98); background: var(--success-hover); }

.btn-danger { background: var(--danger); color: #ffffff; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2); }
.btn-danger:active { transform: scale(0.98); background: var(--danger-hover); }

.btn-outline-danger { background: #ffffff; border: 1px solid var(--danger); color: var(--danger); }
.btn-outline-danger:active { background: #fee2e2; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; min-height: 52px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: 12px; border-radius: 8px; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    box-shadow: none;
    transform: none !important;
}

/* Simulation Box */
.sim-coords-box {
    background: #f8fafc;
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.coords-info { display: flex; flex-direction: column; }
.coords-info .label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.coords-info .value { font-size: 13px; font-weight: 700; color: var(--primary); }

/* Overlapping Property Cards */
.property-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.property-item-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

@media (min-width: 480px) {
    .property-item-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.property-item-card:hover, .property-item-card:active {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* Search Box & Directory Grid - Responsive Mobile */
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    min-height: 48px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.unit-selector-container {
    margin-bottom: 20px;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.unit-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

.unit-card:active {
    transform: scale(0.96);
}

.unit-card.selected {
    background: #dbeafe;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.unit-card .unit-num { font-size: 17px; font-weight: 700; color: #0f172a; }
.unit-card .unit-bldg { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* Ring Action Footer */
.ring-action-box {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-unit-display {
    font-size: 14px;
    color: var(--text-main);
}

.privacy-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* WebRTC Video Grid - Mobile Stack */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .video-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }
}

.video-wrapper {
    position: relative;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
    .video-wrapper {
        aspect-ratio: 16 / 9;
    }
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    text-align: center;
    padding: 12px;
}

.avatar-circle {
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.placeholder-text { font-weight: 600; color: #ffffff; font-size: 13px; }
.sub-placeholder { font-size: 11px; color: #94a3b8; }

.video-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.call-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.control-btn {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 12px 18px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    touch-action: manipulation;
    flex: 1 1 120px;
    text-align: center;
}

.control-btn:active { transform: scale(0.97); }
.control-btn.btn-hangup { background: var(--danger); color: #ffffff; border: none; flex: 2 1 140px; }
.control-btn.btn-hangup:active { background: var(--danger-hover); }

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Resident Specific Styling */
.unit-picker-box {
    margin-bottom: 16px;
}

.form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    min-height: 44px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    margin-top: 6px;
}

/* History Tables - Mobile Responsive Scroll */
.table-responsive {
    overflow-x: auto;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
}

.data-table th, .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    background: #f8fafc;
}

/* Manager Metrics - Responsive Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.metric-sub-ratio {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

@media (max-width: 860px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .metric-card {
        padding: 12px 6px;
    }
    .metric-value {
        font-size: 22px;
    }
    .metric-sub-ratio {
        font-size: 14px;
    }
    .metric-label {
        font-size: 11px;
    }
}

.metric-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.metric-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.section-title-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.margin-top-lg { margin-top: 24px; }

/* Modal Overlay & Incoming Ring Pulse - Mobile Sheet */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 12px;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 20px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pulse-border {
    animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.modal-icon { font-size: 44px; margin-bottom: 8px; }
.modal-subtext { color: var(--text-muted); margin: 8px 0 20px 0; font-size: 13px; line-height: 1.4; }

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(20px); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.switch-status-text { font-size: 11px; font-weight: 700; color: #047857; }

/* Audio Meters & Mic Intensity Visualizer */
.audio-meters-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meter-bar-track {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.meter-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 6px;
    transition: width 0.08s ease-out;
}

.meter-bar-fill.remote {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.meter-val {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    min-width: 32px;
    text-align: right;
}

.hidden { display: none !important; }

/* ==========================================
   MODERN HOME LANDING PAGE STYLING
========================================== */

/* Hero Section (Light Theme) */
.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px 32px;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 860px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: #0f172a;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.btn-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
}

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

.btn-hero:hover .btn-arrow {
    transform: translateX(4px);
}

/* Lighter Sober Palette */
.btn-hero-primary {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    color: #1d4ed8;
    border: 1px solid #bae6fd;
}
.btn-hero-primary .hero-icon-badge { color: #0284c7; }
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
}

.btn-hero-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #047857;
    border: 1px solid #bbf7d0;
}
.btn-hero-success .hero-icon-badge { color: #059669; }
.btn-hero-success:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.15);
}

.btn-hero-purple {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.btn-hero-purple .hero-icon-badge { color: #7c3aed; }
.btn-hero-purple:hover {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.15);
}


/* Live Simulation Card Visual (Light Theme) */
.hero-preview-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.preview-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.preview-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.preview-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.preview-info p {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.preview-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.preview-residents {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.res-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-pulse-text {
    font-size: 11px;
    color: #2563eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Interactive Portal Launchers Container */
.launchers-container, .features-container, .workflow-container {
    margin-bottom: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header .subtext {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.launchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.launcher-card {
    background: #ffffff;
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.launcher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.launcher-card.primary-border:hover { border-color: #2563eb; }
.launcher-card.success-border:hover { border-color: #10b981; }
.launcher-card.purple-border:hover { border-color: #8b5cf6; }

.launcher-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 16px;
}

.launcher-icon-wrapper.primary-bg { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.launcher-icon-wrapper.success-bg { background: linear-gradient(135deg, #059669, #10b981); }
.launcher-icon-wrapper.purple-bg { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

.launcher-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.launcher-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.launcher-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.launcher-features li {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.launcher-features li i {
    font-size: 11px;
    color: #10b981;
}

.launcher-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    transition: background 0.2s ease;
}

.launcher-btn.btn-primary { background: #2563eb; }
.launcher-btn.btn-success { background: #10b981; }
.launcher-btn.btn-purple { background: #8b5cf6; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    color: #4f46e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Workflow Timeline */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.step-num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.step-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.step-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* App Footer (Light Theme) */
.app-footer {
    background: #ffffff;
    color: #64748b;
    padding: 24px 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 36px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

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

.footer-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.footer-tagline {
    font-size: 12px;
    color: #64748b;
}

.footer-copyright {
    font-size: 11px;
    color: #94a3b8;
}

/* Manager Dashboard Enhancements */
.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-outline-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.btn-outline-success:hover { background: #d1fae5; }

.btn-outline-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.btn-outline-warning:hover { background: #fef3c7; }

.btn-outline-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.btn-outline-danger:hover { background: #fee2e2; }

.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.unit-card.power-off-disabled {
    border-color: #fecaca !important;
    background: #fff5f5 !important;
    cursor: not-allowed;
}

/* Responsive Mobile Media Overrides */
@media (max-width: 768px) {
    .flex-header-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .community-select-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .community-select-wrapper label {
        font-size: 13px !important;
        white-space: nowrap;
    }

    .community-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 13px !important;
    }

    .header-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 10px !important;
        border-top: 1px dashed #e2e8f0 !important;
        margin-top: 4px !important;
    }

    .header-actions .label {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ==========================================
   MANAGER HEADER & COMMUNITY TOOLBAR STYLING
========================================== */
.manager-session-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.manager-profile-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-avatar-chip {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-title-row h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
}

.profile-user-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.btn-logout-manager {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
}

/* Community Control & Master Power Toolbar */
.community-toolbar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.toolbar-community-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.community-selector-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.toolbar-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toolbar-label i {
    color: #2563eb;
    font-size: 16px;
}

.community-dropdown-wrapper {
    flex: 1;
    min-width: 180px;
    max-width: 380px;
}

.community-dropdown-enhanced {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.community-dropdown-enhanced:focus, 
.community-dropdown-enhanced:hover {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-add-community-top {
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.property-address-tag {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    padding-left: 2px;
}

.toolbar-power-wrapper {
    flex-shrink: 0;
}

.power-control-group {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.power-label-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.power-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.power-title i {
    color: #f59e0b;
}

.power-subtext {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.power-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 960px) {
    .community-toolbar-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    .power-control-group {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 680px) {
    .manager-session-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .btn-logout-manager {
        width: 100%;
    }
    .community-selector-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .toolbar-label {
        width: 100%;
    }
    .community-dropdown-wrapper {
        flex: 1;
        min-width: 160px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .community-selector-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-add-community-top {
        width: 100%;
        justify-content: center;
    }
    .community-dropdown-enhanced {
        width: 100%;
    }
    .power-control-group {
        padding: 10px 12px;
    }
    .power-subtext {
        display: none;
    }
}

/* Single Property Hero Card Presentation */
.single-property-hero-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #dbeafe;
    border-radius: 18px;
    padding: 26px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    margin-top: 6px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-property-hero-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.16);
    transform: translateY(-2px);
}

.property-hero-badge {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 16px -2px rgba(37, 99, 235, 0.2);
    border: 3px solid #ffffff;
}

.property-hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.property-hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.property-hero-location i {
    color: #ef4444;
}

.property-distance-pill {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #bae6fd;
}

.property-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid #bbf7d0;
    margin-bottom: 20px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.property-hero-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
}

.property-hero-btn:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

/* Enhanced Resident Portal UI & Activity Feed */

/* Refined Resident Portal UI & Compact Hierarchy */
.nav-btn-logout {
    color: #dc2626 !important;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 8px;
}

.nav-btn-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.resident-portal-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
}

.resident-header-top-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.resident-header-top-row h2 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.resident-header-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.resident-profile-stack {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.resident-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.resident-identity-col {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.resident-name {
    font-size: 0.80rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resident-email {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resident-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #065f46;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.60rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
    width: fit-content;
    margin-top: 3px;
    line-height: 1.2;
}

.resident-status-pill .status-pulse-dot {
    width: 5px;
    height: 5px;
}

.unit-picker-box-enhanced {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unit-picker-box-enhanced label {
    font-size: 0.70rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    text-transform: uppercase;
}

.unit-picker-box-enhanced select {
    margin-top: 0;
    background: #ffffff;
    font-weight: 500;
    font-size: 0.78rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
    min-height: 34px;
    width: 100%;
}

.test-alert-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    min-height: 32px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.test-alert-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Recent Activity Header & Feed */
.history-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-section-header h3 {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.history-count-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.activity-timeline-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.activity-card-item {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.activity-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.activity-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    flex-shrink: 0;
}

.activity-card-icon.icon-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.activity-card-icon.icon-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.activity-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.activity-doorbell-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time-pill {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.activity-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.activity-card-bottom .badge,
.call-status-tag {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    box-shadow: none !important;
}

.call-status-tag.status-answered,
.activity-card-bottom .badge.badge-success {
    color: #059669 !important;
}

.call-status-tag.status-missed,
.activity-card-bottom .badge.badge-danger {
    color: #dc2626 !important;
}

.activity-duration-text {
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.empty-activity-card {
    background: #f8fafc;
    border: 1px dashed var(--card-border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.76rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.unit-enrolled-box {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 8px 10px;
}

.unit-enrolled-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
}

.unit-display-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.unit-display-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.unit-display-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.unit-display-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.unit-enrolled-badge {
    background: transparent !important;
    border: none !important;
    color: #059669 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: none !important;
}

.unit-display-subtext {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.resident-section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 18px 0;
}

/* ==================== MANAGER DASHBOARD TABS & CLEANUP ==================== */

.manager-tabs-bar {
    display: flex;
    gap: 8px;
    margin: 20px 0 16px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 4px;
    overflow-x: auto;
}

.manager-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -6px;
    font-size: 0.90rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.manager-tab-btn:hover {
    color: #1e293b;
    background: #f8fafc;
    border-radius: 6px 6px 0 0;
}

.manager-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 700;
}

.tab-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
}

.manager-tab-btn.active .tab-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.manager-tab-content {
    animation: fadeInTab 0.25s ease-in-out;
}

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

/* ==================== UNIVERSAL WHOLE-PROPERTY QR CARD ==================== */

.universal-qr-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.universal-qr-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.universal-qr-title-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.universal-qr-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.title-with-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.title-with-pill h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.universal-qr-body {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.qr-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    flex-shrink: 0;
}

.qr-image {
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 6px;
    object-fit: contain;
}

.qr-scope-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.universal-qr-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
}

.meta-field .meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 6px;
}

.copy-input-group {
    display: flex;
    gap: 8px;
}

.copy-input {
    background: #f8fafc;
    font-family: monospace;
    font-size: 0.85rem;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.meta-coverage-box {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #334155;
}

.universal-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ==================== GATE & ENTRANCE CARDS ==================== */

.gates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.gate-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.gate-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gate-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gate-qr-thumb {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
}

.gate-qr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gate-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gate-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.gate-name-row h4 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
}

.gate-token-pill code {
    font-size: 0.72rem;
    background: #f1f5f9;
    color: #2563eb;
    padding: 2px 6px;
    border-radius: 4px;
}

.gate-status-row {
    font-size: 0.70rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.gate-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.empty-gates-box {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #64748b;
}

.empty-gates-box i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* Search Toolbar */
.filter-search-toolbar {
    margin: 12px 0 14px 0;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.search-box input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    background: #ffffff;
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==================== PRINTABLE QR SIGN MODAL ==================== */

.sign-modal-card {
    max-width: 520px;
    width: 90%;
}

.sign-modal-body {
    background: #e2e8f0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.printable-sign-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sign-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sign-property-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.sign-gate-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #475569;
    margin: 2px 0 0 0;
}

.sign-qr-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.sign-qr-frame {
    background: #ffffff;
    border: 3px solid #0f172a;
    border-radius: 12px;
    padding: 10px;
}

.sign-qr-frame img {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
}

.sign-scan-callout {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.03em;
}

.sign-instructions-list {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    gap: 6px;
}

.instruction-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
    gap: 4px;
    flex: 1;
}

.step-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-footer-notice {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

/* Print CSS */
@media print {
    body * {
        visibility: hidden !important;
    }
    .no-print {
        display: none !important;
    }
    #print-sign-modal, #print-sign-modal * {
        visibility: visible !important;
    }
    #print-sign-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: transparent !important;
    }
    .printable-sign-sheet {
        box-shadow: none !important;
        max-width: 100% !important;
        padding: 40px !important;
    }
}

/* ==================== COMMUNITIES PORTFOLIO GRID & ONBOARDING ==================== */

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.community-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.community-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.community-card-item.active-community {
    border-color: #2563eb;
    background: #f8fafc;
}

.community-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.comm-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.comm-title-row h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.comm-address-text {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.community-stats-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.comm-chip {
    font-size: 0.74rem;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.community-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.onboarding-empty-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 30px auto;
}

.onboarding-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 4px;
}

.onboarding-empty-box h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.onboarding-empty-box p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}


/* --- Address Geocoding & Center Location Pin Card --- */
.location-detected-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.location-detected-card:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.detected-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.detected-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detected-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.detected-subtext {
    font-size: 0.72rem;
    color: #64748b;
}
.geocode-success-chip {
    font-size: 0.72rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

/* ====================================================
   HERO "HOW RINLY WORKS" GRAPHIC CARD
==================================================== */
.hero-how-it-works-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.how-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.how-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.how-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.how-graphic-visual {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 6px 0;
}

.how-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 106px;
    position: relative;
    z-index: 2;
}

.how-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-node:hover .how-icon-wrapper {
    transform: translateY(-4px) scale(1.06);
}

.blue-node {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.green-node {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28);
}

.purple-node {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
}

.how-step-pill {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2563eb;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.how-step-pill.green {
    border-color: #059669;
    color: #047857;
}

.how-step-pill.purple {
    border-color: #7c3aed;
    color: #6d28d9;
}

.how-node-title {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.how-node-desc {
    margin-top: 3px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.how-node-chip {
    margin-top: 7px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
}

.blue-chip {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.green-chip {
    background: #f0fdf4;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.purple-chip {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

/* Connectors between Nodes */
.how-connector {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    position: relative;
    z-index: 1;
    padding: 0 4px;
}

.how-line-track {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.how-pulse-bead {
    position: absolute;
    top: 0;
    height: 100%;
    width: 32px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    animation: flowPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.how-pulse-bead.delay {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    animation: flowPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.1s;
}

@keyframes flowPulse {
    0% { left: -35px; opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { left: calc(100% + 35px); opacity: 0; }
}

.connector-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Footer Benefit Bar */
.how-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 14px;
}

.footer-benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

.footer-benefit-item i {
    color: #10b981;
    font-size: 12px;
}

.footer-benefit-divider {
    width: 1px;
    height: 16px;
    background: #cbd5e1;
}

@media (max-width: 520px) {
    .how-graphic-visual {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .how-connector {
        transform: rotate(90deg);
        width: 30px;
        margin: 0;
    }
    .connector-label {
        display: none;
    }
    .how-card-footer {
        flex-direction: column;
        gap: 6px;
    }
    .footer-benefit-divider {
        display: none;
    }
}

/* ====================================================
   'GET YOUR DOORBELL' SELF-SERVE CTA BANNER
==================================================== */
.get-doorbell-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.get-doorbell-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-card-content {
    flex: 1;
    min-width: 280px;
    z-index: 2;
}

.cta-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.cta-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cta-card-desc {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
    max-width: 580px;
}

.cta-card-action {
    flex-shrink: 0;
    z-index: 2;
}

.btn-get-doorbell {
    background: #ffffff;
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.btn-get-doorbell:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn-get-doorbell .cta-arrow {
    transition: transform 0.2s ease;
}

.btn-get-doorbell:hover .cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 820px) {
    .get-doorbell-cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 20px;
    }
    .cta-card-action {
        width: 100%;
    }
    .btn-get-doorbell {
        width: 100%;
        justify-content: center;
    }
    .cta-card-title {
        font-size: 20px;
    }
}

/* ====================================================
   DASHBOARD AUTH TABS (SIGN IN vs SIGN UP)
==================================================== */
.auth-toggle-bar {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    gap: 6px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
}

.auth-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.auth-toggle-btn:hover {
    color: #0f172a;
}

.auth-toggle-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

/* Client-side Sharp QR Containers */
.qr-target-box {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.qr-target-box canvas,
.qr-target-box img {
    width: 148px !important;
    height: 148px !important;
    display: block;
    margin: 0 auto;
}

.sign-qr-target-box {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 0 auto;
    overflow: hidden;
}
.sign-qr-target-box canvas,
.sign-qr-target-box img {
    width: 260px !important;
    height: 260px !important;
    display: block;
    margin: 0 auto;
}

/* Live Device GPS Formatting */
.live-gps-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.2px;
}
.live-gps-pill i {
    color: #0284c7;
    font-size: 0.75rem;
}
.live-gps-pill.verified {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.live-gps-pill.verified i {
    color: #10b981;
}
.live-gps-pill.warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.live-gps-pill.warning i {
    color: #f59e0b;
}
