/**
 * AllOfBD Internet — World-Class Design System & Professional Layout Stylesheet
 * Version: 1.2.0
 * Pure Scoped CSS · Zero Overflow · High Contrast · WCAG AA/AAA Compliant
 */

/* =============================================================================
   1. Design Tokens & Root Variables
   ============================================================================= */
:root {
    --aofbd-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --aofbd-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Color Palette */
    --aofbd-primary: #0f172a;
    --aofbd-primary-hover: #1e293b;
    --aofbd-accent: #2563eb;
    --aofbd-accent-hover: #1d4ed8;
    --aofbd-accent-light: #eff6ff;
    --aofbd-accent-border: #bfdbfe;

    --aofbd-success: #059669;
    --aofbd-success-bg: #ecfdf5;
    --aofbd-success-border: #a7f3d0;

    --aofbd-warning: #d97706;
    --aofbd-warning-bg: #fffbeb;
    --aofbd-warning-border: #fde68a;

    --aofbd-danger: #dc2626;
    --aofbd-danger-bg: #fef2f2;
    --aofbd-danger-border: #fecaca;

    /* Neutrals */
    --aofbd-text-main: #0f172a;
    --aofbd-text-muted: #475569;
    --aofbd-text-subtle: #64748b;
    --aofbd-surface: #ffffff;
    --aofbd-surface-muted: #f8fafc;
    --aofbd-surface-alt: #f1f5f9;
    --aofbd-border: #e2e8f0;
    --aofbd-border-strong: #cbd5e1;

    /* Elevation & Shadows */
    --aofbd-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --aofbd-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --aofbd-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --aofbd-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --aofbd-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    /* Radii */
    --aofbd-radius-sm: 6px;
    --aofbd-radius-md: 10px;
    --aofbd-radius-lg: 14px;
    --aofbd-radius-xl: 20px;
    --aofbd-radius-full: 9999px;
}

/* =============================================================================
   2. Container & Scoped Reset
   ============================================================================= */
.aofbd-internet-container {
    font-family: var(--aofbd-font-sans);
    color: var(--aofbd-text-main);
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 60px 16px;
    box-sizing: border-box;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.aofbd-internet-container *,
.aofbd-internet-container *::before,
.aofbd-internet-container *::after {
    box-sizing: border-box;
}

.aofbd-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* =============================================================================
   3. Unified Navigation & Breadcrumb System
   ============================================================================= */
.aofbd-subnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--aofbd-border);
}

.aofbd-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    font-size: 13.5px;
    color: var(--aofbd-text-subtle);
}

.aofbd-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.aofbd-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 6px;
    color: var(--aofbd-border-strong);
    font-size: 15px;
}

.aofbd-breadcrumb a {
    color: var(--aofbd-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.aofbd-breadcrumb a:hover {
    color: var(--aofbd-accent);
}

.aofbd-breadcrumb [aria-current="page"] {
    color: var(--aofbd-text-main);
    font-weight: 600;
}

.aofbd-nav-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--aofbd-surface-muted);
    padding: 4px;
    border-radius: var(--aofbd-radius-full);
    border: 1px solid var(--aofbd-border);
}

.aofbd-nav-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aofbd-text-muted);
    text-decoration: none;
    border-radius: var(--aofbd-radius-full);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.aofbd-nav-tabs a:hover {
    color: var(--aofbd-text-main);
    background: rgba(255, 255, 255, 0.6);
}

.aofbd-nav-tabs a.active {
    background: var(--aofbd-surface);
    color: var(--aofbd-accent);
    box-shadow: var(--aofbd-shadow-xs);
    font-weight: 700;
}

.aofbd-tab-count {
    background: var(--aofbd-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

/* =============================================================================
   4. Buttons System
   ============================================================================= */
.aofbd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.aofbd-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.aofbd-btn-primary {
    background: var(--aofbd-accent);
    color: #ffffff !important;
    border-color: var(--aofbd-accent);
}

.aofbd-btn-primary:hover {
    background: var(--aofbd-accent-hover);
    border-color: var(--aofbd-accent-hover);
    color: #ffffff !important;
}

.aofbd-btn-secondary {
    background: var(--aofbd-surface);
    color: var(--aofbd-text-main) !important;
    border-color: var(--aofbd-border-strong);
}

.aofbd-btn-secondary:hover {
    background: var(--aofbd-surface-muted);
    border-color: #94a3b8;
    color: var(--aofbd-text-main) !important;
}

.aofbd-btn-ghost {
    background: transparent;
    color: var(--aofbd-text-muted);
    border-color: transparent;
}

.aofbd-btn-ghost:hover {
    background: var(--aofbd-surface-muted);
    color: var(--aofbd-text-main);
}

.aofbd-btn-ghost.selected,
.aofbd-btn-ghost[aria-pressed="true"] {
    background: var(--aofbd-accent-light);
    color: var(--aofbd-accent);
    border-color: var(--aofbd-accent-border);
}

.aofbd-btn-sm {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 6px;
}

.aofbd-btn-full {
    width: 100%;
}

.aofbd-btn-icon {
    padding: 6px 8px;
}

.aofbd-btn-wa {
    background: #25d366;
    color: #ffffff !important;
    border-color: #25d366;
}

.aofbd-btn-wa:hover {
    background: #1ebd59;
    border-color: #1ebd59;
}

/* =============================================================================
   5. Hero Section & Location-First Search
   ============================================================================= */
.aofbd-hero {
    background: linear-gradient(135deg, #0b1329 0%, #172554 50%, #0f172a 100%);
    border-radius: var(--aofbd-radius-xl);
    padding: 36px 36px 40px 36px;
    margin-bottom: 30px;
    color: #ffffff;
    box-shadow: var(--aofbd-shadow-xl);
    position: relative;
    overflow: hidden;
}

.aofbd-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.aofbd-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.aofbd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.aofbd-badge-primary,
.aofbd-badge-success,
.aofbd-badge-speed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--aofbd-radius-full);
    letter-spacing: 0.02em;
}

.aofbd-badge-primary {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.aofbd-badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.3);
}

