/* =====================================================================
   Monir Hasan — Premium Theme (iMonetizeIt inspired)
   Dark UI · cyan→teal→green gradient accents · glassmorphism · animations
   Class names kept identical so every page is restyled automatically.
   ===================================================================== */

:root {
    /* Backgrounds */
    --bg: #070a14;
    --bg-2: #0b1020;
    --bg-alt: #0a0f1e;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-solid: #101627;

    /* Text */
    --text: #eef2fb;
    --heading: #ffffff;
    --muted: #96a2bd;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Brand — iMonetizeIt cyan · teal · green */
    --accent: #0ca9e1;          /* primary sky/cyan blue */
    --accent-2: #68c950;        /* fresh green */
    --accent-3: #2fd0c7;        /* bright teal (legible on dark) */
    --primary: #0ca9e1;
    --primary-dark: #0a90c2;
    --brand: #0ca9e1;
    --brand-soft: rgba(12, 169, 225, 0.12);

    /* RGB channels for inline rgba() glows */
    --accent-rgb: 12, 169, 225;
    --accent2-rgb: 104, 201, 80;
    --accent3-rgb: 48, 179, 165;

    --grad: linear-gradient(120deg, #0ca9e1 0%, #30b3a5 50%, #68c950 100%);
    --grad-soft: linear-gradient(120deg, rgba(12, 169, 225, 0.16), rgba(104, 201, 80, 0.16));
    --glow: 0 0 0 1px rgba(var(--accent-rgb), 0.2), 0 18px 50px -12px rgba(var(--accent-rgb), 0.45);

    /* Feedback */
    --success: #6ee7b7;
    --success-bg: rgba(16, 185, 129, 0.14);
    --error: #fca5a5;
    --error-bg: rgba(239, 68, 68, 0.14);
    --warning-bg: rgba(var(--accent3-rgb), 0.12);

    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    --radius: 20px;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated ambient background orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
}
body::before {
    top: -180px; right: -120px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 70%);
    animation: float-orb 16s ease-in-out infinite;
}
body::after {
    bottom: -220px; left: -140px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.45), transparent 70%);
    animation: float-orb 20s ease-in-out infinite reverse;
}

/* subtle grid overlay */
.page-content { position: relative; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); letter-spacing: -0.02em; }

a { color: var(--accent-3); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

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

/* ================= Header ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 12, 22, 0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    background: rgba(8, 11, 20, 0.9);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
}

.brand a { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: #fff; }
.brand span { display: block; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site-nav a {
    color: var(--muted);
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav a.active { color: #fff; background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ================= Hero ================= */
.hero { padding: 84px 0 56px; position: relative; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 400px;
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.04;
    font-weight: 800;
}
.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.hero-lead strong { color: #fff; font-weight: 600; }

.hero-buttons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.list-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--grad-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent-3);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 20px;
    text-transform: uppercase;
}
.list-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse-dot 2s infinite;
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--grad);
    background-size: 160% 160%;
    color: #fff;
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), 0.6);
    transition: transform 0.18s ease, box-shadow 0.25s ease, background-position 0.5s ease;
    min-height: 46px;
    line-height: 1.2;
}
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; background-position: 100% 0; box-shadow: 0 20px 44px -12px rgba(var(--accent-rgb), 0.7); }
.btn:hover::after { left: 130%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn.secondary {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: #fff;
    box-shadow: none;
}
.btn.secondary::after { display: none; }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--accent); }

.btn.btn-light { background: #fff; color: #1a1207; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.btn.btn-light:hover { color: #000; }

button, input, select, textarea { touch-action: manipulation; }

/* ================= Profile card ================= */
.profile-card {
    position: relative;
    background: var(--surface);
    padding: 36px 30px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(10px);
    animation: float-card 6s ease-in-out infinite;
}
.profile-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    padding: 1px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.profile-avatar {
    width: 172px;
    height: 172px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--grad) border-box;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15), 0 20px 50px -12px rgba(var(--accent-rgb), 0.55);
}
.profile-avatar-sm { width: 140px; height: 140px; flex-shrink: 0; }

