:root {
/* Bright mode defaults (high-contrast) */
--bg: #f4f7ff;
--surface: #ffffff;
--accent: #0d6efd;
--accent-strong: #0b5ed7;
--border: rgba(13, 110, 253, 0.24);
--text-main: #0a1c33;
--text-dim: #3f5775;
--glass: rgba(255, 255, 255, 0.95);
--shadow: 0 24px 56px rgba(15, 51, 120, 0.16);
--card-hover: #e9f1ff;
--tile-bg: linear-gradient(150deg, #ffffff 0%, #eef4ff 54%, #ffeede 100%);
--tile-shadow: 0 18px 46px rgba(25, 80, 155, 0.16);
--tile-hover-shadow: 0 26px 60px rgba(17, 62, 130, 0.2);
}



[data-theme="dark"] {
/* Deep dark mode */
--bg: #020617;
--surface: #0f172a;
--accent: #3b82f6;
--border: rgba(255, 255, 255, 0.08);
--text-main: #f8fafc;
--text-dim: #94a3b8;
--glass: rgba(15, 23, 42, 0.8);
--shadow: 0 20px 50px rgba(0,0,0,0.5);
--card-hover: #1e293b;
--tile-bg: linear-gradient(155deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
--tile-shadow: 0 15px 40px rgba(0,0,0,0.35);
--tile-hover-shadow: 0 25px 60px rgba(0,0,0,0.55);
}

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

body {
background: var(--bg);
color: var(--text-main);
font-family: 'Plus Jakarta Sans', sans-serif;
line-height: 1.6;

min-height: 100vh;
display: flex;
flex-direction: column;
position: relative;
overflow-x: hidden;
}

body.auth-modal-open {
overflow: hidden;
}
body::before,
body::after {
content: "";
position: fixed;
pointer-events: none;
z-index: -1;
border-radius: 999px;
filter: blur(70px);
}
body::before {
width: 340px;
height: 340px;
left: -100px;
top: 10%;
background: rgba(15, 108, 255, 0.16);
}
body::after {
width: 360px;
height: 360px;
right: -130px;
top: 45%;
background: rgba(255, 138, 92, 0.12);
}

img,
video,
canvas {
max-width: 100%;
height: auto;
}


/* --- RESPONSIVE TYPOGRAPHY --- */

h1 { font-family: 'Outfit'; font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 15px; }

h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

p { font-size: clamp(0.9rem, 3vw, 1.1rem); }



/* --- HEADER --- */

.main-header { padding: 2px 5%; position: sticky; top: 0; z-index: 1000; }

.header-glass {

max-width: 1200px; margin: 0 auto; padding: 10px 20px;

background: var(--glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);

border: 1px solid var(--border); border-radius: 50px;

display: flex; justify-content: space-between; align-items: center;

box-shadow: var(--shadow);

}

.nav-right {
position: relative;
z-index: 2;
}

.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; color: inherit; }

.logo { height: clamp(24px, 5vw, 30px); border-radius: 6px; }



/* --- BUTTONS & TOGGLES --- */

.nav-right { display: flex; align-items: center; gap: 10px; }

.settings-btn {

background: var(--surface); border: 1px solid var(--border);

color: var(--text-main); width: 40px; height: 40px; border-radius: 50%;

cursor: pointer; display: flex; align-items: center; justify-content: center;

}



.switch { position: relative; width: 40px; height: 22px; }

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

.slider { position: absolute; inset: 0; background: #cbd5e1; cursor: pointer; border-radius: 34px; }

.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }

input:checked + .slider { background: var(--accent); }

input:checked + .slider:before { transform: translateX(18px); }



/* --- HERO SECTION --- */
.content {
max-width: 1200px;
margin: 0 auto;
padding: 4px 20px 40px;
text-align: center;

flex: 1; /* pushes footer down */
}

.hero { margin-bottom: 60px; }

.badge {

background: var(--accent); color: white; padding: 6px 15px;

border-radius: 50px; font-size: 0.7rem; font-weight: 800;

margin-bottom: 20px; display: inline-block;

}

.home-insights {
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 0 20px;
}

.home-insights-shell {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    background:
        radial-gradient(640px 220px at 10% -20%, rgba(56, 189, 248, 0.2), transparent 72%),
        linear-gradient(160deg, var(--surface), var(--card-hover));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-insights-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
}

.home-insights-shell h2 {
    margin-bottom: 8px;
}

.home-insights-shell > p {
    color: var(--text-dim);
    margin-bottom: 14px;
}

.home-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.home-insights-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: var(--card-hover);
}

