/* ============ 全局样式 ============ */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --sidebar-width: 240px;
  --header-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============ 登录/注册页 ============ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.auth-box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  width: 100%;
  max-width: 440px;
  padding: 40px;
}
.auth-box .logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-box .logo .icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 12px;
}
.auth-box .logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
}
.auth-box .logo p {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 4px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all .2s;
  background: var(--white);
  color: var(--gray-800);
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline {
  background: white;
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 4px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.auth-box .divider {
  text-align: center;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 13px;
  position: relative;
}
.auth-box .divider::before,
.auth-box .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--gray-200);
}
.auth-box .divider::before { left: 0; }
.auth-box .divider::after { right: 0; }

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  max-width: 400px;
  background: var(--gray-800);
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ 管理后台布局 ============ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-width);
  background: var(--gray-900);
  color: white;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand .brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sidebar-brand h2 { font-size: 16px; font-weight: 700; }
.sidebar-brand span { font-size: 12px; color: var(--gray-400); display: block; }
.sidebar-nav {
  flex: 1;
  padding: 12px;
}
.sidebar-nav .nav-section {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 16px 12px 8px;
  letter-spacing: 1px;
  font-weight: 700;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 2px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-nav a.active { background: var(--primary); color: white; }
.sidebar-nav a .nav-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-footer .user-info { flex: 1; }
.sidebar-footer .user-name { font-size: 14px; font-weight: 600; }
.sidebar-footer .user-email { font-size: 12px; color: var(--gray-400); }
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* ============ 顶部栏 ============ */
.topbar {
  background: white;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 150;
}
.topbar h3 { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right .badge {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ============ 内容区 ============ */
.content { padding: 32px; }

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.stat-card .stat-value { font-size: 32px; font-weight: 800; color: var(--gray-800); margin: 4px 0; }
.stat-card .stat-change { font-size: 12px; color: var(--gray-400); }

/* 卡片组件 */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h4 { font-size: 16px; font-weight: 700; }
.card-body { padding: 24px; }

/* 表格 */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
table tr:hover td { background: var(--gray-50); }
table .actions { display: flex; gap: 8px; }

/* 标签/Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-purple { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-yellow { background: var(--warning-bg); color: var(--warning); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* 搜索框/工具栏 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.toolbar .search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.toolbar .search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: white;
  font-family: inherit;
}
.toolbar .search-box input:focus {
  outline: none;
  border-color: var(--primary);
}
.toolbar .search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 16px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-header h4 { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Tier & Reward Cards */
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tier-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all .2s;
  position: relative;
}
.tier-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tier-card .tier-icon { font-size: 48px; margin-bottom: 12px; }
.tier-card .tier-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tier-card .tier-threshold { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.tier-card .tier-benefit {
  font-size: 13px;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.reward-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.reward-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
  border: 2px solid transparent;
}
.reward-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.reward-card.inactive { opacity: .5; }
.reward-card .reward-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.reward-card .reward-body { padding: 20px; }
.reward-card .reward-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.reward-card .reward-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.reward-card .reward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.reward-card .reward-points {
  font-size: 20px;
  font-weight: 800;
  color: var(--warning);
}

/* 会员卡预览 */
.membership-card-preview {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  padding: 28px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.membership-card-preview::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.membership-card-preview .card-logo { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.membership-card-preview .card-number {
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
}
.membership-card-preview .card-row {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}
.membership-card-preview .card-field { font-size: 11px; opacity: .7; margin-bottom: 2px; }
.membership-card-preview .card-value { font-size: 15px; font-weight: 600; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { width: 240px; }
  .sidebar-brand h2, .sidebar-brand span, .sidebar-nav a span:not(.nav-icon), .sidebar-nav .nav-section, .sidebar-footer .user-email { display: block; }
  .sidebar-nav a { justify-content: flex-start; padding: 12px 16px; }
  .sidebar-nav a .nav-icon { font-size: 20px; }
  .main-content { margin-left: 240px; }
  .sidebar-brand { justify-content: flex-start; padding: 16px; }
  .sidebar-footer { justify-content: flex-start; padding: 12px; }
  .sidebar-footer .user-name { display: block; }
  .content { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-cards, .reward-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 24px; }
}

/* 颜色选择器 */
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot {
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all .15s;
}
.color-dot:hover { transform: scale(1.1); }
.color-dot.selected { border-color: var(--gray-800); }

/* 客户详情 */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.detail-item { }
.detail-item .label { font-size: 12px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.detail-item .value { font-size: 18px; font-weight: 700; }

/* 二维码占位 */
.qr-placeholder {
  width: 120px; height: 120px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

/* 设置页 */
.settings-section {
  margin-bottom: 32px;
}
.settings-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

/* 加载动画 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-400);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 24px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  font-family: inherit;
}
.tab:hover { color: var(--gray-700); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 活动卡片 */
.promo-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all .2s;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.promo-card.inactive { opacity: .5; border-left-color: var(--gray-300); }
.promo-card .promo-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.promo-card .promo-body { flex: 1; }
.promo-card .promo-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.promo-card .promo-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.promo-card .promo-meta { display: flex; gap: 16px; font-size: 12px; color: var(--gray-400); }
.promo-card .promo-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============ 语言切换器 ============ */
.lang-switcher { position: relative; display: inline-block; }
.lang-btn {
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 6px; padding: 4px 10px;
  font-size: 13px; cursor: pointer;
  white-space: nowrap; font-family: inherit;
}
.lang-btn:hover { background: var(--gray-200); }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  margin-top: 4px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  min-width: 140px; z-index: 1000; overflow: hidden;
  border: 1px solid var(--gray-100);
}
.lang-dropdown.show { display: block; }
.lang-option {
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  color: var(--gray-700); transition: background .15s;
}
.lang-option:hover { background: var(--gray-50); }
.lang-option.active { background: #eef2ff; color: var(--primary); font-weight: 600; }

/* ============ 顾客端样式 ============ */
.customer-auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  font-family: var(--font);
}
.customer-auth .auth-card {
  background: #fff; border-radius: 20px; padding: 48px 32px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  text-align: center;
}
.customer-auth .auth-card h2 { margin-bottom: 8px; font-size: 24px; }
.customer-auth .auth-card p { color: var(--gray-400); margin-bottom: 32px; font-size: 14px; }
.customer-auth .auth-card input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200);
  border-radius: 12px; font-size: 16px; text-align: center; margin-bottom: 12px;
  font-family: inherit;
}
.customer-auth .auth-card input:focus { border-color: var(--primary); outline: none; }
.customer-auth .auth-card button {
  width: 100%; padding: 14px; background: var(--primary); color: #fff;
  border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
}
.customer-auth .auth-card button:hover { background: var(--primary-dark); }

/* 顾客端会员卡 */
.membership-card-preview {
  padding: 28px; border-radius: 20px; color: #fff;
  min-height: 240px; display: flex; flex-direction: column;
  gap: 12px; position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.membership-card-preview::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.membership-card-preview .card-logo { font-size: 18px; font-weight: 700; }
.membership-card-preview .card-number {
  font-size: 20px; letter-spacing: 3px; font-weight: 600;
  font-family: 'Courier New', monospace;
}
.membership-card-preview .card-row { display: flex; justify-content: space-between; gap: 16px; }
.membership-card-preview .card-field { font-size: 11px; opacity: .7; margin-bottom: 2px; }
.membership-card-preview .card-value { font-size: 16px; font-weight: 600; }
.qr-placeholder {
  background: #fff; color: #333; width: 56px; height: 56px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-align: center; line-height: 1.2;
}

.customer-layout { min-height: 100vh; background: var(--gray-50); }
.customer-layout .topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--gray-100);
}
.customer-layout .topbar h3 { font-size: 18px; }
.customer-layout .content { padding: 20px; max-width: 600px; margin: 0 auto; }
.customer-layout .card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 16px;
}
.customer-layout .card h4 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.customer-bottom-nav {
  display: flex; justify-content: space-around; background: #fff;
  border-top: 1px solid var(--gray-100); padding: 8px 0;
  position: fixed; bottom: 0; left: 0; right: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.customer-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: var(--gray-400); text-decoration: none; padding: 4px 12px;
}
.customer-bottom-nav a.active { color: var(--primary); }
.customer-bottom-nav a .nav-icon { font-size: 22px; }
.redeem-btn {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.redeem-btn:disabled { background: var(--gray-200); cursor: not-allowed; }
.customer-auth .merchant-switch {
  margin-top: 20px; font-size: 13px; color: var(--gray-400);
}
.customer-auth .merchant-switch a { color: var(--primary); text-decoration: none; font-weight: 600; }
