:root {
    /* Primary Blues */
    --primary-dark: #0f172a;
    --primary-mid: #1e40af;
    --primary-light: #3b82f6;
    --primary: #1a56db;
    --primary-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);

    /* Button Colors */
    --blue-start: #1a56db;
    --blue-end: #3b82f6;
    --blue-gradient: linear-gradient(135deg, var(--blue-start), var(--blue-end));
    --blue-shadow: rgba(26, 86, 219, 0.25);

    --green-start: #22c55e;
    --green-end: #16a34a;
    --green-gradient: linear-gradient(135deg, var(--green-start), var(--green-end));
    --green-shadow: rgba(34, 197, 94, 0.25);

    /* Text Colors */
    --text-dark: #1e293b;
    --text-blue: #1e40af;
    --text-light: #64748b;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-blue-light: #eff6ff;
    --bg-gray-light: #f8fafc;

    /* Border Colors */
    --border-blue: #3b82f6;
    --border-light: #e2e8f0;

    /* Timer Colors */
    --timer-green-bg: #f0fdf4;
    --timer-green-text: #166534;
    --timer-green-border: #86efac;

    --timer-yellow-bg: #fef9c3;
    --timer-yellow-text: #854d0e;
    --timer-yellow-border: #facc15;

    --timer-orange-bg: #ffedd5;
    --timer-orange-text: #9a3412;
    --timer-orange-border: #fb923c;

    --timer-red-bg: #fee2e2;
    --timer-red-text: #991b1b;
    --timer-red-border: #f87171;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f4ff;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.04) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

/* ========== NAVBAR ========== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    position: sticky;
    top: 0;
    z-index: 300;
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-blue-light);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nbadge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--bg-blue-light);
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #bfdbfe;
}

/* ========== LANGUAGE SELECTOR ========== */
.language-selector {
    position: relative;
    display: inline-block;
    margin: 0 10px;
    z-index: 1000;
}

.lang-btn {
    background: var(--bg-gray-light);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 6px 12px;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    background: var(--bg-blue-light);
    border-color: #93c5fd;
}

.lang-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 2px;
    color: var(--text-light);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    width: 240px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: 8px;
    border: 1px solid var(--border-light);
}

.lang-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    background: white;
}

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

.lang-item:hover {
    background: var(--bg-blue-light) !important;
}

.lang-item.active {
    background: var(--bg-blue-light) !important;
    color: var(--primary-mid) !important;
    font-weight: 600;
}

.lang-flag {
    font-size: 1.2rem;
    margin-right: 12px;
    min-width: 24px;
    text-align: center;
}

.lang-name {
    flex: 1;
    font-size: 0.9rem;
    color: #334155;
}

.lang-speakers {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 5px;
    white-space: nowrap;
}

/* ========== MAIN CONTAINER ========== */
.wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px 44px;
}

.inner {
    width: 100%;
    max-width: 860px;
}

/* ========== LOADING ========== */
.loading-ov {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-ov.v {
    display: flex;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
    max-width: 500px;
    width: 90%;
}

.loading-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #3b82f6;
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #22c55e;
    border-right-color: rgba(34, 197, 94, 0.2);
    animation: spin 2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.2);
    animation: spin 1s linear infinite;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 10;
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.loading-main-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.loading-dots {
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    40% { opacity: 0.3; }
    60% { opacity: 0.7; }
    80%, 100% { opacity: 1; }
}

.loading-email-container {
    position: relative;
    margin-bottom: 25px;
}

.loading-email-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 60px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.loading-email-prefix {
    color: #93c5fd;
    font-size: 1.2rem;
}

.loading-email-address {
    color: white;
    font-weight: 600;
    position: relative;
    min-width: 120px;
    text-align: center;
}

.loading-email-address::after {
    content: '|';
    animation: cursorBlink 1s step-end infinite;
    margin-left: 2px;
    color: #22c55e;
}

.loading-email-domain {
    color: #93c5fd;
    opacity: 0.9;
    font-weight: 500;
}

.loading-email-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.loading-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.loading-sub-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-icon {
    font-size: 1rem;
}

.sub-text {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== AD SLOT ========== */
.ad-slot {
    width: 100%;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
    overflow: hidden;
}

/* ========== MAIN CARD ========== */
.card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    padding: 28px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
}

