/* ============================================
   FINANCEIROCLOUD - MAIN STYLESHEET
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');

:root {
  --green:    #10b981;
  --green-d:  #059669;
  --green-l:  #d1fae5;
  --blue:     #3b82f6;
  --blue-d:   #1d4ed8;
  --dark:     #0f172a;
  --dark2:    #1e293b;
  --dark3:    #334155;
  --gray:     #64748b;
  --gray-l:   #94a3b8;
  --light:    #f1f5f9;
  --white:    #ffffff;
  --danger:   #ef4444;
  --warning:  #f59e0b;
  --info:     #06b6d4;
  --radius:   12px;
  --radius-s: 8px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-l: 0 12px 48px rgba(0,0,0,.14);
  --font:     'Roboto', sans-serif;
  --font-b:   'Roboto', sans-serif;
  --transition: all .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); color: var(--dark); background: var(--white); line-height: 1.6; }
body:not(.admin-body) { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-s); border: none;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary   { background: var(--green); color: #fff; }
.btn-primary:hover   { background: var(--green-d); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.35); }
.btn-secondary { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn-dark      { background: var(--dark); color: #fff; }
.btn-dark:hover{ background: var(--dark2); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm        { padding: 7px 16px; font-size: .82rem; }
.btn-lg        { padding: 16px 40px; font-size: 1.05rem; }
.btn-block     { width: 100%; justify-content: center; }

/* ===== BADGES ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; font-family: var(--font);
}
.badge-success   { background: #d1fae5; color: #065f46; }
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #e2e8f0; color: #475569; }
.badge-info      { background: #cffafe; color: #164e63; }
.badge-dark      { background: #1e293b; color: #f8fafc; }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-s); margin-bottom: 20px;
  font-size: .9rem; font-family: var(--font); font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--green); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: #cffafe; color: #164e63; border-left: 4px solid var(--info); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--dark); font-family: var(--font); }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-s); font-size: .95rem; color: var(--dark);
  background: var(--white); font-family: var(--font-b);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.form-control.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid #e2e8f0; overflow: hidden; width: 100%;
}
.card-header { padding: 18px 24px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1.05rem; color: var(--dark); margin: 0; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid #e2e8f0; background: var(--light); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #e2e8f0; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { background: var(--light); }
thead th { padding: 12px 16px; font-family: var(--font); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfd; }

/* ===== NAVBAR PÚBLICA ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%; background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; transition: var(--transition);
}
.navbar-brand { font-family: var(--font); font-weight: 800; font-size: 1.3rem; color: var(--dark); }
.navbar-brand span { color: var(--green); }
.navbar-nav { display: flex; align-items: center; gap: 30px; list-style: none; }
.navbar-nav a { color: var(--dark3); font-weight: 500; font-size: .9rem; font-family: var(--font); transition: var(--transition); }
.navbar-nav a:hover { color: var(--green); }
.navbar-actions { display: flex; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2f1f 100%);
  padding: 100px 5% 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(16,185,129,.18) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); color: var(--green); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--font); margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--green); }
.hero-sub { color: #94a3b8; font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: var(--font); font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat span { font-size: .8rem; color: #64748b; }
.hero-mockup { position: relative; }
.mockup-window {
  background: #1e293b; border-radius: 14px; padding: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.mockup-bar { background: #0f172a; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar .red { background: #ef4444; }
.mockup-bar .yellow { background: #f59e0b; }
.mockup-bar .green { background: #10b981; }
.mockup-content { padding: 20px; }
.mockup-dashboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.mockup-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 14px; }
.mockup-card .label { color: #64748b; font-size: .65rem; margin-bottom: 4px; text-transform: uppercase; }
.mockup-card .value { color: #fff; font-size: 1.1rem; font-weight: 700; font-family: var(--font); }
.mockup-card .value.green { color: var(--green); }
.mockup-card .value.red { color: #ef4444; }
.mockup-bar-chart { background: rgba(255,255,255,.03); border-radius: 8px; padding: 14px; height: 80px; display: flex; align-items: flex-end; gap: 5px; }
.mockup-bar-chart div { background: var(--green); border-radius: 3px 3px 0 0; flex: 1; opacity: .7; transition: all .3s; }
.mockup-bar-chart div:hover { opacity: 1; }

/* ===== SECTIONS ===== */
.section { padding: 90px 5%; }
.section-alt { background: var(--light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .tag { display: inline-block; background: var(--green-l); color: var(--green-d); padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.section-title h2 { margin-bottom: 14px; }
.section-title p { color: var(--gray); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  padding: 28px; border-radius: var(--radius); border: 1px solid #e2e8f0;
  background: var(--white); transition: var(--transition); cursor: default;
}
.feature-card:hover { box-shadow: var(--shadow-l); transform: translateY(-4px); border-color: var(--green); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: .9rem; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  border-radius: var(--radius); border: 2px solid #e2e8f0;
  background: var(--white); padding: 36px; text-align: center;
  transition: var(--transition); position: relative;
}
.pricing-card.destaque { border-color: var(--green); background: linear-gradient(135deg, #0f2f1f, #1e293b); color: #fff; }
.pricing-card.destaque h3, .pricing-card.destaque .price, .pricing-card.destaque li { color: #fff !important; }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; padding: 4px 16px; border-radius: 999px; font-size: .75rem; font-weight: 700; font-family: var(--font); white-space: nowrap; }
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price { font-family: var(--font); margin: 16px 0; }
.price .currency { font-size: 1.2rem; vertical-align: super; }
.price .amount { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.price .period { font-size: .85rem; color: var(--gray-l); }
.price-economia { background: rgba(16,185,129,.15); color: var(--green); padding: 4px 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; display: inline-block; margin-bottom: 16px; }
.pricing-features { list-style: none; margin: 20px 0 28px; text-align: left; }
.pricing-features li { padding: 7px 0; color: var(--dark3); font-size: .9rem; display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid #e2e8f0; }
.stars { color: #f59e0b; margin-bottom: 14px; font-size: 1rem; }
.testimonial-card p { color: var(--dark3); font-size: .92rem; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-l); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font); color: var(--green-d); font-size: 1.1rem; overflow: hidden; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author strong { font-family: var(--font); font-size: .9rem; display: block; }
.testimonial-author small { color: var(--gray); font-size: .78rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid #e2e8f0; border-radius: var(--radius-s); margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: .95rem; background: var(--white); transition: var(--transition); }
.faq-question:hover { background: var(--light); }
.faq-question .icon { transition: transform .3s; font-style: normal; }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }
.faq-answer p { color: var(--gray); font-size: .9rem; line-height: 1.7; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #065f46, #0f172a);
  padding: 90px 5%; text-align: center; color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: #94a3b8; font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: #94a3b8; padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand strong { font-family: var(--font); font-size: 1.2rem; color: #fff; }
.footer-brand strong span { color: var(--green); }
.footer-brand p { font-size: .875rem; margin-top: 10px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font); font-weight: 600; color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #64748b; font-size: .875rem; transition: var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; font-size: .8rem; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: linear-gradient(135deg, #0f172a, #065f46); display: flex; flex-direction: column; justify-content: center; padding: 60px; color: #fff; }
.auth-left h2 { font-size: 2rem; margin-bottom: 14px; color: #fff; }
.auth-left p { color: #94a3b8; font-size: 1rem; }
.auth-right { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 40px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-logo { font-family: var(--font); font-weight: 800; font-size: 1.4rem; color: var(--dark); margin-bottom: 30px; display: block; }
.auth-logo span { color: var(--green); }
.auth-title { font-size: 1.5rem; margin-bottom: 6px; }
.auth-sub { color: var(--gray); font-size: .9rem; margin-bottom: 28px; }
.auth-divider { text-align: center; margin: 18px 0; color: var(--gray-l); font-size: .85rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 45%; height: 1px; background: #e2e8f0; }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ===== ADMIN LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; overflow-x: hidden; }
.admin-sidebar {
  width: 260px; background: var(--dark); flex-shrink: 0;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
  overflow-y: auto; z-index: 100;
}
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-logo a { font-family: var(--font); font-weight: 800; font-size: 1.1rem; color: #fff; text-decoration: none; }
.admin-logo a span { color: var(--green); }
.admin-logo small { display: block; color: #475569; font-size: .7rem; margin-top: 2px; }
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-section { padding: 6px 20px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #475569; font-family: var(--font); margin-top: 16px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: #94a3b8; font-size: .875rem; font-family: var(--font); font-weight: 500;
  transition: var(--transition); text-decoration: none; border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--green); }
.sidebar-nav a .ico { font-size: 1.05rem; width: 20px; text-align: center; }
.admin-topbar {
  position: fixed; top: 0; left: 260px; right: 0; height: 64px; z-index: 99;
  background: var(--white); border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
}
.admin-main { flex: 1; min-width: 0; margin-left: 260px; padding-top: 64px; min-height: 100vh; background: var(--light); width: calc(100% - 260px); }
.admin-content { padding: 28px; width: 100%; box-sizing: border-box; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.4rem; margin: 0; }
.page-header p { color: var(--gray); font-size: .9rem; margin: 4px 0 0; }

/* ===== DASHBOARD CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid #e2e8f0; padding: 20px 24px; }
.stat-card .stat-label { color: var(--gray); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-family: var(--font); }
.stat-card .stat-value { font-family: var(--font); font-size: 1.9rem; font-weight: 800; color: var(--dark); margin: 4px 0; }
.stat-card .stat-icon { font-size: 1.8rem; float: right; margin-top: -36px; opacity: .7; }
.stat-card .stat-change { font-size: .78rem; color: var(--green); font-weight: 600; }

/* ===== AREA CLIENTE ===== */
.client-layout { display: flex; min-height: 100vh; }
.client-sidebar {
  width: 240px; background: #0f172a; position: fixed; top: 0; bottom: 0;
  overflow-y: auto; display: flex; flex-direction: column;
}
.client-main { margin-left: 240px; min-height: 100vh; background: var(--light); }
.client-topbar { background: var(--white); border-bottom: 1px solid #e2e8f0; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.client-content { padding: 24px; }

/* ===== SUBSCRIPTION STATUS ===== */
.sub-status-bar { border-radius: var(--radius-s); padding: 14px 18px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub-status-bar.ativa { background: #d1fae5; border: 1px solid #a7f3d0; }
.sub-status-bar.vencida, .sub-status-bar.cancelada { background: #fee2e2; border: 1px solid #fca5a5; }
.sub-status-bar.pendente { background: #fef3c7; border: 1px solid #fde68a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 40px; }
}

/* ===== TABLET (max 768px) ===== */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; padding: 20px; gap: 16px;
    border-bottom: 1px solid #e2e8f0; box-shadow: var(--shadow);
    z-index: 9998;
  }
  .menu-toggle { display: flex; }
  .navbar-actions { gap: 8px; }
  .navbar-actions .btn:first-child { display: none; }

  /* Hero */
  .hero { min-height: auto; padding: 100px 5% 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-mockup { display: none; }
  .hero-stats { gap: 20px; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-sub { font-size: 1rem; }

  /* Sobre – inline grid fix */
  .sobre-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .sobre-checks { grid-template-columns: 1fr 1fr !important; }

  /* Sections */
  .section { padding: 60px 5%; }
  .section-title { margin-bottom: 36px; }

  /* Grids */
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Auth */
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }

  /* Admin */
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-topbar { left: 0; }
  .admin-main { margin-left: 0; width: 100%; }
  .client-sidebar { transform: translateX(-100%); }
  .client-main { margin-left: 0; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Table overflow */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }
}

/* ===== MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .navbar { padding: 0 16px; }
  .btn-lg { padding: 13px 22px; font-size: .9rem; }
  .btn { padding: 10px 20px; font-size: .88rem; }

  .hero { padding: 90px 16px 48px; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 14px; }
  .hero-stat strong { font-size: 1.4rem; }

  /* Sobre */
  .sobre-checks { grid-template-columns: 1fr !important; }

  /* Section */
  .section { padding: 48px 16px; }
  .section-title h2 { font-size: 1.5rem; }
  .section-title p { font-size: .93rem; }

  /* Feature cards */
  .feature-card { padding: 20px; }

  /* Pricing */
  .pricing-card { padding: 24px 20px; }

  /* Testimonials */
  .testimonial-card { padding: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 40px 16px 16px; }

  /* Grids */
  .stats-grid { grid-template-columns: 1fr; }

  /* Admin */
  .admin-content { padding: 16px; }
  .page-header h1 { font-size: 1.3rem; }
  .card-body { padding: 16px; }

  /* Blog cards inline */
  .blog-grid-home { grid-template-columns: 1fr !important; }
}

/* ===== EXTRA SMALL (max 360px) ===== */
@media (max-width: 360px) {
  .navbar-brand { font-size: 1.1rem; }
  .hero h1 { font-size: 1.4rem; }
  .sobre-checks { grid-template-columns: 1fr !important; }
}
