:root {
  --bg: #09090b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #a855f7;
  --accent-r: 168; --accent-g: 85; --accent-b: 247;
  --accent2: #f97316;
  --accent2-r: 249; --accent2-g: 115; --accent2-b: 22;
  --max-w: 1100px;
  --radius: 12px;
}

html[data-theme="light"] {
  --bg: #fafafa;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.1);
  --text: #18181b;
  --text-muted: #52525b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-dot {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

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

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-dropdown-toggle:hover {
  color: var(--text);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
  background: var(--surface-hover);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.user-dropdown-menu.active {
  display: block;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
}

.user-dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.user-dropdown-item-danger {
  color: #ef4444;
}

.user-dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ROW ACTIONS MENU (3-dots) */
.row-menu {
  position: relative;
  display: inline-block;
}

.row-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.row-menu-btn:hover {
  color: var(--text);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
  background: var(--surface-hover);
}

.row-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 120px;
  width: max-content;
  max-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.row-menu.open .row-menu-dropdown {
  display: block;
}

.row-menu-dropdown.fixed {
  position: fixed;
}

.row-menu-dropdown form {
  display: block;
  margin: 0;
}

.row-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.row-menu-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.row-menu-item-danger {
  color: #ef4444;
}

.row-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.user-dropdown-item-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  cursor: default;
}

.user-dropdown-item-theme {
  cursor: default;
  gap: 8px;
}

.theme-btn {
  flex: 1;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.theme-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.theme-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
}

.msg-menu {
  position: relative;
}

.msg-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.msg-menu-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.msg-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 170px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.msg-menu.active .msg-menu-dropdown {
  display: block;
}

.msg-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
}

.msg-menu-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.msg-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.msg-menu-item-danger {
  color: #ef4444;
}

