/* Senior Defender - Senior-Friendly Styles */

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

:root {
    --brand-500: #38bdf8;
    --brand-700: #0284c7;
    --primary-color: var(--brand-500);
    --danger-color: #dc2626;
    --safe-color: #16a34a;
    --caution-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --neutral-800: #1f2937;
    --neutral-600: #4b5563;
    --bg-light: #f0f9ff;
    --bg-white: #ffffff;
    --bg-page: #f0f9ff;
    --border-color: #e5e7eb;
    --font-size-base: 18px;
    --font-size-large: 24px;
    --font-size-xl: 32px;
    --spacing: 1.5rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --footer-bg: #1f2937;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-page);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Site header - two-tier Oberlin-style */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top-bar {
    background: #2d3748;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0;
    font-size: 0.8125rem;
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-extension-label {
    font-weight: 600;
    opacity: 0.95;
}

.header-extension-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.header-ext-link:hover {
    opacity: 0.85;
}

.header-ext-link img {
    display: block;
}

.header-ext-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.header-ext-info:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Navigation - Oberlin-style: left logo, center nav, right CTA */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0 1rem;
    box-shadow: var(--shadow);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    flex-wrap: nowrap;
}

/* Left: logo + wordmark + tagline */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem 0.5rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.logo-link:hover .logo-text {
    transform: scale(1.02);
}

.logo-word-tight {
    margin-left: -0.05rem;
}

/* Center: nav links (centered in remaining space) */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-links a:not(.btn-primary):focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Sign-Up as text link in nav */
.nav-links a.nav-link-signup {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links a.nav-link-signup:hover {
    color: var(--brand-700);
}

.nav-links a.nav-link-signup::after {
    display: none;
}

/* Hamburger: visible only on mobile */
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: none;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    margin: 4px 0;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-toggle-text {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

.nav-toggle-text::after {
    content: "...";
}

/* Right: Scan CTA only - one row, never wrap */
.header-cta {
    flex-shrink: 0;
    min-width: 0;
}

.header-scan-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
}

.header-scan-input {
    width: 100%;
    min-width: 200px;
    max-width: 320px;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-scan-input::placeholder {
    color: var(--text-light);
}

.header-scan-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-header-scan {
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-header-scan:hover {
    background: var(--brand-700);
}

.btn-header-scan:focus-visible {
    outline: 2px solid var(--brand-700);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .navbar-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        order: 4;
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        margin: 0;
        display: none;
        gap: 0.75rem;
    }

    .nav-links.open {
        display: flex;
    }

    .header-cta {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        min-width: 0;
    }

    .header-scan-form {
        flex-direction: column;
        width: 100%;
    }

    .header-scan-input {
        max-width: none;
        width: 100%;
    }

    .btn-header-scan {
        width: 100%;
    }

    .nav-toggle-bar {
        display: block;
    }

    .nav-toggle-text::after {
        content: "";
    }
}

/* Buttons */
.btn-primary,
.btn-scan {
    background-color: var(--primary-color);
    color: white !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.btn-scan:hover {
    background-color: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 189, 248, 0.35);
}

.btn-scan {
    padding: 1.2rem 3rem;
    font-size: var(--font-size-large);
    background: white;
    color: var(--primary-color) !important;
    font-weight: 700;
    white-space: nowrap;
}

.btn-scan:hover {
    background: #f0f7ff;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.btn-extension {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--brand-700);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, color 0.2s;
    box-shadow: var(--shadow);
}

.btn-extension:hover {
    color: var(--brand-500);
}

/* Hero banner - home: full-width image + semi-transparent overlay on the right */
.hero-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
}

.hero-banner--home {
    min-height: 72vh;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    background-image: url(../images/senior_defender_hero.png?v=2), linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    background-size: cover;
    background-position: center 18%;
}

.hero-banner-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-banner-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 2.75rem;
    padding-top: 2rem;
    padding-right: 2rem;
    padding-left: 2rem;
    box-sizing: border-box;
}

.hero-overlay-box {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    max-width: 540px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: 15rem;
    margin-top: 5rem;
}

.hero-overlay-box .hero-headline {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-shadow: none;
}

.hero-overlay-box .hero-subtext {
    color: var(--neutral-600);
    opacity: 1;
    margin: 0 0 0.65rem 0;
}