.home-insights-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.home-insights-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.home-insights-card a {
    font-weight: 800;
    text-decoration: none;
}

.home-insights-faq details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--surface);
}

.home-insights-faq h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.home-insights-faq summary {
    cursor: pointer;
    font-weight: 800;
}

.home-insights-faq p {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* =========================
   FIXED RESPONSIVE COLUMNS
========================= */

.tool-grid {
    display: grid;
    gap: 28px;
    margin-top: 50px;

    /* Big screen default = 3 columns */
    grid-template-columns: repeat(3, 1fr);
}


/* Tablet */
@media (max-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile */
@media (max-width: 640px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* =========================
   ULTRA PREMIUM TOOL BUTTONS
========================= */

.tool-card {
    position: relative;

    padding: 32px 26px;

    border-radius: 28px;

    display: flex;
    align-items: center;
    gap: 18px;

    text-decoration: none;
    color: var(--text-main);

    /* GLASS LOOK */
    background: var(--tile-bg);
    backdrop-filter: blur(14px);

    border: 1px solid var(--border);

    min-height: 130px;

    /* DEPTH */
    box-shadow: var(--tile-shadow);

    transition: all 0.30s cubic-bezier(.4,0,.2,1);

    overflow: hidden;
}


/* animated gradient shine */
.tool-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 300%;

    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255,255,255,0.08),
        transparent 60%
    );

    transform: rotate(25deg);
    transition: 0.7s;
}

.tool-card:hover::before {
    top: -20%;
}


/* hover lift */
.tool-card:hover {
    transform: translateY(-10px) scale(1.03);

    border-color: var(--accent);

    box-shadow: var(--tile-hover-shadow), 0 0 30px rgba(59,130,246,0.2);
}


/* icon */
.icon {
    font-size: 28px;

    width: 62px;
    height: 62px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--accent), #60a5fa);

    color: white;

    box-shadow: 0 10px 25px rgba(59,130,246,0.4);

    flex-shrink: 0;
}


/* text */
.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}
/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 640px) {

    .tool-grid {
        gap: 18px;
    }

    .tool-card {
        padding: 22px;
        min-height: 100px;
    }

    .icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* =========================
   CENTER LOGIN MODAL PRO
========================= */

.login-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.55);
backdrop-filter: blur(10px);

display: flex;
align-items: center;
justify-content: center;

opacity: 0;
visibility: hidden;
transition: 0.3s ease;

z-index: 99999;
}

.login-overlay.active {
opacity: 1;
visibility: visible;
}

/* Card */
.login-card-pro {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 26px;
width: 90%;
max-width: 380px;
overflow: hidden;
padding: 34px 28px 28px;
text-align: center;
position: relative;

box-shadow: var(--shadow);
animation: popIn 0.25s ease;
}

.login-art {
position: absolute;
inset: -80px -40px auto;
height: 170px;
background:
radial-gradient(160px 80px at 20% 30%, rgba(14, 165, 233, 0.25), transparent 70%),
radial-gradient(220px 110px at 80% 10%, rgba(37, 99, 235, 0.2), transparent 74%);
pointer-events: none;
}

/* smooth popup */
@keyframes popIn {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}

.login-logo {
margin-bottom: 18px;
position: relative;
z-index: 1;
}