.profile-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.profile-role { color: var(--accent-3); font-weight: 600; margin: 0 0 4px; }
.profile-company { color: var(--muted); margin: 0 0 18px; }

.profile-facts { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 0.9rem; color: var(--muted); }
.profile-facts li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.profile-facts li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.profile-facts strong { color: #d7deee; font-weight: 600; }

.about-intro { display: flex; gap: 32px; align-items: flex-start; }

/* ================= Stats band ================= */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 12px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.4); box-shadow: var(--glow); }
.stat-number { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* ================= Sections ================= */
.section { padding: 72px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.section-title p { margin: 14px auto 0; max-width: 640px; color: var(--muted); }

/* ================= Cards ================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card, .feature-card, .info-box, .highlight-box {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}
.card::before, .feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.card:hover, .feature-card:hover, .info-box:hover, .highlight-box:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: var(--glow);
}
.card:hover::before, .feature-card:hover::before { transform: scaleX(1); }

.card h3, .info-box h3, .feature-card h4, .highlight-box h3 { margin-top: 0; color: #fff; }
.card p, .feature-card p, .info-box p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr; gap: 28px; align-items: start; }

.highlight-box { background: var(--grad-soft); border-color: rgba(var(--accent-rgb), 0.25); }
.expertise-list { padding-left: 4px; color: var(--muted); margin: 0; list-style: none; }
.expertise-list li { margin-bottom: 12px; padding-left: 26px; position: relative; }
.expertise-list li::before {
    content: '✦';
    position: absolute; left: 0;
    color: var(--accent);
}

/* ================= Tags ================= */
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: #cdd6ea;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}
.tag:hover { transform: translateY(-3px); color: #fff; border-color: rgba(var(--accent-rgb), 0.5); background: var(--brand-soft); }

/* ================= Blog zig-zag ================= */
.zigzag { display: grid; gap: 30px; }
.post-card {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), 0.3); box-shadow: var(--glow); }
.post-card.reverse { grid-template-columns: 340px 1fr; direction: rtl; }
.post-card.reverse > * { direction: ltr; }
.post-card-content { min-width: 0; }
.post-card h3 { margin-top: 0; }
.post-card h3 a { color: #fff; transition: color 0.2s; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); margin: 14px 0 24px; }

.post-thumbnail {
    width: 100%;
    height: 230px;
    border-radius: 18px;
    background: var(--grad);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), 0.5);
}
.post-thumbnail::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }

