/* =====================================================
   TentaFinZap Clean UI
===================================================== */

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

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --text: #101828;
  --muted: #667085;
  --soft: #98a2b3;
  --border: #e5e7eb;
  --border-soft: #eef2f7;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: #e7f7f4;
  --green: #16a34a;
  --green-soft: #ecfdf3;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --orange: #f59e0b;
  --orange-soft: #fffbeb;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 18px;
  --radius-lg: 24px;
}

html[data-theme="dark"] {
  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #111827;
  --surface-3: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #64748b;
  --border: #1e293b;
  --border-soft: #1e293b;
  --primary: #14b8a6;
  --primary-hover: #0d9488;
  --primary-soft: rgba(20, 184, 166, 0.14);
  --green-soft: rgba(22, 163, 74, 0.14);
  --blue-soft: rgba(37, 99, 235, 0.14);
  --red-soft: rgba(220, 38, 38, 0.14);
  --purple-soft: rgba(124, 58, 237, 0.14);
  --orange-soft: rgba(245, 158, 11, 0.14);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

/* =====================================================
   App Layout
===================================================== */

.tf-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.tf-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 30;
}

.tf-main {
  width: calc(100% - 260px);
  margin-left: 260px;
  min-height: 100vh;
}

.tf-page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 34px;
}

.tf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.tf-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: -0.05em;
  box-shadow: var(--shadow-soft);
}

.tf-brand strong {
  display: block;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tf-brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 5px;
}

.tf-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tf-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  padding: 12px 13px;
  border-radius: 14px;
  font-weight: 850;
  transition: 0.18s ease;
}

.tf-nav a span {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.tf-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.tf-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tf-theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 12px 13px;
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.18s ease;
}

.tf-theme-toggle:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.tf-user-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  flex-shrink: 0;
}

.tf-user-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.tf-user-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-logout {
  color: var(--red);
  font-weight: 850;
  padding: 8px 10px;
  border-radius: 12px;
  transition: 0.18s ease;
}

.tf-logout:hover {
  background: var(--red-soft);
}

.tf-mobile-header,
.tf-mobile-menu {
  display: none;
}

/* =====================================================
   Shared Components
===================================================== */

.tf-messages,
.messages-wrapper {
  max-width: 1450px;
  margin: 24px auto 0;
  padding: 0 34px;
}

.tf-message,
.message-alert {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.tf-message-success,
.message-success {
  background: var(--green-soft);
  color: var(--green);
}

.tf-message-error,
.message-error {
  background: var(--red-soft);
  color: var(--red);
}

.tf-message-warning,
.message-warning {
  background: var(--orange-soft);
  color: var(--orange);
}

.tf-message-info,
.message-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.btn-primary,
.btn-secondary,
.premium-soft-button {
  min-height: 44px;
  border-radius: 14px;
  padding: 11px 17px;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

.premium-soft-button {
  width: 100%;
  background: var(--primary-soft);
  color: var(--primary);
}

.dashboard-header,
.premium-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-header h1,
.premium-header h1 {
  color: var(--text);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.dashboard-header p,
.premium-header p {
  color: var(--muted);
  font-weight: 650;
}

.panel,
.stat-card,
.plan-overview,
.pricing-card,
.subscription-hero,
.auth-card,
.premium-card,
.premium-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel,
.premium-card {
  padding: 22px;
}

.panel h2,
.premium-card h2 {
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.panel p,
.premium-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
   Dashboard
===================================================== */

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

.dashboard-panels {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 22px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 8px;
}

.stat-card strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 7px;
}

.stat-card small {
  color: var(--primary);
  font-weight: 850;
}

.premium-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.premium-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-period-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-period-form select {
  width: auto;
  min-width: 132px;
  height: 44px;
  padding: 0 12px;
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.premium-stat-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 130px;
}

.premium-stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.premium-green .premium-stat-icon {
  background: var(--green-soft);
}

.premium-blue .premium-stat-icon {
  background: var(--blue-soft);
}

.premium-red .premium-stat-icon {
  background: var(--red-soft);
}

.premium-purple .premium-stat-icon {
  background: var(--purple-soft);
}

.premium-stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 6px;
}

.premium-stat-card strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.premium-stat-card small {
  color: var(--muted);
  font-weight: 750;
}

.premium-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.8fr;
  gap: 18px;
}

.premium-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.85fr;
  gap: 18px;
}

.premium-bottom-grid.second-row {
  grid-template-columns: 1.4fr 0.9fr;
}

