/* ============================================================
   TEMPBOXPRO - Complete Responsive Stylesheet
   ============================================================ */

/* ===== RESET & CSS VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0e1a;
    --card: #0d1526;
    --card2: #111827;
    --border: rgba(34,197,94,0.13);
    --green: #22c55e;
    --green2: #10b981;
    --blue: #3b82f6;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --dim: #64748b;
    --dim2: #475569;
    --input-bg: #131d33;
    --shadow: 0 8px 32px rgba(0,0,0,.45);
    --shadow-sm: 0 2px 12px rgba(0,0,0,.3);
    --nav-bg: rgba(10,14,26,0.96);
    --toggle-bg: rgba(255,255,255,.07);
    --nav-logo-main: none;
    --nav-logo-white: block;
    --radius: .75rem;
    --radius-sm: .5rem;
}

[data-theme="light"] {
    --bg: #f0f4f8;
    --card: #ffffff;
    --card2: #f8fafc;
    --border: rgba(34,197,94,0.22);
    --green: #16a34a;
    --green2: #059669;
    --text: #1e293b;
    --muted: #475569;
    --dim: #64748b;
    --dim2: #94a3b8;
    --input-bg: #f1f5f9;
    --shadow: 0 4px 20px rgba(0,0,0,.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
    --nav-bg: rgba(255,255,255,0.97);
    --toggle-bg: rgba(0,0,0,.06);
    --nav-logo-main: block;
    --nav-logo-white: none;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    transition: background .25s, color .25s;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LOGOS ===== */
.nav-logo-main { height: 38px; width: auto; display: var(--nav-logo-main); }
.nav-logo-white { height: 38px; width: auto; display: var(--nav-logo-white); }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    transition: background .25s, border-color .25s;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }

.header-nav {
    display: flex;
    gap: .1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: var(--radius-sm);
    font-size: .83rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(34,197,94,.08);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--toggle-bg);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(34,197,94,.12); color: var(--green); border-color: var(--green); }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--toggle-bg);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

/* Mobile menu open state */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .navbar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 0 1rem; }
    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: .5rem 0 .75rem;
        gap: .1rem;
        order: 3;
    }
    .navbar.open .header-nav { display: flex; }
    .nav-link { width: 100%; justify-content: flex-start; padding: .55rem .75rem; }
    .nav-brand { padding: .5rem 0; }
    .nav-logo-main, .nav-logo-white { height: 30px; }
}

/* ===== NOTICE OVERLAY ===== */
.notice-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 1rem;
}
.notice-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; max-width: 480px; width: 100%;
    padding: 2rem; text-align: center;
    box-shadow: var(--shadow); animation: noticeIn .3s ease;
}
@keyframes noticeIn { from { opacity:0; transform:scale(.92) } to { opacity:1; transform:scale(1) } }
.notice-icon-wrap {
    width: 52px; height: 52px; background: rgba(245,158,11,.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem;
}
.notice-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: .75rem; }
.notice-body {
    font-size: .82rem; color: var(--muted); line-height: 1.7;
    text-align: left; margin-bottom: 1.25rem;
    max-height: 280px; overflow-y: auto; padding-right: .5rem;
}
.notice-accept {
    width: 100%; padding: .7rem;
    background: linear-gradient(135deg, var(--green), var(--green2));
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 700; cursor: pointer; transition: opacity .2s;
}
.notice-accept:hover { opacity: .9; }

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34,197,94,.07), transparent);
}
.hero h1 { font-size: 2.25rem; font-weight: 800; color: var(--text); margin-bottom: .6rem; line-height: 1.2; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.hero-badges { display: flex; gap: .5rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.hero-badge {
    display: flex; align-items: center; gap: .3rem;
    padding: .3rem .65rem; background: rgba(34,197,94,.05);
    border: 1px solid var(--border); border-radius: 9999px;
    font-size: .72rem; font-weight: 500; color: var(--muted);
}
.hero-badge svg { color: var(--green); width: 12px; height: 12px; }

/* ===== TOOL CARDS (index page) ===== */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.tool-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 2rem; text-align: center;
    transition: all .3s; cursor: pointer;
    text-decoration: none; color: var(--text); display: block;
    box-shadow: var(--shadow-sm);
}
.tool-card:hover {
    border-color: var(--green); transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(34,197,94,.15); text-decoration: none;
}
.tool-card-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--green), var(--green2));
    border-radius: 1rem; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1rem;
}
.tool-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.tool-card p { color: var(--muted); font-size: .85rem; }
.tool-card .tc-btn {
    display: inline-block; margin-top: 1rem; padding: .5rem 1.5rem;
    background: linear-gradient(135deg, var(--green), var(--green2));
    color: #fff; border-radius: var(--radius-sm); font-size: .85rem;
    font-weight: 600; transition: opacity .2s;
}

