/* ============================================
   Agent Portal - Mobile-First Design System
   PayGate Branding
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-dark: #1e40af;

  --success: #22c55e;
  --success-light: #dcfce7;
  --warning: #f97316;
  --warning-light: #ffedd5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --header-h: 52px;
  --bottom-nav-h: 56px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   Login Page (No header/bottom nav)
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e8f0fe 100%);
}

.login-card {
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.login-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.login-logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.login-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.login-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.login-subtitle {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.login-form .form-group {
  margin-bottom: 14px;
}

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

.login-form .form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.15s;
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.captcha-row .form-group {
  flex: 1;
}

.captcha-img {
  height: 44px;
  width: 100px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 4px;
  cursor: pointer;
  user-select: none;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

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

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

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

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

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   App Layout (Pages with header/bottom nav)
   ============================================ */

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

.page-wrapper {
  flex: 1;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
}

.page-content {
  padding: 16px;
}

/* ============================================
   Top Header
   ============================================ */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
}

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

.hamburger-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-700);
  transition: all 0.15s;
}

.hamburger-btn:hover {
  background: var(--gray-50);
}

.hamburger-btn svg {
  width: 20px;
  height: 20px;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  position: relative;
  transition: all 0.15s;
}

.header-icon-btn:hover {
  background: var(--gray-50);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

/* ============================================
   Side Menu / Drawer
   ============================================ */

.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--white);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.side-menu-header {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.side-menu-user-info {
  flex: 1;
  min-width: 0;
}

.side-menu-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-menu-user-id {
  font-size: 12px;
  color: var(--text-muted);
}

.side-menu-user-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.side-menu-section {
  padding: 6px 14px 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.side-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}

.side-menu-link:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.side-menu-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.side-menu-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.side-menu-link .menu-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}

.side-menu-link.expanded .menu-arrow {
  transform: rotate(180deg);
}

.side-menu-submenu {
  padding-left: 48px;
  display: none;
}

.side-menu-submenu.active {
  display: block;
}

.side-menu-submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  transition: all 0.15s;
}

.side-menu-submenu-link:hover {
  color: var(--gray-900);
}

.side-menu-submenu-link.active {
  color: var(--primary);
  font-weight: 600;
}

.side-menu-footer {
  border-top: 1px solid var(--border);
  padding: 6px 0;
}

.side-menu-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.side-menu-logout:hover {
  background: var(--danger-light);
}

.side-menu-logout svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Bottom Navigation
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 54px;
}

.bottom-nav-item:hover {
  color: var(--gray-600);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

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

.balance-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.balance-amount {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.balance-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.balance-icon svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Stats Grid
   ============================================ */

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border);
}

.stat-card-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.stat-card-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-card-value.green { color: var(--success); }
.stat-card-value.orange { color: var(--warning); }
.stat-card-value.red { color: var(--danger); }
.stat-card-value.blue { color: var(--primary); }

/* ============================================
   Quick Actions
   ============================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.action-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.action-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-btn-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.action-btn-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.action-btn-icon svg {
  width: 18px;
  height: 18px;
}

.action-btn-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   Section
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.section-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

/* ============================================
   Table
   ============================================ */

.table-container {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gray-100);
}

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

.table tbody tr:hover {
  background: var(--gray-50);
}

/* ============================================
   Address List
   ============================================ */

.address-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.address-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.address-currency {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-900);
}

.address-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
}

.badge-active {
  background: var(--success-light);
  color: var(--success);
}

.badge-inactive {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-completed {
  background: var(--success-light);
  color: var(--success);
}

.badge-failed {
  background: var(--danger-light);
  color: var(--danger);
}

.address-value {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-bottom: 4px;
  word-break: break-all;
}

.address-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   Withdrawal History List
   ============================================ */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.history-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.history-item-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.history-item-date svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.history-item-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.history-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.history-detail-label {
  color: var(--text-muted);
}

.history-detail-value {
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ============================================
   Profile Page
   ============================================ */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.profile-id {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-info {
  padding: 16px;
}

.profile-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.profile-info-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
}

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

.profile-info-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  color: var(--gray-500);
}

.profile-info-icon svg {
  width: 18px;
  height: 18px;
}

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

.profile-info-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.profile-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   Customer Service
   ============================================ */

.cs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s;
}

.cs-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.cs-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-item-icon.telegram {
  background: #e8f5fd;
  color: #0088cc;
}

.cs-item-icon.whatsapp {
  background: #e8fdf0;
  color: #25d366;
}

.cs-item-icon.livechat {
  background: #fff3e8;
  color: #f97316;
}

.cs-item-icon.email {
  background: #f3e8fd;
  color: #8b5cf6;
}

.cs-item-icon svg {
  width: 22px;
  height: 22px;
}

.cs-item-content {
  flex: 1;
}

.cs-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

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

.cs-item-arrow {
  color: var(--text-muted);
}

.cs-item-arrow svg {
  width: 18px;
  height: 18px;
}

.cs-hours {
  margin-top: 20px;
  padding: 16px;
  background: var(--info-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cs-hours-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.cs-hours-text {
  font-size: 12px;
  color: var(--primary);
}

/* ============================================
   Form Elements
   ============================================ */

.form-group {
  margin-bottom: 16px;
}

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

.form-input,
.form-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.15s;
}

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

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 13px;
  color: var(--text-primary);
  resize: vertical;
  transition: all 0.15s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ============================================
   Modal (Bottom Sheet)
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 10px 18px 18px;
  max-width: 460px;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 3px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.modal-icon svg {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

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

/* ============================================
   Utilities
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
