/* ══════════════════════════════════════════════════════════════
   BZPMail — Professional Stylesheet
   Gmail/Outlook-like with proper light/dark mode
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --bg-primary: #f6f8fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f4;
    --bg-hover: #e8eaed;
    --bg-input: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;
    --border-color: #dadce0;
    --accent: #1a73e8;
    --accent-hover: #1557b0;
    --accent-light: rgba(26,115,232,0.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --sidebar-width: 260px;
    --success: #34a853;
    --warning: #f9ab00;
    --danger: #ea4335;
    --info: #4285f4;
    --btn-close-filter: invert(0.4);
}

body.dark-mode {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-hover: #4b5563;
    --bg-input: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-light: rgba(96,165,250,0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
    --btn-close-filter: invert(0.8);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary); color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE — Only visible on public pages
   ══════════════════════════════════════════════════════════════ */

.landing-bg { position: fixed; inset: 0; z-index: -1; background: #0a0a1a; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: blobFloat 20s ease-in-out infinite alternate; }
.blob-1 { width: 500px; height: 500px; background: linear-gradient(135deg, #667eea, #764ba2); top: -10%; left: -5%; animation-duration: 18s; }
.blob-2 { width: 400px; height: 400px; background: linear-gradient(135deg, #f093fb, #f5576c); top: 50%; right: -8%; animation-duration: 22s; animation-delay: -5s; }
.blob-3 { width: 350px; height: 350px; background: linear-gradient(135deg, #4facfe, #00f2fe); bottom: -5%; left: 30%; animation-duration: 25s; animation-delay: -10s; }
.blob-4 { width: 300px; height: 300px; background: linear-gradient(135deg, #43e97b, #38f9d7); top: 20%; left: 50%; animation-duration: 20s; opacity: 0.3; }
.blob-5 { width: 250px; height: 250px; background: linear-gradient(135deg, #fa709a, #fee140); top: 70%; left: 10%; animation-duration: 28s; opacity: 0.35; }
@keyframes blobFloat { 0% { transform: translate(0,0) scale(1); } 25% { transform: translate(60px,-40px) scale(1.1); } 50% { transform: translate(-30px,60px) scale(0.95); } 75% { transform: translate(40px,20px) scale(1.05); } 100% { transform: translate(-20px,-30px) scale(1); } }

.glass-card {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: all 0.4s;
}
.glass-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

.btn-glass { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; }
.btn-glass.btn-solid { background: linear-gradient(135deg, #667eea, #764ba2); color: white; box-shadow: 0 4px 20px rgba(102,126,234,0.4); }
.btn-glass.btn-solid:hover { box-shadow: 0 8px 30px rgba(102,126,234,0.6); }
.btn-glass.btn-ghost { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(10px); }
.btn-glass.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-glass.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.navbar-landing { padding: 16px 0; transition: all 0.4s; background: transparent; border: none; }
.navbar-landing.scrolled { background: rgba(10,10,26,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar-landing .navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; }
.brand-text { font-size: 1.3rem; font-weight: 700; color: white; }
.navbar-landing .nav-link { color: rgba(255,255,255,0.7) !important; font-weight: 500; transition: color 0.3s; padding: 8px 16px; }
.navbar-landing .nav-link:hover { color: white !important; }

.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; color: white; }
.hero-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 50px; background: rgba(102,126,234,0.2); border: 1px solid rgba(102,126,234,0.3); color: #a29bfe; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; backdrop-filter: blur(10px); }
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, #667eea, #764ba2, #f093fb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 24px; padding: 20px 28px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; color: white; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.stat-value { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.15); }
.hero-visual { display: flex; justify-content: center; }
.phone-mockup { width: 420px; overflow: hidden; animation: floatUp 6s ease-in-out infinite; }
@keyframes floatUp { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mockup-header { padding: 14px 18px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28ca41; }
.mockup-title { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 600; }
.mockup-body { display: flex; height: 320px; }
.mockup-sidebar { width: 140px; padding: 12px 0; border-right: 1px solid rgba(255,255,255,0.06); }
.mockup-folder { padding: 8px 14px; font-size: 0.72rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }
.mockup-folder.active { color: white; background: rgba(102,126,234,0.2); border-radius: 0 8px 8px 0; margin-right: 8px; }
.mockup-mails { flex: 1; padding: 8px 0; overflow: hidden; }
.mockup-mail { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mockup-mail.unread .mockup-mail-from, .mockup-mail.unread .mockup-mail-subject { font-weight: 700; color: white; }
.mockup-mail-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; font-weight: 700; }
.mockup-mail-content { flex: 1; min-width: 0; }
.mockup-mail-from { font-size: 0.72rem; color: rgba(255,255,255,0.7); font-weight: 600; }
.mockup-mail-subject { font-size: 0.7rem; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-badge { display: inline-block; padding: 6px 18px; border-radius: 50px; background: rgba(102,126,234,0.15); border: 1px solid rgba(102,126,234,0.25); color: #a29bfe; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: 2.8rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto; }
.features-section { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { padding: 32px 24px; text-align: center; opacity: 0; transform: translateY(30px); transition: all 0.6s; }
.feature-card.animate-in { opacity: 1; transform: translateY(0); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.3rem; color: white; }
.feature-card h3 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.6; margin: 0; }
.how-section { padding: 100px 0; }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 24px; }
.step-card { padding: 40px 32px; text-align: center; flex: 1; max-width: 320px; position: relative; opacity: 0; transform: translateY(30px); transition: all 0.6s; }
.step-card.animate-in { opacity: 1; transform: translateY(0); }
.step-number { position: absolute; top: 16px; right: 20px; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.06); }
.step-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.4rem; color: white; }
.step-card h3 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.step-card p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.6; margin: 0; }
.step-connector { color: rgba(255,255,255,0.2); font-size: 1.2rem; }
.pricing-section { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.pricing-card { padding: 0; overflow: hidden; position: relative; opacity: 0; transform: translateY(30px); transition: all 0.6s; }
.pricing-card.animate-in { opacity: 1; transform: translateY(0); }
.pricing-card.featured { border-color: rgba(102,126,234,0.5); background: rgba(102,126,234,0.12); transform: scale(1.05); }
.pricing-card.featured.animate-in { transform: scale(1.05); }
.pricing-badge { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(135deg, #667eea, #764ba2); color: white; text-align: center; padding: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.pricing-header { padding: 40px 28px 24px; text-align: center; }
.pricing-card.featured .pricing-header { padding-top: 56px; }
.pricing-header h3 { color: white; font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; margin-bottom: 8px; }
.pricing-price .amount { font-size: 3rem; font-weight: 800; color: white; line-height: 1; }
.pricing-price .period { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-left: 4px; }
.pricing-features { list-style: none; padding: 24px 28px; margin: 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.pricing-features li { padding: 10px 0; color: rgba(255,255,255,0.7); font-size: 0.9rem; display: flex; align-items: center; gap: 12px; }
.pricing-features li i { color: #43e97b; font-size: 0.8rem; width: 16px; }
.pricing-card .btn-glass { margin: 24px 28px 28px; width: calc(100% - 56px); justify-content: center; }
.cta-section { padding: 60px 0 100px; }
.cta-card { text-align: center; padding: 60px 40px; background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15)); }
.cta-card h2 { color: white; font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,0.5); font-size: 1.1rem; margin-bottom: 32px; }

/* Testimonials */
.testimonials-section { padding: 100px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { padding: 32px; position: relative; opacity: 0; transform: translateY(30px); transition: all 0.6s; }
.testimonial-card.animate-in { opacity: 1; transform: translateY(0); }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }
.testimonial-stars { color: #ffd700; font-size: 0.85rem; margin-bottom: 16px; display: flex; gap: 2px; }
.testimonial-text { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; }
.testimonial-name { color: white; font-weight: 600; font-size: 0.95rem; }
.testimonial-role { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* FAQ */
.faq-section { padding: 100px 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.faq-card { overflow: hidden; opacity: 0; transform: translateY(30px); transition: all 0.6s; }
.faq-card.animate-in { opacity: 1; transform: translateY(0); }
.faq-card:nth-child(2) { transition-delay: 0.1s; }
.faq-card:nth-child(3) { transition-delay: 0.2s; }
.faq-card:nth-child(4) { transition-delay: 0.3s; }
.faq-card:nth-child(5) { transition-delay: 0.4s; }
.faq-card:nth-child(6) { transition-delay: 0.5s; }
.faq-question { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.3s; }
.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-question span { color: white; font-weight: 600; font-size: 0.95rem; }
.faq-question i { color: rgba(255,255,255,0.4); font-size: 0.8rem; transition: transform 0.3s; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-card.open .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* Responsive for new sections */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}
.landing-footer { padding: 60px 0 30px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.9rem; line-height: 1.6; }
.footer-links h6 { color: rgba(255,255,255,0.8); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.4); text-decoration: none; padding: 4px 0; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

.feature-card, .step-card, .pricing-card, .cta-card { opacity: 0; transform: translateY(30px); }
.feature-card.animate-in, .step-card.animate-in, .pricing-card.animate-in, .cta-card.animate-in { opacity: 1; transform: translateY(0); }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.pricing-card:nth-child(2) { transition-delay: 0.15s; }
.pricing-card:nth-child(3) { transition-delay: 0.3s; }

/* ════ AUTH — Glass on dark ════ */

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; z-index: 1; }
.auth-glass-card { width: 100%; max-width: 420px; padding: 40px 36px; background: rgba(255,255,255,0.06); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; box-shadow: 0 16px 64px rgba(0,0,0,0.3); animation: fadeUp 0.5s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; margin-bottom: 28px; }
.auth-glass-card h2 { color: white; font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { color: rgba(255,255,255,0.4); text-align: center; font-size: 0.9rem; margin-bottom: 28px; }
.auth-error { background: rgba(255,107,107,0.15); border: 1px solid rgba(255,107,107,0.3); color: #ff6b6b; padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; margin-bottom: 16px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; }
.auth-input-wrap { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0 14px; transition: all 0.3s; }
.auth-input-wrap:focus-within { border-color: rgba(102,126,234,0.6); background: rgba(255,255,255,0.08); }
.auth-input-wrap i { color: rgba(255,255,255,0.3); font-size: 0.9rem; }
.auth-input-wrap input, .auth-input-wrap select { flex: 1; background: none; border: none; outline: none; color: white; padding: 12px 0; font-size: 0.95rem; }
.auth-input-wrap input::placeholder { color: rgba(255,255,255,0.25); }
.auth-toggle-pass { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; padding: 4px; transition: color 0.3s; }
.auth-toggle-pass:hover { color: white; }
.auth-check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: #667eea; cursor: pointer; }
.auth-check label { font-size: 0.85rem; cursor: pointer; }
.auth-submit { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.1); }
.auth-divider span { padding: 0 16px; position: relative; color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.auth-footer { text-align: center; margin-top: 20px; color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.auth-footer a { color: #a29bfe; text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer-small { text-align: center; margin-top: 8px; }
.auth-footer-small a { color: rgba(255,255,255,0.3); font-size: 0.8rem; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   MAIL APP — Uses CSS variables for light/dark
   ══════════════════════════════════════════════════════════════ */

.mail-app { display: flex; height: 100vh; overflow: hidden; background: var(--bg-primary); }

/* Sidebar */
.mail-sidebar { width: var(--sidebar-width); flex-shrink: 0; background: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.mail-sidebar-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.mail-sidebar-header .logo { font-weight: 700; color: var(--text-primary); font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.mail-sidebar-header .logo i { color: var(--accent); }
.btn-compose { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); background: var(--accent); color: white; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.btn-compose:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); color: white; }
.mail-sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.mail-sidebar-nav .nav-item { padding: 9px 16px 9px 20px; display: flex; align-items: center; cursor: pointer; border-radius: 0 24px 24px 0; margin-right: 8px; transition: all 0.15s; color: var(--text-secondary); font-size: 0.88rem; }
.mail-sidebar-nav .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.mail-sidebar-nav .nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.mail-sidebar-nav .nav-item i { width: 22px; margin-right: 12px; text-align: center; font-size: 0.9rem; }
.unread-badge { margin-left: auto; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--accent); color: white; min-width: 22px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border-color); margin: 8px 16px; }
.sidebar-label-header { padding: 8px 24px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border-color); }
.storage-info { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.82rem; margin-bottom: 8px; }
.storage-bar { height: 4px; border-radius: 2px; background: var(--bg-hover); overflow: hidden; }
.storage-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.5s; }
.storage-text { color: var(--text-muted); font-size: 0.72rem; margin-top: 4px; display: block; }

/* Main + Toolbar */
.mail-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mail-toolbar { padding: 6px 16px; display: flex; align-items: center; gap: 8px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); min-height: 48px; }
.toolbar-left { display: flex; align-items: center; gap: 4px; }
.toolbar-right { display: flex; align-items: center; gap: 4px; }
.toolbar-divider { width: 1px; height: 20px; background: var(--border-color); margin: 0 4px; }
.glass-checkbox { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.btn-toolbar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: none; background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; font-size: 0.85rem; }
.btn-toolbar:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-toolbar.text-danger { color: var(--danger); }
.btn-toolbar.text-danger:hover { background: rgba(234,67,53,0.08); }
.search-box { flex: 1; max-width: 600px; margin: 0 8px; display: flex; align-items: center; gap: 8px; background: var(--bg-tertiary); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0 12px; transition: all 0.2s; }
.search-box:focus-within { background: var(--bg-input); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }
.search-box i { color: var(--text-muted); font-size: 0.85rem; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); padding: 8px 0; font-size: 0.88rem; }
.search-box input::placeholder { color: var(--text-muted); }

/* Dropdowns */
.glass-dropdown { background: var(--bg-secondary) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-sm) !important; box-shadow: var(--shadow-lg) !important; padding: 4px !important; }
.glass-dropdown .dropdown-item { color: var(--text-secondary); padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; transition: all 0.15s; }
.glass-dropdown .dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.glass-dropdown .dropdown-divider { border-color: var(--border-color); }

/* Mail List */
.mail-content { flex: 1; overflow-y: auto; background: var(--bg-secondary); }
.mail-list-item { display: flex; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.1s; gap: 8px; }
.mail-list-item:hover { background: var(--bg-hover); }
.mail-list-item.unread { background: var(--accent-light); }
.mail-list-item.unread .sender { font-weight: 700; color: var(--text-primary); }
.mail-list-item.active-list-item { background: var(--bg-hover); }
.mail-list-item .form-check { flex-shrink: 0; }
.mail-list-item .mail-checkbox { width: 16px; height: 16px; accent-color: var(--accent); }
.mail-list-item .star { color: var(--text-muted); cursor: pointer; font-size: 0.85rem; transition: color 0.15s; flex-shrink: 0; width: 20px; text-align: center; }
.mail-list-item .star:hover, .mail-list-item .star.active { color: var(--warning); }
.mail-list-item .sender { width: 180px; font-size: 0.88rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.mail-list-item .snippet { flex: 1; font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 8px; }
.mail-list-item .snippet strong { color: var(--text-primary); font-weight: 600; }
.mail-list-item .date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; margin-left: 12px; flex-shrink: 0; }

/* Empty State */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .empty-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.empty-state .empty-icon i { font-size: 2rem; color: var(--text-muted); }
.empty-state h3 { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════════
   SHARED UI COMPONENTS — Use CSS variables, work in both modes
   ══════════════════════════════════════════════════════════════ */

/* Cards */
.mail-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}

/* Glass-card override for mail app context */
.mail-app .glass-card {
    background: var(--bg-secondary); backdrop-filter: none;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transform: none;
}
.mail-app .glass-card:hover { transform: none; box-shadow: var(--shadow-md); }
.mail-app .glass-card .glass-card-header { border-bottom: 1px solid var(--border-color); }
.mail-app .glass-card .glass-card-header h3 { color: var(--text-primary); }
.mail-app .glass-card .glass-card-body { color: var(--text-primary); }

/* Inputs — work in BOTH light and dark */
.glass-input, .glass-select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 0.9rem; transition: all 0.2s; outline: none;
    font-family: inherit;
}
.glass-input:focus, .glass-select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light);
}
.glass-input::placeholder { color: var(--text-muted); }
.glass-select option { background: var(--bg-secondary); color: var(--text-primary); }
.glass-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    background-color: var(--bg-input);
}

/* Form groups */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: var(--text-secondary); font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; }
.form-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.glass-divider { border: none; border-top: 1px solid var(--border-color); margin: 20px 0; }

/* Card Header + Body (mail app context) */
.glass-card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.glass-card-header h3 { color: var(--text-primary); font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; }
.glass-card-body { padding: 24px; color: var(--text-primary); }

/* Buttons — mail app uses variable-based */
.btn-glass-primary {
    background: var(--accent); color: white;
    border: 1px solid transparent; box-shadow: var(--shadow-sm);
}
.btn-glass-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); color: white; }
.btn-glass-secondary {
    background: var(--bg-tertiary); color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-glass-secondary:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-glass-danger {
    background: rgba(234,67,53,0.08); color: var(--danger);
    border: 1px solid rgba(234,67,53,0.2);
}
.btn-glass-danger:hover { background: rgba(234,67,53,0.15); color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════════════
   COMPOSE — Full page
   ══════════════════════════════════════════════════════════════ */

.compose-page { padding: 24px; max-width: 900px; margin: 0 auto; }
.format-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; margin-bottom: 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.btn-format { width: 30px; height: 30px; border-radius: 6px; border: none; background: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; font-size: 0.82rem; }
.btn-format:hover { background: var(--bg-hover); color: var(--text-primary); }
.format-divider { width: 1px; height: 18px; background: var(--border-color); margin: 0 4px; }
.compose-editor { border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-input); margin-bottom: 16px; }
.compose-editor div { color: var(--text-primary); outline: none; line-height: 1.45; font-size: 0.95rem; margin: 0; padding: 0; }
.compose-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.action-left, .action-right { display: flex; gap: 10px; }
.undo-banner { background: var(--accent-light); border-bottom: 1px solid var(--accent); padding: 0; }
.undo-banner-inner { max-width: 900px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-size: 0.9rem; font-weight: 500; }

/* Compose Modal (inbox) */
.glass-modal { background: var(--bg-secondary) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-lg) !important; backdrop-filter: none !important; }
.glass-modal .modal-header { border-bottom: 1px solid var(--border-color); padding: 14px 20px; }
.glass-modal .modal-title { color: var(--text-primary); font-size: 0.95rem; }
.glass-modal .modal-body { background: var(--bg-secondary); color: var(--text-primary); }
.glass-modal .modal-footer { border-top: 1px solid var(--border-color); padding: 12px 20px; background: var(--bg-secondary); }
.glass-modal .btn-close { filter: var(--btn-close-filter); }
.compose-field { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border-color); }
.compose-field .field-label { color: var(--text-muted); font-size: 0.85rem; width: 60px; flex-shrink: 0; }
.compose-field input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 0.92rem; font-family: inherit; }
.compose-field input::placeholder { color: var(--text-muted); }
.compose-body-area { min-height: 300px; }
.compose-body-area div { min-height: 300px; padding: 16px 20px; color: var(--text-primary); font-size: 0.95rem; outline: none; line-height: 1.6; }
.compose-footer { display: flex; align-items: center; gap: 8px; }

/* ══════════════════════════════════════════════════════════════
   SETTINGS PAGE
   ══════════════════════════════════════════════════════════════ */

.settings-page { padding: 32px 24px; max-width: 1400px; margin: 0 auto; color: var(--text-primary); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.page-title { color: var(--text-primary); font-size: 1.8rem; font-weight: 800; margin: 0; }
.page-subtitle { color: var(--text-muted); margin: 4px 0 0; font-size: 0.9rem; }
.settings-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; transition: all 0.15s; }
.settings-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.settings-nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Account Cards */
.account-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-tertiary); border: 1px solid var(--border-color); margin-bottom: 10px; transition: all 0.15s; }
.account-card:hover { border-color: var(--accent); }
.account-info { display: flex; align-items: center; gap: 14px; }
.account-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-muted); }
.account-name { font-weight: 600; color: var(--text-primary); font-size: 0.92rem; }
.account-email { color: var(--text-muted); font-size: 0.82rem; }
.account-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.account-meta span { font-size: 0.75rem; color: var(--text-muted); }
.account-actions { display: flex; gap: 6px; }
.status-active { background: rgba(52,168,83,0.12); color: var(--success); }
.status-error { background: rgba(234,67,53,0.12); color: var(--danger); }
.status-default { background: #d3e3fd; color: #001d35; margin-left: 6px; }
/* Abas do modal de conta (Conta / Servidor / Assinatura) */
.gm-modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; }
.gm-modal-tab { border: none; background: none; padding: 10px 16px; font-size: 14px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; }
.gm-modal-tab:hover { color: var(--text-primary); }
.gm-modal-tab.active { color: #0b57d0; border-bottom-color: #0b57d0; font-weight: 500; }
body.dark-mode .gm-modal-tab.active { color: #93c5fd; border-bottom-color: #93c5fd; }
.atab-panel { display: none; }
.atab-panel.active { display: block; }
#account-signature { min-height: 140px; }
.sig-editor-box { border: 1px solid var(--materio-divider, var(--border-color)); border-radius: 8px; overflow: hidden; background: var(--materio-card, var(--bg-input)); }
.sig-editor-box .cf-format-bar { border-bottom: 1px solid var(--materio-divider, var(--border-color)); }
.sig-editor-box .compose-editor { border: none; border-radius: 0; min-height: 140px; max-height: 40vh; }
.sig-editor-box .compose-editor:focus { border: none; box-shadow: none; }
.sig-editor-box .compose-editor img, .gc-sig img { max-width: 100%; height: auto; }
.gc-sig { color: var(--text-secondary); }
/* Grupos de pastas por conta na sidebar */
.gs-account { border-radius: 0 16px 16px 0; }
.gs-account-head { display: flex; align-items: center; gap: 18px; padding: 0 12px 0 26px; height: 32px; color: var(--text-secondary); font-size: 13px; cursor: pointer; border-radius: 0 16px 16px 0; }
.gs-account-head:hover { background: var(--bg-hover); }
.gs-account-head .gs-chev { margin-left: auto; font-size: 10px; transition: transform 0.15s; }
#gs-more-head .gs-chev { transition: transform 0.15s; }
#gs-more-head.open .gs-chev { transform: rotate(180deg); }
.gs-account-head.open .gs-chev { transform: rotate(180deg); }
.gs-account-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-folder { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 44px; min-height: 30px; border-radius: 0 16px 16px 0; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.gs-folder:hover { background: var(--bg-hover); }
.gs-folder.active { background: #d3e3fd; color: #001d35; font-weight: 600; }
body.dark-mode .gs-folder.active { background: rgba(96,165,250,.2); color: #dbeafe; }
.gs-folder .gs-count { margin-left: auto; font-size: 11px; }
.gs-sync-err { color: var(--danger); width: 20px; text-align: center; }
.status-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   VIEW MAIL
   ══════════════════════════════════════════════════════════════ */

.view-mail-page { padding: 24px; max-width: 900px; margin: 0 auto; }
.loading-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.spinner-glow { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border-color); border-top-color: var(--accent); animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.email-subject { color: var(--text-primary); font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; line-height: 1.3; }
.email-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.sender-info { display: flex; align-items: center; gap: 14px; }
.avatar-glow { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.sender-name { color: var(--text-primary); font-weight: 600; font-size: 0.95rem; }
.sender-email { color: var(--text-muted); font-size: 0.82rem; }
.email-meta { text-align: right; }
.email-date { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 4px; }
.email-to { color: var(--text-secondary); font-size: 0.82rem; margin-top: 4px; }
.meta-label { color: var(--text-muted); }
.email-body { color: var(--text-primary); line-height: 1.7; font-size: 0.95rem; padding-top: 16px; }
.email-body img { max-width: 100%; height: auto; border-radius: 8px; }
.email-body pre { background: var(--bg-tertiary); padding: 16px; border-radius: 8px; overflow-x: auto; color: var(--text-secondary); }
.email-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.section-title { color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.translation-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.translation-box { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 16px; color: var(--text-primary); line-height: 1.6; }
.quick-reply-box { display: flex; gap: 12px; align-items: center; }
.quick-reply-box .glass-input { flex: 1; }
.attachments-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.attachment-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.85rem; }
.attachment-remove { background: none; border: none; color: var(--danger); cursor: pointer; }
.attachment-download { color: var(--accent); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — Dark theme (always)
   ══════════════════════════════════════════════════════════════ */

.admin-navbar { position: sticky; top: 0; z-index: 100; background: #111827; border-bottom: 1px solid #1f2937; padding: 0 24px; }
.admin-navbar .container-fluid { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; min-height: 56px; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-brand .brand-text { font-size: 1.1rem; font-weight: 700; color: white; }
.admin-nav { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.admin-nav a:hover { color: white; background: rgba(255,255,255,0.06); }
.admin-nav a.active { color: white; background: rgba(96,165,250,0.2); }
.admin-page { max-width: 1400px; margin: 0 auto; padding: 32px 24px; color: white; background: #0f172a; min-height: 100vh; }
.admin-header h1 { font-size: 1.8rem; font-weight: 800; margin: 0; color: white; }
.admin-header p { color: rgba(255,255,255,0.4); margin: 4px 0 0; font-size: 0.9rem; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { padding: 24px; border-radius: var(--radius-md); background: #1f2937; border: 1px solid #374151; display: flex; align-items: center; gap: 16px; }
.stat-card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white; }
.stat-card-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.stat-card-value { font-size: 1.6rem; font-weight: 800; color: white; display: block; }
.admin-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-panel { padding: 28px; border-radius: var(--radius-md); background: #1f2937; border: 1px solid #374151; }
.admin-panel h3 { display: flex; align-items: center; gap: 10px; color: white; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.admin-action-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid #374151; background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; }
.admin-action-btn:hover { background: rgba(96,165,250,0.1); color: white; }
.admin-table-wrap { border-radius: var(--radius-md); overflow: hidden; background: #1f2937; border: 1px solid #374151; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 14px 16px; text-align: left; font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 600; border-bottom: 1px solid #374151; }
.admin-table td { padding: 12px 16px; font-size: 0.88rem; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }
.admin-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.admin-plan-card { padding: 28px; border-radius: var(--radius-md); background: #1f2937; border: 1px solid #374151; }
.plan-card-header h3 { color: white; font-size: 1.2rem; font-weight: 700; margin: 0; }
.plan-card-price { font-size: 2rem; font-weight: 800; color: white; margin: 16px 0; }
.plan-card-price span { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.4); }
.plan-card-features div { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.badge-green { background: rgba(67,233,123,0.15); color: #43e97b; }
.badge-red { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.badge-blue { background: rgba(79,172,254,0.15); color: #4facfe; }
.badge-purple { background: rgba(102,126,234,0.15); color: #a29bfe; }
.log-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(67,233,123,0.15); color: #43e97b; }
.badge-danger { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.badge-warning { background: rgba(255,187,46,0.15); color: #ffbb2e; }
.badge-info { background: rgba(79,172,254,0.15); color: #4facfe; }
.badge-secondary { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.glass-table { width: 100%; border-collapse: collapse; }
.glass-table th { padding: 14px 16px; text-align: left; font-size: 0.75rem; color: rgba(255,255,255,0.35); text-transform: uppercase; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); }
.glass-table td { padding: 12px 16px; font-size: 0.88rem; color: rgba(255,255,255,0.6); border-bottom: 1px solid rgba(255,255,255,0.03); }
.glass-table tr:hover td { background: rgba(255,255,255,0.02); }
.empty-cell { text-align: center; padding: 40px 16px !important; color: rgba(255,255,255,0.3) !important; }

/* Admin-specific forms (always dark) */
.admin-page .glass-input, .admin-page .glass-select {
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: white;
}
.admin-page .glass-input::placeholder { color: rgba(255,255,255,0.25); }
.admin-page .glass-select option { background: #1f2937; color: white; }
.admin-page .form-group label { color: rgba(255,255,255,0.6); }
.admin-page .glass-card-header h3 { color: white; }

/* Admin header: título à esquerda, botão à direita */
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-content { display: flex; flex-direction: column; gap: 20px; }

/* Botões btn-glass dentro do admin: padrão escuro consistente */
.admin-page .btn-glass { padding: 10px 22px; font-size: 0.88rem; border-radius: 10px; }
.admin-page .btn-glass.btn-solid { background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 4px 16px rgba(59,130,246,0.35); }
.admin-page .btn-glass.btn-solid:hover { box-shadow: 0 6px 24px rgba(59,130,246,0.5); }
.admin-page .btn-glass.btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid #374151; }
.admin-page .btn-glass.btn-glass-danger { background: rgba(234,67,53,0.12); color: #ff6b6b; border: 1px solid rgba(234,67,53,0.25); }
.admin-page .btn-glass.btn-glass-danger:hover { background: rgba(234,67,53,0.2); }
.admin-page .btn-glass.btn-glass-primary { background: linear-gradient(135deg, #3b82f6, #6366f1); color: white; }

/* Badges do admin */
.admin-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-gray { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

/* Ações por linha (tabela de usuários) */
.admin-action-group { display: flex; align-items: center; gap: 6px; }
.admin-action-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #374151; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: background 0.2s, color 0.2s; }
.admin-action-icon:hover { background: rgba(96,165,250,0.15); color: white; }
.admin-action-icon.danger { color: #ff6b6b; }
.admin-action-icon.danger:hover { background: rgba(234,67,53,0.15); color: #ff6b6b; }

/* Busca no admin */
.admin-search { padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius-md); }
.admin-page .auth-input-wrap { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid #374151; border-radius: 10px; padding: 0 14px; }
.admin-page .auth-input-wrap:focus-within { border-color: #3b82f6; }
.admin-page .auth-input-wrap i { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.admin-page .auth-input-wrap input { flex: 1; background: none; border: none; outline: none; color: white; padding: 11px 0; font-size: 0.9rem; }
.admin-page .auth-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.auth-select { flex: 1; background: none; border: none; outline: none; color: white; padding: 11px 0; font-size: 0.9rem; appearance: none; }
.auth-select option { background: #1f2937; color: white; }
.admin-page .auth-field { margin-bottom: 14px; }
.admin-page .auth-field > label { display: block; color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; }

/* Status do sistema (dashboard) */
.admin-status { display: flex; flex-direction: column; gap: 14px; }
.status-row { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.status-row span:nth-child(2) { flex: 1; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.status-dot.online { background: #43e97b; box-shadow: 0 0 8px rgba(67,233,123,0.6); }
.status-dot.error { background: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,0.6); }
.status-badge { font-size: 0.72rem; padding: 3px 10px; border-radius: 6px; font-weight: 600; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.status-badge.online { background: rgba(67,233,123,0.15); color: #43e97b; }
.status-badge.error { background: rgba(255,107,107,0.15); color: #ff6b6b; }

/* Ações rápidas + info dos cards */
.admin-actions { display: flex; flex-direction: column; gap: 10px; }
.stat-card-info { display: flex; flex-direction: column; }
.empty-state-small { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.4); }
.empty-state-small i { font-size: 2rem; margin-bottom: 12px; opacity: 0.5; display: block; }
.empty-state-small h5 { color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.empty-state-small p { font-size: 0.85rem; margin: 0; }

/* Planos */
.plan-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.plan-card-actions { display: flex; gap: 10px; margin-top: 20px; }

/* Navbar admin: toggler mobile + grupo à direita */
.admin-toggler { display: none; background: none; border: 1px solid #374151; border-radius: 8px; color: white; width: 38px; height: 38px; cursor: pointer; }
.admin-nav-right { margin-left: auto; }
.admin-page .stats-grid { display: grid; gap: 20px; }
@media (min-width: 769px) {
    #adminNavLinks { display: flex !important; flex-basis: auto; align-items: center; flex-grow: 1; }
}
@media (max-width: 768px) {
    .admin-toggler { display: inline-flex; align-items: center; justify-content: center; }
    #adminNavLinks { flex-basis: 100%; padding: 12px 0; }
    .admin-nav { flex-direction: column; align-items: stretch; width: 100%; }
    .admin-nav-right { margin-left: 0; }
    .admin-header { flex-direction: column; align-items: stretch; }
}

.toggle-switch { display: flex; align-items: center; gap: 12px; }
.toggle-switch input[type="checkbox"] { display: none; }
.toggle-switch label { width: 44px; height: 24px; border-radius: 12px; background: rgba(255,255,255,0.1); cursor: pointer; position: relative; transition: background 0.3s; }
.toggle-switch label::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.3s; }
.toggle-switch input:checked + label { background: linear-gradient(135deg, #667eea, #764ba2); }
.toggle-switch input:checked + label::after { left: 23px; background: white; }
.toggle-switch span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════
   TOAST — High contrast, always readable
   ══════════════════════════════════════════════════════════════ */

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 300px; max-width: 420px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease-out; }
.toast .toast-body { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 0.88rem; color: var(--text-primary); }
.toast .toast-body .text-success { color: var(--success) !important; }
.toast .toast-body .text-danger { color: var(--danger) !important; }
.toast .toast-body .text-primary { color: var(--accent) !important; }
.toast .btn-close { filter: var(--btn-close-filter); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ══════════════════════════════════════════════════════════════
   FLOATING COMPOSE PANEL (Gmail-style)
   ══════════════════════════════════════════════════════════════ */

.compose-float-panel {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    animation: composeSlideUp 0.2s ease-out;
}
@keyframes composeSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.compose-float-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    user-select: none;
}
.compose-float-titlebar h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}
.compose-float-actions { display: flex; gap: 2px; }
.compose-float-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 0.75rem;
}
.compose-float-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}
.compose-float-body {
    display: flex;
    flex-direction: column;
    max-height: 60vh;
    overflow: hidden;
}
.compose-float-fields {
    border-bottom: 1px solid var(--border-color);
}
.compose-float-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}
.compose-float-row:last-child { border-bottom: none; }
.compose-float-row label {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 50px;
    flex-shrink: 0;
    margin: 0;
}
.compose-float-row input,
.compose-float-select {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    padding: 0;
    font-family: inherit;
}
.compose-float-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.compose-float-row input::placeholder {
    color: var(--text-muted);
}
.compose-float-editor {
    min-height: 180px;
    max-height: 40vh;
    overflow-y: auto;
    padding: 12px 16px;
    color: var(--text-primary);
    outline: none;
    line-height: 1.6;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.compose-float-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}
.compose-float-attachments {
    padding: 6px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.compose-float-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
}
.compose-float-action-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.compose-float-send {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.compose-float-send:hover {
    background: var(--accent-hover);
}
.compose-float-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.compose-float-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}
.compose-float-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.compose-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.82rem;
}
.compose-float-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.compose-float-icon.text-danger { color: var(--danger); }
.compose-float-icon.text-danger:hover { background: rgba(234,67,53,0.08); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-section .container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .phone-mockup { width: 360px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-2col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mail-sidebar { display: none; }
    .compose-float-panel { right: 8px; left: 8px; width: auto; max-width: none; bottom: 0; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured.animate-in { transform: none; }
    .steps-grid { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-page { padding: 20px 16px; }
    .admin-table-wrap { overflow-x: auto; }
    .auth-glass-card { padding: 32px 24px; }
    .settings-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .admin-stats-grid { grid-template-columns: 1fr; }
    .compose-float-panel { right: 0; left: 0; width: 100%; border-radius: 0; }
    .compose-float-send { padding: 8px 18px; font-size: 0.82rem; }
    .compose-float-secondary { padding: 6px 10px; font-size: 0.78rem; }
    .compose-float-editor { min-height: 140px; }
}

/* ══════════════════════════════════════════════════════════════
   GMAIL LAYOUT (2024-like)
   ══════════════════════════════════════════════════════════════ */
.gmail { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--bg-primary); font-family: "Google Sans", Roboto, Arial, sans-serif; }
.gmail-header { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-primary); min-height: 64px; }
.gh-left { display: flex; align-items: center; gap: 4px; min-width: 238px; }
.gh-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-secondary); font-size: 22px; padding: 0 8px; }
.gh-logo span { color: var(--text-secondary); }
.gh-search-wrap { flex: 1; max-width: 720px; position: relative; }
.gh-search { display: flex; align-items: center; gap: 4px; background: var(--bg-tertiary); border-radius: 24px; padding: 2px 8px; border: 1px solid transparent; }
.gh-search.focused { background: var(--bg-secondary); border-color: var(--border-color); box-shadow: var(--shadow-md); }
.gh-search input { flex: 1; border: none; outline: none; background: none; color: var(--text-primary); font-size: 15px; padding: 10px 4px; }
.gh-search-options { position: absolute; top: 110%; left: 0; right: 0; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 16px; z-index: 1200; }
.gh-opt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gh-opt-row label { width: 70px; color: var(--text-secondary); font-size: 13px; }
.gh-opt-row input[type="text"], .gh-opt-row input:not([type]) { flex: 1; border: none; border-bottom: 1px solid var(--border-color); background: none; outline: none; color: var(--text-primary); padding: 6px 4px; }
.gh-opt-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.gh-opt-hint { margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.gh-opt-hint code { background: var(--bg-tertiary); padding: 1px 6px; border-radius: 4px; }
.gh-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gh-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: none; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.gh-icon-btn:hover { background: var(--bg-hover); }
.gh-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1a73e8; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; margin-left: 8px; }
.gmail-body { display: flex; flex: 1; overflow: hidden; }
.gmail-sidebar { width: 256px; flex-shrink: 0; padding: 0 12px 12px 8px; overflow-y: auto; display: flex; flex-direction: column; }
.gmail.sidebar-collapsed .gmail-sidebar { width: 72px; }
.gmail.sidebar-collapsed .gmail-sidebar .gs-item span, .gmail.sidebar-collapsed .gmail-sidebar .gs-count, .gmail.sidebar-collapsed .gs-section-label, .gmail.sidebar-collapsed .gs-user-info, .gmail.sidebar-collapsed .gs-section span, .gmail.sidebar-collapsed .gs-compose span { display: none; }
.gs-compose-wrap { padding: 8px 0 16px 4px; }
.gs-compose { display: inline-flex; align-items: center; gap: 12px; background: var(--bg-secondary); border: none; border-radius: 16px; padding: 16px 24px 16px 18px; font-size: 14px; font-weight: 500; color: var(--text-primary); box-shadow: var(--shadow-md); cursor: pointer; }
.gs-compose:hover { box-shadow: var(--shadow-lg); background: var(--bg-hover); }
.gs-compose i { font-size: 15px; }
.gs-nav { flex: 1; }
.gs-item { display: flex; align-items: center; gap: 18px; padding: 0 12px 0 26px; height: 32px; border-radius: 0 16px 16px 0; color: var(--text-secondary); font-size: 14px; cursor: pointer; }
.gs-item:hover { background: var(--bg-hover); }
.gs-item.active { background: #d3e3fd; color: #001d35; font-weight: 600; }
body.dark-mode .gs-item.active { background: rgba(96,165,250,.2); color: #dbeafe; }
.gs-item i { width: 20px; text-align: center; }
.gs-count { margin-left: auto; font-size: 12px; }
.gs-section { display: flex; align-items: center; gap: 18px; padding: 0 12px 0 26px; height: 32px; color: var(--text-secondary); font-size: 14px; cursor: pointer; border-radius: 0 16px 16px 0; }
.gs-section:hover { background: var(--bg-hover); }
.gs-section-label { padding: 12px 12px 4px 26px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.gs-user { display: flex; gap: 10px; align-items: center; padding: 12px 8px 4px 18px; border-top: 1px solid var(--border-color); margin-top: 8px; min-height: 56px; }
.gs-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #0b57d0; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.gs-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gs-user-info span { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gs-user-info small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gs-user-settings { flex-shrink: 0; opacity: 0; }
.gs-user:hover .gs-user-settings { opacity: 1; }
.gmail-main { flex: 1; background: var(--bg-secondary); border-radius: 16px; margin: 0 16px 16px 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); }
.gm-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px; border-bottom: 1px solid var(--border-color); min-height: 48px; }
.gm-tool-group { display: flex; align-items: center; gap: 2px; }
.gm-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.gm-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.gm-icon-btn.sm { width: 28px; height: 28px; font-size: 13px; }
.gm-icon-btn.danger { color: var(--danger); }
.gm-sep { width: 1px; height: 20px; background: var(--border-color); margin: 0 8px; }
.gm-pagination { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.gmail-check { width: 16px; height: 16px; accent-color: #1a73e8; cursor: pointer; }
.gm-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.gm-tab { flex: 1; max-width: 250px; border: none; background: none; padding: 12px 16px; font-size: 14px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: 10px; border-bottom: 3px solid transparent; }
.gm-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; font-weight: 500; }
body.dark-mode .gm-tab.active { color: #93c5fd; border-bottom-color: #93c5fd; }
.gmail-list { flex: 1; overflow-y: auto; }
body.density-compact .gr-row { min-height: 32px; padding-top: 2px; padding-bottom: 2px; }
.gr-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border-color); cursor: pointer; min-height: 44px; }
.gr-row:hover { box-shadow: inset 0 -1px 0 var(--border-color), 0 1px 4px rgba(0,0,0,.15); z-index: 1; position: relative; }
.gr-row.unread { background: #fff; font-weight: 700; }
body.dark-mode .gr-row.unread { background: rgba(255,255,255,.04); }
.gr-row.selected { background: #c2e7ff; }
body.dark-mode .gr-row.selected { background: rgba(96,165,250,.18); }
.gr-star { color: var(--text-muted); cursor: pointer; width: 24px; text-align: center; }
.gr-star.active, .gr-star:hover { color: #f9ab00; }
.gr-sender { width: 180px; flex-shrink: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.gr-row:not(.unread) .gr-sender { font-weight: 400; }
.gr-subject { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.gr-subject b { color: var(--text-primary); font-weight: 600; }
.gr-row:not(.unread) .gr-subject b { font-weight: 400; }
.gr-clip { color: var(--text-muted); font-size: 12px; }
.gr-date { font-size: 12px; color: var(--text-secondary); white-space: nowrap; margin-left: 12px; }
.gr-row.unread .gr-date { color: var(--text-primary); font-weight: 700; }
.gm-loading { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.gm-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.gm-empty i { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.gmail-btn { display: inline-flex; align-items: center; gap: 8px; background: #0b57d0; color: #fff; border: none; border-radius: 18px; padding: 10px 24px; font-size: 14px; font-weight: 500; cursor: pointer; }
.gmail-btn:hover { background: #0842a0; box-shadow: var(--shadow-md); }
.gmail-btn.sm { padding: 6px 16px; font-size: 13px; }
.gmail-btn:disabled { opacity: .6; }
.gmail-btn-text { background: none; border: none; color: #0b57d0; font-size: 14px; cursor: pointer; padding: 6px 8px; border-radius: 4px; }
body.dark-mode .gmail-btn-text { color: #93c5fd; }
.gmail-btn-text:hover { background: var(--bg-hover); }
.gmail-btn-text.sm { font-size: 12px; }
.gmail-input, .gmail-select { border: 1px solid var(--border-color); border-radius: 4px; padding: 8px 12px; font-size: 14px; color: var(--text-primary); background: var(--bg-input); outline: none; }
.gmail-input:focus, .gmail-select:focus { border-color: #0b57d0; box-shadow: 0 0 0 1px #0b57d0; }
/* compose */
.gmail-compose { position: fixed; bottom: 0; right: 24px; width: 560px; max-width: calc(100vw - 32px); background: var(--bg-secondary); border-radius: 8px 8px 0 0; box-shadow: var(--shadow-lg); z-index: 1300; display: flex; flex-direction: column; border: 1px solid var(--border-color); border-bottom: none; }
.gc-header { display: flex; align-items: center; justify-content: space-between; background: var(--bg-tertiary); padding: 10px 16px; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px 8px 0 0; }
.gc-header-btns { display: flex; gap: 2px; }
.gc-hbtn { width: 28px; height: 28px; border-radius: 4px; border: none; background: none; color: var(--text-secondary); cursor: pointer; }
.gc-hbtn:hover { background: var(--bg-hover); }
.gc-body { display: flex; flex-direction: column; max-height: 65vh; }
.gc-row { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--border-color); }
.gc-label { color: var(--text-muted); font-size: 13px; width: 48px; flex-shrink: 0; }
.gc-input { flex: 1; border: none; outline: none; background: none; color: var(--text-primary); font-size: 14px; font-family: inherit; }
.gc-editor { min-height: 220px; max-height: 40vh; overflow-y: auto; padding: 12px 16px; outline: none; font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.gc-editor:empty::before { content: attr(data-placeholder); color: var(--text-muted); }
.gc-format { display: flex; gap: 2px; padding: 4px 12px; border-top: 1px solid var(--border-color); }
.gc-attach { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px; }
.gc-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 16px; padding: 4px 8px 4px 12px; font-size: 12px; color: var(--text-secondary); }
.gc-chip button { border: none; background: none; color: var(--text-muted); cursor: pointer; }
.gc-footer { display: flex; align-items: center; gap: 6px; padding: 10px 16px; }
.gmail-btn-send { display: inline-flex; align-items: center; gap: 8px; background: #0b57d0; color: #fff; border: none; border-radius: 18px; padding: 10px 28px; font-weight: 500; cursor: pointer; }
.gmail-btn-send:hover { background: #0842a0; }
/* reading */
.gm-read { flex: 1; overflow-y: auto; padding: 20px 32px; }
.gm-subject { font-size: 22px; font-weight: 400; margin: 8px 0 16px; color: var(--text-primary); }
.gm-msg { background: var(--bg-secondary); }
.gm-msg-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.gm-avatar { width: 40px; height: 40px; border-radius: 50%; background: #0b57d0; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.gm-avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.gm-head-main { flex: 1; min-width: 0; }
.gm-from-row { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.gm-from-addr { color: var(--text-muted); font-size: 12px; }
.gm-to-row { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.gm-details { font-size: 12px; color: var(--text-secondary); background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.gm-head-side { display: flex; align-items: center; gap: 2px; }
.gm-date { font-size: 12px; color: var(--text-muted); margin-right: 8px; white-space: nowrap; }
.gm-body { padding: 20px 0; font-size: 14px; line-height: 1.7; color: var(--text-primary); overflow-wrap: anywhere; }
.gm-body img { max-width: 100%; height: auto; }
.gm-body pre { white-space: pre-wrap; background: var(--bg-tertiary); padding: 12px; border-radius: 8px; }
.gm-attach-wrap { border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: 8px; }
.gm-attach-title { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.gm-attach-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-attach-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text-primary); text-decoration: none; background: var(--bg-tertiary); }
.gm-attach-chip:hover { background: var(--bg-hover); }
.gm-attach-chip small { color: var(--text-muted); }
.gm-translate { margin-top: 12px; }
.gm-translation-result { margin-top: 8px; background: var(--accent-light); border: 1px solid var(--accent); border-radius: 8px; padding: 12px; font-size: 14px; }
.gm-reply-bar { display: flex; gap: 8px; margin: 16px 0; }
.gm-quick { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border-color); border-radius: 24px; padding: 6px 8px 6px 6px; }
.gm-quick .gmail-input { flex: 1; border: none; }
.gm-quick .gmail-input:focus { box-shadow: none; }
@media (max-width: 768px) {
    .gmail-sidebar { position: absolute; z-index: 1100; background: var(--bg-secondary); height: calc(100vh - 64px); box-shadow: var(--shadow-lg); display: none; }
    .gmail:not(.sidebar-collapsed) .gmail-sidebar { display: flex; }
    .gh-left { min-width: auto; }
    .gh-search-wrap { max-width: none; }
    .gr-sender { width: 110px; }
    .gmail-main { margin: 0 8px 8px 8px; }
    .gm-read { padding: 12px; }
    .gmail-compose { right: 0; left: 0; width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   GMAIL/PROTON THEME — neutraliza o Bootstrap dentro do .gmail
   ══════════════════════════════════════════════════════════════ */
.gmail .dropdown-menu, .gmail-modal .dropdown-menu {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.18);
    padding: 6px; min-width: 220px; font-size: 14px;
}
.gmail .dropdown-item, .gmail-modal .dropdown-item {
    color: var(--text-primary); border-radius: 6px; padding: 9px 12px;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    background: none; border: none; width: 100%; text-align: left; font-size: 14px;
}
.gmail .dropdown-item:hover, .gmail-modal .dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.gmail .dropdown-divider { border-color: var(--border-color); opacity: 1; }
.gmail-modal .modal-content {
    background: var(--bg-secondary); color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25); overflow: hidden;
}
.gmail-modal .modal-header { border-bottom: 1px solid var(--border-color); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.gmail-modal .modal-title { font-size: 16px; font-weight: 500; margin: 0; }
.gmail-modal .modal-body { padding: 20px; }
.gmail-modal .modal-footer { border-top: 1px solid var(--border-color); padding: 12px 20px; display: flex; justify-content: flex-end; gap: 8px; }
/* Settings no padrão Gmail/Proton */
.gmail-settings { overflow-y: auto; padding: 24px 32px; }
.gmail-settings .settings-page { padding: 0; max-width: 960px; margin: 0; }
.gmail-settings .page-title { font-size: 22px; font-weight: 400; }
.gmail-settings .page-subtitle { font-size: 14px; }
.gmail-settings .settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.gmail-settings .settings-nav { background: none; border: none; padding: 0; gap: 2px; }
.gmail-settings .settings-nav-item { border-radius: 0 16px 16px 0; padding: 8px 12px 8px 20px; font-size: 14px; }
.gmail-settings .glass-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: none; }
.gmail-settings .glass-card:hover { transform: none; box-shadow: none; }
.gmail-settings .glass-card-header { padding: 16px 20px; }
.gmail-settings .glass-card-header h3 { font-size: 15px; font-weight: 500; }
.gmail-settings .glass-card-body { padding: 20px; }
.gmail-settings .glass-input, .gmail-settings .glass-select {
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 10px 12px; font-size: 14px;
}
.gmail-settings .glass-input:focus, .gmail-settings .glass-select:focus { border-color: #0b57d0; box-shadow: 0 0 0 1px #0b57d0; }
.gmail-settings .account-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; }
.gmail-settings .account-card:hover { border-color: var(--border-color); background: var(--bg-hover); }
.gmail-settings .form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 768px) { .gmail-settings { padding: 12px; } .gmail-settings .settings-grid { grid-template-columns: 1fr; } .gmail-settings .form-row { grid-template-columns: 1fr; } }

/* SweetAlert2 no padr\u00e3o Materio */
.bzp-swal { border-radius: 16px !important; font-family: inherit !important; }
.bzp-swal .swal2-confirm, .bzp-swal .swal2-cancel { border-radius: 8px !important; }
body.dark-mode .swal2-popup.bzp-swal { background: #2b2c40 !important; color: #e7e3fc !important; }
body.dark-mode .bzp-swal .swal2-html-container, body.dark-mode .bzp-swal .swal2-title { color: #e7e3fc !important; }
body.dark-mode .bzp-swal .swal2-input { background: #232333 !important; color: #e7e3fc !important; border-color: #434968 !important; }