/* ===== CONTAINER ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TOOL HEADER ===== */
.tool-header {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34,197,94,.06), transparent);
}
.tool-header .th-cat {
    display: inline-block; padding: .25rem .75rem;
    background: rgba(34,197,94,.1); border: 1px solid var(--border);
    border-radius: 9999px; font-size: .72rem; font-weight: 600;
    color: var(--green); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .03em;
}
.tool-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: .4rem; }
.tool-header p { color: var(--muted); font-size: .9rem; }
.tool-badges { display: flex; gap: .5rem; justify-content: center; margin-top: .75rem; flex-wrap: wrap; }
.tool-badges span {
    display: flex; align-items: center; gap: .25rem; font-size: .72rem;
    color: var(--dim); padding: .2rem .55rem;
    background: rgba(255,255,255,.03); border-radius: 9999px;
}
[data-theme="light"] .tool-badges span { background: rgba(0,0,0,.04); }
.tool-badges svg { width: 12px; height: 12px; color: var(--green); }

/* ===== BUTTONS ===== */
.btn {
    padding: .55rem 1rem; border: none; border-radius: var(--radius-sm);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: all .2s; display: inline-flex; align-items: center; gap: .35rem;
    line-height: 1.3;
}
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-secondary {
    background: rgba(255,255,255,.05); color: var(--muted);
    border: 1px solid rgba(255,255,255,.09);
}
.btn-secondary:hover { background: rgba(255,255,255,.09); color: var(--text); }
[data-theme="light"] .btn-secondary { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.09); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,.08); color: var(--text); }

/* ===== EMAIL APP ===== */
.email-app {
    max-width: 960px; margin: 1.5rem auto 2rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow);
}
.ea-topbar {
    display: flex; gap: .5rem; padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    align-items: center; flex-wrap: wrap;
    background: rgba(34,197,94,.02);
}
[data-theme="light"] .ea-topbar { border-color: rgba(0,0,0,.06); background: rgba(34,197,94,.04); }

.ea-input {
    flex: 1; min-width: 160px; padding: .55rem .85rem;
    background: var(--input-bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: .88rem; outline: none; font-family: monospace;
    min-width: 0;
}
.ea-input:focus { border-color: var(--green); }

.ea-copy, .ea-refresh {
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-sm);
    color: var(--muted); cursor: pointer; transition: all .2s; flex-shrink: 0;
}
[data-theme="light"] .ea-copy, [data-theme="light"] .ea-refresh {
    background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.09);
}
.ea-copy:hover, .ea-refresh:hover {
    background: rgba(34,197,94,.15); color: var(--green); border-color: var(--green);
}
.ea-refresh { width: 30px; height: 30px; border-radius: .4rem; }

.ea-btn-random {
    padding: .5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: .35rem;
    transition: opacity .2s; flex-shrink: 0; white-space: nowrap;
}
.ea-btn-random:hover { opacity: .85; }
.ea-btn-random:disabled { opacity: .5; cursor: not-allowed; }

.ea-domain-wrap { position: relative; flex-shrink: 0; }
.ea-domain {
    padding: .55rem 2rem .55rem .6rem;
    background: var(--input-bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: .82rem; outline: none;
    appearance: none; -webkit-appearance: none;
    cursor: pointer; min-width: 120px;
}
.ea-domain:focus { border-color: var(--green); }
.ea-domain-label {
    position: absolute; top: -7px; right: 8px;
    background: var(--card); padding: 0 4px;
    font-size: .6rem; color: var(--dim); font-weight: 600; text-transform: uppercase;
}
.ea-domain-wrap::after {
    content: ""; position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--dim); pointer-events: none;
}

/* Email split pane */
.ea-split { display: flex; min-height: 420px; }

