:root {
  --primary: #0F4C45;
  --secondary: #1A6B62;
  --gradient: linear-gradient(135deg, #0F4C45, #00BFA5);
  --bg-gradient: linear-gradient(135deg,
    #F8FAFC 0%, #EEF6F5 55%, #FCFCFD 100%);
  --text-dark: #0F172A;
  --text-light: #64748B;
  --white: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 16px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: 76px;
}

body.auth-layout {
  padding-top: 0;
}

body.dashboard-page {
  padding-top: 0;
  background: #F8FAFC;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

main section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--primary);
}

.nav-links {
  display: none;
}

.nav-link {
  color: #334155;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease, border-color 0.3s ease;
}

.mobile-nav.open {
  max-height: 260px;
  border-color: rgba(15, 23, 42, 0.08);
}

.mobile-nav .container {
  display: grid;
  gap: 2px;
  padding: 10px 0 12px;
}

.mobile-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding-inline: 2px;
  color: #334155;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--primary);
}

.btn {
  border: none;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(0, 137, 123, 0.35);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-ghost {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.step-card,
.feature-card,
.testimonial-card,
.panel,
.dash-card,
.plan-card,
.auth-card,
.faq-item,
.stats-grid,
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.feature-card,
.testimonial-card,
.step-card,
.plan-card,
.faq-item,
.panel,
.dash-card,
.auth-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.feature-card,
.testimonial-card,
.step-card {
  padding: 24px;
}

.feature-card,
.testimonial-card,
.step-card,
.plan-card,
.dash-card,
.faq-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.testimonial-card:hover,
.step-card:hover,
.plan-card:hover,
.dash-card:hover,
.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.hero {
  position: relative;
  padding: 60px 0 110px;
  overflow: hidden;
  background: #0a192f;
  min-height: 600px;
}

.hero-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  object-fit: cover !important;
  display: block !important;
}

.hero-video-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, rgba(10, 27, 51, 0.95) 0%, rgba(15, 118, 110, 0.85) 100%) !important;
  z-index: 1 !important;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 137, 123, 0.35);
  background: rgba(255, 255, 255, 0.68);
  color: #0F766E;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 9vw, 3.35rem);
  line-height: 1.1;
}