.aofbd-badge-speed {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.3);
}

.aofbd-hero-title {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.aofbd-hero-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0 0 24px 0;
    max-width: 580px;
}

/* Search Form Card Embedded inside Hero */
.aofbd-search-form {
    background: var(--aofbd-surface);
    border-radius: var(--aofbd-radius-lg);
    padding: 20px;
    color: var(--aofbd-text-main);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
}

.aofbd-search-row-main {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 12px;
    align-items: end;
}

.aofbd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aofbd-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--aofbd-text-main);
    display: flex;
    align-items: center;
    gap: 5px;
}

.aofbd-label-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--aofbd-text-subtle);
    margin-left: auto;
}

.aofbd-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.aofbd-input-icon {
    position: absolute;
    left: 12px;
    color: var(--aofbd-text-subtle);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.aofbd-input-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 64px 10px 38px;
    font-size: 13.5px;
    font-family: inherit;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--aofbd-text-main);
    transition: all 0.15s ease;
    height: 42px;
}

.aofbd-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--aofbd-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.aofbd-btn-geo,
.aofbd-btn-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--aofbd-text-subtle);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.aofbd-btn-geo {
    right: 32px;
}

.aofbd-btn-geo:hover {
    color: var(--aofbd-accent);
    background: var(--aofbd-surface-alt);
}

.aofbd-btn-clear {
    right: 8px;
}

.aofbd-btn-clear:hover {
    color: var(--aofbd-danger);
    background: var(--aofbd-danger-bg);
}

.aofbd-field-speed select,
.aofbd-field select {
    width: 100%;
    height: 42px;
    padding: 9px 30px 9px 12px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: 8px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: var(--aofbd-text-main);
    appearance: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.aofbd-field select:focus {
    outline: none;
    border-color: var(--aofbd-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.aofbd-field-submit .aofbd-btn-search {
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
}

/* 4-Tier Cascading Selector Box */
.aofbd-cascade-wrapper {
    margin-top: 14px;
    padding: 14px;
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-md);
}

.aofbd-cascade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.aofbd-cascade-header-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aofbd-cascade-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.aofbd-cascade-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--aofbd-text-muted);
}

.aofbd-cascade-actions {
    display: inline-flex;
    gap: 8px;
}

.aofbd-btn-cascade-apply {
    background: var(--aofbd-primary);
    color: #ffffff;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease;
}

.aofbd-btn-cascade-apply:hover {
    background: #1e293b;
}

.aofbd-btn-cascade-reset {
    background: transparent;
    border: 1px solid var(--aofbd-border-strong);
    color: var(--aofbd-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.aofbd-btn-cascade-reset:hover {
    background: var(--aofbd-surface);
    color: var(--aofbd-danger);
    border-color: var(--aofbd-danger-border);
}

.aofbd-cascade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.aofbd-cascade-col label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--aofbd-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.aofbd-cascade-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--aofbd-accent);
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

.aofbd-cascade-select {
    width: 100%;
    height: 36px;
    padding: 6px 24px 6px 8px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid var(--aofbd-border);
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
    color: var(--aofbd-text-main);
    appearance: none;
    cursor: pointer;
}

.aofbd-cascade-select:disabled {
    background-color: var(--aofbd-surface-alt);
    color: var(--aofbd-text-subtle);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Advanced Filters Toggle */
.aofbd-filters-toggle-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.aofbd-btn-filters-toggle {
    background: transparent;
    border: none;
    color: var(--aofbd-accent);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.aofbd-btn-filters-toggle:hover {
    background: var(--aofbd-accent-light);
}

.aofbd-search-row-advanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--aofbd-border);
}

/* Autocomplete Flyout */
.aofbd-autocomplete-flyout {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: var(--aofbd-radius-md);
    box-shadow: var(--aofbd-shadow-lg);
    z-index: 50;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
}

.aofbd-autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.aofbd-autocomplete-item:hover,
.aofbd-autocomplete-item.active {
    background: var(--aofbd-accent-light);
}

.aofbd-item-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aofbd-loc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aofbd-loc-title-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.aofbd-loc-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--aofbd-text-main);
}

.aofbd-loc-bn {
    font-size: 12px;
    color: var(--aofbd-text-subtle);
}

.aofbd-loc-breadcrumb {
    font-size: 11px;
    color: var(--aofbd-text-subtle);
}

.aofbd-hb-sep {
    margin: 0 4px;
    color: var(--aofbd-border-strong);
}

.aofbd-autocomplete-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--aofbd-surface-alt);
    color: var(--aofbd-text-muted);
}

.aofbd-hierarchy-hub {
    padding: 8px;
}

.aofbd-hub-section {
    margin-bottom: 12px;
}

.aofbd-hub-header {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--aofbd-text-subtle);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aofbd-hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aofbd-hub-chip {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-full);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aofbd-text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.aofbd-hub-chip:hover {
    background: var(--aofbd-accent);
    color: #ffffff;
    border-color: var(--aofbd-accent);
}