/* Branded cover shown when a post has no featured image */
.thumb-label {
    position: relative;
    z-index: 2;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.thumb-brand {
    position: absolute;
    z-index: 2;
    bottom: 14px; left: 0; right: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.post-meta { color: var(--accent-3); font-size: 0.86rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.post-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.post-body p { margin: 0 0 12px; }
.post-body-inline { margin-top: 12px; color: var(--muted); }
.post-body-full { margin-top: 24px; color: var(--text); font-size: 1.03rem; }
.post-body-full p { margin: 0 0 16px; }

.post-full {
    background: var(--surface);
    border-radius: 24px;
    padding: 44px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    max-width: 840px;
    margin: 0 auto;
}
.post-full h1 { margin: 16px 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
.post-lead { font-size: 1.12rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 26px; }

/* ================= Wiki article ================= */
.wiki-article {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    margin-top: 32px;
}
.wiki-article h3 {
    margin: 32px 0 14px;
    padding-bottom: 10px;
    position: relative;
    color: #fff;
}
.wiki-article h3::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 56px; height: 3px;
    background: var(--grad);
    border-radius: 3px;
}
.wiki-article h3:first-child { margin-top: 0; }
.wiki-article p { color: var(--muted); margin: 0 0 16px; }

.wiki-quote {
    margin: 34px 0 0;
    padding: 24px 28px;
    background: var(--grad-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 14px 14px 0;
    font-style: italic;
    font-size: 1.08rem;
    color: #e6ebf6;
}
.wiki-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--accent-3); font-size: 0.95rem; }

/* ================= CTA ================= */
.cta-section {
    position: relative;
    background: var(--grad);
    color: #fff;
    border-radius: 28px;
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 30px 70px -24px rgba(var(--accent-rgb), 0.6);
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 45%);
}
.cta-section h2 { margin: 0 0 14px; color: #fff; position: relative; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-section p { margin: 0 auto 26px; max-width: 620px; position: relative; }
.cta-section .btn-light { position: relative; }

/* ================= Contact ================= */
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.92rem; color: #d7deee; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    margin-bottom: 18px;
    font: inherit;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6c7793; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
.contact-form select option { background: var(--surface-solid); color: #fff; }

.social-list { list-style: none; padding: 0; margin: 0; }
.social-list li { margin-bottom: 10px; }

/* ================= Alerts ================= */
.alert { padding: 15px 18px; border-radius: 12px; margin-bottom: 22px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(110, 231, 183, 0.3); }
.alert-error { background: var(--error-bg); color: var(--error); border-color: rgba(252, 165, 165, 0.3); }
.alert-warning { background: var(--warning-bg); color: var(--accent-3); border-color: rgba(var(--accent3-rgb), 0.3); }

/* ================= Scam list ================= */
.scam-alert-list { list-style: none; padding: 0; margin: 0; }
.scam-alert-list li { margin-bottom: 16px; padding-left: 30px; position: relative; color: var(--muted); }
.scam-alert-list li::before { content: '⚠'; position: absolute; left: 0; color: var(--accent-3); font-size: 1.1rem; }

/* ================= Services & Testimonials ================= */
.service-card { position: relative; }
.service-icon {
    display: inline-flex;
    width: 52px; height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--grad-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px;
    margin: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    position: relative;
    transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 8px; right: 22px;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(var(--accent-rgb), 0.22);
}
.testimonial-card:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), 0.3); box-shadow: var(--glow); }
.testimonial-quote { color: #e2e8f5; font-size: 1rem; line-height: 1.75; margin: 0 0 22px; }
.testimonial-card footer { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: 16px; }
.testimonial-card footer strong { color: #fff; }
.testimonial-card footer span { color: var(--muted); font-size: 0.9rem; }

/* ================= FAQ accordion ================= */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 22px;
    backdrop-filter: blur(8px);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] { border-color: rgba(var(--accent-rgb), 0.35); box-shadow: var(--glow); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 34px 18px 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.03rem;
    color: #fff;
    position: relative;
    outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: '\2212'; transform: translateY(-50%) rotate(180deg); }
.faq-item summary:focus-visible { color: var(--accent-3); }
.faq-answer { color: var(--muted); padding: 0 0 20px; line-height: 1.7; animation: faq-open 0.3s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Generic content wrapper (used by some pages) */
.content { padding: 0; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ================= Footer ================= */
.site-footer {
    padding: 56px 0 40px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    position: relative;
}
.footer-inner { display: grid; gap: 24px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.footer-brand p { color: var(--muted); margin: 6px 0 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-social a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}
.footer-social a:hover { color: var(--accent); }
.footer-copy { color: #6c7793; font-size: 0.9rem; margin: 0; }

/* ================= Floating chat ================= */
.chat-float {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 18px 48px -10px rgba(var(--accent-rgb), 0.6);
    z-index: 200;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.chat-float::before {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-rgb), 0.5);
    animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.chat-float:hover { transform: scale(1.08); box-shadow: 0 24px 58px -10px rgba(var(--accent-rgb), 0.7); }

.chat-panel {
    position: fixed;
    right: 22px; bottom: 96px;
    width: min(420px, calc(100vw - 44px));
    background: var(--surface-solid);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    z-index: 201;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.24s ease, transform 0.24s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); }
.chat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--grad);
    color: #fff;
}
.chat-panel-header strong { font-family: var(--font-head); }
.chat-panel-header span { display: block; font-size: 0.82rem; opacity: 0.9; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.chat-messages {
    height: 340px;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-2);
    scroll-behavior: smooth;
}
.chat-messages-embed { height: 300px; border-radius: 16px 16px 0 0; }
.chat-bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 0.94rem; line-height: 1.6; }
.chat-bubble.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.chat-bubble.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 6px; }
.chat-bubble.loading { opacity: 0.75; font-style: italic; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--surface-solid); }
.chat-input-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font: inherit;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-row input::placeholder { color: #6c7793; }
.chat-input-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12); }
.chat-input-row .btn { padding: 10px 20px; }