.hero {
    text-align: center;
    margin-bottom: 24px;
    padding: 10px 0 0;
}

.hero-icon {
    display: inline-flex;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
    font-size: 1.5rem;
    color: white;
    animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    max-width: 560px;
    margin: 10px auto 0;
}

.hero-trust {
    margin-top: 22px;
}

.hero-mission {
    font-size: 0.84rem;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 16px;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.85;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #1e40af;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    transition: all 0.25s ease;
}

.hero-badge:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(59,130,246,0.15);
    transform: translateY(-1px);
}

.hero-badge svg {
    color: #3b82f6;
}

/* ========== DOMAIN SELECT ========== */
.domain-select {
    background: var(--bg-gray-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    min-width: 150px;
}

.domain-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== EMAIL BOX ========== */
.email-box {
    border: 2px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 11px;
    background: var(--bg-white);
}

.email-box-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.email-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expiry-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
    transition: all 0.3s;
}

.expiry-timer.green {
    background: var(--timer-green-bg);
    color: var(--timer-green-text);
    border-color: var(--timer-green-border);
}

.expiry-timer.yellow {
    background: var(--timer-yellow-bg);
    color: var(--timer-yellow-text);
    border-color: var(--timer-yellow-border);
}

.expiry-timer.orange {
    background: var(--timer-orange-bg);
    color: var(--timer-orange-text);
    border-color: var(--timer-orange-border);
}

.expiry-timer.red {
    background: var(--timer-red-bg);
    color: var(--timer-red-text);
    border-color: var(--timer-red-border);
}

.email-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.email-val {
    flex: 1;
    min-width: 160px;
    background: var(--bg-blue-light);
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    padding: 10px 13px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    word-break: break-all;
    cursor: pointer;
}

.email-val:hover {
    background: #dbeafe;
}

.email-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: var(--blue-gradient);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--blue-shadow);
    white-space: nowrap;
}

.btn-primary:hover {
    box-shadow: 0 6px 16px var(--blue-shadow);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-green {
    background: var(--green-gradient);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--green-shadow);
    white-space: nowrap;
}

.btn-green:hover {
    box-shadow: 0 6px 16px var(--green-shadow);
    transform: translateY(-1px);
}