/* 3D Visual Column */
.aofbd-hero-visual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aofbd-3d-banner-card {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.aofbd-3d-svg-hero {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

.aofbd-hero-live-status {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--aofbd-radius-full);
}

.aofbd-hero-live-status strong {
    color: #38bdf8;
}

.aofbd-status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: aofbdPulse 2s infinite;
}

@keyframes aofbdPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =============================================================================
   6. Location Summary & Hierarchy Section
   ============================================================================= */
.aofbd-search-summary-section {
    margin-bottom: 24px;
}

.aofbd-search-summary-card {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: var(--aofbd-shadow-sm);
}

.aofbd-summary-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.aofbd-summary-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aofbd-summary-verified-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aofbd-success);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aofbd-summary-heading {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
    color: var(--aofbd-text-main);
}

.aofbd-summary-heading .highlight {
    color: var(--aofbd-accent);
}

.aofbd-hierarchy-breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.aofbd-crumb-pill {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    color: var(--aofbd-text-muted);
    padding: 3px 10px;
    border-radius: var(--aofbd-radius-full);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.aofbd-crumb-active {
    background: var(--aofbd-accent-light);
    border-color: var(--aofbd-accent-border);
    color: var(--aofbd-accent);
    font-weight: 700;
}

.aofbd-crumb-sep {
    color: var(--aofbd-border-strong);
    font-size: 14px;
}

.aofbd-summary-stats {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.aofbd-stat-block {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-md);
    padding: 12px 18px;
    text-align: center;
    min-width: 110px;
}

.aofbd-stat-val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--aofbd-primary);
    line-height: 1.1;
}

.aofbd-stat-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--aofbd-text-subtle);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* =============================================================================
   7. Coverage Map Section
   ============================================================================= */
.aofbd-coverage-map-section {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: var(--aofbd-shadow-sm);
}

.aofbd-map-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.aofbd-map-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.aofbd-map-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aofbd-map-status-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aofbd-success);
}

.aofbd-map-heading {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--aofbd-text-main);
}

.aofbd-map-caption {
    font-size: 13px;
    color: var(--aofbd-text-subtle);
    margin: 0;
}

.aofbd-map-actions {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}

.aofbd-map-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--aofbd-border);
}

.aofbd-map-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--aofbd-text-subtle);
}

.aofbd-isp-map-pill {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-full);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aofbd-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.aofbd-isp-map-pill:hover {
    border-color: var(--aofbd-border-strong);
    color: var(--aofbd-text-main);
}

.aofbd-isp-map-pill.is-active {
    background: var(--aofbd-primary);
    color: #ffffff;
    border-color: var(--aofbd-primary);
}

.aofbd-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.aofbd-map-tip-pill {
    font-size: 11.5px;
    color: var(--aofbd-text-subtle);
}

.aofbd-map-viewport-wrapper {
    position: relative;
    border-radius: var(--aofbd-radius-md);
    overflow: hidden;
    border: 1px solid var(--aofbd-border);
}

.aofbd-coverage-map-canvas {
    background: #e2e8f0;
}

.aofbd-map-legend-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11.5px;
    z-index: 1000;
    box-shadow: var(--aofbd-shadow-md);
}

.aofbd-legend-title {
    font-weight: 700;
    color: var(--aofbd-text-main);
    margin-bottom: 6px;
}

.aofbd-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    color: var(--aofbd-text-muted);
}

.aofbd-legend-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Custom Leaflet Map Popup */
.aofbd-map-popup-card {
    padding: 4px 2px;
    min-width: 220px;
    font-family: var(--aofbd-font-sans);
}

.aofbd-map-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.aofbd-popup-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.aofbd-popup-status {
    font-size: 11px;
    color: var(--aofbd-text-subtle);
}

.aofbd-popup-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 6px 0;
}

.aofbd-popup-metrics {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--aofbd-text-muted);
}

.aofbd-popup-desc {
    font-size: 11.5px;
    color: var(--aofbd-text-subtle);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.aofbd-popup-cta {
    display: block;
    width: 100%;
    padding: 7px 12px;
    background: var(--aofbd-accent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

/* =============================================================================
   8. Results Controls & View Switcher Toolbar
   ============================================================================= */
.aofbd-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.aofbd-results-title-group h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.aofbd-results-subtitle {
    font-size: 13px;
    color: var(--aofbd-text-subtle);
    margin: 0;
}

.aofbd-results-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aofbd-count-pill {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    color: var(--aofbd-text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--aofbd-radius-full);
    white-space: nowrap;
}

/* View Switcher Radio Toolbar */
.aofbd-view-switcher {
    display: inline-flex;
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.aofbd-view-btn {
    background: transparent;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aofbd-text-subtle);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.aofbd-view-btn:hover {
    color: var(--aofbd-text-main);
}

.aofbd-view-btn.is-active,
.aofbd-view-btn[aria-checked="true"] {
    background: var(--aofbd-surface);
    color: var(--aofbd-accent);
    font-weight: 700;
    box-shadow: var(--aofbd-shadow-xs);
}

.aofbd-sort-select {
    height: 34px;
    padding: 6px 26px 6px 10px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
    color: var(--aofbd-text-main);
    appearance: none;
    cursor: pointer;
}

/* Filter Chips Tray */
#aofbd-filter-chips-wrapper {
    margin-bottom: 16px;
}

.aofbd-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aofbd-chips-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--aofbd-text-subtle);
}

.aofbd-chip {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border-strong);
    color: var(--aofbd-text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--aofbd-radius-full);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.aofbd-chip:hover {
    background: var(--aofbd-danger-bg);
    border-color: var(--aofbd-danger-border);
    color: var(--aofbd-danger);
}

.aofbd-chip-clear {
    font-size: 12px;
    font-weight: 700;
    color: var(--aofbd-accent);
    text-decoration: none;
    padding: 4px 8px;
}

.aofbd-chip-clear:hover {
    text-decoration: underline;
}

/* =============================================================================
   9. ISP Results Grid & Multi-View Presentation
   ============================================================================= */
.aofbd-isp-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 36px;
}

