/* ==========================================================================
   🔑 키챙겨 (Keep-Key) Web App Styling
   Design Philosophy: Cognitive Ease, Premium Dark Mode, Glassmorphism
   ========================================================================== */

/* Theme Variables */
:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Outfit', sans-serif;

  /* Custom Color Palette (Navy Theme Default) */
  --bg-main: #070913;
  --card-bg: rgba(20, 26, 46, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --btn-bg: rgba(255, 255, 255, 0.05);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0B0F19;

  /* Accent Colors */
  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;

  /* Central Card Gradients */
  --card-normal-bg: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  --card-normal-border: rgba(6, 182, 212, 0.25);
  --card-warning-bg: linear-gradient(135deg, #78350F 0%, #451A03 100%);
  --card-warning-border: rgba(245, 158, 11, 0.4);
  --card-success-bg: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
  --card-success-border: rgba(16, 185, 129, 0.4);
}

/* Theme Configurations */
body.theme-purple {
  --bg-main: #0B0716;
  --card-bg: rgba(30, 20, 46, 0.45);
  --accent-cyan: #C084FC;
  --accent-cyan-glow: rgba(192, 132, 252, 0.4);
  --card-normal-bg: linear-gradient(135deg, #3B0764 0%, #1E0036 100%);
}

body.theme-gold {
  --bg-main: #140D07;
  --card-bg: rgba(46, 30, 20, 0.45);
  --accent-cyan: #F59E0B;
  --accent-cyan-glow: rgba(245, 158, 11, 0.4);
  --card-normal-bg: linear-gradient(135deg, #78350F 0%, #291003 100%);
}

body.theme-forest {
  --bg-main: #050C0A;
  --card-bg: rgba(15, 36, 30, 0.45);
  --accent-cyan: #10B981;
  --accent-cyan-glow: rgba(16, 185, 129, 0.4);
  --card-normal-bg: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  transition: background-color 0.5s ease;
}

/* Floating Background Glows */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
}

.bg-glow-1 {
  width: 350px;
  height: 350px;
  background-color: var(--accent-cyan);
  top: -80px;
  right: -80px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background-color: #3B82F6;
  bottom: -100px;
  left: -100px;
}

/* Main Container Layout */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Top Header Bar */
.top-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 25px;
  z-index: 10;
}

.left-actions {
  display: flex;
  gap: 8px;
}

.utility-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.utility-btn i {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.utility-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.utility-btn:hover i {
  transform: scale(1.1);
}

/* Premium Upgrade Button Specific */
.premium-upgrade-btn {
  background: rgba(6, 182, 212, 0.06);
  border-color: var(--accent-cyan);
}

.premium-upgrade-btn .btn-text {
  color: var(--accent-cyan);
  font-weight: 700;
}

.premium-upgrade-btn i {
  color: var(--accent-cyan);
}

.premium-upgrade-btn:hover {
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* PRO Badge styling */
.pro-badge-container {
  background: var(--accent-cyan);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.pro-badge-container i {
  width: 16px;
  height: 16px;
  color: var(--text-dark);
}

/* App Main Headers */
.title-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-title {
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.app-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Central Card Component */
.main-card {
  border-radius: 28px;
  padding: 28px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-width: 1px;
  border-style: solid;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
}

/* State Background mappings */
.main-card.theme-normal {
  background: var(--card-normal-bg);
  border-color: var(--card-normal-border);
}

.main-card.theme-warning {
  background: var(--card-warning-bg);
  border-color: var(--card-warning-border);
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.15);
}

.main-card.theme-success {
  background: var(--card-success-bg);
  border-color: var(--card-success-border);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
}

/* Icon box inside Central Card */
.card-icon-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.main-card:hover .card-icon-container {
  transform: scale(1.08) rotate(5deg);
}

.card-icon-container i {
  width: 44px;
  height: 44px;
  color: #FFFFFF;
}

.card-text {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  margin: 18px 0;
  color: #FFFFFF;
}

/* Central Card button */
.check-button {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: #FFFFFF;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(255, 255, 255, 0.12);
}

.check-button:active {
  transform: translateY(1px);
}

/* Check Button state modification */
.main-card.theme-success .check-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.main-card.theme-success .check-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Settings Box */
.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.settings-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

/* Row-like Configurations */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

.setting-label-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-label-container i {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.setting-label {
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* Custom Switch Toggle button */
.custom-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  transition: 0.3s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

input:checked + .switch-slider {
  background-color: var(--accent-cyan);
}

input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Setting Blocks */
.setting-block {
  display: flex;
  flex-direction: column;
}

.margin-bottom-sm {
  margin-bottom: 12px;
}

.font-bold {
  font-weight: 700 !important;
}

.border-top-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
}

/* Alarm Items inside list */
.alarm-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.alarm-time-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alarm-label-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.alarm-time-input-styled {
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px 16px;
  color: var(--accent-cyan);
  font-family: var(--font-accent);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  color-scheme: dark; /* Keeps native popup in dark mode */
}

.alarm-time-input-styled:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.alarm-time-input-styled:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.alarm-actions {
  display: flex;
  gap: 8px;
}

.alarm-action-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.alarm-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.alarm-action-btn.delete i {
  color: var(--accent-error);
}

.alarm-action-btn.active i {
  color: var(--accent-cyan);
}

/* Add Alarm and Locked placeholder buttons */
.add-alarm-btn {
  width: 100%;
  height: 46px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-alarm-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
}

.add-alarm-btn.locked {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: pointer;
}

.add-alarm-btn.locked i {
  color: var(--text-muted);
}

.add-alarm-btn.locked:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Custom Message Block styling */
.lock-icon {
  margin-left: 6px;
  display: flex;
  align-items: center;
}

.lock-icon i {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.custom-msg-container {
  display: flex;
  gap: 8px;
  width: 100%;
}

.custom-msg-input {
  flex: 1;
  height: 42px;
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.custom-msg-input:focus {
  border-color: var(--accent-cyan);
}

.custom-msg-save-btn {
  background: var(--accent-cyan);
  color: var(--text-dark);
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.custom-msg-save-btn:hover {
  opacity: 0.9;
}

.custom-msg-placeholder-btn {
  width: 100%;
  height: 42px;
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: background-color 0.2s ease;
}

.custom-msg-placeholder-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.custom-msg-placeholder-btn .placeholder-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 90%;
}

.custom-msg-placeholder-btn i {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* Day Selector circles */
.days-title {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.days-row {
  display: flex;
  justify-content: space-between;
}

.day-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-circle:hover {
  background: rgba(255,255,255,0.08);
}

.day-circle.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--text-dark);
  font-weight: 700;
}

/* Premium Themes list row */
.themes-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-option {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.theme-option.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.theme-accent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 12px;
}

.theme-accent-dot.color-default { background-color: #06B6D4; }
.theme-accent-dot.color-purple { background-color: #C084FC; }
.theme-accent-dot.color-gold { background-color: #F59E0B; }
.theme-accent-dot.color-forest { background-color: #10B981; }

.theme-name {
  font-size: 14px;
  font-weight: 500;
}

.theme-lock-badge {
  position: absolute;
  right: 16px;
  top: 14px;
  display: flex;
  align-items: center;
}

.theme-lock-badge i {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* App factory reset button */
.app-reset-button {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.app-reset-button:hover {
  color: var(--accent-error);
}

/* Diagnostic test push notification trigger button */
.test-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
  padding: 10px;
  transition: color 0.2s ease;
}

.test-btn:hover {
  color: var(--text-main);
}

/* ==================== MODAL STYLING ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.modal-card.width-sm {
  max-width: 360px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-header i {
  width: 24px;
  height: 24px;
}

.color-cyan {
  color: var(--accent-cyan);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.modal-body-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Help modals items */
.help-item {
  margin-bottom: 18px;
}

.help-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.help-item-header i {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.help-item-title {
  font-size: 14.5px;
  font-weight: 600;
}

.help-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 26px;
}

.modal-close-btn {
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  height: 48px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Language selector list inside modal */
.lang-options-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.lang-option-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 15.5px;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  cursor: pointer;
}

.lang-option-btn.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

.lang-option-btn i {
  width: 18px;
  height: 18px;
}

/* ==================== PAYWALL MODAL (SLIDE UP) ==================== */

#modal-paywall {
  align-items: flex-end;
  padding: 0;
}

.paywall-container {
  background: #0D0E15;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  width: 100%;
  max-width: 480px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -15px 30px rgba(0,0,0,0.5);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.paywall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.close-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.close-icon-btn i {
  width: 24px;
  height: 24px;
}

.paywall-header-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-warning);
  letter-spacing: 1.5px;
}

.paywall-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Paywall Intro Glow effect */
.paywall-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 24px 0;
}

.glow-sparkles {
  background: rgba(245, 158, 11, 0.08);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.glow-sparkles i {
  width: 40px;
  height: 40px;
  color: var(--accent-warning);
  animation: pulseGlow 2s infinite ease-in-out;
}

.paywall-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-align: center;
}

.paywall-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 300px;
}

/* Benefits list inside Paywall */
.benefits-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-item i {
  width: 20px;
  height: 20px;
  color: var(--accent-warning);
}

.benefit-item span {
  font-size: 13.5px;
  font-weight: 500;
}

/* Plans section cards inside Paywall */
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

.plan-card-active {
  border-color: var(--accent-warning) !important;
  background: rgba(245, 158, 11, 0.02) !important;
}

.best-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent-warning);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.plan-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.plan-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-name.text-yellow {
  color: var(--accent-warning);
}

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

.color-white {
  color: #FFFFFF;
}

.color-yellow {
  color: var(--accent-warning);
}

.plan-card i {
  width: 18px;
  height: 18px;
}

/* Restore purchase options in Paywall */
.mock-restore-btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin: 14px auto;
  transition: color 0.2s ease;
}

.mock-restore-btn-link:hover {
  color: var(--text-main);
}

.disclaimer-text {
  font-size: 11px;
  color: #64748B;
  text-align: center;
  line-height: 1.5;
  margin: 10px 0 20px 0;
}

.quick-unlock-btn-link {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.quick-unlock-btn-link:hover {
  color: var(--text-muted);
}

/* ==================== SIMULATED CREDIT CARD CHECKOUT ==================== */

.checkout-card {
  z-index: 101; /* Layered above paywall */
}

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

.checkout-title {
  font-size: 17px;
  font-weight: 700;
}

.checkout-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.checkout-item .label {
  color: var(--text-muted);
}

.val {
  color: var(--text-main);
}

.text-cyan {
  color: var(--accent-cyan);
}

/* Mock Card Input Group styling */
.card-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.credit-card-field {
  display: flex;
  gap: 8px;
}

.card-input {
  width: 25%;
  height: 42px;
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-align: center;
  color: var(--text-main);
  font-size: 14px;
}

.help-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.pay-submit-btn {
  background: var(--accent-cyan);
  color: var(--text-dark);
  border: none;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
  transition: opacity 0.2s ease;
}

.pay-submit-btn:hover {
  opacity: 0.9;
}

/* ==================== LOADING SPINNER MODAL OVERLAY ==================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-box {
  background: #1E293B;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  max-width: 280px;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(245, 158, 11, 0.1);
  border-top-color: var(--accent-warning);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 16px;
}

.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-align: center;
}

.loading-subtext {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ==================== CUSTOM TOAST NOTIFICATION ==================== */

.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  backdrop-filter: blur(12px);
  animation: slideDownIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon i {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
}

.toast-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-text-container strong {
  font-size: 13.5px;
  color: #FFFFFF;
}

.toast-text-container span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.margin-bottom-md {
  margin-bottom: 20px;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */

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

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

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDownIn {
  from { transform: translate(-50%, -40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

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

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245,158,11,0.2)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(245,158,11,0.5)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245,158,11,0.2)); }
}

/* Responsive adjustments */
@media (max-width: 400px) {
  .app-container {
    padding: 14px;
  }
  .main-card {
    padding: 20px;
  }
}