.btn-green:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-change {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    white-space: nowrap;
}
.btn-change:hover {
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.report-opt { display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border2);border-radius:8px;cursor:pointer;font-size:13px;transition:background .15s; }
.report-opt:hover { background:var(--hover-bg); }
.report-opt input[type="radio"] { accent-color:#6366f1; }
.report-svc.active { background:#6366f1;color:#fff;border-color:#6366f1; }

.site-rating { display:inline-flex;align-items:center;gap:4px; }
.rating-stars { display:inline-flex;gap:1px;cursor:pointer; }
.rating-stars .star { font-size:22px;color:#cbd5e1;transition:color .15s; }
.rating-stars .star.filled { color:#facc15; }
.rating-stars .star.half { background:linear-gradient(90deg,#facc15 50%,#cbd5e1 50%);-webkit-background-clip:text;-webkit-text-fill-color:transparent; }
.rating-stars .star:hover, .rating-stars .star.hover { color:#facc15; }
.rating-score { font-weight:700;font-size:15px;color:#facc15;margin-left:4px; }

.cookie-bar { position:fixed;bottom:0;left:0;right:0;background:#1e293b;color:#e2e8f0;z-index:9998;padding:14px 20px;box-shadow:0 -2px 12px rgba(0,0,0,.2); }
.cookie-inner { max-width:960px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap; }
.cookie-inner p { font-size:13px;line-height:1.5;margin:0;flex:1;min-width:200px; }
.cookie-btns { display:flex;gap:10px;align-items:center; }
.cookie-btn { padding:8px 20px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer; }
.cookie-btn.accept { background:#3b82f6;color:#fff; }
.cookie-btn.accept:hover { background:#2563eb; }
.cookie-link { color:#94a3b8;font-size:12px;text-decoration:underline; }

.delete-toast { position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1e293b;color:#fff;padding:10px 20px;border-radius:10px;font-size:13px;display:flex;align-items:center;gap:12px;z-index:9999;box-shadow:0 4px 20px rgba(0,0,0,.3);animation:fadeUp .3s ease; }
.delete-toast button { background:#6366f1;color:#fff;border:none;padding:4px 14px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:600; }
@keyframes fadeUp { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

.btn-qr {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    color: var(--primary);
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-qr:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== INFO BAR ========== */
.info-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.76rem;
    margin-top: 8px;
}

.info-bar.green {
    background: var(--timer-green-bg);
    border: 1px solid var(--timer-green-border);
    color: var(--timer-green-text);
}

.info-bar.blue {
    background: var(--bg-blue-light);
    border: 1px solid #bfdbfe;
    color: var(--primary-mid);
}

/* ========== MAIL CONTROL ========== */
.mail-ctrl {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.mail-ctrl-btn {
    background: var(--bg-blue-light);
    border: 1px solid #bfdbfe;
    color: var(--text-blue);
    padding: 9px 22px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.mail-ctrl-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.mail-ctrl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

/* ========== INBOX TABS ========== */
.inbox-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.inbox-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.inbox-tab:hover {
    color: var(--primary);
}

.inbox-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== INBOX ========== */
.inbox-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

.inbox-ttl {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.92rem;
}

.inbox-lbl {
    font-size: 0.68rem;
    color: var(--text-light);
    background: var(--bg-gray-light);
    padding: 2px 8px;
    border-radius: 99px;
}

.inbox-messages {
    background: var(--bg-gray-light);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    max-height: 480px;
    overflow-y: auto;
}

#messages {
}

.msg-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-light);
    background: white;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.inbox-waiting-icon {
    position: relative;
    margin-bottom: 6px;
}

.inbox-pulse {
    animation: inboxPulse 2.5s ease-in-out infinite;
}

@keyframes inboxPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.inbox-waiting-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.inbox-waiting-dots span {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.inbox-waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.inbox-waiting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

.msg-empty-icon {
    margin-bottom: 4px;
}

.msg-empty-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.msg-empty-ic {
    font-size: 2rem;
    opacity: 0.35;
    margin-bottom: 7px;
}

.msg-empty-sub {
    font-size: 0.78rem;
    opacity: 0.7;
    color: #6b7280;
}

.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.25s;
    animation: slideUp 0.3s ease;
}

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

.msg-item:hover {
    background: linear-gradient(to right, white, var(--bg-blue-light));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -4px rgba(26, 86, 219, 0.15);
}

.msg-item.unread {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid var(--primary);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.msg-item.unread .msg-from {
    font-weight: 700;
    color: var(--primary-dark);
}

.msg-item.read {
    opacity: 0.88;
    border-left: 4px solid #d1d5db;
}

.msg-item.read .msg-from {
    color: var(--text-light);
}

.msg-icon {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.msg-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.dot-unread {
    background: var(--primary);
    box-shadow: 0 0 6px rgba(26, 86, 219, 0.4);
}

.dot-read {
    background: #d1d5db;
}

.msg-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.msg-delete-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0;
}

.msg-item:hover .msg-delete-btn {
    opacity: 1;
}

.msg-delete-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.msg-body {
    flex: 1;
    min-width: 0;
}

.msg-from-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.msg-from {
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-badge {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    flex-shrink: 0;
}

.msg-subj {
    font-size: 0.8rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-item:hover .msg-subj {
    color: var(--text-blue);
}

.msg-time {
    font-size: 0.66rem;
    color: var(--text-light);
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-item:hover .msg-time {
    background: #dbeafe;
    color: var(--text-blue);
}

/* ========== MEMO ========== */
.memo-container {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
}

.memo-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #f8fafc;
}
.memo-tool-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 13px;
    transition: background 0.15s;
}
.memo-tool-btn:hover {
    background: #e2e8f0;
}
.memo-tool-sep {
    width: 1px;
    height: 18px;
    background: var(--border-light);
    margin: 0 4px;
}
.memo-color-label {
    position: relative;
    cursor: pointer;
    flex-direction: column;
    gap: 0;
    padding-bottom: 2px !important;
}
.memo-color-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.memo-color-bar {
    width: 16px;
    height: 3px;
    background: #000;
    border-radius: 1px;
    margin-top: -2px;
}
.memo-editor table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}
.memo-editor td {
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    min-width: 40px;
}
.memo-editor {
    width: 100%;
    min-height: 180px;
    border: 1px solid var(--border-light);
    border-radius: 0 0 10px 10px;
    padding: 14px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 400px;
    line-height: 1.6;
}
.memo-editor:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.memo-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.memo-editor ul, .memo-editor ol {
    margin: 4px 0;
    padding-left: 20px;
}
.memo-textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 14px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.memo-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.memo-textarea::placeholder {
    color: #94a3b8;
}

/* Test Site Button */
.test-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.test-site-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.test-site-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.memo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.memo-status {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 500;
}

.memo-clear-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.memo-clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* ========== RATE WARNING ========== */
.rate-warn {
    background: var(--timer-red-bg);
    border: 1px solid #ef4444;
    color: var(--timer-red-text);
    padding: 9px 13px;
    border-radius: 11px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

/* ========== SUGGESTIONS ========== */
.suggest-title {
    font-size: 0.74rem;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.suggest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.suggest-item {
    background: var(--bg-blue-light);
    border: 1.5px solid #bfdbfe;
    color: var(--primary-mid);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.suggest-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== EXPIRED STATE ========== */
.expired-state {
    text-align: center;
    padding: 24px 16px;
}

.expired-icon {
    font-size: 2.4rem;
    margin-bottom: 9px;
}

.expired-state h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.expired-state p {
    font-size: 0.83rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ========== STATS ========== */
.stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.stat {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 11px 20px;
    text-align: center;
    color: var(--text-dark);
    flex: 1 1 90px;
    min-width: 85px;
    max-width: 170px;
    box-shadow: var(--shadow-sm);
}

.stat-v {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--primary);
}

.stat-l {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ========== PAGE PANEL ========== */
.page-panel {
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 14px;
    display: none;
    border: 1px solid var(--border-light);
}

.page-panel.v {
    display: block;
    animation: slideUp 0.3s ease;
}

.pp-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray-light);
}

.pp-hdr h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pp-cls {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
}

.pp-cls:hover {
    color: #ef4444;
}

.pp-body {
    padding: 18px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.8;
    max-height: 360px;
    overflow-y: auto;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 20px 18px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 22px;
    max-width: 860px;
    margin: 0 auto 22px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 11px;
    font-size: 0.85rem;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-bottom: 7px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.15s;
}

.footer-link:hover {
    color: white;
    transform: translateX(3px);
}

/* ========== HOW IT WORKS ========== */
.how-it-works-section {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.how-it-works-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px -8px rgba(26, 86, 219, 0.12);
    transform: translateY(-4px);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ========== FEATURES GRID ========== */
.features-section {
    max-width: 820px;
    margin: 50px auto;
    text-align: center;
}

.features-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

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

.feature-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 18px;
    padding: 26px 20px;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: 0 12px 32px -8px rgba(59,130,246,0.15);
    transform: translateY(-4px);
    background: rgba(255,255,255,0.95);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.feature-card:hover .feature-card-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== FAQ ACCORDION ========== */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
}

.faq-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: #93c5fd;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-q svg {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.3s;
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

.faq-a p {
    padding: 0 20px 16px;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== SEO CONTENT AREA ========== */
.seo-content-area {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.seo-content-area p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== COMPARISON TABLE ========== */
.comparison-section {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px 24px;
}

.comparison-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.comparison-table th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    color: var(--text-dark);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

.comparison-table .yes {
    color: #16a34a;
    font-weight: 600;
}

.comparison-table .no {
    color: #ef4444;
    font-weight: 500;
}

.comparison-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 16px;
    padding: 14px;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 18px 14px;
    }

    .comparison-section {
        padding: 20px 14px;
    }
}

@media (max-width: 400px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== IDENTITY CARD REDESIGN ========== */
.id-tool-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 18px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.id-tool-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px -4px rgba(26, 86, 219, 0.12);
}

.id-tool-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.id-tool-icon-new {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.id-tool-card:hover .id-tool-icon-new {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.id-tool-info {
    flex: 1;
}

.id-tool-card .id-tool-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.id-tool-card .id-tool-sub {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.4;
}

.id-tool-action {
    margin-top: 14px;
    text-align: right;
}

.id-tool-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: #eff6ff;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s;
}

.id-tool-card:hover .id-tool-btn-new {
    background: var(--primary);
    color: white;
}

/* ========== QR MODAL ========== */
.qr-modal-box {
    max-width: 340px;
}

.qr-content {
    padding: 24px;
    text-align: center;
}

.qr-content canvas {
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.qr-email-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 14px;
    word-break: break-all;
}

.qr-hint {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ========== AUTH NAV ========== */
.nav-auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-auth-btn svg {
    width: 15px;
    height: 15px;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-blue-light);
    color: var(--primary);
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    position: relative;
    max-width: 150px;
}

.nav-user-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

.nav-user-btn:hover {
    background: #dbeafe;
    border-color: var(--primary);
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ========== USER MENU DROPDOWN ========== */
.user-menu-dropdown {
    display: none;
    position: fixed;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-light);
    width: 250px;
    z-index: 999;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.user-menu-dropdown.v {
    display: block;
}

.user-menu-header {
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-bottom: 1px solid var(--border-light);
}

.user-menu-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.user-menu-email {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.user-menu-stats {
    padding: 12px 16px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
}

.user-menu-stat {
    text-align: center;
}

.user-menu-stat-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.user-menu-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 1px;
}

.user-menu-logout {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

.user-menu-logout:hover {
    background: #fef2f2;
}

.user-menu-logout svg {
    width: 16px;
    height: 16px;
}

/* ========== AUTH MODAL ========== */
.auth-modal-box {
    max-width: 400px;
}

.auth-modal-body {
    padding: 4px 0 0;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-field input::placeholder {
    color: #94a3b8;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--blue-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    box-shadow: 0 6px 18px var(--blue-shadow);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-error {
    display: none;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.auth-error.v {
    display: block;
}

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

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.auth-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.auth-footer-note svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
}

/* ========== SEO KEYWORDS ========== */
.seo-keywords {
    max-width: 860px;
    margin: 0 auto 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.keyword-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s;
}

.keyword-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ========== FOOTER BOTTOM ========== */
.footer-bottom {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 16px;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-note {
    margin-top: 4px;
    opacity: 0.5;
}

/* ========== MODALS ========== */
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 800;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.modal-bg.v {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.25s ease;
    border: 1px solid var(--border-light);
}

.modal-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-hdr h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.modal-cls {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
}

.modal-cls:hover {
    color: #ef4444;
}

.field-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.field-opt {
    font-weight: 400;
    color: #94a3b8;
}

.username-row {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
    margin-bottom: 4px;
}

.username-row:focus-within {
    border-color: var(--primary);
}

.username-row input {
    flex: 1;
    padding: 10px 13px;
    border: none;
    outline: none;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
}

.username-row .domain {
    padding: 10px 13px;
    background: var(--bg-blue-light);
    color: var(--text-blue);
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    border-left: 1px solid #bfdbfe;
}

/* Domain Select in Modal */
.domain-select {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 36px;
}

.domain-select:focus {
    border-color: var(--primary);
    outline: none;
}

.hint {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.dur-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.dur-opt {
    padding: 8px 5px;
    border: 2px solid var(--border-light);
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 500;
    background: white;
    color: var(--text-light);
    cursor: pointer;
    text-align: center;
    transition: all 0.14s;
    font-family: 'Inter', sans-serif;
}

.dur-opt:hover {
    border-color: #93c5fd;
    background: var(--bg-blue-light);
    color: var(--text-blue);
}

.dur-opt.on {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 9px;
}

.btn-outline {
    flex-shrink: 0;
    padding: 11px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.btn-outline:hover {
    background: var(--bg-gray-light);
}

/* ========== MAIL MODAL ========== */
.mail-modal-box {
    max-width: 780px;
    max-height: 92vh;
}

.mail-meta {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.mail-meta-row {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    margin-bottom: 6px;
    align-items: center;
}

.mail-meta-row:last-child {
    margin-bottom: 0;
}

.meta-lbl {
    background: var(--primary);
    color: white;
    padding: 3px 0;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: 52px;
    text-align: center;
    display: inline-block;
}

.meta-val {
    color: var(--text-dark);
    word-break: break-all;
    font-weight: 500;
}

/* OTP Bar */
.otp-found-bar {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #34d399;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: otpPulse 2s ease-in-out;
}

@keyframes otpPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.otp-found-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-found-label::before {
    content: '\1F511';
    font-size: 1.1rem;
}

.otp-copy-btn {
    background: white;
    border: 2px dashed #34d399;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #065f46;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.2s ease;
    position: relative;
}

.otp-copy-btn:hover {
    background: #d1fae5;
    border-style: solid;
    transform: scale(1.05);
}

.otp-copy-btn:active {
    transform: scale(0.95);
}

.otp-copied-toast {
    display: none;
    font-size: 0.72rem;
    color: #16a34a;
    font-weight: 600;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.otp-highlight {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    cursor: pointer;
    border: 1px solid #34d399;
    transition: all 0.2s ease;
}

.otp-highlight:hover {
    background: #a7f3d0;
    transform: scale(1.05);
}

/* Attachment Bar */
.attachment-bar {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #475569;
}

.attachment-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 12px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #eff6ff;
    border-color: var(--primary);
}

.mail-body-wrap {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 18px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.mail-body-frame {
    width: 100%;
    border: none;
    min-height: 300px;
    border-radius: 10px;
    background: white;
}

/* Mail iframe container */
.mail-iframe-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 8px;
}

.mail-iframe-wrap iframe {
    width: 100%;
    border: none;
    min-height: 350px;
    display: block;
}

/* ========== WARNING MODAL ========== */
.warn-box {
    max-width: 340px;
    text-align: center;
}

.warn-icon {
    font-size: 2rem;
    margin-bottom: 9px;
}

.warn-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

.warn-text {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 16px;
}

.warn-actions {
    display: flex;
    gap: 9px;
    justify-content: center;
}

/* ========== NOTIFICATION ========== */
#notif {
    position: fixed;
    bottom: 18px;
    right: 16px;
    background: var(--blue-gradient);
    color: white;
    padding: 11px 20px;
    border-radius: 99px;
    box-shadow: 0 8px 20px var(--blue-shadow);
    display: none;
    align-items: center;
    gap: 9px;
    z-index: 900;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    font-family: 'Inter', sans-serif;
}

#notif .nc {
    background: white;
    color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ========== TOAST ========== */
#toast {
    position: fixed;
    bottom: 18px;
    left: 16px;
    background: var(--blue-gradient);
    color: white;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 9999;
    display: none;
    box-shadow: 0 6px 18px var(--blue-shadow);
    max-width: 85vw;
    font-family: 'Inter', sans-serif;
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    nav {
        padding: 11px 14px;
        position: relative;
    }

    .logo {
        position: relative;
        flex-shrink: 0;
        font-size: 1.1rem;
    }

    .nbadge {
        visibility: hidden;
    }

    .card {
        padding: 16px 14px;
    }

    .email-row {
        flex-direction: column;
    }

    .email-actions {
        justify-content: flex-end;
    }

    .loading-progress {
        min-width: 240px;
    }

    .loading-email-box {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .language-selector {
        margin: 0 5px;
    }

    .lang-btn .lang-name {
        display: none;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .lang-menu {
        width: 200px;
        right: -10px;
    }

    .lang-menu .lang-name {
        display: block;
        font-size: 0.85rem;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-link {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    .nav-auth-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
        gap: 4px;
    }

    .nav-auth-btn svg {
        width: 13px;
        height: 13px;
    }

    .nav-user-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
        max-width: 110px;
    }

    .nav-user-btn span {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.35rem;
    }

    .dur-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loading-email-box {
        flex-wrap: wrap;
    }

    .lang-menu {
        width: 180px !important;
        right: -5px;
    }

    .lang-item {
        padding: 8px 12px;
    }

    .lang-flag {
        font-size: 1rem;
        margin-right: 8px;
    }

    .lang-name {
        font-size: 0.8rem !important;
    }

    .mail-modal-box {
        padding: 14px;
        max-height: 95vh;
    }

    .otp-found-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .otp-copy-btn {
        font-size: 1rem;
        padding: 5px 14px;
        letter-spacing: 2px;
    }

    .mail-meta-row {
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .lang-btn {
        padding: 4px 6px;
    }

    .lang-flag {
        font-size: 1rem;
        margin-right: 0;
    }

    .lang-arrow {
        display: none;
    }
}