/* View Mode: Card (Default 2-Wide Desktop) */
.aofbd-isp-grid-2wide,
.aofbd-isp-grid.aofbd-view-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* View Mode: Tile (Dense Grid) */
.aofbd-isp-grid.aofbd-view-tile {
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

/* View Mode: List (Single Stacked Column of Row Cards) */
.aofbd-isp-grid.aofbd-view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* View Mode: Table */
.aofbd-isp-grid.aofbd-view-table {
    display: block;
    width: 100%;
}

/* Empty State */
.aofbd-empty-state {
    grid-column: 1 / -1;
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 48px 24px;
    text-align: center;
}

.aofbd-empty-icon {
    font-size: 40px;
    color: var(--aofbd-text-subtle);
    margin-bottom: 12px;
}

.aofbd-empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 8px 0;
}

.aofbd-empty-state p {
    font-size: 14px;
    color: var(--aofbd-text-muted);
    margin: 0 0 20px 0;
}

.aofbd-empty-actions {
    display: inline-flex;
    gap: 10px;
}

/* =============================================================================
   10. World-Class ISP Card Component
   ============================================================================= */
.aofbd-isp-card {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 20px;
    box-shadow: var(--aofbd-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.aofbd-isp-card:hover {
    box-shadow: var(--aofbd-shadow-md);
    border-color: var(--aofbd-border-strong);
}

.aofbd-isp-card-highlighted {
    border-color: var(--aofbd-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Card Header */
.aofbd-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aofbd-isp-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--aofbd-radius-md);
    object-fit: cover;
    background: #ffffff;
    border: 1px solid var(--aofbd-border);
    flex-shrink: 0;
}

.aofbd-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.aofbd-avatar-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--avatar, var(--aofbd-accent));
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.aofbd-avatar-sm.aofbd-avatar-mono {
    font-size: 13px;
}

.aofbd-card-id {
    flex: 1;
    min-width: 0;
}

.aofbd-isp-name {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 4px 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aofbd-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.aofbd-card-license {
    color: var(--aofbd-text-subtle);
}

.aofbd-verified-tag {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.aofbd-tooltip-container {
    position: relative;
    display: inline-block;
}

.aofbd-tooltip-box {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.45;
    white-space: nowrap;
    z-index: 100;
    box-shadow: var(--aofbd-shadow-lg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.aofbd-tooltip-box code {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--aofbd-font-mono);
}

.aofbd-tooltip-src {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 4px;
}

.aofbd-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: #d97706;
    background: #fffbeb;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #fef3c7;
    flex-shrink: 0;
}

.aofbd-rating strong {
    color: var(--aofbd-text-main);
}

.aofbd-rating span {
    font-size: 11px;
    color: var(--aofbd-text-subtle);
}

/* Coverage Confidence Bar */
.aofbd-card-coverage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.aofbd-cov-confirmed {
    background: var(--aofbd-success-bg);
    border: 1px solid var(--aofbd-success-border);
    color: var(--aofbd-success);
}

.aofbd-cov-probable {
    background: var(--aofbd-warning-bg);
    border: 1px solid var(--aofbd-warning-border);
    color: var(--aofbd-warning);
}

.aofbd-cov-unverified {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    color: var(--aofbd-text-subtle);
}

.aofbd-cov-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.aofbd-cov-pop {
    margin-left: auto;
    font-size: 11px;
    color: var(--aofbd-text-subtle);
    font-weight: 500;
}

/* Plan Display Box */
.aofbd-card-plan {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-md);
    padding: 14px 16px;
}

.aofbd-plan-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--aofbd-text-subtle);
    margin-bottom: 8px;
}

.aofbd-plan-name {
    color: var(--aofbd-text-main);
    text-transform: none;
    font-weight: 800;
}

.aofbd-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.aofbd-speed-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--aofbd-text-main);
    line-height: 1;
    letter-spacing: -0.02em;
}

.aofbd-speed-unit {
    font-size: 14px;
    font-weight: 700;
    color: var(--aofbd-text-muted);
    margin-left: 2px;
}

.aofbd-upload-metric {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aofbd-text-subtle);
    margin-top: 3px;
}

.aofbd-price-amount {
    font-size: 26px;
    font-weight: 900;
    color: var(--aofbd-accent);
    line-height: 1;
}

.aofbd-price-cycle {
    font-size: 12px;
    font-weight: 600;
    color: var(--aofbd-text-muted);
}

.aofbd-tax-label {
    display: block;
    font-size: 10.5px;
    color: var(--aofbd-text-subtle);
    text-align: right;
    margin-top: 2px;
}

.aofbd-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--aofbd-border);
}

