/* ==========================================================================
   FF SENSI PRO - 100% Mobile-First Premium Soft Porcelain Light UI
   Fixes: Brand Title No-Wrap, Hidden Mobile Drawer by Default, Perfect Mobile Layout
   ========================================================================== */

:root {
    --bg-page: #f4f6fa;
    --bg-card: #ffffff;
    --bg-input: #f0f4f9;
    --shadow-soft: 0 8px 24px rgba(165, 175, 195, 0.2), 0 2px 6px rgba(165, 175, 195, 0.1);
    --shadow-inset: inset 2px 2px 6px rgba(165, 175, 195, 0.25), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
    --border: #e2e8f0;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
    --accent-glow: rgba(37, 99, 235, 0.35);
    --accent-green: #10b981;
    --accent-blue: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-brand: 'Kanit', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background: var(--bg-page);
    color: var(--text-secondary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============ HEADER NAVBAR ============ */
.header-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 16px auto 20px;
    padding: 0 16px;
}

.navbar {
    width: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.55));
}

.brand-title {
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.3px;
    white-space: nowrap !important;
    display: inline-block;
}

.brand-title .brand-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-menu a i { color: var(--accent); }

/* Desktop Dropdown */
.dropdown-menu-item { position: relative; padding: 6px 0; }
.dropdown-trigger { cursor: pointer; }