.premium-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.premium-card-header h2 {
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}

.premium-card-header p {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.premium-chip {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.premium-chip.success {
  background: var(--green-soft);
  color: var(--green);
}

.premium-chart-container,
.premium-donut-container {
  height: 285px;
}

.premium-link {
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
}

.premium-empty {
  min-height: 170px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.premium-empty.compact {
  min-height: auto;
}

.premium-empty strong {
  color: var(--text);
}

.premium-empty span {
  color: var(--muted);
  line-height: 1.5;
}

.premium-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.premium-chat-bubble {
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.45;
}

.user-bubble {
  background: var(--primary-soft);
  color: var(--primary);
  align-self: flex-end;
}

.bot-bubble {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* =====================================================
   Forms, Lists, Tables
===================================================== */

form p {
  margin-bottom: 14px;
}

label,
form label {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--soft);
}

.filter-panel {
  margin-bottom: 20px;
}

.filter-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-form div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-form select {
  min-width: 180px;
}

.transaction-list,
.premium-installments,
.premium-agenda-list,
.premium-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item,
.premium-installment-item,
.premium-agenda-item,
.premium-insight-item,
.plan-usage-card,
.plan-feature-card,
.pricing-feature {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.transaction-item strong,
.premium-installment-item strong,
.premium-agenda-item strong,
.premium-insight-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
}

.transaction-item span,
.premium-installment-item span,
.premium-installment-item small,
.premium-agenda-item span,
.premium-insight-item span {
  color: var(--muted);
  font-size: 14px;
}

.transaction-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.transaction-value {
  font-weight: 950;
  white-space: nowrap;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.transaction-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.transaction-actions a {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

.danger-link {
  color: var(--red) !important;
}

.bill-overdue {
  background: var(--red-soft);
  border-color: rgba(220, 38, 38, 0.25);
}

.bill-paid {
  background: var(--green-soft);
  border-color: rgba(22, 163, 74, 0.25);
}

.bill-warning {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 18px;
  padding: 14px;
  font-weight: 850;
  margin-bottom: 18px;
}

.bill-line {
  word-break: break-all;
}

.chart-container {
  height: 300px;
  position: relative;
}

.premium-table {
  display: flex;
  flex-direction: column;
}

.premium-table-head,
.premium-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
}

.premium-table-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

.premium-table-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-weight: 800;
}

.premium-table-row mark {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.progress-wrapper {
  height: 9px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--green));
  border-radius: 999px;
}

/* =====================================================
   Billing, Plans, Auth
===================================================== */

.plan-overview,
.pricing-card {
  padding: 22px;
}

.plan-overview {
  margin-bottom: 18px;
}

.plan-overview-header,
.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.plan-overview-header span {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 5px;
}

.plan-overview-header strong {
  color: var(--text);
  font-size: 24px;
}

.plan-usage-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.usage-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.usage-title strong,
.plan-feature-card strong {
  color: var(--text);
}

.usage-title span,
.plan-usage-card small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.badge-success {
  background: var(--green-soft);
  color: var(--green);
}

.badge-danger {
  background: var(--red-soft);
  color: var(--red);
}

.badge-warning {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pricing-active {
  border-color: var(--primary);
  box-shadow: 0 16px 42px rgba(15, 118, 110, 0.16);
}

.pricing-description {
  color: var(--muted);
  line-height: 1.55;
  min-height: 58px;
}

.pricing-price {
  margin: 20px 0;
}

.pricing-price strong {
  font-size: 32px;
  color: var(--text);
  letter-spacing: -0.04em;
}

.pricing-price span {
  color: var(--muted);
}

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

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.pricing-list li {
  color: var(--text);
  font-weight: 800;
}

.pricing-list li::before {
  content: "✓";
  color: var(--green);
  margin-right: 8px;
}

.pricing-list .disabled {
  color: var(--muted);
}

.pricing-list .disabled::before {
  content: "×";
  color: var(--red);
}

.pricing-button {
  width: 100%;
}

.subscription-hero {
  background: linear-gradient(135deg, var(--primary-soft), var(--blue-soft));
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.subscription-hero span {
  color: var(--muted);
  font-weight: 850;
  display: block;
  margin-bottom: 8px;
}

.subscription-hero h2 {
  color: var(--text);
  font-size: 34px;
  margin-bottom: 12px;
}

.subscription-price {
  text-align: right;
}

.subscription-price strong {
  display: block;
  color: var(--text);
  font-size: 34px;
}

.subscription-price span {
  color: var(--primary);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 28px;
}

.auth-card h1 {
  color: var(--text);
  margin-bottom: 10px;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* =====================================================
   Support
===================================================== */

.whatsapp-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.whatsapp-box small {
  display: block;
  color: var(--primary);
  font-weight: 950;
  margin-bottom: 8px;
}

.support-chat-panel {
  min-height: 620px;
}

.support-chat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-message {
  display: flex;
  width: 100%;
}

.support-user {
  justify-content: flex-end;
}

.support-assistant {
  justify-content: flex-start;
}

.support-message-content {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.support-message-content strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.3;
}

.support-message-content p,
.support-message-content span,
.support-message-content small,
.support-message-content div {
  margin: 0;
  line-height: 1.6;
  color: inherit;
}

.support-user .support-message-content {
  background: #0f766e;
  border: 1px solid #0f766e;
  color: #ffffff;
}

.support-user .support-message-content strong,
.support-user .support-message-content p,
.support-user .support-message-content span,
.support-user .support-message-content small,
.support-user .support-message-content div {
  color: #ffffff !important;
}

.support-assistant .support-message-content {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.support-assistant .support-message-content strong,
.support-assistant .support-message-content p,
.support-assistant .support-message-content span,
.support-assistant .support-message-content small,
.support-assistant .support-message-content div {
  color: var(--text) !important;
}

.support-form {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.support-form textarea {
  flex: 1;
  resize: vertical;
  min-height: 64px;
  max-height: 180px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.support-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.support-form button,
.support-form .btn-primary {
  min-width: 120px;
  height: 52px;
  border-radius: 16px;
}

.support-whatsapp-btn {
  display: inline-block;
  margin-top: 12px;
}

.quick-question-form {
  width: 100%;
}

.quick-question-form button {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s;
}

.quick-question-form button:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* =====================================================
   Landing Page
===================================================== */

.landing-body {
  background: #f5f8fb;
  color: #101828;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.landing-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 251, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
}

.landing-nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #e7f7f4;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.landing-brand strong {
  display: block;
  color: #101828;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.landing-brand span {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.landing-menu a {
  color: #475467;
  font-weight: 850;
}

.landing-menu a:hover {
  color: #0f766e;
}

.landing-nav-button {
  background: #0f766e;
  color: #ffffff !important;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.landing-hero {
  padding: 76px 0 52px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.landing-badge {
  width: fit-content;
  background: #e7f7f4;
  color: #0f766e;
  border: 1px solid #b7ebe2;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 20px;
}

.landing-hero h1 {
  color: #101828;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}

.landing-hero p {
  color: #667085;
  font-size: 18px;
  line-height: 1.7;
  max-width: 650px;
}

.landing-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-primary-button,
.landing-secondary-button {
  min-height: 48px;
  border-radius: 15px;
  padding: 13px 20px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-primary-button {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.20);
}

.landing-secondary-button {
  background: #ffffff;
  color: #101828;
  border: 1px solid #e5e7eb;
}

.landing-mini-info {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #667085;
  font-weight: 850;
  font-size: 14px;
}

.landing-dashboard-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

.landing-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.landing-dashboard-top strong {
  display: block;
  color: #101828;
  font-size: 18px;
}

.landing-dashboard-top span {
  display: block;
  color: #667085;
  font-size: 13px;
  margin-top: 4px;
}

.landing-status {
  background: #e7f7f4;
  color: #0f766e;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.landing-stats-grid div {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 16px;
}

.landing-stats-grid span {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 7px;
}

.landing-stats-grid strong {
  display: block;
  color: #101828;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.landing-chart {
  height: 150px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  margin-top: 14px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.landing-chart div {
  flex: 1;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  border-radius: 999px 999px 8px 8px;
}

.landing-message-card {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 16px;
}

.landing-message-card small {
  color: #0f766e;
  font-weight: 950;
}

.landing-message-card p {
  color: #101828;
  margin: 8px 0 4px;
}

.landing-message-card strong {
  color: #101828;
}

.landing-section {
  padding: 58px 0;
}

.landing-section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.landing-section-header h2,
.landing-cta h2 {
  color: #101828;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.landing-section-header p,
.landing-cta p {
  color: #667085;
  font-size: 17px;
  line-height: 1.65;
}

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

.landing-feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.landing-feature-card div {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #e7f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.landing-feature-card h3 {
  color: #101828;
  font-size: 20px;
  margin-bottom: 10px;
}

.landing-feature-card p {
  color: #667085;
  line-height: 1.65;
}

.landing-cta {
  padding: 40px 0 70px;
}

.landing-cta-box {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  border-radius: 30px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.landing-cta-box h2,
.landing-cta-box p {
  color: #ffffff;
}

.landing-cta-box .landing-primary-button {
  background: #ffffff;
  color: #0f766e;
  box-shadow: none;
  white-space: nowrap;
}

.landing-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  color: #667085;
  font-weight: 750;
}

.landing-footer .landing-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 1400px) {
  .premium-main-grid,
  .premium-bottom-grid,
  .premium-bottom-grid.second-row {
    grid-template-columns: 1fr 1fr;
  }

  .premium-whatsapp-card {
    grid-column: span 2;
  }

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

  .plan-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .tf-layout {
    flex-direction: column;
  }

  .tf-sidebar {
    display: none;
  }

  .tf-main {
    width: 100%;
    margin-left: 0;
  }

  .tf-mobile-header {
    height: 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .tf-mobile-header strong {
    display: block;
    color: var(--text);
    font-size: 16px;
  }

  .tf-mobile-header span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
  }

  .tf-mobile-button,
  .tf-mobile-theme {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
  }

  .tf-mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
  }

  .tf-mobile-menu a {
    color: var(--muted);
    font-weight: 850;
    padding: 12px;
    border-radius: 14px;
  }

  .tf-mobile-menu a:hover {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .tf-page {
    padding: 22px 18px 34px;
  }

  .tf-messages,
  .messages-wrapper {
    padding: 0 18px;
  }

  .dashboard-header,
  .premium-header {
    flex-direction: column;
  }

  .premium-stats-grid,
  .premium-main-grid,
  .premium-bottom-grid,
  .premium-bottom-grid.second-row,
  .dashboard-grid,
  .pricing-grid,
  .plan-usage-grid {
    grid-template-columns: 1fr;
  }

  .premium-whatsapp-card {
    grid-column: auto;
  }

  .premium-actions,
  .premium-period-form,
  .filter-form,
  .support-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .premium-period-form select,
  .premium-actions a,
  .premium-actions button,
  .filter-form select,
  .filter-form button {
    width: 100%;
  }

  .premium-table {
    overflow-x: auto;
  }

  .premium-table-head,
  .premium-table-row {
    min-width: 640px;
  }

  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .transaction-right {
    align-items: flex-start;
  }

  .subscription-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-price {
    text-align: left;
  }

  .support-message-content {
    max-width: 100%;
  }

  .landing-nav {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
  }

  .landing-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .landing-hero {
    padding: 44px 0;
  }

  .landing-hero-grid {
    grid-template-columns: 1fr;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-footer .landing-container {
    flex-direction: column;
  }
}
/* =====================================================
   Auth Clean Pages
===================================================== */

.auth-clean-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.10), transparent 32%),
        #f5f8fb;
    color: #101828;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.auth-clean-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 18px;
}

.auth-clean-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.auth-clean-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-clean-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #e7f7f4;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.auth-clean-brand strong {
    display: block;
    color: #101828;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.auth-clean-brand span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
    margin-top: 3px;
}

.auth-clean-header {
    margin-bottom: 22px;
}

.auth-clean-header h1 {
    color: #101828;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.auth-clean-header p {
    color: #667085;
    line-height: 1.55;
}

.auth-clean-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-clean-field label {
    display: block;
    color: #475467;
    font-weight: 900;
    margin-bottom: 7px;
}

.auth-clean-field input {
    width: 100%;
    height: 48px;
    border-radius: 15px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #101828;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

.auth-clean-field input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.auth-clean-field ul {
    margin-top: 8px;
    padding-left: 18px;
    color: #dc2626;
    font-size: 13px;
}

.auth-clean-button {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 15px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    box-shadow: 0 14px 26px rgba(15, 118, 110, 0.20);
}

.auth-clean-button:hover {
    background: #115e59;
}

.auth-clean-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.auth-clean-links a,
.auth-clean-bottom a {
    color: #0f766e;
    font-weight: 900;
}

.auth-clean-bottom {
    margin-top: 20px;
    color: #667085;
    text-align: center;
}

.auth-clean-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 850;
    margin-bottom: 16px;
}

.auth-clean-alert.success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #16a34a;
}

@media (max-width: 600px) {
    .auth-clean-card {
        padding: 24px;
        border-radius: 22px;
    }

    .auth-clean-header h1 {
        font-size: 28px;
    }

    .auth-clean-links {
        flex-direction: column;
        text-align: center;
    }
}