.aofbd-plan-features li {
    background: #ffffff;
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-full);
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aofbd-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.aofbd-plan-features li.is-positive {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* Actions Bar */
.aofbd-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aofbd-card-actions .aofbd-btn-inquire {
    flex: 1;
}

/* Secondary Plans Drawer */
.aofbd-plans-drawer {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    padding: 12px;
    margin-top: -6px;
}

.aofbd-drawer-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--aofbd-border);
}

.aofbd-drawer-plan-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aofbd-drawer-info {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aofbd-pill-micro {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

.aofbd-drawer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aofbd-drawer-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--aofbd-text-main);
}

.aofbd-drawer-price small {
    font-weight: 500;
    color: var(--aofbd-text-subtle);
}

/* Card Footer */
.aofbd-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--aofbd-border);
    font-size: 12px;
}

.aofbd-foot-link {
    color: var(--aofbd-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.aofbd-foot-link:hover {
    color: var(--aofbd-accent);
}

.aofbd-link-wa {
    color: #15803d;
}

.aofbd-link-wa:hover {
    color: #166534;
}

/* =============================================================================
   11. View Mode Specializations: Tile, List, Table
   ============================================================================= */

/* Tile Mode */
.aofbd-view-tile .aofbd-isp-card {
    padding: 16px;
    gap: 12px;
}

.aofbd-view-tile .aofbd-speed-number {
    font-size: 26px;
}

.aofbd-view-tile .aofbd-price-amount {
    font-size: 22px;
}

/* List Mode (Row Cards) */
.aofbd-view-list .aofbd-isp-card {
    display: grid;
    grid-template-columns: 240px 180px 1fr 180px;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
}

.aofbd-view-list .aofbd-card-plan {
    background: transparent;
    border: none;
    padding: 0;
}

.aofbd-view-list .aofbd-card-actions {
    flex-direction: column;
    align-items: stretch;
}

.aofbd-view-list .aofbd-plans-drawer,
.aofbd-view-list .aofbd-card-foot {
    grid-column: 1 / -1;
}

/* Table Mode */
.aofbd-table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    box-shadow: var(--aofbd-shadow-sm);
}

.aofbd-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.aofbd-results-table th {
    background: var(--aofbd-surface-muted);
    color: var(--aofbd-text-muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--aofbd-border-strong);
    white-space: nowrap;
}

.aofbd-results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--aofbd-border);
    vertical-align: middle;
}

.aofbd-results-table tr:last-child td {
    border-bottom: none;
}

.aofbd-results-table tr:hover td {
    background: #fafbfc;
}

.aofbd-th-num,
.aofbd-td-num {
    text-align: right;
}

.aofbd-table-isp-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aofbd-table-isp-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aofbd-table-isp-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--aofbd-text-main);
}

.aofbd-table-isp-meta {
    font-size: 11.5px;
    color: var(--aofbd-text-subtle);
}

.aofbd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.aofbd-table-speed {
    font-size: 16px;
    font-weight: 800;
    color: var(--aofbd-text-main);
}

.aofbd-table-plan-name {
    display: block;
    font-size: 11.5px;
    color: var(--aofbd-text-subtle);
}

.aofbd-table-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--aofbd-accent);
}

.aofbd-table-tax {
    display: block;
    font-size: 10.5px;
    color: var(--aofbd-text-subtle);
}

.aofbd-table-perks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    color: var(--aofbd-text-muted);
}

.aofbd-table-perks .is-positive {
    color: var(--aofbd-success);
    font-weight: 600;
}

.aofbd-table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

/* =============================================================================
   12. Deal Alert Box & Consumer Assurance Banner
   ============================================================================= */
.aofbd-alert-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: var(--aofbd-radius-lg);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.aofbd-alert-box-text h4 {
    font-size: 17px;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aofbd-alert-box-text p {
    font-size: 13.5px;
    color: #78350f;
    margin: 0;
}

.aofbd-alert-box-form {
    display: flex;
    gap: 8px;
}

.aofbd-alert-box-form input {
    height: 40px;
    padding: 0 14px;
    font-size: 13.5px;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #ffffff;
    min-width: 200px;
}

/* 3D Promotional Value Pillars Banner */
.aofbd-promo-banner-3d {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--aofbd-radius-xl);
    padding: 40px 32px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: var(--aofbd-shadow-lg);
}

.aofbd-promo-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px auto;
}

.aofbd-promo-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--aofbd-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.aofbd-promo-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.aofbd-promo-desc {
    font-size: 14.5px;
    color: #94a3b8;
    margin: 0;
}

.aofbd-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aofbd-promo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--aofbd-radius-lg);
    padding: 24px;
    transition: background 0.15s ease;
}

.aofbd-promo-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.aofbd-promo-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ffffff;
}