.chat-embed { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }

/* ================= Back to top ================= */
.back-to-top {
    position: fixed;
    left: 24px; bottom: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
    z-index: 120;
}
.back-to-top:hover { background: var(--brand-soft); border-color: var(--accent); }
.back-to-top.visible { opacity: 1; transform: translateY(0); }

/* ================= Floating contact buttons ================= */
.float-contacts {
    position: fixed;
    right: 24px;
    bottom: 94px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-btn:hover { transform: scale(1.08); color: #fff; box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6); }
.float-whatsapp { background: #25d366; }
.float-telegram { background: #229ed9; }

/* ================= CTA button group + outline-light ================= */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }
.btn.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.65); color: #fff; box-shadow: none; }
.btn.btn-outline-light::after { display: none; }
.btn.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ================= Blog search / pagination / category ================= */
.blog-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 24px; flex-wrap: wrap; }
.blog-search input {
    flex: 1; min-width: 200px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: #fff;
    font: inherit;
}
.blog-search input::placeholder { color: #6c7793; }
.blog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }

.post-category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    color: var(--accent-3);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 44px; }
.page-num {
    min-width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
}
.page-num:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.4); }
.page-num.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ================= Share bar ================= */
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-label { color: var(--muted); font-weight: 600; }
.share-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: #cdd6ea;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; border-color: rgba(var(--accent-rgb), 0.5); }