.ea-sidebar {
    width: 280px; border-right: 1px solid rgba(255,255,255,.06);
    display: flex; flex-direction: column; flex-shrink: 0;
}
[data-theme="light"] .ea-sidebar { border-color: rgba(0,0,0,.06); }

.ea-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem .85rem; border-bottom: 1px solid rgba(255,255,255,.04);
    background: rgba(34,197,94,.03);
}
[data-theme="light"] .ea-sidebar-header { border-color: rgba(0,0,0,.04); background: rgba(34,197,94,.05); }

.ea-sidebar-title { font-size: .82rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .4rem; }
.inbox-count { background: var(--green); color: #fff; font-size: .6rem; padding: .1rem .35rem; border-radius: 9999px; font-weight: 700; }

/* Auto-refresh badge */
.auto-refresh-badge {
    font-size: .68rem; color: var(--green);
    background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
    border-radius: 9999px; padding: .15rem .5rem; font-weight: 600;
    display: flex; align-items: center; gap: .2rem; white-space: nowrap;
}

.ea-inbox-list { flex: 1; overflow-y: auto; }
.ea-inbox-item {
    padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.02);
    cursor: pointer; transition: background .2s;
}
[data-theme="light"] .ea-inbox-item { border-color: rgba(0,0,0,.04); }
.ea-inbox-item:hover { background: rgba(34,197,94,.05); }
.ea-inbox-item.active { background: rgba(34,197,94,.09); border-left: 3px solid var(--green); }
.ea-inbox-item--unread .ea-ii-from { color: var(--green); font-weight: 700; }
.ea-ii-from { font-weight: 600; color: var(--text); font-size: .8rem; margin-bottom: .15rem; }
.ea-ii-sub { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-ii-time { color: var(--dim2); font-size: .65rem; margin-top: .2rem; }

.ea-empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 2.5rem 1rem; text-align: center;
    height: 100%; min-height: 200px;
}
.ea-empty-img { margin-bottom: .75rem; color: var(--dim2); opacity: .5; }
.ea-empty-title { font-size: .88rem; font-weight: 600; color: var(--dim); margin-bottom: .25rem; }
.ea-empty-sub { font-size: .75rem; color: var(--dim2); max-width: 220px; line-height: 1.5; }

.ea-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.ea-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; flex: 1; padding: 2rem; text-align: center; opacity: .6;
}
.ea-ph-title { font-size: 1rem; font-weight: 700; color: var(--dim); margin-top: .75rem; }
.ea-ph-sub { font-size: .78rem; color: var(--dim2); margin-top: .3rem; max-width: 280px; }

.ea-msg-view { padding: 1.25rem; flex: 1; overflow-y: auto; }
.ea-msg-view h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.ea-msg-view .mv-meta { color: var(--dim); font-size: .78rem; margin-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.ea-msg-view .mv-body {
    background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04);
    border-radius: var(--radius-sm); padding: 1rem; color: var(--text);
    font-size: .88rem; line-height: 1.7; word-break: break-word; overflow-x: auto;
}
[data-theme="light"] .ea-msg-view .mv-body { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
.ea-back-btn { margin-bottom: .75rem; font-size: .75rem; padding: .3rem .65rem; }
.mv-attachments {
    margin-top: .75rem; padding: .6rem .85rem;
    background: rgba(34,197,94,.05); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: .78rem; color: var(--muted);
}
.mv-attachments ul { margin: .3rem 0 0 1rem; }

/* ===== SMS APP ===== */
.sms-app {
    max-width: 960px; margin: 1.5rem auto 2rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow);
}
.sms-split { display: flex; min-height: 480px; }

.sms-sidebar {
    width: 300px; border-right: 1px solid rgba(255,255,255,.06);
    display: flex; flex-direction: column; flex-shrink: 0;
}
[data-theme="light"] .sms-sidebar { border-color: rgba(0,0,0,.06); }

.sms-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem .85rem; border-bottom: 1px solid rgba(255,255,255,.04);
    background: rgba(34,197,94,.03);
}
[data-theme="light"] .sms-sidebar-header { border-color: rgba(0,0,0,.04); background: rgba(34,197,94,.05); }
.sms-sidebar-title { font-size: .82rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .4rem; }