.aofbd-promo-icon-ftth { background: #0284c7; }
.aofbd-promo-icon-tariff { background: #d97706; }
.aofbd-promo-icon-dispatch { background: #10b981; }

.aofbd-promo-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.aofbd-promo-card p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.aofbd-legal-notice {
    font-size: 12px;
    color: var(--aofbd-text-subtle);
    line-height: 1.5;
    padding: 16px 20px;
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* =============================================================================
   13. Mobile Telecom Packs Marketplace (`/internet/mobile/`)
   ============================================================================= */
.aofbd-hero-telecom {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e293b 100%);
    padding: 36px 36px 32px 36px;
}

.aofbd-op-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.aofbd-op-pills .aofbd-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: var(--aofbd-radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.aofbd-op-pills .aofbd-pill:hover,
.aofbd-op-pills .aofbd-pill.active {
    background: #ffffff;
    color: var(--aofbd-primary) !important;
    border-color: #ffffff;
}

.aofbd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.aofbd-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--aofbd-border);
}

.aofbd-filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aofbd-filter-link {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aofbd-text-muted);
    text-decoration: none;
    border-radius: var(--aofbd-radius-full);
    transition: all 0.15s ease;
}

.aofbd-filter-link:hover {
    color: var(--aofbd-text-main);
    background: var(--aofbd-surface-muted);
}

.aofbd-filter-link.active {
    background: var(--aofbd-primary);
    color: #ffffff;
}

/* =============================================================================
   13. Mobile Telecom Packs Multi-View System (Card, Tile, List, Table)
   ============================================================================= */

/* Base Grid */
.aofbd-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

/* View Mode: Card (2-Wide on Desktop) */
.aofbd-pack-grid-2wide,
.aofbd-pack-grid.aofbd-view-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* View Mode: Tile (Dense Compact Grid) */
.aofbd-pack-grid.aofbd-view-tile {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* View Mode: List (Single Stacked Column of Rows) */
.aofbd-pack-grid.aofbd-view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* View Mode: Table */
.aofbd-pack-grid.aofbd-view-table {
    display: block;
    width: 100%;
}

/* Operator Avatar */
.aofbd-op-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--op-color, var(--aofbd-primary));
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.aofbd-op-avatar.aofbd-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.aofbd-op-avatar.aofbd-avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 9.5px;
}

/* -------------------------------------------------------------
   Pack Card (Card View)
   ------------------------------------------------------------- */
.aofbd-pack-card {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 20px;
    box-shadow: var(--aofbd-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.aofbd-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aofbd-shadow-md);
    border-color: var(--aofbd-border-strong);
}

.aofbd-pack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.aofbd-pack-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.aofbd-pack-op-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aofbd-pack-op-meta .aofbd-op-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    text-transform: none;
    letter-spacing: normal;
}

.aofbd-pack-sub-type {
    font-size: 11px;
    color: var(--aofbd-text-subtle);
    font-weight: 600;
}

.aofbd-pack-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.aofbd-validity-tag {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    color: var(--aofbd-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aofbd-validity-tag.aofbd-tag-sm {
    font-size: 10.5px;
    padding: 1px 6px;
}

.aofbd-pack-title-row {
    margin-top: 2px;
}

.aofbd-pack-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0;
    line-height: 1.35;
}

/* Spec Highlight Box (mirrors broadband starting plan box) */
.aofbd-pack-spec-box {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-md);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.aofbd-spec-data-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aofbd-spec-data-val {
    font-size: 20px;
    font-weight: 900;
    color: var(--aofbd-primary);
    line-height: 1.1;
}

.aofbd-spec-rate {
    font-size: 11.5px;
    color: var(--aofbd-text-muted);
}

.aofbd-spec-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aofbd-spec-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--aofbd-text-main);
    line-height: 1;
}

.aofbd-spec-tax {
    font-size: 10px;
    color: var(--aofbd-text-subtle);
}

.aofbd-badge-value {
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #a7f3d0;
}

.aofbd-badge-micro {
    background: #ecfdf5;
    color: #047857;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #a7f3d0;
}

/* Inclusions & Perks */
.aofbd-pack-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.aofbd-perk-item {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    padding: 4px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--aofbd-text-muted);
    font-weight: 500;
}

.aofbd-perk-bonus {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
    font-weight: 700;
}

/* Actions Footer */
.aofbd-pack-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--aofbd-border);
    margin-top: auto;
}

.aofbd-pack-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.aofbd-pack-btns .aofbd-btn-activate {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.aofbd-btn-ussd {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border-strong);
    color: var(--aofbd-text-main);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.aofbd-btn-ussd code {
    background: var(--aofbd-surface);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.aofbd-btn-ussd:hover {
    background: var(--aofbd-surface-alt);
    border-color: var(--aofbd-primary);
}

.aofbd-btn-ussd.is-copied {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

/* -------------------------------------------------------------
   Tile View (.aofbd-pack-tile)
   ------------------------------------------------------------- */
.aofbd-pack-tile {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 14px 16px;
    box-shadow: var(--aofbd-shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.aofbd-pack-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--aofbd-shadow-md);
    border-color: var(--aofbd-border-strong);
}

.aofbd-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aofbd-tile-op {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aofbd-tile-op-name {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--aofbd-text-main);
}

.aofbd-tile-validity {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--aofbd-text-muted);
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    padding: 1px 6px;
    border-radius: 4px;
}

.aofbd-tile-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aofbd-tile-spec {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aofbd-tile-data {
    font-size: 15px;
    font-weight: 900;
    color: var(--aofbd-primary);
}

.aofbd-tile-rate {
    font-size: 11px;
    font-weight: 700;
    color: var(--aofbd-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aofbd-tile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--aofbd-border);
}

.aofbd-tile-price strong {
    font-size: 17px;
    font-weight: 900;
    color: var(--aofbd-text-main);
}

.aofbd-tile-price small {
    font-size: 10px;
    color: var(--aofbd-text-subtle);
    margin-left: 2px;
}

.aofbd-tile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------------------
   List View (.aofbd-pack-row)
   ------------------------------------------------------------- */
.aofbd-view-list .aofbd-pack-card.aofbd-pack-row {
    display: grid;
    grid-template-columns: 180px 1fr 180px 140px 180px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
}

.aofbd-row-brand-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aofbd-row-op-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aofbd-row-op-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--aofbd-text-main);
}

.aofbd-row-sub-type {
    font-size: 11px;
    color: var(--aofbd-text-subtle);
}

.aofbd-row-details-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aofbd-row-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0;
}