/* ================= Admin messages ================= */
.msg-item { border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; background: #fff; }
.msg-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; color: #0f172a; }
.msg-subject { color: #475569; margin-bottom: 8px; font-size: 0.92rem; }
.msg-body { color: #334155; white-space: pre-wrap; margin: 0 0 14px; }

/* ================= Scroll reveal ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ================= Keyframes ================= */
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.1); }
}
@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes ping {
    0% { transform: scale(1); opacity: 0.8; }
    75%, 100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .profile-card, .chat-float::before, .list-badge::before { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ================= Admin (kept light & readable) ================= */
.admin-body { background: #eef2f8; min-height: 100vh; color: #1e293b; }
.admin-body::before, .admin-body::after { display: none; }
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4 { color: #0f172a; }

/* ============================================================
   ADMIN LIGHT THEME
   The public site is dark, so its components use light text on
   dark, translucent surfaces (var(--surface), #fff headings…).
   On the light admin pages that made cards, headings, buttons
   and tags invisible. Re-map the theme variables to light values
   (fixes everything var-based at once) and override the few
   hard-coded white colours that variables can't reach.
   ============================================================ */
.admin-body {
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --surface-solid: #ffffff;
    --text: #0f172a;
    --heading: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --success: #047857;
    --success-bg: #ecfdf5;
    --error: #b91c1c;
    --error-bg: #fef2f2;
    --accent-3: #0e7490;      /* teal is too pale on white — darken for links */
    --shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
}
/* Cards: solid white with a visible border on the light background. */
.admin-body .card,
.admin-body .feature-card,
.admin-body .info-box,
.admin-body .highlight-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35);
}
.admin-body .card h3,
.admin-body .card h4,
.admin-body .feature-card h3,
.admin-body .feature-card h4,
.admin-body .info-box h3,
.admin-body .highlight-box h3 { color: #0f172a; }
.admin-body .card p,
.admin-body .feature-card p,
.admin-body .info-box p { color: #475569; }
/* Secondary buttons + tags: dark text on a light chip. */
.admin-body .btn.secondary { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }
.admin-body .btn.secondary:hover { background: #e2e8f0; color: #0f172a; border-color: #94a3b8; }
.admin-body .tag { background: #f1f5f9; color: #1e293b; border-color: #e2e8f0; }
.admin-body .tag:hover { color: #0f172a; }
/* Links inside the content area (sidebar keeps its own styling). */
.admin-main a { color: #1d4ed8; }
.admin-main a:hover { color: #1e40af; text-decoration: underline; }
/* Data tables (Users list) — light, readable, consistent with the rest. */
.admin-body .admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.92rem; color: #1e293b; }
.admin-body .admin-table th,
.admin-body .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.admin-body .admin-table th { color: #64748b; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; background: #f8fafc; }
.admin-body .admin-table tbody tr:hover { background: #f8fafc; }
/* Inline checkbox label (Users / Settings). */
.admin-body .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #1e293b; margin-bottom: 16px; }
.admin-body .checkbox input { width: auto; margin: 0; }
/* Small button variant (FAQs actions). */
.admin-main .btn.tiny { padding: 6px 12px; font-size: 0.82rem; }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f172a; color: #e2e8f0; padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar-brand { margin-bottom: 28px; padding: 0 8px; }
.admin-sidebar-brand strong { display: block; color: #fff; font-size: 1.1rem; }
.admin-sidebar-brand span { font-size: 0.78rem; color: #94a3b8; word-break: break-all; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar-nav a { color: #cbd5e1; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; transition: background 0.2s, color 0.2s; }
.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active { background: rgba(var(--accent-rgb), 0.22); color: #fff; }
.admin-sidebar-nav a.admin-logout { margin-top: 12px; color: #fca5a5; }
.admin-main { padding: 32px; overflow-x: auto; }
.admin-content { max-width: 1100px; }

/* Admin form fields (light theme). The public .contact-form defaults use light
   text on dark, translucent inputs — on the light admin pages that made labels
   and typed text invisible. These overrides force readable dark-on-white fields. */
.admin-body .contact-form label,
.admin-main label { display: block; margin-bottom: 6px; font-weight: 600; color: #1e293b; }
.admin-body .contact-form input,
.admin-body .contact-form textarea,
.admin-body .contact-form select,
.admin-main input,
.admin-main textarea,
.admin-main select {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 16px;
    font: inherit;
}
.admin-body .contact-form input::placeholder,
.admin-body .contact-form textarea::placeholder,
.admin-main input::placeholder,
.admin-main textarea::placeholder { color: #94a3b8; }
.admin-body .contact-form select option,
.admin-main select option { background: #ffffff; color: #0f172a; }
.admin-body .contact-form input:focus,
.admin-body .contact-form textarea:focus,
.admin-body .contact-form select:focus,
.admin-main input:focus,
.admin-main textarea:focus,
.admin-main select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
/* File-picker and buttons shouldn't get the full-width text-field treatment. */
.admin-main input[type="file"] { padding: 8px; background: #f8fafc; }
.admin-main input[type="checkbox"],
.admin-main input[type="radio"] { width: auto; margin-bottom: 0; }
.admin-main button,
.admin-body .contact-form button { width: auto; }
.admin-content h1 { margin: 0 0 8px; font-size: 1.8rem; }
.admin-login-card { margin-top: 40px; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li { margin-bottom: 10px; color: #475569; }
.seo-check { font-size: 0.88rem; }
.seo-check.ok { color: #0f5132; font-weight: 600; }
.code-block { display: block; word-break: break-all; background: #f1f5f9; color: #0f172a; padding: 12px; border-radius: 12px; font-size: 0.85rem; margin: 12px 0; }
.code-pre { background: #f1f5f9; color: #0f172a; border-radius: 12px; padding: 16px; overflow: auto; font-size: 0.85rem; margin: 0; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
    .hero-grid, .content-grid, .card-grid, .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .post-card, .post-card.reverse { grid-template-columns: 1fr; direction: ltr; }
    .about-intro { flex-direction: column; align-items: center; text-align: center; }
    .hero { padding-top: 56px; }
}

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; }
    .site-header .container { position: relative; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10, 14, 24, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 6px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { display: block; width: 100%; padding: 11px 14px; }
    .nav-toggle { display: flex; margin-left: auto; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; width: 100%; }
    .chat-panel { right: 12px; left: 12px; bottom: 96px; max-width: none; }
    .float-contacts { right: 16px; bottom: 84px; }
    .float-btn { width: 48px; height: 48px; }
}

@media (max-width: 560px) {
    .stats-band { grid-template-columns: 1fr 1fr; }
    .post-full { padding: 26px; }
    .wiki-article { padding: 24px; }
    .cta-section { padding: 44px 24px; }
    .section { padding: 52px 0; }
}