.close-login {
position: absolute;
top: 10px;
right: 12px;
width: 34px;
height: 34px;
font-size: 24px;
border-radius: 50%;
border: 1px solid var(--border);
background: rgba(148, 163, 184, 0.08);
cursor: pointer;
color: var(--text-dim);
display: grid;
place-items: center;
}

/* ---------- PREMIUM GOOGLE BUTTON ---------- */
.google-btn-pro {
width: 100%;
height: 52px;

display: flex;
align-items: center;
justify-content: center;
gap: 12px;

border-radius: 14px;
border: 1px solid rgba(13, 110, 253, 0.28);

background: linear-gradient(135deg, #ffffff, #eef4ff);
color: var(--text-main);

font-weight: 700;
font-size: 0.95rem;

cursor: pointer;
transition: 0.25s ease;

box-shadow: 0 10px 24px rgba(15, 51, 120, 0.14);
}

.google-btn-pro img {
width: 20px;
}

.google-btn-pro:hover {
 transform: translateY(-2px);
 box-shadow: 0 14px 30px rgba(13, 110, 253, 0.22);
}

.google-btn-pro:active {
transform: scale(0.98);
}

.google-btn-pro:disabled {
cursor: wait;
opacity: 0.85;
transform: none;
}

.google-btn-pro.is-loading img {
opacity: 0.25;
}

.google-btn-pro.is-loading::after {
content: "";
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid rgba(37, 99, 235, 0.25);
border-top-color: #2563eb;
animation: authSpin 0.7s linear infinite;
}

.login-title {
font-size: 1.35rem;
font-weight: 800;
}

.login-sub {
color: var(--text-dim);
font-size: 0.92rem;
margin: 8px 0 12px;
}

.login-points {
list-style: none;
display: grid;
gap: 6px;
text-align: left;
margin: 0 0 15px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 12px;
background: rgba(148, 163, 184, 0.06);
}

.login-points li {
font-size: 0.82rem;
font-weight: 700;
color: var(--text-dim);
padding-left: 18px;
position: relative;
}

.login-points li::before {
content: "";
position: absolute;
left: 0;
top: 7px;
width: 8px;
height: 8px;
border-radius: 50%;
background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.login-state-text {
min-height: 20px;
margin-top: 10px;
font-size: 0.8rem;
font-weight: 700;
color: var(--text-dim);
}

@keyframes authSpin {
to { transform: rotate(360deg); }
}

/* ===== Sticky Footer Layout Fix ===== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* =============================
   ULTRA PREMIUM UNIQUE FOOTER
============================= */

.ultra-footer {
    margin-top: auto;
    padding: 80px 8% 30px;

    background:
        radial-gradient(circle at 20% 20%, rgba(59,130,246,.25), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,255,200,.2), transparent 40%),
        var(--surface);

    border-top: 1px solid var(--border);
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 50px;
}


/* BRAND */
.f-logo {
    font-size: 38px;
    font-weight: 900;

    background: linear-gradient(45deg,#3b82f6,#00ffd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.f-tag {
    opacity: .7;
    margin: 8px 0;
}

.f-owner {
    font-size: 13px;
    opacity: .5;
}


/* LINKS */
.f-col {
    display: flex;
    flex-direction: column;
}

.f-col h4 {
    margin-bottom: 12px;
}

.f-col a {
    text-decoration: none;
    color: var(--text-dim);
    margin-bottom: 8px;
    transition: .25s;
}

.f-col a:hover {
    color: var(--accent);
    transform: translateX(6px);
}


/* CONTACT CARD */
.f-contact-card {
    padding: 20px;
    border-radius: 18px;

    background: var(--glass);
    border: 1px solid var(--border);

    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* CONTACT BUTTONS */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 12px;

    font-weight: 600;
    text-decoration: none;

    transition: .3s;
}

.contact-btn svg {
    width: 20px;
    height: 20px;
}

/* Gmail */
.gmail {
    background: white;
    color: #222;
}

.gmail:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(234,67,53,.3);
}

/* WhatsApp */
.whatsapp {
    background: #25D366;
    color: white;
}

.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37,211,102,.35);
}