.aofbd-row-perks {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aofbd-row-data-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aofbd-row-data-val {
    font-size: 16px;
    font-weight: 900;
    color: var(--aofbd-primary);
}

.aofbd-row-rate {
    font-size: 11.5px;
    color: var(--aofbd-text-muted);
}

.aofbd-row-price-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aofbd-row-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--aofbd-text-main);
}

.aofbd-row-actions-col {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* -------------------------------------------------------------
   Table View (.aofbd-mobile-table)
   ------------------------------------------------------------- */
.aofbd-mobile-table .aofbd-table-data-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--aofbd-primary);
}

.aofbd-mobile-table .aofbd-table-rate {
    font-size: 13px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 900px) {
    .aofbd-view-list .aofbd-pack-card.aofbd-pack-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .aofbd-row-actions-col {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .aofbd-pack-grid-2wide,
    .aofbd-pack-grid.aofbd-view-card {
        grid-template-columns: 1fr;
    }
    .aofbd-pack-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .aofbd-pack-btns .aofbd-btn-ussd,
    .aofbd-pack-btns .aofbd-btn-activate {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   14. Comparison Matrix (`/internet/compare/`)
   ============================================================================= */
.aofbd-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--aofbd-border);
}

.aofbd-compare-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 4px 0;
}

.aofbd-compare-header p {
    font-size: 14px;
    color: var(--aofbd-text-muted);
    margin: 0;
}

.aofbd-compare-header-actions {
    display: flex;
    gap: 10px;
}

.aofbd-table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    box-shadow: var(--aofbd-shadow-sm);
}

.aofbd-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.aofbd-compare-table th,
.aofbd-compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--aofbd-border);
    vertical-align: middle;
}

.aofbd-feature-col {
    width: 250px;
    background: var(--aofbd-surface-muted);
    color: var(--aofbd-text-main);
    font-weight: 700;
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid var(--aofbd-border-strong);
}

.aofbd-plan-col {
    min-width: 200px;
    background: #ffffff;
}

.aofbd-col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px 0;
}

.aofbd-col-header h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    color: var(--aofbd-text-main);
}

.aofbd-isp-sub {
    font-size: 12px;
    color: var(--aofbd-text-subtle);
}

.aofbd-col-price strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--aofbd-accent);
}

.aofbd-col-price small {
    font-size: 11px;
    color: var(--aofbd-text-muted);
}

.aofbd-btn-remove-col {
    background: transparent;
    border: none;
    color: var(--aofbd-danger);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.aofbd-btn-remove-col:hover {
    text-decoration: underline;
}

.aofbd-feature-label {
    font-weight: 600;
    color: var(--aofbd-text-muted);
    background: var(--aofbd-surface-muted);
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid var(--aofbd-border-strong);
}

.aofbd-val-bold {
    font-weight: 800;
    color: var(--aofbd-text-main);
}

.aofbd-row-action td {
    background: #fafbfc;
    padding: 16px 18px;
}

/* =============================================================================
   15. Tracking Portal (`/internet/tracking/`)
   ============================================================================= */
.aofbd-tracking-search-card {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 24px 28px;
    box-shadow: var(--aofbd-shadow-sm);
    margin-bottom: 28px;
}

.aofbd-tracking-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.aofbd-tracking-form input {
    height: 42px;
    padding: 0 12px;
    font-size: 13.5px;
    font-family: inherit;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: 8px;
    width: 100%;
}

.aofbd-field-help {
    font-size: 11px;
    color: var(--aofbd-text-subtle);
    margin-top: 4px;
}

.aofbd-alert {
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    margin-bottom: 24px;
}

.aofbd-alert-danger {
    background: var(--aofbd-danger-bg);
    border: 1px solid var(--aofbd-danger-border);
    color: #991b1b;
}

.aofbd-tracking-result-card {
    background: var(--aofbd-surface);
    border: 1px solid var(--aofbd-border);
    border-radius: var(--aofbd-radius-lg);
    padding: 28px;
    box-shadow: var(--aofbd-shadow-md);
}

.aofbd-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--aofbd-border);
    margin-bottom: 20px;
}

.aofbd-tracking-pill {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.aofbd-result-title-group h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 6px 0;
}

.aofbd-order-meta {
    font-size: 13.5px;
    color: var(--aofbd-text-muted);
}

.aofbd-result-contact {
    text-align: right;
}

.aofbd-result-contact small {
    display: block;
    font-size: 11px;
    color: var(--aofbd-text-subtle);
}

.aofbd-hotline-link {
    font-size: 16px;
    font-weight: 800;
    color: var(--aofbd-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.aofbd-address-summary {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--aofbd-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

/* Tracking Timeline */
.aofbd-timeline {
    position: relative;
    padding-left: 36px;
}

.aofbd-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 15px;
    width: 2px;
    background: var(--aofbd-border-strong);
}

.aofbd-timeline-step {
    position: relative;
    margin-bottom: 24px;
}

.aofbd-timeline-step:last-child {
    margin-bottom: 0;
}

.aofbd-step-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: #ffffff;
    border: 2px solid var(--aofbd-border-strong);
    color: var(--aofbd-text-subtle);
    z-index: 1;
}

.step-completed .aofbd-step-marker {
    background: var(--aofbd-success);
    border-color: var(--aofbd-success);
    color: #ffffff;
}

.aofbd-step-content h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0 0 4px 0;
}