.sms-search-wrap { padding: .5rem .75rem; border-bottom: 1px solid rgba(255,255,255,.04); }
[data-theme="light"] .sms-search-wrap { border-color: rgba(0,0,0,.04); }
.sms-search {
    width: 100%; padding: .45rem .65rem; background: var(--input-bg);
    border: 1px solid var(--border); border-radius: .4rem;
    color: var(--text); font-size: .8rem; outline: none;
}
.sms-search:focus { border-color: var(--green); }
.sms-search::placeholder { color: var(--dim2); }

.sms-num-info { padding: .3rem .75rem; font-size: .68rem; color: var(--dim); border-bottom: 1px solid rgba(255,255,255,.04); }
[data-theme="light"] .sms-num-info { border-color: rgba(0,0,0,.04); }

.sms-country-list { flex: 1; overflow-y: auto; }
.sms-country-row {
    display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem;
    cursor: pointer; transition: background .2s;
    border-bottom: 1px solid rgba(255,255,255,.02);
}
[data-theme="light"] .sms-country-row { border-color: rgba(0,0,0,.04); }
.sms-country-row:hover { background: rgba(34,197,94,.04); }
.sms-country-flag { font-size: .85rem; width: 26px; text-align: center; }
.sms-country-name { flex: 1; font-size: .8rem; font-weight: 600; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-country-code { font-size: .72rem; color: var(--dim); font-family: monospace; }
.sms-country-count { background: rgba(34,197,94,.1); color: var(--green); font-size: .6rem; padding: .1rem .3rem; border-radius: 9999px; font-weight: 700; min-width: 18px; text-align: center; }
.sms-country-arrow { color: var(--dim); font-size: 1rem; transition: transform .2s; line-height: 1; flex-shrink: 0; }
.sms-numbers-sub { border-bottom: 1px solid rgba(255,255,255,.04); background: rgba(0,0,0,.15); }
[data-theme="light"] .sms-numbers-sub { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.04); }
.sms-number-row {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .75rem .45rem 1.75rem; cursor: pointer;
    transition: background .2s; font-size: .78rem; color: var(--muted);
}
.sms-number-row:hover { background: rgba(34,197,94,.06); color: var(--text); }
.sms-number-row.active { background: rgba(34,197,94,.1); color: var(--green); }

.sms-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sms-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: .65rem .85rem; border-bottom: 1px solid rgba(255,255,255,.04);
    background: rgba(34,197,94,.03); flex-wrap: wrap; gap: .5rem;
}
[data-theme="light"] .sms-topbar { border-color: rgba(0,0,0,.04); background: rgba(34,197,94,.05); }
.sms-active-num { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.sms-active-icon {
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; background: rgba(34,197,94,.1);
    border-radius: var(--radius-sm); flex-shrink: 0;
}
.sms-active-number { font-size: .9rem; font-weight: 700; color: var(--text); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-active-sub { font-size: .7rem; color: var(--dim); }
.sms-topbar-actions { display: flex; gap: .35rem; align-items: center; flex-shrink: 0; }

.sms-messages { flex: 1; overflow-y: auto; padding: .5rem; }
.sms-msg-item {
    padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.03);
    transition: background .2s; border-radius: .4rem; margin-bottom: .15rem;
}
[data-theme="light"] .sms-msg-item { border-color: rgba(0,0,0,.04); background: rgba(0,0,0,.01); }
.sms-msg-item:hover { background: rgba(255,255,255,.02); }
[data-theme="light"] .sms-msg-item:hover { background: rgba(0,0,0,.03); }
.sms-msg-from { font-weight: 600; color: var(--green); font-size: .8rem; }
.sms-msg-text { color: var(--text); font-size: .85rem; margin-top: .2rem; word-break: break-word; line-height: 1.5; }
.sms-msg-time { color: var(--dim2); font-size: .65rem; margin-top: .2rem; }

/* ===== SECTIONS ===== */
.section { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
.section-header { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.section-icon {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--green), var(--green2));
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.section-header h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); }