/* BOTTOM */
.f-bottom {
    margin-top: 60px;
    text-align: center;
    font-size: 13px;
    opacity: .5;
}

.install-footer-panel {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 34px;
    padding: 18px;
    border: 1px solid var(--tool-border, var(--border));
    border-radius: 16px;
    background: var(--glass, var(--surface));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.install-footer-text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--tool-text-soft, var(--text-dim));
}

.install-footer-btn {
    border: 1px solid var(--tool-border-strong, transparent);
    border-radius: 12px;
    background: linear-gradient(130deg, #0ea5e9, #2563eb);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.install-footer-btn:hover {
    filter: brightness(1.05);
}

.install-header-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 1600;
    width: min(960px, calc(100vw - 24px));
    margin-top: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(2, 132, 199, 0.14)), var(--glass);
    box-shadow: var(--shadow);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.install-header-banner.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.install-header-content {
    min-width: 0;
    pointer-events: auto;
}

.install-header-content strong {
    display: block;
    line-height: 1.1;
    font-size: 0.88rem;
}

.install-header-content p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    pointer-events: auto;
}

.install-header-install,
.install-header-close {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.install-header-install {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

.install-header-close {
    background: var(--surface);
    color: var(--text-main);
}

.install-notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    max-width: 320px;
    width: calc(100vw - 32px);
    border: 1px solid var(--tool-border, var(--border));
    border-radius: 16px;
    background: var(--tool-surface-soft, var(--surface));
    box-shadow: var(--shadow);
    padding: 14px;
}

.install-notice strong {
    display: block;
    margin-bottom: 3px;
}

.install-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tool-text-muted, var(--text-dim));
}

