/* SecureBank ATM — Production Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #0f766e;
  --color-primary-dark: #0d5c56;
  --color-primary-light: #14b8a6;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-bg: #0f172a;
  --color-bg-elevated: #1e293b;
  --color-bg-card: #1e293b;
  --color-bg-input: #0f172a;
  --color-border: #334155;
  --color-border-light: #475569;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.12);
  --color-error: #ef4444;
  --color-error-bg: rgba(239, 68, 68, 0.12);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-info: #38bdf8;
  --color-info-bg: rgba(56, 189, 248, 0.12);
  --color-deposit: #22c55e;
  --color-withdrawal: #f97316;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ── */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-layout--auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(15, 118, 110, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    var(--color-bg);
}

.auth-page-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.app-layout--public {
  flex-direction: column;
  min-height: 100vh;
}

/* ── Sidebar ── */

.sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg-elevated);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar__brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar__brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar__brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.2;
}

.sidebar__brand-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.sidebar__nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.sidebar__section {
  margin-bottom: 1.5rem;
}

.sidebar__section-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.sidebar__link.active {
  background: rgba(15, 118, 110, 0.2);
  color: var(--color-primary-light);
}

.sidebar__link-icon {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar__footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--color-border);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar__user-info {
  overflow: hidden;
}

.sidebar__user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: 0.7rem;
  color: var(--color-text-dim);
}

/* ── Main Content ── */

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content__header {
  height: var(--header-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-content__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.main-content__body {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
}

/* ── Mobile Menu Toggle ── */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

/* ── Cards ── */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card__header {
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Balance Card ── */

.balance-card {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
  border: none;
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.balance-card__label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.balance-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.balance-card__meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.75;
  display: flex;
  gap: 1.5rem;
}

/* ── Action Grid ── */

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.action-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: var(--color-text);
}

.action-card:hover {
  border-color: var(--color-primary);
  background: rgba(15, 118, 110, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.action-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.action-card__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.action-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ── Forms ── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-dim);
}

.form-error {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-help {
  color: var(--color-text-dim);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-errors {
  background: var(--color-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-error);
}

.form-errors ul {
  list-style: none;
  padding: 0;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  color: white;
}

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

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.btn-danger {
  background: var(--color-error);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Alerts / Toasts ── */

.alert-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  width: calc(100% - 2rem);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.alert-success {
  background: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.alert-error {
  background: #450a0a;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.alert-info {
  background: #0c4a6e;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.alert-warning {
  background: #451a03;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.alert__close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.alert__close:hover {
  opacity: 1;
}

/* ── Inline Alert ── */

.inline-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.inline-alert--info {
  background: var(--color-info-bg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--color-info);
}

.inline-alert--warning {
  background: var(--color-warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--color-warning);
}

.inline-alert--danger {
  background: var(--color-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--color-error);
}

/* ── Tables ── */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.data-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-deposit {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-deposit);
}

.badge-withdrawal {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-withdrawal);
}

/* ── Empty State ── */

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.empty-state__desc {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ── Auth Pages ── */

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

/* ── Quick Amount Presets ── */

.quick-amount-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quick-amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.1rem 0.75rem;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  color: var(--color-text);
  min-height: 88px;
}

.quick-amount-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-amount-btn.is-selected {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-amount-btn--withdraw:hover,
.quick-amount-btn--withdraw.is-selected {
  border-color: var(--color-withdrawal);
  background: rgba(249, 115, 22, 0.1);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.quick-amount-btn--deposit:hover,
.quick-amount-btn--deposit.is-selected {
  border-color: var(--color-deposit);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.quick-amount-btn__icon {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.85;
}

.quick-amount-btn__value {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quick-amount-btn__label {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.quick-amount-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.quick-amount-selected__text {
  color: var(--color-text-muted);
}

.quick-amount-selected__value {
  font-weight: 700;
  color: var(--color-text);
}

.quick-amount-selected__value.is-empty {
  color: var(--color-text-dim);
  font-weight: 500;
}

.auth-card--wide {
  max-width: 520px;
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card__logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.auth-card__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-card__logo-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.auth-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.auth-card__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.auth-card__footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Splash / Landing ── */

.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(15, 118, 110, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    var(--color-bg);
  text-align: center;
}

.splash__logo {
  margin-bottom: 2rem;
}

.splash__logo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}

.splash__title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.splash__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.splash__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.splash__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin-top: 4rem;
  width: 100%;
}

.splash__feature {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.splash__feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.splash__feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.splash__feature-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── Page Header ── */

.page-header {
  margin-bottom: 2rem;
}

.page-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.page-header__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ── Grid Layouts ── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.grid-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.span-2 {
  grid-column: span 2;
}

/* ── Stat Cards ── */

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-card__change {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 0.25rem;
}

/* ── Amount Display ── */

.amount-display {
  text-align: center;
  padding: 2rem;
}

.amount-display__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.amount-display__value {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary-light);
}

.amount-display__currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 0.25rem;
  opacity: 0.7;
}

/* ── Profile ── */

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info__name {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-info__meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ── Danger Zone ── */

.danger-zone {
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.05);
}

.danger-zone__title {
  color: var(--color-error);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.danger-zone__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ── Footer ── */

.site-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ── Utility ── */

.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.amount-positive { color: var(--color-deposit); font-weight: 600; }
.amount-negative { color: var(--color-withdrawal); font-weight: 600; }

/* ── Responsive ── */

@media (max-width: 1024px) {
  .grid-dashboard {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  .menu-toggle {
    display: flex;
  }
  .main-content__body {
    padding: 1.25rem;
  }
  .splash__features {
    grid-template-columns: 1fr;
  }
  .splash__title {
    font-size: 1.75rem;
  }
  .balance-card__amount {
    font-size: 2rem;
  }
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
  }
}