/* How-to steps */
.how-to-steps { counter-reset: steps; display: flex; flex-direction: column; gap: .75rem; }
.step {
    counter-increment: steps; display: flex; gap: 1rem; padding: 1rem;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    align-items: flex-start;
}
.step::before {
    content: "Step " counter(steps);
    display: flex; align-items: center; justify-content: center;
    min-width: 58px; padding: .25rem .4rem;
    background: linear-gradient(135deg, var(--green), var(--green2));
    color: #fff; font-size: .7rem; font-weight: 700;
    border-radius: .4rem; height: 24px; margin-top: 1px;
    white-space: nowrap; flex-shrink: 0;
}
.step p { color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; text-align: center; transition: all .3s;
}
.why-card:hover { border-color: var(--green); transform: translateY(-2px); }
.why-card-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.why-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.why-card p { font-size: .78rem; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: .5rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
    padding: .85rem 1rem; font-size: .88rem; font-weight: 600; color: var(--text);
    cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; transition: background .2s; user-select: none;
}
.faq-q:hover { background: rgba(34,197,94,.03); }
.faq-q::after { content: "+"; color: var(--green); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; margin-left: .5rem; }
.faq-q.open::after { content: "\2212"; }
.faq-a {
    padding: 0 1rem; max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    color: var(--muted); font-size: .82rem; line-height: 1.7;
}
.faq-a.open { max-height: 500px; padding: 0 1rem .85rem; }

/* Deep guide */
.deep-guide { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin-top: .5rem; }
.dg-header {
    background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(16,185,129,.05));
    padding: 1.5rem; text-align: center; border-bottom: 1px solid var(--border);
}
.dg-icon { width: 56px; height: 56px; background: rgba(34,197,94,.1); border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.dg-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: .3rem; }
.dg-header p { color: var(--muted); font-size: .82rem; }
.dg-body { padding: 1.5rem; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.dg-body h3, .dg-body h4 { color: var(--text); margin: 1.25rem 0 .5rem; font-size: 1rem; }
.dg-body ul, .dg-body ol { margin: .5rem 0 .5rem 1.5rem; }
.dg-body li { margin-bottom: .3rem; }
.dg-body p { margin-bottom: .75rem; }
.dg-cta { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); text-align: center; }

