/* 24pay design tokens */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Syne:wght@700;800&display=swap");

:root {
  --24pay-orange: #00c853;
  --24pay-orange-hover: #006b45;
  --24pay-orange-soft: rgba(0, 200, 83, 0.12);
  --24pay-orange-ring: rgba(0, 230, 118, 0.22);
  --24pay-ink: #06281c;
  --24pay-heading: #003d28;
  --24pay-muted: #3d6b56;
  --24pay-muted-2: #2f5745;
  --24pay-paper: #e8fceb;
  --24pay-line: rgba(0, 107, 69, 0.14);
  --24pay-white: #ffffff;
  --24pay-nav-glass: rgba(232, 252, 235, 0.72);
  --24pay-nav-border: rgba(0, 107, 69, 0.12);
  --24pay-shadow-nav: 0 4px 16px rgba(0, 107, 69, 0.08);

  --primary: #00c853;
  --primary-dark: #006b45;
  --primary-light: #00e676;
  --primary-glow: var(--24pay-orange-ring);
  --dark: var(--24pay-ink);
  --dark-soft: #0a3a28;
  --dark-lighter: #1a4d38;
  --pi-primary: #00c853;
  --pi-primary-hover: #006b45;
  --pi-primary-light: var(--24pay-orange-soft);
  --pi-dark: var(--24pay-ink);
  --pi-dark-hover: #0a3a28;
  --pi-bg: var(--24pay-paper);
  --v2-ink: var(--24pay-ink);
  --v2-green: #00c853;
  --v2-lime: #00e676;
  --v2-paper: var(--24pay-paper);
  --v2-line: var(--24pay-line);
  --v2-muted: var(--24pay-muted);
}

body,
body.auth-page,
body.dashboard-body,
body.payment-body,
.admin-body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--24pay-ink);
}

.brand-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-logo--header {
  max-height: 48px;
  width: auto;
}

.brand-logo--header-dark,
.brand-logo--footer {
  max-height: 52px;
  width: auto;
}

.brand-logo--sidebar {
  max-height: 54px;
  width: auto;
}

.brand-logo--auth {
  max-width: min(280px, 88vw);
  margin: 0 auto 10px;
}

.brand-logo--compact {
  max-height: 36px;
  width: auto;
}

a.brand .brand-logo-img,
a.logo-link .brand-logo-img {
  pointer-events: none;
}

.auth-brand .brand-icon,
.login-card .logo-icon {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto 12px !important;
  display: block !important;
}

.auth-brand .brand-icon img,
.login-card .logo-icon img {
  margin: 0 auto;
}

.admin-sidebar .sidebar-brand {
  flex-wrap: wrap;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}

.brand-wordmark__brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--24pay-heading, #003d28);
}

.brand-wordmark__product {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #00c853;
  margin-top: 2px;
}

.brand-wordmark--header .brand-wordmark__brand {
  font-size: 1.25rem;
}

.brand-wordmark--header-dark .brand-wordmark__brand,
.brand-wordmark--footer .brand-wordmark__brand {
  color: #e8fceb;
}

.brand-wordmark--header-dark .brand-wordmark__product,
.brand-wordmark--footer .brand-wordmark__product {
  color: #00e676;
}

.brand-wordmark--sidebar .brand-wordmark__brand {
  font-size: 1rem;
  font-weight: 700;
  color: #006b45;
}

.brand-wordmark--sidebar .brand-wordmark__product {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #00c853;
}

.brand-wordmark--auth {
  align-items: center;
  text-align: center;
  margin: 0 auto 6px;
}

.brand-wordmark--auth .brand-wordmark__brand {
  font-size: 1.45rem;
}

.brand-wordmark--auth .brand-wordmark__product {
  font-size: 0.75rem;
  margin-top: 4px;
}

a.brand .brand-wordmark,
a.logo-link .brand-wordmark,
.navbar-brand .brand-wordmark {
  pointer-events: none;
}

.admin-sidebar {
  background: linear-gradient(180deg, #004d32, #02180f) !important;
  border-right: 1px solid rgba(0, 230, 118, 0.08) !important;
}

.sidebar-logo .logo-link {
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-text {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: #06281c !important;
}

.admin-sidebar .nav-link.active {
  background: rgba(0, 230, 118, 0.12) !important;
  border-color: rgba(0, 200, 83, 0.35) !important;
  color: #00e676 !important;
}

.btn-primary-custom,
.btn-auth-primary,
.btn-pi-primary,
.checkout-button,
.btn-success-custom {
  background: #00c853 !important;
  border-color: #00c853 !important;
  color: #053220 !important;
}

.btn-primary-custom:hover,
.btn-auth-primary:hover,
.btn-pi-primary:hover,
.checkout-button:hover {
  background: #006b45 !important;
  border-color: #006b45 !important;
  color: #fff !important;
}

.form-control-custom:focus,
.form-select:focus,
.form-control:focus,
.auth-form .form-control:focus {
  border-color: #00c853 !important;
  box-shadow: 0 0 0 3px var(--24pay-orange-ring) !important;
}

body:not(.dashboard-body) .stat-card:before {
  background: linear-gradient(90deg, #00e676, #00c853) !important;
}

body.auth-page {
  background: linear-gradient(145deg, #e8fceb 0%, #fff 42%, #f0fff4 100%) !important;
}

.auth-card {
  border: 1px solid var(--24pay-line) !important;
  box-shadow: 0 25px 60px rgba(0, 107, 69, 0.1) !important;
}

.auth-brand .brand-icon {
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.auth-brand h1 span {
  color: #00c853 !important;
}

.auth-checkbox .checkmark {
  border-color: #00c853 !important;
}

.auth-checkbox input:checked + .checkmark {
  background: #00c853 !important;
  border-color: #00c853 !important;
}

.payment-body {
  background: var(--24pay-paper) !important;
  background-image: linear-gradient(to right, rgba(0, 107, 69, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 107, 69, 0.05) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
}

.particle {
  display: none !important;
}

.admin-sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .brand-info span {
  color: #9fbfad;
  font-size: 11px;
  display: block;
  margin-top: 6px;
}

.btn-lime,
.btn-success:not(.btn-outline-success),
.btn-success-custom {
  background: #00c853 !important;
  border-color: #00c853 !important;
  color: #053220 !important;
}

.btn-lime:hover,
.btn-success:not(.btn-outline-success):hover {
  background: #006b45 !important;
  border-color: #006b45 !important;
  color: #fff !important;
}

.stat-icon.lime,
.bg-lime-soft,
.text-lime,
.badge.bg-success-subtle.text-success {
  background: var(--24pay-orange-soft) !important;
  color: #006b45 !important;
}

.dashboard-sidebar,
.admin-sidebar,
.sidebar-menu-link:hover {
  background-image: none;
}

.admin-sidebar .nav-link.active {
  color: #00e676 !important;
}

.badge-success,
.status-success,
.text-success:not(.form-text) {
  color: #006b45 !important;
}

.bg-success,
.alert-success {
  background-color: #e8fceb !important;
  border-color: #a7f0c1 !important;
  color: #006b45 !important;
}

#settingsTabs.settings-tabs .nav-link:hover {
  border-color: #7ae8a8 !important;
  background: #e8fceb !important;
  color: #006b45 !important;
}

#settingsTabs.settings-tabs .nav-link.active {
  border-color: #7ae8a8 !important;
  background: linear-gradient(135deg, #e8fceb, #fff) !important;
  color: #006b45 !important;
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.18) !important;
}