.msg-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.currency-select {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 3px 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.currency-select:focus {
  border-color: var(--accent);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

button.btn {
  margin: 0;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
}

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

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

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

/* CONTAINER */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* PAGE LAYOUT */
.page {
  padding: 48px 0;
  min-height: calc(100vh - 60px);
}

.page-header {
  margin-bottom: 36px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s;
}

.card:hover {
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
}

/* FORMS */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* INVOICE FILTERS */
.invoice-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.invoice-filter-select {
  padding: 8px 36px 8px 12px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s;
  min-width: 150px;
}

.invoice-filter-select:focus {
  border-color: var(--accent);
}

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* TABLE */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.table-actions {
  display: flex;
  gap: 6px;
}

/* BADGE */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.badge-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-purple { background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15); color: var(--accent); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-orange { background: rgba(var(--accent2-r), var(--accent2-g), var(--accent2-b), 0.15); color: var(--accent2); }
.badge-gray { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* AUTH PAGE */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.auth-card .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.auth-card .logo img {
  width: 40px;
  height: 40px;
}

.auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-card .btn { width: 100%; text-align: center; }

.auth-card .switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.webauthn-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.webauthn-status.webauthn-status-error {
  color: #ef4444;
}

.webauthn-status.webauthn-status-ok {
  color: #22c55e;
}

/* SECURITY PAGE SECTIONS */
.security-section {
  margin-top: 36px;
  scroll-margin-top: 90px;
}

.security-section-head h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.security-section-head p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.security-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.security-rename-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-rename-form input,
.security-register-card input {
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  width: 180px;
}

.security-register-card {
  margin-top: 16px;
}

.security-register-card .webauthn-status {
  margin-top: 0;
}

/* SECURITY PAGE: CATEGORIES */
.security-nav {
  position: sticky;
  top: 60px;
  z-index: 90;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0 6px;
  margin: 0 -4px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.security-nav-link {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.security-nav-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg);
  text-decoration: none;
}

.security-nav-link.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.security-category {
  margin-top: 32px;
  scroll-margin-top: 135px;
}

.security-panel {
  display: none;
}

.security-panel.active {
  display: block;
}

.security-category-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.security-category-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.security-category-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.security-category-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.security-inline-form {
  display: none;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.security-inline-form.open {
  display: block;
}

.security-inline-form .form-group {
  margin-bottom: 12px;
}

.security-inline-form .form-group:last-of-type {
  margin-bottom: 0;
}

.security-inline-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.security-inline-form input[type="text"],
.security-inline-form input[type="password"] {
  width: 100%;
  max-width: 380px;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.security-inline-form input[type="text"]:focus,
.security-inline-form input[type="password"]:focus {
  border-color: var(--accent, #a855f7);
}

.security-inline-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* STATUS DOT */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

/* PLAN CARD */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan-card .plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.plan-popular-badge {
  margin-left: auto;
}

.plan-card-popular {
  border-color: var(--accent2);
  box-shadow: 0 0 0 1px rgba(var(--accent2-r), var(--accent2-g), var(--accent2-b), 0.25);
}

.plan-card .plan-category {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plan-card .plan-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.plan-card .plan-spec {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.plan-notes .plan-spec {
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
}

.plan-card .plan-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.plan-card .plan-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.plan-card .plan-price .amount {
  font-size: 28px;
  font-weight: 800;
}

.plan-card .plan-price .period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-card .plan-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* PLAN DESCRIPTION EYE BUTTON */
.plan-desc-btn {
  width: 36px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-desc-btn:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
}

/* CART CONTROLS (store cards) */
.cart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-control-minus,
.cart-control-plus {
  width: 36px;
  height: 32px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.cart-control-minus:hover,
.cart-control-plus:hover {
  color: var(--text);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
  background: var(--surface-hover);
}

.cart-control-minus:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.cart-control-plus:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.cart-controls .add-to-cart-btn {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.cart-controls .add-to-cart-btn.btn-in-cart {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.cart-controls .add-to-cart-btn.btn-in-cart:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  box-shadow: none !important;
}

/* CATEGORY HEADER */
.category-header {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 16px;
}

.category-header:first-child {
  margin-top: 0;
}

/* SERVER CARD */
.server-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.server-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* TABS */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.empty p {
  margin-bottom: 20px;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.modal {
  position: relative;
}

/* CONFIRM MODAL */
.modal-overlay.confirm-overlay {
  z-index: 300;
}

.modal-confirm h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-confirm-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-confirm p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  white-space: pre-line;
}

/* CART */
.cart-wrapper {
  position: relative;
}

.cart-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cart-toggle:hover {
  color: var(--text);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
  background: var(--surface-hover);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #18181b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 150;
  overflow: hidden;
}

.cart-dropdown.active {
  display: block;
}

.cart-dropdown-header {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.cart-items {
  max-height: 280px;
  overflow-y: auto;
}

.cart-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: rgba(255, 255, 255, 0.02); }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cart-item-remove {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.cart-dropdown-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-total span:last-child {
  color: var(--accent);
}

/* FLY ANIMATION */
.cart-fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 9999;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 12px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.6);
}

/* CART ITEM QTY */
.cart-item-qty {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 24px;
  text-align: center;
}

/* ADD TO CART BUTTON STATES */
.btn-in-cart {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-in-cart:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  box-shadow: none !important;
}

/* MOBILE HAMBURGER */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-hamburger:hover {
  color: var(--text);
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
  background: var(--surface-hover);
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-menu-overlay.active {
  display: block;
}

/* MOBILE MENU PANEL */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #18181b;
  border-left: 1px solid var(--border);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-header .nav-logo {
  font-size: 16px;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text);
  background: var(--surface-hover);
  text-decoration: none;
}

.mobile-nav-link svg {
  flex-shrink: 0;
}

.mobile-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  margin-left: auto;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 8px;
}

.mobile-user-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mobile-user-info .user-avatar {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.15s;
}

.mobile-menu-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.mobile-menu-btn svg {
  flex-shrink: 0;
}

.mobile-menu-btn-danger {
  color: #ef4444;
}

.mobile-menu-btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.mobile-currency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.mobile-currency-row svg {
  flex-shrink: 0;
}

.mobile-currency-row select {
  margin-left: auto;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

/* ADMIN STATS GRID */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

/* ADMIN CHART GRID */
.admin-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* RESPONSIVE */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-overlay { display: none !important; }
  .nav-hamburger { display: none !important; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .server-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cart-dropdown { width: 280px; right: -8px; }
  .ticket-conversation { flex-direction: column; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-chart-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; }
  .page-header.page-header-flex { flex-direction: column; gap: 12px; }
  .admin-search-form { flex-wrap: wrap; }
  .admin-search-form input { width: 100% !important; }
}

/* MARKDOWN BODY */
.md-body {
  white-space: normal;
  line-height: 1.7;
}
.md-body p { margin-bottom: 10px; }
.md-body p:last-child { margin-bottom: 0; }
.md-body ul, .md-body ol { margin: 6px 0; padding-left: 22px; }
.md-body li { margin-bottom: 4px; }
.md-body code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Consolas', 'Courier New', monospace;
}
.md-body pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  margin: 10px 0;
}
.md-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
}
.md-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 14px;
  margin: 10px 0;
  color: var(--text-muted);
  background: rgba(168,85,247,0.04);
  border-radius: 0 8px 8px 0;
}
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
  margin: 16px 0 8px;
  font-weight: 700;
}
.md-body h1 { font-size: 20px; }
.md-body h2 { font-size: 18px; }
.md-body h3 { font-size: 16px; }
.md-body a { color: var(--accent); text-decoration: underline; }
.md-body img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 8px 0;
  display: block;
}
.md-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.md-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 13px;
}
.md-body th, .md-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.md-body th {
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}

/* TICKET TOOLBAR */
.ticket-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ticket-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.ticket-toolbar-btn:hover {
  color: var(--text);
  border-color: rgba(168,85,247,0.3);
  background: var(--surface-hover);
}

.ticket-toolbar-btn.image-btn:hover {
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}

/* TICKET UPLOAD PREVIEW */
.ticket-upload-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ticket-upload-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ticket-upload-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.ticket-upload-status {
  font-size: 10px;
  color: var(--text-muted);
}

/* DRAG OVER STATE */
.ticket-dragover textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(168,85,247,0.15);
}

.ticket-dragover {
  position: relative;
}

.ticket-dragover::after {
  content: 'Drop images here';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168,85,247,0.08);
  border: 2px dashed var(--accent);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
  z-index: 5;
}