/* ===== RATING ===== */
.rating-section { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
.rating-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.rating-left h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.rating-left .rb-sub { color: var(--dim); font-size: .78rem; }
.rating-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rating-stars { display: flex; gap: .3rem; }
.rating-stars span { font-size: 1.5rem; cursor: pointer; transition: transform .2s; color: var(--dim2); line-height: 1; }
.rating-stars span:hover { transform: scale(1.2); color: #f59e0b; }
.rating-stars span.active { color: #f59e0b; }
.helpful-wrap { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.rb-btn {
    padding: .35rem .7rem; border-radius: 9999px; font-size: .78rem; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border); background: transparent;
    color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; transition: all .2s;
}
.rb-btn:hover { border-color: var(--green); color: var(--green); }
.rb-btn.liked { background: rgba(34,197,94,.1); border-color: var(--green); color: var(--green); }

/* ===== RELATED TOOLS ===== */
.related-tools { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    transition: all .2s; text-decoration: none; color: var(--text);
}
.related-card:hover { border-color: var(--green); transform: translateY(-2px); text-decoration: none; }
.related-card-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--green), var(--green2));
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.related-card h4 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.related-card p { font-size: .72rem; color: var(--muted); }

/* ===== PAGE CONTENT (About, Privacy etc.) ===== */
.page-content { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-content h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.page-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 .5rem; }
.page-content p { color: var(--muted); margin-bottom: .75rem; line-height: 1.7; }
.page-content ul, .page-content ol { margin: .5rem 0 1rem 1.5rem; color: var(--muted); }
.page-content li { margin-bottom: .4rem; }

/* ===== DONATION PAGE ===== */
.donation-hero { text-align: center; padding: 3rem 1.5rem 2rem; }
.donation-heart {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1rem;
}
.donation-hero h1 { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: .6rem; }
.donation-hero p { color: var(--muted); font-size: .92rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }

.donation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.don-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 2rem 1.25rem; text-align: center;
    position: relative; transition: all .3s;
}
.don-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(34,197,94,.1); }
.don-card.popular { border-color: var(--blue); box-shadow: 0 0 30px rgba(59,130,246,.1); }
.don-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff; font-size: .65rem; font-weight: 700;
    padding: .25rem .75rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap;
}
.don-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.don-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.don-amount { font-size: 2rem; font-weight: 800; color: var(--green); margin: .35rem 0 .5rem; }
.don-card p { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5; }
.don-btn {
    display: inline-block; padding: .6rem 1.75rem; border-radius: var(--radius-sm);
    font-size: .85rem; font-weight: 600; color: #fff; border: none;
    cursor: pointer; transition: opacity .2s; text-decoration: none; width: 100%;
}
.don-btn:hover { opacity: .88; text-decoration: none; }
.don-btn.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.don-btn.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.don-btn.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.custom-don {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; max-width: 480px; margin: 1.5rem auto 2rem;
    padding: 2rem; text-align: center;
}
.custom-don h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.custom-don > p { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.custom-input { display: flex; align-items: center; gap: .5rem; justify-content: center; margin-bottom: 1.25rem; }
.ci-sign { font-size: 1.5rem; font-weight: 700; color: var(--dim); }
.custom-input input {
    padding: .6rem 1rem; background: var(--input-bg);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 1.1rem; width: 170px; text-align: center; outline: none;
}
.custom-input input:focus { border-color: var(--green); }
.donate-now {
    padding: .65rem 2rem;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: #fff; border: none; border-radius: 9999px;
    font-size: .9rem; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem; transition: opacity .2s;
}
.donate-now:hover { opacity: .9; }
.don-secure { color: var(--dim); font-size: .75rem; margin-top: 1rem; }

/* Donation Why section */
.donation-why { max-width: 800px; margin: 0 auto; padding: 0 1.5rem 2.5rem; }
.donation-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.donation-why-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; text-align: center; transition: all .3s;
}
.donation-why-card:hover { border-color: var(--green); }
.dwy-icon { font-size: 1.75rem; margin-bottom: .6rem; }
.donation-why-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.donation-why-card p { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; }
.contact-form h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; text-align: center; }
.contact-form .cf-sub { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.contact-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: .6rem .85rem;
    background: var(--input-bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: .88rem; outline: none; margin-bottom: 1rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--green); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ===== BLOG ===== */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem; max-width: 960px; margin: 0 auto; padding: 0 1.5rem 2rem;
}
.blog-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all .3s;
    display: block; text-decoration: none; color: var(--text);
}
.blog-card:hover { border-color: var(--green); transform: translateY(-3px); text-decoration: none; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 1rem; }
.blog-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.blog-card-body p { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.blog-card-body .bc-date { font-size: .7rem; color: var(--dim); margin-top: .5rem; }

.blog-single { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.blog-single h1 { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.blog-single .bs-meta { color: var(--dim); font-size: .82rem; margin-bottom: 1.5rem; }
.blog-single .bs-body { color: var(--muted); line-height: 1.8; font-size: .92rem; }
.blog-single .bs-body h2, .blog-single .bs-body h3 { color: var(--text); margin: 1.5rem 0 .5rem; }
.blog-single .bs-body p { margin-bottom: .75rem; }
.blog-single .bs-body ul, .blog-single .bs-body ol { margin: .5rem 0 1rem 1.5rem; }

/* ===== LOADING SPINNER ===== */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 3rem; flex-direction: column; gap: .75rem; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(34,197,94,.15); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--dim); font-size: .82rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: 960px; margin: 0 auto;
    padding: .75rem 1.5rem; display: flex; align-items: center;
    gap: .4rem; font-size: .75rem; color: var(--dim); flex-wrap: wrap;
}
.breadcrumb a { color: var(--dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--dim2); }

/* ===== FOOTER ===== */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem 1.5rem; margin-top: 3rem; }
.footer-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: var(--text); margin-bottom: .35rem; }
.footer-desc { color: var(--dim); font-size: .78rem; line-height: 1.6; }
.footer-heading { font-weight: 700; font-size: .82rem; color: var(--text); margin-bottom: .6rem; }
footer a { display: block; color: var(--dim); font-size: .78rem; padding: .18rem 0; text-decoration: none; }
footer a:hover { color: var(--green); }
.footer-bottom {
    max-width: 960px; margin: 1.5rem auto 0;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.05);
    text-align: center; color: var(--dim2); font-size: .72rem;
}
[data-theme="light"] .footer-bottom { border-color: rgba(0,0,0,.06); }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--card); border: 1px solid var(--green);
    color: var(--text); padding: .65rem 1.5rem; border-radius: var(--radius-sm);
    font-size: .82rem; font-weight: 600; z-index: 9999;
    transition: transform .3s ease; box-shadow: var(--shadow);
    max-width: calc(100vw - 2rem); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE — TABLET (max 900px) ===== */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .donation-why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .donation-grid { grid-template-columns: 1fr; max-width: 380px; }
    .don-card { padding: 1.5rem 1rem; }
}

