/* ==========================================================================
   Account Hub - Apple Inspired Clean Minimalist UI Theme
   ========================================================================== */

:root {
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bg-main: #f5f5f7;
  --bg-card: #ffffff;
  --bg-input: #f2f2f7;
  --bg-input-hover: #e5e5ea;
  
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #a1a1a6;
  
  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-blue-light: #e8f2fd;
  
  --status-green: #34c759;
  --status-green-bg: #eafaf1;
  --status-orange: #ff9500;
  --status-orange-bg: #fff7eb;
  
  --notice-bg: #fff5f5;
  --notice-border: #ffdada;
  --notice-text: #d70015;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-focus: #0071e3;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-system);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(245, 245, 247, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.main-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   Notice Card (Red outline card in screenshot)
   ========================================================================== */
.notice-card {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #a8071a;
  line-height: 1.45;
}

.notice-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 1.5px;
}

/* ==========================================================================
   Control & Filter Panel (Screenshot 2 Red Box Area)
   ========================================================================== */
.control-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 113, 227, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.select-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.custom-select-container {
  position: relative;
  flex: 1;
}

.category-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 36px 11px 16px;
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.category-select:hover {
  background: var(--bg-input-hover);
}

.category-select:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 36px 11px 38px;
  font-family: var(--font-system);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:hover {
  background: var(--bg-input-hover);
}

.search-box input:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Category Pills Bar */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--border-light);
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.pill-item:hover {
  background: var(--bg-input-hover);
  color: var(--text-primary);
}

.pill-item.active {
  background: var(--text-primary);
  color: #ffffff;
}

.pill-count {
  font-size: 11px;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

.pill-item.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.stats-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-dot {
  width: 8px;
  height: 8px;
  background: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

/* ==========================================================================
   Cards Grid & Card Layout (Matching User's Screenshot)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.account-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-normal);
  position: relative;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  max-width: 100%;
}

.card-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apple-svg-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.card-status-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  letter-spacing: -0.2px;
}

.region-badge.region-cn {
  background: #fff1f0;
  color: #cf1322;
  border-color: #ffa39e;
}

.region-badge.region-us {
  background: #e6f4ff;
  color: #0958d9;
  border-color: #91caff;
}

.region-badge.region-hk {
  background: #f6ffed;
  color: #389e0d;
  border-color: #b7eb8f;
}

.region-badge.region-other {
  background: #f9f0ff;
  color: #531dab;
  border-color: #d3adf7;
}

/* Grok Trial Badge */
.grok-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  user-select: none;
  font-family: var(--font-system);
}

.grok-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.grok-badge-used {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #38383a;
}

.grok-badge-used:hover {
  background: #2c2c2e;
}

.grok-badge-unused {
  background: #f0f7ff;
  color: #0071e3;
  border-color: #bae0ff;
}

.grok-badge-unused:hover {
  background: #e6f4ff;
  border-color: #91caff;
}

.grok-svg-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: inline-block;
  vertical-align: -1px;
}

.region-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tag-btn:hover {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}
  border-radius: var(--radius-pill);
}

.card-status.status-active {
  color: var(--status-green);
  background: var(--status-green-bg);
}

.card-status.status-maintenance {
  color: var(--status-orange);
  background: var(--status-orange-bg);
}

.card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Card Field Row (Account & Password) */
.card-field-row {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 14px;
  gap: 10px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.card-field-row:hover {
  border-color: rgba(0, 0, 0, 0.08);
}

.field-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toggle-pwd-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.toggle-pwd-btn:hover {
  color: var(--text-primary);
}

/* Copy Button */
.btn-copy {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-copy:hover {
  background: #fdfdfd;
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-copy.copied {
  background: var(--status-green);
  color: #ffffff;
  border-color: var(--status-green);
}

/* Card Meta & Details */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-notes {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.card-action-links {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-system);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-blue-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-input-hover);
}

.btn-icon-only {
  padding: 10px 12px;
  font-size: 15px;
}

.text-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

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

.text-link.danger {
  color: #ff3b30;
}

.text-link.sm {
  font-size: 12px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: var(--bg-card);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: var(--bg-input);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-system);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

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

.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(29, 29, 31, 0.92);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease-in 2.2s forwards;
}

.toast.toast-success {
  border-left: 3px solid var(--status-green);
}

/* ==========================================================================
   Empty & Loading States
   ========================================================================== */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bg-input-hover);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 50px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* Responsive */
@media (max-width: 680px) {
  .container {
    padding: 24px 14px 60px;
  }
  .main-title {
    font-size: 26px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .control-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .select-wrapper, .search-box {
    width: 100%;
  }
  .action-buttons {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Header Top Bar & Actions
   ========================================================================== */
.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

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

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

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Lock Screen Modal (Apple Style Fullscreen Blur)
   ========================================================================== */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 38px 32px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.lock-card.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.lock-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #1d1d1f, #3a3a3c);
  color: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.apple-logo-lock {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.lock-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.lock-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Apple Passkey Button */
.btn-apple-passkey {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-apple-passkey:hover {
  background: #1c1c1e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-apple-passkey:active {
  transform: scale(0.98);
}

.passkey-icon {
  font-size: 20px;
  line-height: 1;
}

.passkey-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: auto;
}

.lock-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 18px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.lock-divider::before,
.lock-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lock-divider span {
  padding: 0 10px;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lock-input-wrap {
  position: relative;
  width: 100%;
}

.lock-input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #fbfbfd;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.lock-input-wrap input:focus {
  border-color: var(--apple-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.btn-toggle-view-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
}

.btn-toggle-view-pwd:hover {
  opacity: 1;
}

.btn-lock-submit {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.lock-error-msg {
  margin-top: 14px;
  padding: 8px 12px;
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffa39e;
  border-radius: 10px;
  font-size: 12.5px;
  text-align: center;
}

.lock-tip {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* Passkey Management in Settings Modal */
.passkey-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.passkey-section-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.passkey-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.passkey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

.passkey-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.passkey-item-icon {
  font-size: 18px;
}

.passkey-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.passkey-item-date {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}