.aofbd-step-content p {
    font-size: 13px;
    color: var(--aofbd-text-muted);
    margin: 0 0 4px 0;
}

.aofbd-step-content time {
    font-size: 11.5px;
    color: var(--aofbd-text-subtle);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =============================================================================
   16. Modals, Sticky Drawers, AI Assistant
   ============================================================================= */

/* Lead Modal */
.aofbd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aofbd-modal-dialog {
    background: #ffffff;
    border-radius: var(--aofbd-radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    box-shadow: var(--aofbd-shadow-xl);
    position: relative;
}

.aofbd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.aofbd-modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--aofbd-text-main);
    margin: 0;
}

.aofbd-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--aofbd-text-subtle);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.aofbd-modal-summary {
    background: var(--aofbd-surface-muted);
    border: 1px solid var(--aofbd-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--aofbd-text-muted);
    margin-bottom: 16px;
}

.aofbd-form-group {
    margin-bottom: 14px;
}

.aofbd-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--aofbd-text-main);
    margin-bottom: 5px;
}

.aofbd-form-group input,
.aofbd-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: 6px;
    background: #ffffff;
}

.aofbd-form-group input:focus,
.aofbd-form-group textarea:focus {
    outline: none;
    border-color: var(--aofbd-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.aofbd-form-group small {
    display: block;
    font-size: 11px;
    color: var(--aofbd-text-subtle);
    margin-top: 3px;
}

.aofbd-consent-box {
    margin-bottom: 18px;
    font-size: 11.5px;
    color: var(--aofbd-text-muted);
    line-height: 1.45;
}

.aofbd-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.aofbd-checkbox-label input {
    margin-top: 2px;
}

.aofbd-modal-success {
    text-align: center;
    padding: 20px 0;
}

.aofbd-success-icon {
    width: 56px;
    height: 56px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.aofbd-tracking-badge {
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    margin: 12px 0;
}

.aofbd-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

/* Sticky Compare Bottom Drawer */
.aofbd-compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 14px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aofbd-drawer-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.aofbd-compare-names {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 8px;
}

/* Floating AI Assistant Widget */
.aofbd-ai-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--aofbd-radius-full);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--aofbd-shadow-xl);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.15s ease, background 0.15s ease;
}

.aofbd-ai-launcher:hover {
    transform: translateY(-2px);
    background: #1e293b;
}

.aofbd-ai-chat-window {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 500px;
    background: #ffffff;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: var(--aofbd-radius-lg);
    box-shadow: var(--aofbd-shadow-xl);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.aofbd-ai-header {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aofbd-ai-header h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#aofbd-ai-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.aofbd-ai-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aofbd-ai-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 85%;
}

.aofbd-ai-msg-bot {
    background: var(--aofbd-surface-muted);
    color: var(--aofbd-text-main);
    align-self: flex-start;
    border: 1px solid var(--aofbd-border);
}

.aofbd-ai-msg-user {
    background: var(--aofbd-accent);
    color: #ffffff;
    align-self: flex-end;
}

.aofbd-ai-quick-pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.aofbd-ai-pill {
    background: #ffffff;
    border: 1px solid var(--aofbd-border-strong);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.aofbd-ai-pill:hover {
    background: var(--aofbd-accent-light);
    border-color: var(--aofbd-accent-border);
    color: var(--aofbd-accent);
}

.aofbd-ai-footer {
    display: flex;
    padding: 10px 12px;
    border-top: 1px solid var(--aofbd-border);
    gap: 8px;
}

.aofbd-ai-footer input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
    border: 1px solid var(--aofbd-border-strong);
    border-radius: 6px;
}

.aofbd-ai-footer button {
    padding: 0 14px;
    font-size: 12.5px;
}

/* =============================================================================
   17. Responsive Layouts & Mobile Adaptation (Zero Overflow)
   ============================================================================= */

@media (max-width: 1024px) {
    .aofbd-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .aofbd-hero-visual-col {
        display: none;
    }

    .aofbd-promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .aofbd-internet-container {
        padding: 12px 12px 40px 12px;
    }

    .aofbd-hero {
        padding: 24px 18px;
        border-radius: var(--aofbd-radius-lg);
    }

    .aofbd-search-row-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .aofbd-cascade-grid {
        grid-template-columns: 1fr;
    }

    .aofbd-search-row-advanced {
        grid-template-columns: 1fr;
    }

    .aofbd-search-summary-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .aofbd-summary-stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .aofbd-isp-grid-2wide,
    .aofbd-isp-grid.aofbd-view-card {
        grid-template-columns: 1fr;
    }

    .aofbd-view-list .aofbd-isp-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .aofbd-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .aofbd-results-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .aofbd-tracking-form {
        grid-template-columns: 1fr;
    }

    .aofbd-alert-box {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .aofbd-alert-box-form {
        flex-direction: column;
    }

    .aofbd-subnav {
        flex-direction: column;
        align-items: flex-start;
    }

    .aofbd-nav-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .aofbd-card-actions {
        flex-direction: column;
    }

    .aofbd-card-actions .aofbd-btn {
        width: 100%;
    }

    .aofbd-pack-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .aofbd-pack-btns {
        width: 100%;
    }

    .aofbd-pack-btns .aofbd-btn-activate {
        flex: 1;
        text-align: center;
    }
}