/* ===== RESPONSIVE — MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    .hero { padding: 2.5rem 1rem 1.75rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: .92rem; }

    .tool-cards { grid-template-columns: 1fr; padding: 0 1rem; gap: 1rem; }
    .tool-header { padding: 1.5rem 1rem 1.25rem; }
    .tool-header h1 { font-size: 1.45rem; }

    .container { padding: 0 1rem; }
    .section { padding: 1.5rem 1rem; }
    .rating-section { padding: 1.5rem 1rem; }
    .related-tools { padding: 0 1rem 1.5rem; }

    /* Email app - stack sidebar on top */
    .email-app { margin: 1rem; border-radius: var(--radius); }
    .ea-topbar { padding: .75rem; gap: .4rem; }
    .ea-input { min-width: 0; flex: 1; font-size: .82rem; }
    .ea-btn-random { padding: .45rem .75rem; font-size: .78rem; }
    .ea-domain { min-width: 100px; font-size: .78rem; }
    .ea-split { flex-direction: column; }
    .ea-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); max-height: 280px; }
    [data-theme="light"] .ea-sidebar { border-color: rgba(0,0,0,.06); }
    .ea-sidebar-header { padding: .55rem .75rem; }
    .ea-inbox-item { padding: .6rem .75rem; }
    .ea-msg-view { padding: 1rem; }
    .ea-back-btn { font-size: .75rem; margin-bottom: .6rem; }

    /* SMS app - stack sidebar on top */
    .sms-app { margin: 1rem; border-radius: var(--radius); }
    .sms-split { flex-direction: column; }
    .sms-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); max-height: 320px; }
    [data-theme="light"] .sms-sidebar { border-color: rgba(0,0,0,.06); }

    /* Rating */
    .rating-box { padding: 1.25rem 1rem; flex-direction: column; text-align: center; }
    .rating-right { flex-direction: column; gap: .75rem; align-items: center; }
    .helpful-wrap { justify-content: center; }

    /* Donation */
    .donation-hero { padding: 2rem 1rem 1.5rem; }
    .donation-hero h1 { font-size: 1.5rem; }
    .donation-grid { padding: 0 1rem; }
    .custom-don { margin: 1rem; padding: 1.5rem 1rem; }
    .donation-why { padding: 0 1rem 1.5rem; }

    /* Breadcrumb */
    .breadcrumb { padding: .6rem 1rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    footer { padding: 2rem 1rem 1.25rem; }

    /* Why grid */
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .donation-why-grid { grid-template-columns: repeat(2, 1fr); }

    /* Steps */
    .step { flex-direction: row; }
    .step::before { min-width: 50px; font-size: .65rem; }

    /* Blog */
    .blog-grid { padding: 0 1rem 1.5rem; }
    .page-content { padding: 1.5rem 1rem; }
    .blog-single { padding: 1.5rem 1rem; }
    .contact-form { padding: 1.5rem 1rem; }
}

/* ===== RESPONSIVE — SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.35rem; }
    .tool-header h1 { font-size: 1.25rem; }

    .why-grid { grid-template-columns: 1fr 1fr; }
    .donation-why-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    .ea-topbar { flex-wrap: wrap; }
    .ea-btn-random span { display: none; } /* Hide text, show only icon on very small */
    .ea-domain { min-width: 90px; }

    .rating-stars span { font-size: 1.3rem; }
    .helpful-wrap { font-size: .75rem; }

    .donation-grid { max-width: 100%; }
    .don-card { padding: 1.25rem .85rem; }
    .don-amount { font-size: 1.75rem; }

    .sms-topbar { padding: .5rem .75rem; }
    .sms-active-number { font-size: .82rem; }

    .toast { font-size: .78rem; padding: .55rem 1rem; }
    .section-header h2 { font-size: 1.05rem; }
}

/* ===== VERY SMALL (max 360px) ===== */
@media (max-width: 360px) {
    .hero h1 { font-size: 1.2rem; }
    .why-grid { grid-template-columns: 1fr; }
    .donation-why-grid { grid-template-columns: 1fr; }
    .hero-badges { gap: .3rem; }
    .hero-badge { font-size: .68rem; padding: .25rem .5rem; }
}