/* TICKET SYSTEM */
.ticket-header {
  margin-bottom: 28px;
}

.ticket-conversation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.ticket-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.ticket-message-admin {
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
}

.ticket-message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ticket-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ticket-avatar-admin {
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
  color: var(--accent);
}

.ticket-message-name {
  font-size: 14px;
  font-weight: 600;
}

.ticket-message-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.ticket-message-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.ticket-reply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ticket-closed-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  color: #3b82f6;
  font-size: 14px;
  font-weight: 500;
}

/* INVOICE DOCUMENT */
.invoice-document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.invoice-doc-header {
  background: var(--accent);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invoice-doc-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.invoice-doc-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.invoice-doc-body {
  padding: 32px;
}

.invoice-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.invoice-doc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.invoice-doc-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.invoice-doc-table-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.invoice-doc-table-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.invoice-doc-table-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
}

.invoice-doc-footer {
  text-align: center;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .invoice-doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .invoice-doc-header { flex-direction: column; gap: 16px; text-align: center; }
  .invoice-doc-header > div:last-child { text-align: center; }
}

.contract-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin-top: 1px;
}

.contract-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contract-checkbox-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: transparent;
  transition: all 0.15s ease;
}

.contract-checkbox input:checked + .contract-checkbox-mark {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.contract-checkbox input:checked + .contract-checkbox-mark::after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.contract-checkbox:hover .contract-checkbox-mark {
  border-color: #8b5cf6;
}

.drag-row {
  cursor: default;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.15s;
  text-align: center;
}

.drag-handle:hover {
  opacity: 1;
}

.drag-row.dragging {
  opacity: 0.4;
}

.drag-row.drag-over {
  border-top: 2px solid #8b5cf6;
}

.drag-row.drag-over td {
  padding-top: calc(0.75rem - 2px);
}

/* COUPON UI */
.cart-coupon {
  margin-bottom: 12px;
}

.cart-coupon-input {
  display: flex;
  gap: 6px;
}

.cart-coupon-input input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 13px;
  font-family: monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.15s;
}

.cart-coupon-input input:focus {
  border-color: var(--accent);
}

.cart-coupon-input input::placeholder {
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: normal;
}

.cart-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
}

.cart-coupon-badge {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}

.cart-coupon-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}

.cart-coupon-remove:hover {
  color: #ef4444;
}