.dropdown-popover {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-popover::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown-menu-item:hover .dropdown-popover,
.dropdown-popover:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-popover a {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-popover a:hover {
    background: #eff6ff;
    color: var(--accent);
}

/* ============ MOBILE HAMBURGER BUTTON ============ */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* ============ MOBILE OVERLAY & DRAWER ============ */
.mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Drawer - Silky smooth hardware-accelerated slide from right */
.mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    z-index: 9999;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
    will-change: transform;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer-head, .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    min-height: 60px;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.mobile-drawer-title {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-drawer-title .brand-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-drawer-close, .close-drawer-btn {
    background: var(--bg-input);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--accent);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover, .close-drawer-btn:hover {
    background: #eff6ff;
    color: var(--accent);
    transform: scale(1.05);
}

.mobile-drawer-body, .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 6px;
}

.drawer-link, .mobile-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-link i, .mobile-drawer-links i {
    color: var(--accent);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.drawer-link:hover, .drawer-link.active,
.mobile-drawer-links a:hover, .mobile-drawer-links a.active {
    background: #eff6ff;
    color: var(--accent);
}

.drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ============ CONTAINER ============ */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 50px;
    flex: 1 0 auto;
}

/* ============ HERO ============ */
.hero {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-brand {
    font-family: var(--font-brand);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============ AD SLOT ============ */
.ad-slot {
    width: 100%;
    margin: 16px 0 24px;
    padding: 6px;
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: 16px;
    text-align: center;
    min-height: 75px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* ============ TOOL WRAPPER ============ */
.dial-interactive-wrapper {
    width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.dial-header {
    text-align: center;
    margin-bottom: 20px;
}

.dial-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dial-header p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* ============ SELECTOR GRID ============ */
.selector-cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.selector-card {
    width: 100%;
    background: var(--bg-input);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-inset);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.selector-card label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clean-select {
    width: 100%;
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    background-size: 14px 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 38px 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.clean-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.clean-select:focus, .clean-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.suggestions-box {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 14px;
    max-height: 160px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.suggestion-row {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-row:hover {
    background: #eff6ff;
    color: var(--accent);
}

.suggestion-badge {
    font-size: 0.72rem;
    background: #eff6ff;
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
}

/* ============ DEVICE SEARCH CHIPS ============ */
.device-chip {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.device-chip:hover, .device-chip.active {
    background: #eff6ff;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ============ AIM COMFORT SLIDER ============ */
.aim-comfort-card {
    width: 100%;
    background: var(--bg-input);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-inset);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aim-comfort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aim-comfort-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aim-comfort-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.aim-comfort-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 6px;
    background: var(--border);
    outline: none;
    cursor: pointer;
    margin: 6px 0;
}

.aim-comfort-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease;
}

.aim-comfort-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.aim-comfort-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.aim-comfort-extremes {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.btn-action-outline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-action-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============ CALCULATE BUTTON ============ */
.btn-master-calculate {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 16px;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.btn-master-calculate:active { transform: scale(0.98); }

/* ============ RESULTS PANEL ============ */
.results-display-panel {
    width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.results-placeholder {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
}

.results-placeholder i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.sensi-cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.sensi-card {
    width: 100%;
    background: var(--bg-input);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow-inset);
    display: flex;
    flex-direction: column;
}

.sensi-card.featured {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.sensi-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.sensi-label i { color: var(--accent); }

.sensi-val-row {
    display: flex;
    align-items: baseline;
}

.sensi-val-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
}

.sensi-card.featured .sensi-val-num { color: var(--accent); }

.secondary-badges-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.badge-card {
    width: 100%;
    background: var(--bg-input);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-inset);
}

.badge-card .lbl {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.badge-card .val {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-green);
}

.action-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-action {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #ffffff;
    border-color: var(--accent);
    color: var(--accent);
}

/* ============ TABLE OF CONTENTS ============ */
.toc-section { padding: 20px !important; }

.toc-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title i { color: var(--accent); }

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-nav a {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-nav a:hover { color: var(--accent); }

/* ============ SEO ARTICLE ============ */
.seo-panel {
    width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.seo-panel h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 18px 0 10px;
}

.seo-panel h2:first-child { margin-top: 0; }

.seo-panel p {
    margin-bottom: 12px;
    line-height: 1.55;
}

.seo-panel ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.seo-panel li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ============ FEATURES GRID ============ */
.features-grid, .features-responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.feature-box, .feature-card-box {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-inset);
}

.feature-box h4, .feature-card-box h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.feature-box p, .feature-card-box p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

/* ============ FAQ ============ */
.faq-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.faq-item, .faq-card {
    width: 100%;
    background: var(--bg-input);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-inset);
}

.faq-header {
    width: 100%;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.86rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--accent);
    flex-shrink: 0;
}

.faq-body {
    padding: 0 16px 14px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.55;
}

.faq-item.active .faq-body, .faq-card.active .faq-body { display: block !important; }
.faq-item.active .faq-header i, .faq-card.active .faq-header i { transform: rotate(180deg); }

/* ============ TOAST ============ */
.toast-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2000;
    white-space: nowrap;
}

.toast-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============ FOOTER ============ */
.footer-bar {
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 24px 16px 36px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 2;
    margin-top: auto;
    position: relative;
    z-index: 50;
    background: var(--bg-card);
}

.footer-bar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    margin: 3px 4px;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.2s ease;
    touch-action: manipulation;
    cursor: pointer;
}

.footer-bar a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.footer-bar .footer-copy {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ==========================================================================
   PERFECT MOBILE & TABLET BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    /* Hide desktop nav links, show mobile hamburger icon */
    .desktop-only { display: none !important; }
    .mobile-menu-btn, .mobile-hamburger-btn { display: flex !important; }

    .header-wrapper {
        padding: 0 12px;
        margin: 10px auto 14px;
    }

    .navbar {
        padding: 10px 14px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 1.05rem;
        white-space: nowrap !important;
    }

    .container {
        padding: 0 12px 40px;
    }

    .hero {
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .hero-desc {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .ad-slot {
        margin: 12px 0 18px;
        border-radius: 14px;
    }

    /* 1 Column Form Inputs on Mobile to ensure zero text cut-off */
    .selector-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .selector-card { 
        padding: 14px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .clean-select {
        font-size: 15px;
        padding: 13px 40px 13px 14px;
        background-position: calc(100% - 14px) center;
    }

    .dial-interactive-wrapper, .results-display-panel, .seo-panel {
        padding: 16px 14px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .dial-header h2 { font-size: 1.15rem; }
    .dial-header p { font-size: 0.8rem; }

    .btn-master-calculate {
        padding: 14px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    /* 2 Column Sensi Cards */
    .sensi-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sensi-card { padding: 10px 12px; }
    .sensi-val-num { font-size: 1.3rem; }

    .secondary-badges-grid { gap: 8px; }
    .badge-card { padding: 10px; }
    .badge-card .val { font-size: 1.1rem; }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Features Grid 1 Column */
    .features-grid, .features-responsive-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-box, .feature-card-box { padding: 14px; }

    /* SEO Panel */
    .seo-panel h2 { font-size: 1.15rem; }
    .seo-panel { font-size: 0.84rem; }

    /* TOC */
    .toc-section { padding: 16px 14px !important; }
    .toc-title { font-size: 0.95rem; }
    .toc-nav a { font-size: 0.82rem; }

    /* FAQ */
    .faq-header { padding: 12px 14px; font-size: 0.84rem; }
    .faq-body { padding: 0 14px 12px; font-size: 0.82rem; }

    /* Footer */
    .footer-bar { font-size: 0.75rem; padding: 20px 12px; }
}

@media (max-width: 380px) {
    .sensi-cards-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.3rem; }
}