.hero-overlay-scan-form {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.hero-overlay-scan-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-dark);
}

.hero-overlay-scan-input::placeholder {
    font-weight: 600;
    color: var(--neutral-600);
    opacity: 0.9;
}

.hero-overlay-scan-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-hero-scan {
    padding: 0.75rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-hero-scan:hover {
    background: var(--brand-700);
}

.hero-headline {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero-subtext {
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.hero-wave svg {
    width: 100%;
    height: 48px;
}

@media (min-width: 769px) {
    .hero-wave svg {
        height: 64px;
    }

    .hero-overlay-box {
        padding: 2rem 2.5rem;
        max-width: 560px;
    }
}

/* Home hero: desktop photo + offset overlay; mobile uses gradient only + full-width box */
@media (max-width: 768px) {
    .hero-banner--home {
        min-height: 0;
        align-items: stretch;
    }

    .hero-banner-bg {
        background-image: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    }

    .hero-banner-inner {
        justify-content: center;
        align-items: stretch;
        padding-top: 1.5rem;
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-overlay-box {
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-overlay-scan-form {
        flex-direction: column;
    }

    .btn-hero-scan {
        width: 100%;
    }
}

/* Inner-page hero: placeholder banner + wave (for About, Pricing, Blog, Contact) */
.page-hero {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--brand-500);
    background-size: cover;
    background-position: center;
}

.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.page-hero-title {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.page-hero-wave svg {
    width: 100%;
    height: 48px;
}

@media (min-width: 769px) {
    .page-hero-wave svg {
        height: 64px;
    }
}

/* Home content below hero */
.home-hero {
    padding: 3rem 0 4rem;
    text-align: center;
    background-color: var(--bg-page);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--text-dark);
    line-height: 1.2;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scan-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
    animation: slideUp 0.6s ease-out;
    color: white;
}

.guide-callout {
    background: #fde68a;
    color: #1f2937;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-callout a {
    color: #1f2937;
    text-decoration: underline;
    font-weight: 700;
}

.home-hero .extension-cta {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scan-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.scan-input {
    flex: 1;
    padding: 1.2rem;
    font-size: var(--font-size-large);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.scan-input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.scan-input::placeholder {
    color: var(--text-light);
}

.scan-info {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-base);
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.scan-info .small {
    font-size: 16px;
    margin-top: 0.5rem;
}

.extension-cta {
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.dashboard-content .extension-cta {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.extension-cta h2 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: white;
}

.extension-cta p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    opacity: 0.95;
}

.extension-cta-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.extension-learn-more {
    display: inline-block;
    margin-left: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
}

.extension-learn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.extension-learn-more::after {
    content: "Learn More";
    position: absolute;
    left: 3.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.extension-learn-more:hover::after,
.extension-learn-more:focus::after {
    opacity: 1;
}

/* Scan Result */
.scan-result {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    font-size: var(--font-size-base);
}

.scan-result.dangerous {
    background-color: #fee2e2;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
}

.scan-result.safe {
    background-color: #dcfce7;
    border: 2px solid var(--safe-color);
    color: #166534;
}

.scan-result.caution {
    background-color: #fef3c7;
    border: 2px solid var(--caution-color);
    color: #92400e;
}

.scan-result h3 {
    font-size: var(--font-size-large);
    margin-bottom: 1rem;
}

/* Features */
.features {
    padding: 0.75rem 0 2.25rem;
    background: var(--bg-page);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0.25rem auto 0;
}



.feature-card {
    background: var(--bg-white);
    padding: 1.1rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: var(--font-size-large);
    margin-bottom: 0.5rem;
}

/* Footer - Oberlin-style 4-column */
.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 0;
    margin-top: 0;
}

.footer-wave {
    line-height: 0;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 48px;
    display: block;
}

@media (min-width: 769px) {
    .footer-wave svg {
        height: 64px;
    }
}

.footer-inner {
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-about-text,
.footer-contact-text {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-contact-text a {
    color: var(--brand-500);
    text-decoration: none;
}

.footer-contact-text a:hover {
    text-decoration: underline;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.5rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.footer-links-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.85;
    margin: 0;
}

/* Legacy footer (if used elsewhere) */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.trust-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Dashboard */
.dashboard-header {
    padding: 2rem 0;
    background: #e0f2fe;
}

.welcome-message {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
}

.scan-quota {
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.dashboard-content {
    padding: 2rem 0;
    background-color: var(--bg-page);
    min-height: calc(100vh - 200px);
}

.scan-history {
    margin-top: 3rem;
}

.scan-history table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-base);
}

.scan-history th,
.scan-history td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.scan-history th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: var(--font-size-base);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: var(--font-size-base);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Additional Styles */

.auth-page {
    padding: 4rem 0;
    min-height: 60vh;
    background-color: var(--bg-page);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-form {
    margin-top: 2rem;
}

.btn-full {
    width: 100%;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-note {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-base);
}

.alert-error {
    background-color: #fee2e2;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 2px solid var(--safe-color);
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 2px solid var(--primary-color);
}

.page-content {
    padding: 3rem 0;
    background-color: var(--bg-page);
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
}

.content-section {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guide-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.content-section h2 {
    font-size: var(--font-size-large);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.simple-list {
    list-style: none;
    padding-left: 0;
}

.simple-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: var(--font-size-base);
}

.simple-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--safe-color);
    font-weight: bold;
}

.provider-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.provider-list li {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* About Page Cards */
main.page-content .about-card {
    background: #ffffff !important;
    padding: 2.5rem !important;
    border-radius: 16px !important;
    margin-bottom: 2rem !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e7eb;
}

main.page-content .about-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
}

main.page-content .about-card h2 {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color) !important;
    padding-bottom: 0.75rem !important;
    font-weight: 700 !important;
}

main.page-content .about-card p {
    font-size: var(--font-size-base) !important;
    line-height: 1.8 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1rem !important;
}

main.page-content .about-card .provider-intro {
    margin-bottom: 2rem !important;
    text-align: center !important;
    font-size: var(--font-size-base) !important;
    color: var(--text-light) !important;
    font-weight: 500 !important;
}

/* Provider Grid */
main.page-content .provider-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
}

main.page-content .provider-box {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

main.page-content .provider-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--safe-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

main.page-content .provider-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2) !important;
    border-color: var(--primary-color) !important;
}

main.page-content .provider-box:hover::before {
    transform: scaleX(1);
}

main.page-content .provider-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
    transition: transform 0.3s ease;
    line-height: 1;
}

main.page-content .provider-box:hover .provider-icon {
    transform: scale(1.15) rotate(5deg);
}

main.page-content .provider-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 0.75rem !important;
}

main.page-content .provider-desc {
    font-size: 15px !important;
    color: var(--text-light) !important;
    line-height: 1.6 !important;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-grid-detailed {
    align-items: start;
}

.pricing-grid-detailed .pricing-card {
    font-size: 0.95rem;
    line-height: 1.45;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-card h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: normal;
}

.price-footnote {
    font-size: 0.9em;
    vertical-align: super;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.price-note-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.plan-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: var(--font-size-base);
}

.plan-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.plan-features-plain {
    margin-bottom: 1.5rem;
    list-style: none;
    padding-left: 0;
}

.plan-features-plain li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.plan-features-plain li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--safe-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.plan-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.plan-lead {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.plan-section {
    margin-bottom: 1.25rem;
}

.plan-section-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.plan-footnote {
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--safe-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-section {
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: var(--font-size-large);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}


/* Learn More page */
.learn-more-page .learn-hero-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.learn-hero-subhead {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.learn-hero-helper {
    font-size: 1rem;
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

.learn-hero-buttons,
.learn-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-secondary-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-700);
    background: transparent;
    border: 2px solid var(--brand-700);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary-link:hover {
    background: var(--brand-700);
    color: white;
}

.learn-do-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.learn-do-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.learn-do-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.learn-do-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.learn-block-intro {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.learn-steps {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.learn-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.learn-extension-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.learn-extension-buttons .btn-primary {
    margin: 0;
}

.learn-note,
.learn-reminder,
.learn-example {
    font-size: 0.95rem;
    color: var(--neutral-600);
    margin-top: 1rem;
    font-style: italic;
}

.learn-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.learn-result-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.learn-result-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.learn-result-trusted { border-left: 4px solid var(--safe-color); }
.learn-result-unknown { border-left: 4px solid var(--caution-color); }
.learn-result-untrusted { border-left: 4px solid var(--danger-color); }

.learn-safe-tip {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
}

.learn-cta-strip {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    color: white;
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.learn-cta-strip h2 {
    color: white;
    border: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.learn-cta-strip p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.learn-cta-strip .learn-cta-buttons {
    margin-bottom: 1rem;
}

.learn-cta-strip .btn-primary {
    background: white;
    color: var(--brand-700);
}

.learn-cta-strip .btn-primary:hover {
    background: var(--bg-light);
    color: var(--brand-700);
}

.learn-cta-strip .btn-secondary-link {
    color: white;
    border-color: white;
}

.learn-cta-strip .btn-secondary-link:hover {
    background: white;
    color: var(--brand-700);
}

.learn-cta-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0 !important;
}

.learn-help-callout {
    text-align: center;
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.learn-help-callout a {
    color: var(--primary-color);
    font-weight: 600;
}


.learn-do-icon {
    margin-bottom: 1rem;
}

.learn-do-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.learn-do-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.learn-do-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.learn-way-card {
    position: relative;
    padding-top: 3.5rem;
}

.learn-way-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.learn-way-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .learn-way-icon {
        position: static;
        margin-bottom: 1rem;
    }
}




.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.contact-info {
    text-align: center;
    color: var(--text-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card h2 {
    font-size: var(--font-size-large);
    margin-bottom: 0.5rem;
}

.blog-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-date {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: var(--font-size-base);
}

.blog-post-content {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-cta {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

/* Terms Page Styles */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.terms-section h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: var(--font-size-base);
}

.terms-section ul,
.terms-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.terms-section li {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-base);
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 2rem;
    font-style: italic;
}

.terms-acknowledgment {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.terms-acknowledgment p {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-base);
}

.result-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.result-badge.result-safe {
    background: #dcfce7;
    color: #166534;
}

.result-badge.result-caution {
    background: #fef3c7;
    color: #92400e;
}

.result-badge.result-dangerous {
    background: #fee2e2;
    color: #dc2626;
}

.providers-summary {
    margin-top: 1rem;
    font-size: 14px;
    color: var(--text-light);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    position: relative;
}

.modal-content--sm {
    max-width: 360px;
    padding: 1.5rem;
}

.scan-details-modal {
    max-width: 640px;
}

.scan-details-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.scan-details-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.scan-details-label {
    font-weight: 600;
    color: var(--text-dark);
}

.btn-view-details {
    background: #eef2ff;
    color: #1d4ed8;
    border: 1px solid #c7d2fe;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-view-details:hover {
    background: #e0e7ff;
}

.modal .auth-form-inline .form-group {
    margin-bottom: 1rem;
}

.auth-toggle {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0 1.5rem;
}

.auth-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-error {
    color: var(--danger-color);
    margin-top: 0.5rem;
}

.form-success {
    color: var(--safe-color);
    margin-top: 1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Extension CTA Button Hover */
.btn-extension:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Premium Upgrade Button Hover */
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Additional animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.feature-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle {
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        background: var(--bg-light);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        background: var(--bg-white);
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        text-align: center;
        padding: 0.75rem 0;
    }

    .scan-form {
        flex-direction: column;
    }

    .hero-title {
        font-size: 28px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }
}

@media (min-width: 901px) {
    .nav-toggle {
        display: none;
    }
}


.extension-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-extension {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
    min-width: 190px;
}

.btn-extension:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.28);
}

.ext-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.ext-name {
    font-weight: 700;
    letter-spacing: .2px;
}

.ext-action {
    margin-left: auto;
    font-size: .92rem;
    opacity: .9;
}

/* Hover tooltip (reads from data-tooltip) */
.btn-extension::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(320px, 90vw);
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 15, 18, 0.95);
    color: #fff;
    font-size: .85rem;
    line-height: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 50;
}

.btn-extension::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(15, 15, 18, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 50;
}

.btn-extension:hover::after,
.btn-extension:hover::before {
    opacity: 1;
}

/* Optional: keep your existing learn-more styling intact */
.extension-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: background .12s ease, border-color .12s ease;
}

.extension-learn-more:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.28);
}

.extension-learn-icon {
    font-weight: 800;
}