.cart-coupon-msg {
  font-size: 11px;
  margin-top: 4px;
  display: none;
}

.cart-discount,
.cart-final-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-discount span:last-child {
  color: #22c55e;
  font-weight: 600;
}

.cart-final-total {
  font-weight: 700;
  font-size: 15px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  margin-bottom: 12px;
}

.cart-final-total span:last-child {
  color: var(--accent);
}

/* CHECKOUT PAGE */
.checkout-layout {
  max-width: 640px;
  margin: 0 auto;
}

.checkout-items {
  border-bottom: 1px solid var(--border);
}

.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.checkout-item-cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.checkout-item-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.checkout-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}

.checkout-item-qty {
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.checkout-item-period {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.checkout-totals {
  padding-top: 16px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.checkout-total-row span:last-child {
  font-weight: 600;
}

.checkout-discount-row span:last-child {
  color: #22c55e;
}

.checkout-grand-total {
  font-size: 18px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.checkout-grand-total span:last-child {
  color: var(--accent);
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.checkout-payment-option:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.05);
}

.checkout-payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}

.checkout-payment-option input[type="radio"]:checked + .checkout-payment-radio {
  border-color: var(--accent);
}

.checkout-payment-option input[type="radio"]:checked + .checkout-payment-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.checkout-payment-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-payment-label strong {
  font-size: 14px;
  color: var(--text);
}

.checkout-payment-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-contract {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

/* UPSELL / CROSS-SELL SECTION */
.upsell-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upsell-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.upsell-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.upsell-info {
  flex: 1;
  min-width: 0;
}

.upsell-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.upsell-cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.upsell-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.upsell-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.upsell-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.upsell-period {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.upsell-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ─── AREA LOADER ─── */
.area-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #09090b;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.area-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.area-loader-logo {
  width: 64px;
  height: auto;
  animation: areaLoaderPulse 1.6s ease-in-out infinite;
}

@keyframes areaLoaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.area-loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.area-loader-bar-fill {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    #fff 30%,
    #fff 50%,
    transparent 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: areaLoaderSlide 1.2s linear infinite;
}

@keyframes areaLoaderSlide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── CANCEL REASON OPTIONS ─── */
.cancel-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cancel-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  font-size: 14px;
  color: var(--text);
  user-select: none;
}

.cancel-option:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.cancel-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cancel-option:has(input[type="radio"]:checked) {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.cancel-option input[type="radio"]:checked ~ .cancel-option-text {
  color: #fff;
  font-weight: 600;
}

.cancel-other-input {
  margin-top: 12px;
}

/* ─── CUSTOM CHECKBOX ─── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  user-select: none;
  padding: 6px 0;
}

.checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: transparent;
  transition: all 0.15s ease;
}

.checkbox input:checked + .checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox input:checked + .checkbox-mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.checkbox:hover .checkbox-mark {
  border-color: var(--accent);
}

/* ─── LIGHT THEME OVERRIDES ─── */
html[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.85);
}

html[data-theme="light"] .modal,
html[data-theme="light"] .cart-dropdown {
  background: #fff;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .plan-card .plan-spec,
html[data-theme="light"] .md-body th,
html[data-theme="light"] .ticket-message-avatar {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .table th {
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .table tr:hover td,
html[data-theme="light"] .cart-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .md-body code {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .md-body pre {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .invoice-doc-table-header {
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .checkbox-mark {
  border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .area-loader {
  background: var(--bg);
}

html[data-theme="light"] .area-loader-bar {
  background: rgba(0, 0, 0, 0.1);
}

/* SETTINGS */
.settings-saved-banner {
  background: #065f46;
  border: 1px solid #059669;
  color: #a7f3d0;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row-info {
  flex: 1;
  min-width: 0;
}

.settings-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.settings-row-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-env-name {
  font-family: monospace;
  font-size: 13px;
}

.settings-env-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}

.settings-input {
  width: 320px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: monospace;
}

.settings-input:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-input-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.settings-eye {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-eye:hover {
  color: var(--text);
  border-color: var(--accent);
}

.settings-select {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
}

/* Toggle switch */
.settings-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-switch-track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: background 0.2s;
}

.settings-switch-track::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #a1a1aa;
  border-radius: 50%;
  transition: transform 0.2s;
}

.settings-switch input:checked + .settings-switch-track {
  background: var(--accent);
}

.settings-switch input:checked + .settings-switch-track::before {
  transform: translateX(20px);
  background: #fff;
}

html[data-theme="light"] .settings-switch-track {
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .settings-input {
    width: 100%;
  }
  .settings-input-group {
    width: 100%;
  }
  .settings-input-group .settings-input {
    flex: 1;
  }
}

/* ─── ANNOUNCEMENT BAR (under topbar) ─── */
.announcement-bar {
  background: linear-gradient(135deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12), rgba(59, 130, 246, 0.12));
  border-bottom: 1px solid var(--border);
}
.announcement-bar-item {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.announcement-bar-item + .announcement-bar-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.announcement-bar-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.16);
  color: #c084fc;
  border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
}
.announcement-bar-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-bar-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.announcement-bar-close:hover {
  color: #ef4444;
}

/* ─── BANNER RAIL (right side of page) ─── */
.banner-rail {
  position: fixed;
  top: 76px;
  right: 16px;
  width: 260px;
  max-width: calc(100vw - 32px);
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.banner-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.banner-rail-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.banner-rail-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.banner-rail-close:hover {
  color: #ef4444;
}
.banner-rail-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.banner-rail-item {
  display: block;
  position: relative;
}
.banner-rail-item-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.banner-rail-item-close:hover {
  background: #ef4444;
}
.banner-rail-img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.banner-rail-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.banner-rail-content img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.banner-iframe {
  display: block;
  width: 100%;
  height: 120px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

/* ─── BANNER BOTTOM (bottom of page) ─── */
.banner-bottom {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.banner-bottom-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 12px 32px 12px 16px;
  overflow: hidden;
}
.banner-bottom-item-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.banner-bottom-item-close:hover {
  background: #ef4444;
}
.banner-bottom-img {
  max-height: 80px;
  max-width: 100%;
  border-radius: 6px;
  display: block;
}
.banner-bottom-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.banner-bottom-content img {
  max-height: 80px;
  max-width: 100%;
  border-radius: 6px;
  display: block;
}

@media (max-width: 768px) {
  .banner-rail {
    width: 200px;
  }
  .banner-bottom {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}

/* ─── ADMIN: ANNOUNCEMENTS PAGE ─── */
.ann-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.ann-card h3,
.ann-list-head h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.ann-list-head {
  margin-bottom: 12px;
}
.ann-edit-row {
  background: rgba(255, 255, 255, 0.02);
}
.ann-edit-row td {
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
}
.ann-edit-row form {
  padding: 8px 0;
}

/* ——— TERMS MODAL ——— */
.terms-modal-overlay {
  z-index: 400;
}

.terms-modal {
  display: flex;
  flex-direction: column;
  width: min(620px, 94vw);
  height: min(560px, 88vh);
  border-radius: var(--radius);
  overflow: hidden;
  background: #18181b;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: termsModalIn 0.25s ease-out;
}

@keyframes termsModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.terms-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.terms-modal-heading {
  flex: 1;
  min-width: 0;
}

.terms-modal-heading h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}

.terms-modal-heading p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.terms-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.terms-modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.terms-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
  padding: 18px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.terms-modal-body::-webkit-scrollbar {
  width: 10px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

.terms-modal-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.terms-modal-text p {
  margin: 0 0 12px;
}

.terms-modal-text h4 {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.terms-modal-text ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.terms-modal-text li {
  margin-bottom: 5px;
}

.terms-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.terms-modal-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  min-width: 0;
  transition: opacity 0.3s;
}

.terms-modal-hint svg {
  flex-shrink: 0;
  animation: termsHintBounce 1.6s ease-in-out infinite;
}

@keyframes termsHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.terms-modal-accept {
  flex-shrink: 0;
  white-space: nowrap;
}

.terms-modal-accept[disabled],
.terms-modal-accept[disabled]:hover {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--accent);
}

html[data-theme="light"] .terms-modal {
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

@media (max-width: 520px) {
  .terms-modal-heading p {
    display: none;
  }

  .terms-modal {
    height: min(600px, 90vh);
  }

  .terms-modal-footer {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .terms-modal-hint {
    width: 100%;
  }
}