.hero-copy p {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust {
  margin-top: 14px;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  inset: auto 0 10% 0;
  margin-inline: auto;
  width: min(94%, 390px);
  height: 250px;
  background: var(--gradient);
  border-radius: 40%;
  filter: blur(52px);
  opacity: 0.34;
}

.chat-card {
  position: relative;
  width: min(100%, 430px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  animation: float 4.8s ease-in-out infinite;
}

.chat-head {
  padding: 14px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.status-dot,
.online-dot {
  border-radius: 50%;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.online-dot {
  width: 9px;
  height: 9px;
  background: #16A34A;
}

.chat-body {
  padding: 14px;
  display: grid;
  gap: 9px;
  background: #F8FAFC;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.bubble.customer {
  justify-self: start;
  background: #E2E8F0;
  border-bottom-left-radius: 4px;
}

.bubble.ai {
  justify-self: end;
  background: var(--gradient);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.stats {
  margin-top: -78px;
  padding-top: 0;
}

.stats-grid {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-card:nth-child(2n) {
  border-right: none;
}

.stat-card:nth-child(3),
.stat-card:nth-child(4) {
  border-bottom: none;
}

.stat-card h3 {
  color: var(--primary);
  font-size: clamp(1.6rem, 5.5vw, 2rem);
  line-height: 1.1;
  animation: counterPulse 1.6s ease-in-out infinite alternate;
}

.stat-card p {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.92rem;
}

#how-it-works {
  background: var(--white);
}

.steps-grid {
  display: grid;
  gap: 16px;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient);
}

.step-card p {
  color: var(--text-light);
  margin-top: 4px;
}

.features {
  background: var(--bg-gradient);
}

.features-grid {
  display: grid;
  gap: 16px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--gradient);
  margin-bottom: 10px;
}

.feature-card p {
  margin-top: 4px;
  color: var(--text-light);
}

.testimonial-grid {
  display: grid;
  gap: 16px;
}

.testimonial-card p {
  color: var(--text-light);
  font-style: italic;
}

.author {
  margin-top: 12px;
  font-weight: 600;
  color: #334155;
  font-size: 0.95rem;
}

.pricing-controls {
  margin-top: 18px;
  display: inline-flex;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.toggle-btn {
  min-height: 42px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn.active {
  color: var(--white);
  background: var(--gradient);
}

.pricing-grid {
  display: grid;
  gap: 16px;
}

.plan-card {
  padding: 24px;
  position: relative;
}

.plan-card.popular {
  border: 2px solid rgba(37, 99, 235, 0.45);
}

.popular-pill {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--white);
  background: #0F172A;
}

.plan-price {
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.plan-list {
  margin: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.plan-list li {
  color: #334155;
  font-size: 0.95rem;
}

.plan-list li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

.landing-cta {
  padding-top: 8px;
}

.cta-box {
  background: var(--gradient);
  border-radius: 24px;
  color: var(--white);
  text-align: center;
  padding: 44px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.cta-box h2 {
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1.2;
}

.cta-box p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-box .btn {
  margin-top: 14px;
}

.site-footer {
  margin-top: 48px;
  background: #0F172A;
  color: var(--white);
  padding: 36px 0 18px;
}

.footer-grid {
  display: grid;
  gap: 14px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.page-hero {
  background: var(--bg-gradient);
  padding: 56px 0 40px;
}

.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.12;
}

.page-hero p {
  margin-top: 10px;
  max-width: 740px;
  color: #334155;
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px;
}

.faq-item h4 {
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-light);
}

.auth-page {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background: var(--bg-gradient);
  padding: 24px 0 36px;
}

body.auth-layout .auth-page {
  min-height: 100vh;
  padding: 28px 0;
}

.auth-grid {
  display: grid;
  gap: 16px;
}

.auth-side {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.58);
  padding: 24px;
}

.auth-side h1 {
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  line-height: 1.1;
}

.auth-side p {
  margin-top: 10px;
  color: #334155;
}

.auth-points {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.auth-points li {
  color: #334155;
  font-size: 0.95rem;
}

.auth-points li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 8px;
}

.auth-card {
  padding: 24px;
}

.auth-card p {
  color: var(--text-light);
}

.form-row {
  margin-top: 12px;
}

.form-row label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: var(--white);
}

.input:focus {
  outline: none;
  border-color: rgba(0, 137, 123, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.18);
}

.form-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-feedback {
  min-height: 22px;
  margin-top: 8px;
  font-size: 0.92rem;
}

.form-feedback.error {
  color: #B91C1C;
}

.form-feedback.success {
  color: #047857;
}

.register-form .auth-card {
  border-top: 4px solid var(--secondary);
}

.auth-shell {
  width: min(100%, 540px);
  margin-inline: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 28px 22px;
}

.auth-logo {
  display: block;
  text-align: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
  background: #F8FAFC;
  margin-bottom: 18px;
}

.auth-tab-btn {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--gradient);
  color: var(--white);
}

.auth-panel {
  animation: fadeInUp 0.35s ease both;
}

.auth-panel[hidden] {
  display: none;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 66px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(0, 137, 123, 0.14);
  color: #0F766E;
}

.auth-muted {
  color: var(--text-light);
  font-size: 0.9rem;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-switch-text {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: #334155;
}

.auth-switch-text a {
  color: var(--secondary);
  font-weight: 600;
}

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

.dashboard-main {
  padding: 28px 0 56px;
}

.dashboard-layout {
  display: grid;
  gap: 18px;
}

.dashboard-sidebar {
  background: #0F4C45;
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--card-shadow);
}

.dashboard-sidebar .sidebar-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.sidebar-links {
  display: grid;
  gap: 6px;
}

.sidebar-links a {
  min-height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.84);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: rgba(0, 137, 123, 0.38);
  color: var(--white);
}

.sidebar-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-content {
  min-width: 0;
  background: #F8FAFC;
  border-radius: var(--radius);
  padding: 0;
}

.dashboard-topbar {
  min-height: 64px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-title {
  font-weight: 700;
  color: #0F172A;
}

.topbar-bell {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dashboard-body {
  padding: 16px 14px 0;
}

.entity-section {
  margin-top: 18px;
}

.entity-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.entity-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.entity-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.entity-media {
  height: 120px;
  background: linear-gradient(135deg, #DDEAFD 0%, #D5F7F0 100%);
  display: grid;
  place-items: center;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.entity-info {
  padding: 12px;
}

.entity-name {
  font-weight: 700;
}

.entity-price {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 700;
}

.entity-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.entity-actions button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}

.entity-actions button:hover {
  border-color: rgba(0, 137, 123, 0.4);
  color: #0F766E;
}

.status-card {
  padding: 16px;
}

.wa-status {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1090;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.45);
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  width: min(100%, 540px);
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  cursor: pointer;
}

.modal-body {
  padding: 14px 16px 16px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body.modal-open {
  overflow: hidden;
}

.dash-head {
  margin-bottom: 16px;
}

.dash-head h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.2;
}

.dash-head p {
  margin-top: 5px;
  color: var(--text-light);
}

.kpi-grid {
  display: grid;
  gap: 12px;
}

.dash-card {
  padding: 18px;
}

.kpi-value {
  font-size: clamp(1.5rem, 5vw, 1.95rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--primary);
}

.kpi-label {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.dashboard-grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.panel {
  padding: 16px;
}

.panel-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.search {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 0 12px;
}

.search:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

th {
  background: #F8FAFC;
  color: #334155;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status.done {
  color: #065F46;
  background: #D1FAE5;
}

.status.pending {
  color: #92400E;
  background: #FEF3C7;
}

.quick-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.quick-actions .btn {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeInUp 0.7s ease both;
}

.float {
  animation: float 4.8s ease-in-out infinite;
}

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

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

@keyframes counterPulse {
  0% {
    transform: scale(1);
    opacity: 0.88;
  }
  100% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .plan-card .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 85vw);
    border-radius: 0;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 1100;
    overflow-y: auto;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .topbar-title {
    font-size: 0.96rem;
    line-height: 1.25;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body {
    padding-top: 78px;
  }

  .container {
    width: min(1120px, calc(100% - 3rem));
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card {
    border-bottom: none;
  }

  .stat-card:nth-child(2n) {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  .stat-card:last-child {
    border-right: none;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .plan-card.popular {
    transform: scale(1.03);
  }

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

  .cta-box {
    padding: 56px 30px;
  }

  .auth-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .sidebar-toggle,
  .sidebar-overlay {
    display: none;
  }

  .search {
    width: 280px;
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  body {
    padding-top: 80px;
  }

  .container {
    width: min(1180px, calc(100% - 4rem));
  }

  main section {
    padding: 92px 0;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
  }

  .hero-copy p {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card {
    border-bottom: none;
  }

  .stat-card:nth-child(2n) {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  .stat-card:last-child {
    border-right: none;
  }

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

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

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

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

  .plan-card.popular {
    transform: scale(1.05);
  }

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

  .cta-box {
    padding: 62px 40px;
  }

  .auth-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
  }

  .dashboard-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 18px;
  }

  .search {
    width: 320px;
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-toggle,
  .sidebar-overlay {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

/* Dashboard Redesign */
.dashboard-page {
  --primary: #0F4C45;
  --primary-light: #1a6b62;
  --accent: #00BFA5;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 12px;
  background: var(--bg);
  color: var(--text-dark);
  padding-top: 0;
}

.dashboard-page main section {
  padding: 0;
}

.dashboard-page .dashboard-main {
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
}

.dashboard-page .dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dashboard-page .dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0;
  box-shadow: none;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  z-index: 1100;
}

.dashboard-page .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.dashboard-page .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-page .brand-name {
  margin: 0;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 700;
}

.dashboard-page .brand-sub {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.dashboard-page .sidebar-links {
  display: grid;
  gap: 6px;
}

.dashboard-page .sidebar-links a,
.dashboard-page .sidebar-logout {
  min-height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-page .sidebar-links a:hover,
.dashboard-page .sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.dashboard-page .sidebar-links a.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.dashboard-page .sidebar-logout {
  margin-top: auto;
}

.dashboard-page .sidebar-footer {
  display: none;
}

.dashboard-page .dashboard-content {
  grid-column: 2;
  min-width: 0;
  background: var(--bg);
  border-radius: 0;
  padding: 24px;
}

.dashboard-page .dashboard-topbar {
  height: 64px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.7);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-page .topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-page .topbar-title {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-page #topbarOwner {
  margin: 3px 0 0;
  color: var(--text-gray);
  font-size: 0.78rem;
}

.dashboard-page .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-page .topbar-bell {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard-page .topbar-bell:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.dashboard-page .topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-page .sidebar-toggle {
  display: none;
}

.dashboard-page .dashboard-body {
  padding: 16px 0 0;
}

.dashboard-page .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-page .dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-page .dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.dashboard-page .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.dashboard-page .kpi-messages .kpi-icon {
  background: #3B82F6;
}

.dashboard-page .kpi-customers .kpi-icon {
  background: #10B981;
}

.dashboard-page .kpi-response .kpi-icon {
  background: #8B5CF6;
}

.dashboard-page .kpi-revenue .kpi-icon {
  background: #F59E0B;
}

.dashboard-page .kpi-content {
  display: grid;
  gap: 3px;
}

.dashboard-page .kpi-value {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
}

.dashboard-page .kpi-label {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.81rem;
}

.dashboard-page .kpi-trend {
  margin: 0;
  color: #10B981;
  font-size: 0.74rem;
  font-weight: 600;
}

.dashboard-page .dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.dashboard-page .dashboard-left,
.dashboard-page .dashboard-right {
  display: grid;
  gap: 16px;
}

.dashboard-page .section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 0;
}

.dashboard-page .entity-head {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .entity-head h2,
.dashboard-page .panel h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.dashboard-page .entity-head .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
}

.dashboard-page .entity-head .btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.dashboard-page .entity-head .btn-secondary {
  border-radius: 8px;
  min-height: 38px;
}

.dashboard-page .entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .entity-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-page .entity-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.dashboard-page .entity-media {
  height: 120px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(120deg, #EFF6FF, #ECFDF5);
  color: #64748B;
}

.dashboard-page .entity-info {
  padding: 12px;
}

.dashboard-page .entity-name {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.dashboard-page .entity-price {
  margin: 6px 0 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.dashboard-page .entity-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.dashboard-page .entity-actions button {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-page .entity-actions button:hover {
  border-color: #BFC5CD;
  background: #F9FAFB;
  color: var(--primary);
}

.dashboard-page .section-note {
  margin: 6px 0 0;
  color: var(--text-gray);
  font-size: 0.8rem;
}

.dashboard-page .panel-head {
  margin: 0 0 12px;
}

.dashboard-page .table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: auto;
}

.dashboard-page table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-page th,
.dashboard-page td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #F0F2F5;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dashboard-page th {
  background: #F9FAFB;
  color: var(--text-gray);
  font-weight: 600;
}

.dashboard-page tbody tr:nth-child(even) {
  background: #FCFCFD;
}

.dashboard-page tbody tr:hover {
  background: #F8FAFC;
}

.dashboard-page .status {
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-page .status.pending {
  color: #D97706;
  background: #FEF3C7;
}

.dashboard-page .status.done {
  color: #065F46;
  background: #D1FAE5;
}

.dashboard-page .status-card #whatsappPhone {
  margin: 9px 0 0;
  color: var(--text-gray);
  font-size: 0.84rem;
}

.dashboard-page .wa-status {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-page .wa-status .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.dashboard-page .signal-bars {
  margin: 12px 0 14px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.dashboard-page .signal-bars span {
  width: 4px;
  border-radius: 99px;
  background: #10B981;
  animation: signalPulse 1.2s ease-in-out infinite;
  transform-origin: bottom;
}

.dashboard-page .signal-bars span:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.dashboard-page .signal-bars span:nth-child(2) {
  height: 10px;
  animation-delay: 0.1s;
}

.dashboard-page .signal-bars span:nth-child(3) {
  height: 14px;
  animation-delay: 0.2s;
}

.dashboard-page .signal-bars span:nth-child(4) {
  height: 18px;
  animation-delay: 0.3s;
}

.dashboard-page #connectWhatsAppBtn {
  border-color: var(--primary);
  color: var(--primary);
  min-height: 38px;
}

.dashboard-page #connectWhatsAppBtn:hover {
  background: #EEF6F5;
}

.dashboard-page #whatsappQrBox {
  margin-top: 12px;
}

.dashboard-page .quick-ai-card .ai-progress-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.dashboard-page .quick-ai-card .ai-progress {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--accent) 292deg, #E5E7EB 292deg, #E5E7EB 360deg);
  display: grid;
  place-items: center;
  position: relative;
}

.dashboard-page .quick-ai-card .ai-progress::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
}

.dashboard-page .quick-ai-card .ai-progress span {
  position: relative;
  z-index: 1;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.dashboard-page .quick-metrics {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.dashboard-page .quick-metrics p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-gray);
  font-size: 0.82rem;
}

.dashboard-page .quick-metrics strong {
  color: var(--text-dark);
  font-size: 0.86rem;
}

.dashboard-page .ai-settings-card label {
  margin-top: 10px;
  display: block;
  color: var(--text-gray);
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-page .ai-settings-card textarea {
  margin-top: 8px;
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-dark);
}

.dashboard-page .ai-settings-card textarea:focus {
  outline: none;
  border-color: #9CA3AF;
  box-shadow: 0 0 0 3px rgba(15, 76, 69, 0.12);
}

.dashboard-page .ai-settings-card .btn-primary {
  margin-top: 10px;
  min-height: 36px;
  border-radius: 8px;
  background: var(--primary);
  border-color: var(--primary);
}

.dashboard-page .sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1090;
}

.dashboard-page .sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-page .reveal {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@keyframes signalPulse {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 767px) {
  .dashboard-page .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-sidebar {
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    width: 260px;
  }

  .dashboard-page .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-page .dashboard-content {
    grid-column: 1;
    padding: 16px;
  }

  .dashboard-page .sidebar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .dashboard-page .topbar-avatar {
    width: 34px;
    height: 34px;
  }

  .dashboard-page .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-page .dash-card {
    padding: 14px;
  }

  .dashboard-page .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-page .entity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .dashboard-page .sidebar-toggle,
  .dashboard-page .sidebar-overlay {
    display: none;
  }
}

/* Sidebar + Topbar Refresh */
.dashboard-page .dashboard-layout {
  grid-template-columns: 260px 1fr;
}

.dashboard-page .dashboard-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0F4C45 0%, #0a3530 100%);
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-page .sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-page .sidebar-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.dashboard-page .sidebar-logo span {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dashboard-page .sidebar-nav {
  padding: 12px 0 96px;
  display: grid;
  gap: 2px;
}

.dashboard-page .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  margin: 2px 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.dashboard-page .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.dashboard-page .nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-left-color: #00BFA5;
}

.dashboard-page .nav-icon {
  width: 20px;
  font-size: 16px;
  display: inline-flex;
  justify-content: center;
}

.dashboard-page .nav-label {
  font-weight: 500;
}

.dashboard-page .sidebar-profile {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.1);
}

.dashboard-page .sidebar-profile .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00BFA5;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dashboard-page .sidebar-profile .user-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-page .sidebar-profile .user-name {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-page .sidebar-profile .user-plan {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.dashboard-page .logout-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
  padding: 4px;
}

.dashboard-page .logout-btn:hover {
  opacity: 1;
}

.dashboard-page .dashboard-topbar {
  height: 64px;
}

.dashboard-page .page-title {
  margin: 0;
  color: #1F2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-page .topbar-bell {
  position: relative;
  width: 40px;
  height: 40px;
}

.dashboard-page .bell-icon {
  font-size: 16px;
  line-height: 1;
}

.dashboard-page .bell-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid #FFFFFF;
}

.dashboard-page .topbar-avatar {
  background: linear-gradient(135deg, #0F4C45, #00BFA5);
}

@media (max-width: 767px) {
  .dashboard-page .dashboard-sidebar {
    transform: translateX(-260px);
    transition: transform 0.3s ease;
  }

  .dashboard-page .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-page .sidebar-nav {
    padding-bottom: 92px;
  }
}

/* ========================================
   GLOBAL TOAST NOTIFICATIONS
   ======================================== */

.toast-stack {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: toastSlideIn 0.3s ease;
  max-width: 360px;
  min-width: 240px;
}

.toast.success {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.error {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.warning {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.info {
  background: linear-gradient(135deg, #667EEA, #764BA2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast span {
  flex: 1;
  line-height: 1.4;
}

.toast.toast-hiding {
  animation: toastSlideOut 0.22s ease forwards;
}

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

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

/* Mobile Responsive */
@media (max-width: 480px) {
  .toast-stack {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    max-width: 100%;
    width: 100%;
  }
}