.install-notice-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.install-action-btn,
.install-close-btn {
    border: 1px solid rgba(13,110,253,0.22);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

.install-action-btn {
    background: linear-gradient(130deg, #0ea5e9, #2563eb);
    border-color: var(--tool-border-strong, transparent);
    color: #fff;
}

.install-close-btn {
    background: var(--tool-surface, var(--surface));
    color: var(--text-main);
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.info { background: #2563eb; }
.toast.success { background: #059669; }
.toast.warn { background: #d97706; }
.toast.error { background: #dc2626; }

@media (display-mode: standalone) {
    #installHeaderBanner,
    #installFooterPanel,
    #installNotice {
        display: none !important;
    }
}


/* RESPONSIVE */
@media(max-width: 900px){
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 520px){
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .install-footer-panel {
        flex-direction: column;
        text-align: center;
    }

    .install-footer-btn {
        width: 100%;
    }

    .install-header-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .install-header-actions {
        width: 100%;
    }

    .install-header-install,
    .install-header-close {
        flex: 1;
    }

    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}


/* --- SPLASH SCREEN --- */

#splashScreen { position: fixed; inset: 0; background: #020617; z-index: 1000000; display: flex; align-items: center; justify-content: center; }



/* --- SETTINGS & USER MENU --- */

.settings-menu {

position: absolute; top: 60px; right: 0; width: 220px;

background: var(--surface); border: 1px solid var(--border); border-radius: 15px;

padding: 15px; opacity: 0; visibility: hidden; transform: translateY(10px);

box-shadow: var(--shadow); z-index: 1001;

}

.settings-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.user-menu-head {
padding: 4px 5px 13px;
border-bottom: 1px solid var(--border);
margin-bottom: 10px;
}

.user-menu-name {
display: block;
font-weight: 800;
font-size: 0.9rem;
}

.user-menu-email {
color: var(--text-dim);
font-size: 0.75rem;
}

.user-menu-logout {
width: 100%;
padding: 10px 12px;
background: rgba(255, 71, 87, 0.1);
border: 1px solid rgba(255, 71, 87, 0.25);
border-radius: 10px;
color: #ff4757;
font-weight: 800;
cursor: pointer;
text-align: center;
}

.user-menu-logout:hover {
background: rgba(255, 71, 87, 0.16);
}

.user-menu-logout.is-loading {
cursor: wait;
opacity: 0.85;
}

/* Mobile Optimizations */

@media (max-width: 480px) {

.main-header { padding: 2px 3%; }

.header-glass { padding: 8px 15px; }

.content { padding: 4px 15px 30px; }

.tool-card { padding: 20px; }

.footer-container { text-align: center; }

}

@media (max-width: 430px) {
.header-glass {
    padding: 8px 10px;
    border-radius: 14px;
}

.brand-name {
    font-size: 0.82rem;
}

.nav-right {
    gap: 6px;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

#profileBox,
.profile-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.settings-menu {
    width: min(220px, calc(100vw - 24px));
    right: 0;
}

.content {
    padding: 4px 12px 28px;
}

.home-insights-shell {
    padding: 16px;
}

.tool-card {
    padding: 18px;
}

.ultra-footer {
    padding: 48px 6% 20px;
}
}
/* Theme Icon Toggle */
.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(15deg) scale(1.05);
}

/* Profile toggle visibility hardening */
#profileBox,
.profile-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50% !important;
    padding: 0;
    border: 1px solid var(--border) !important;
    background: linear-gradient(145deg, var(--surface), rgba(15, 23, 42, 0.55)) !important;
    color: var(--text-main) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: visible !important;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

#profileBox::before,
.profile-box::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: conic-gradient(
        from 0deg,
        rgba(56, 189, 248, 0.28),
        rgba(37, 99, 235, 0.3),
        rgba(14, 165, 233, 0.28),
        rgba(96, 165, 250, 0.28),
        rgba(56, 189, 248, 0.28)
    );
    opacity: 0.45;
    z-index: -2;
    animation: profileHaloSpin 6s linear infinite;
}

#profileBox::after,
.profile-box::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.24), transparent 68%);
    filter: blur(2px);
    opacity: 0.5;
    z-index: -3;
}

#profileDisplay {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] #profileBox,
[data-theme="dark"] .profile-box {
    border-color: rgba(148, 163, 184, 0.46) !important;
    background: linear-gradient(145deg, #18263f, #0b1425) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] #profileBox,
[data-theme="light"] .profile-box {
    border-color: rgba(37, 99, 235, 0.3) !important;
    background: linear-gradient(145deg, #ffffff, #eaf3ff) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

#profileBox:hover,
.profile-box:hover {
    border-color: var(--accent) !important;
    transform: translateY(-1px) scale(1.05);
}

#profileBox:hover::before,
.profile-box:hover::before {
    opacity: 0.8;
}

#profileBox:hover::after,
.profile-box:hover::after {
    opacity: 0.8;
}

#profileBox:focus-visible,
.profile-box:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#profileDisplay svg {
    width: 16px;
    height: 16px;
    color: var(--text-main);
    stroke: currentColor;
}

#profileDisplay img {
    border: 1px solid rgba(148, 163, 184, 0.35);
}

body.auth-signed-in #profileBox,
body.auth-signed-in .profile-box {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.38), 0 10px 22px rgba(0, 0, 0, 0.32);
}

body.auth-signed-in #profileBox::before,
body.auth-signed-in .profile-box::before {
    opacity: 1;
    animation-duration: 3.6s;
}

body.auth-signed-in #profileBox::after,
body.auth-signed-in .profile-box::after {
    opacity: 0.95;
}

@keyframes profileHaloSpin {
    to { transform: rotate(360deg); }
}

@media (forced-colors: active) {
    #profileBox,
    .profile-box {
        border: 1px solid ButtonText !important;
        background: Canvas !important;
        color: ButtonText !important;
        box-shadow: none !important;
    }
}

a,
button,
.tool-card,
.contact-btn,
.f-col a,
.settings-menu,
.google-btn-pro {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.contact-btn,
.google-btn-pro {
    border: 1px solid rgba(13, 110, 253, 0.28);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.ad-section {
    width: 100%;
    margin: 18px auto 24px;
    padding: 0;
}

.ad-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.sira-ad-slot {
    min-height: 90px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}
