/* ============================================
   이음페이 Design System
   Theme: Minimalist & Trustworthy
   Primary: Navy (#000080)
   Background: Pure White (#FFFFFF)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #0A1551;
  --navy-light: #1a2a7a;
  --navy-dark: #000060;
  --navy-10: rgba(0, 0, 128, 0.10);
  --navy-05: rgba(0, 0, 128, 0.05);
  --navy-15: rgba(0, 0, 128, 0.15);
  --navy-20: rgba(0, 0, 128, 0.20);

  --white: #FFFFFF;
  --gray-50: #F8F9FC;
  --gray-100: #F0F2F7;
  --gray-200: #E2E5EE;
  --gray-300: #C8CDD9;
  --gray-400: #9CA3B5;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;

  --font-primary: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Pretendard Variable', sans-serif;

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

  --shadow-sm: 0 2px 6px rgba(10, 21, 81, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 21, 81, 0.10);
  --shadow-lg: 0 8px 28px rgba(10, 21, 81, 0.12);
  --shadow-xl: 0 16px 48px rgba(10, 21, 81, 0.14);
  --shadow-card: 0 4px 20px rgba(10, 21, 81, 0.12), 0 1px 4px rgba(10, 21, 81, 0.06);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 480px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Dark Mode System --- */
/* Disabled by user request to force light mode */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-base), color var(--transition-base);
}

#app {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: var(--white);
  box-shadow: 0 0 60px rgba(0, 0, 128, 0.04);
  transition: background var(--transition-base), color var(--transition-base);
}

/* --- Screen System --- */
.screen {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  padding-bottom: calc(64px + var(--safe-bottom));
}

.screen.slide-out {
  opacity: 0;
  transform: translateX(-20px);
}

/* --- Utilities: Loading & Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--radius-md);
  color: transparent !important;
  pointer-events: none;
}
.skeleton * {
  visibility: hidden;
}
@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
  z-index: 10;
}
.btn-outline.btn-loading::before {
  border: 2.5px solid var(--navy-20);
  border-top-color: var(--navy);
}
@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* --- Global Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.global-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--navy-10);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
  margin-bottom: 16px;
}
.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}


/* --- Micro-animations: Ripple Effect --- */
.ripple-element {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================
   HOME SCREEN
   ============================================ */

/* --- Header --- */
.home-header {
  padding: calc(var(--safe-top) + 16px) 24px 16px;
  background: linear-gradient(180deg, #F0F3FF 0%, var(--white) 100%);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.icon-btn:hover {
  background: var(--navy-05);
}

.icon-btn:active {
  background: var(--navy-10);
  transform: scale(0.95);
}

/* --- Greeting --- */
.greeting-area {
  margin-bottom: 4px;
}

.greeting-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.greeting-text strong {
  font-weight: 800;
  color: var(--navy);
  font-size: 22px;
}

.greeting-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- Stats Banner (Image) --- */
.stats-banner {
  margin: 0 20px 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 21, 81, 0.12);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.stat-icon {
  margin-bottom: 4px;
  opacity: 0.9;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Section --- */
.section-header {
  padding: 0 20px 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- Service Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px 24px;
  background: var(--white);
  border: 1px solid rgba(10, 21, 81, 0.06);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: rgba(10, 21, 81, 0.15);
  box-shadow: 0 12px 32px rgba(10, 21, 81, 0.15);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:active {
  transform: translateY(-2px) scale(0.96);
  box-shadow: var(--shadow-sm);
}

.card-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 21, 81, 0.06) 0%, rgba(10, 21, 81, 0.02) 100%);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

/* Icon color per service */
[data-service="rent"] .card-icon-wrap {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
}
[data-service="rent"] .card-icon { stroke: #3B82F6; }

[data-service="maintenance"] .card-icon-wrap {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
}
[data-service="maintenance"] .card-icon { stroke: #10B981; }

[data-service="delivery"] .card-icon-wrap {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
}
[data-service="delivery"] .card-icon { stroke: #F59E0B; }

[data-service="expense"] .card-icon-wrap {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.04) 100%);
}
[data-service="expense"] .card-icon { stroke: #8B5CF6; }

.service-card:hover .card-icon-wrap {
  background: var(--navy-10);
}

.card-icon {
  width: 32px;
  height: 32px;
}

.card-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: -6px;
  line-height: 1.3;
  text-align: center;
}

.trust-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin: 0 20px 32px;
  background: linear-gradient(135deg, rgba(10, 21, 81, 0.04) 0%, rgba(10, 21, 81, 0.02) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 21, 81, 0.08);
}

.trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: 50%;
  color: white;
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-text {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.trust-sub {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
}

/* --- PWA Install Banner --- */
.pwa-install-banner {
  margin: 0 20px 32px;
  animation: pwa-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0A1551 0%, #1a3a9a 50%, #2563eb 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(10, 21, 81, 0.25);
  position: relative;
  overflow: hidden;
}

.pwa-install-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.pwa-install-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.pwa-install-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.pwa-install-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  line-height: 1.3;
}

.pwa-install-action {
  flex-shrink: 0;
  padding: 8px 20px;
  background: #ffffff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: -0.2px;
}

.pwa-install-action:active {
  transform: scale(0.95);
  background: #f0f2f7;
}

/* iOS Safari install guide overlay */
.pwa-ios-guide-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.pwa-ios-guide {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.pwa-ios-guide h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
}

.pwa-ios-guide .step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid #f0f2f7;
}

.pwa-ios-guide .step:last-child { border-bottom: none; }

.pwa-ios-guide .step-num {
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.pwa-ios-guide .step-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

.pwa-ios-guide-close {
  margin-top: 20px;
  padding: 14px 0;
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================
   PAYMENT SCREEN
   ============================================ */

/* --- Sub Header --- */
.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 12px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sub-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.3px;
}

/* --- Service Badge --- */
.service-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 20px 0;
  padding: 14px 16px;
  background: var(--navy-05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--navy);
}

.badge-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
}

.badge-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

/* --- Form --- */
.payment-form {
  padding: 24px 20px calc(var(--safe-bottom) + 32px);
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.input-wrap {
  position: relative;
}

.input-amount-wrap {
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.input-amount {
  font-size: 32px !important;
  font-weight: 800;
  padding: 24px 20px !important;
  letter-spacing: -0.5px;
  color: var(--navy) !important;
  text-align: right;
  border-color: var(--navy-15);
  box-shadow: 0 4px 12px rgba(10, 21, 81, 0.04);
}

.input-amount::placeholder {
  color: var(--gray-300);
  font-weight: 500;
}

.input-amount:focus {
  border-color: var(--navy);
  box-shadow: 0 8px 24px var(--navy-10);
  background: var(--white);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-input:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--navy-10);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  pointer-events: none;
}

.input-amount-wrap .form-input {
  padding-right: 40px;
}

.form-hint {
  font-size: 12px;
  color: var(--navy);
  margin-top: 6px;
  min-height: 18px;
  font-weight: 500;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3B5' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* --- Summary Card --- */
.summary-card {
  margin: 8px 0 24px;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid rgba(10, 21, 81, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.summary-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.summary-key {
  font-size: 13px;
  color: var(--gray-400);
}

.summary-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

/* --- Buttons --- */
.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary.ripple-element::after {
  content: none; /* override old after */
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 12px;
}

.btn-secondary:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: scale(0.96);
}

.btn-outline {
  width: 100%;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--navy-20);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  background: var(--navy-05);
  border-color: var(--navy);
}

.btn-outline:active {
  transform: scale(0.96);
}

/* ============================================
   RESULT SCREEN
   ============================================ */
.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 28px calc(var(--safe-bottom) + 40px);
  text-align: center;
}

.result-icon-wrap {
  width: 100px;
  height: 100px;
  margin-bottom: 28px;
}

.result-icon {
  width: 100%;
  height: 100%;
}

/* Check animation */
.check-anim {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.8s 0.5s ease forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Gear rotation */
.gear-anim {
  animation: rotateGear 8s linear infinite;
  transform-origin: center;
}

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

.result-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.result-message {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.result-message strong {
  color: var(--gray-700);
}

.result-info {
  width: 100%;
  padding: 18px;
  background: var(--navy-05);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--gray-600);
  text-align: left;
}

.info-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: var(--gray-800);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  max-width: calc(100vw - 48px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================
   SIDE DRAWER
   ============================================ */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(2px);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background: var(--white);
  z-index: 51;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 128, 0.1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 16px) 16px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.drawer-menu {
  list-style: none;
  padding: 8px 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.drawer-item:hover {
  background: var(--navy-05);
  color: var(--navy);
}

.drawer-item:active {
  background: var(--navy-10);
}

.drawer-item svg {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.drawer-item:hover svg {
  color: var(--navy);
}

.drawer-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 20px;
}

.drawer-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-400);
}

/* ============================================
   FILE UPLOAD AREA
   ============================================ */
.form-sub-desc {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
  line-height: 1.4;
}

.label-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
}

.upload-area {
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--transition-fast);
}

.upload-area:hover {
  border-color: var(--navy-20);
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--navy-05);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--transition-fast);
}

.upload-btn:hover {
  background: var(--navy-10);
}

.upload-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-preview:empty {
  margin-top: 0;
}

.preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================
   FORM LEGAL LINKS
   ============================================ */
.form-legal {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.legal-link {
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.legal-link:hover {
  color: var(--navy-light);
}

/* ============================================
   TIMELINE (Result Screen)
   ============================================ */
.timeline {
  width: 100%;
  padding: 0 8px;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Vertical line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Done state */
.timeline-item.done .timeline-dot {
  background: var(--navy);
}

.timeline-item.done .timeline-dot::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.timeline-item.done::before {
  background: var(--navy);
}

/* Active state */
.timeline-item.active .timeline-dot {
  background: var(--white);
  border: 2.5px solid var(--navy);
  animation: pulse 2s infinite;
}

.timeline-item.active .timeline-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
}

/* Pending state */
.timeline-item.pending .timeline-dot {
  background: var(--gray-200);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
  text-align: left;
}

.timeline-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.timeline-item.pending .timeline-label {
  color: var(--gray-400);
}

.timeline-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ============================================
   PAGE CONTENT (Fees, Terms, Privacy)
   ============================================ */
.page-content {
  padding: 20px 20px calc(var(--safe-bottom) + 32px);
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(10, 21, 81, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.info-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.info-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.legal-text {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.9;
  word-break: keep-all;
}

.legal-text strong {
  color: var(--gray-700);
  font-size: 14px;
  display: inline-block;
  margin-top: 4px;
}

/* Fee Table */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fee-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--navy-05);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
}

.fee-table th:last-child {
  text-align: right;
}

.fee-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.fee-table td:last-child {
  text-align: right;
}

.fee-table .fee-total td {
  border-bottom: none;
  border-top: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
}

.fee-promo {
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
}

/* Calculator */
.calc-group {
  margin-bottom: 16px;
}

.calc-result {
  background: var(--navy-05);
  border-radius: var(--radius-md);
  padding: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-600);
}

.calc-row.highlight {
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--navy-20);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

/* Benefit List */
.benefit-list {
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.benefit-list li:last-child {
  border-bottom: none;
}

.benefit-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-list strong {
  color: var(--gray-800);
  font-size: 14px;
}

/* Legal Content */
.legal-content {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-date {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 24px 0 8px;
}

.legal-content h3:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 8px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  margin-bottom: 4px;
}

/* Legal Table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}

.legal-table th {
  text-align: left;
  padding: 10px 8px;
  background: var(--navy-05);
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
}

.legal-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-100);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

/* Subtle entrance for cards */
.service-card {
  animation: fadeInUp 0.5s ease backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.stats-banner {
  animation: fadeInUp 0.4s ease backwards;
}

/* ============================================
   AUTH SCREENS (Login / Signup)
   ============================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 32px;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

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

.auth-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.text-link {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: opacity var(--transition-fast);
}
.text-link:hover { opacity: 0.7; }

/* --- Signup Progress --- */
.signup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 40px;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition-base);
}

.progress-step.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,128,0.25);
}

.progress-step.done {
  background: var(--success);
  color: var(--white);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
}

/* --- Signup Steps --- */
.signup-step {
  display: none;
  padding: 24px 24px 40px;
  animation: fadeUp 0.3s ease;
}

.signup-step.active {
  display: block;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* --- Type Cards (Member Type Selection) --- */
.type-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.type-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.type-card:hover {
  border-color: var(--navy-20);
}

.type-card.selected {
  border-color: var(--navy);
  background: var(--navy-05);
}

.type-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.type-card strong {
  display: block;
  font-size: 18px;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.type-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.type-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-10);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* --- Signup Complete --- */
.complete-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 16px;
}

.complete-desc {
  font-size: 15px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 32px;
}

/* ============================================
   CARD LOCK OVERLAY
   ============================================ */
.card-lock {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(2px);
  z-index: 2;
}

.card-lock span {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
}

.service-card[data-locked="true"] .card-lock {
  display: flex;
}

.service-card[data-locked="true"] {
  cursor: not-allowed;
  pointer-events: auto;
}

.service-card {
  position: relative;
}

/* ============================================
   DEPOSIT DATE TABS
   ============================================ */
.deposit-tabs {
  display: flex;
  gap: 8px;
}

.dep-tab {
  flex: 1;
  padding: 12px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.dep-tab:hover {
  border-color: var(--navy-20);
}

.dep-tab.active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-05);
}

.date-picker {
  margin-top: 12px;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: 28px;
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--navy);
}

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

/* ============================================
   WARNING / CAUTION BOXES
   ============================================ */
.caution-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
}

.caution-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.caution-box ul {
  list-style: none;
  padding: 0;
}

.caution-box li {
  font-size: 12px;
  color: var(--gray-500);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

.caution-box li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--gray-400);
}

.warning-box {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0;
}

.warning-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: #E65100;
  margin-bottom: 6px;
}

.warning-box p {
  font-size: 13px;
  color: #795548;
  line-height: 1.5;
}

/* ============================================
   CONTRACT BUTTON & STATUS
   ============================================ */
.contract-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px dashed var(--navy-20);
  border-radius: var(--radius-md);
  background: var(--navy-05);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 8px;
}

.contract-btn:hover {
  border-color: var(--navy);
  background: var(--navy-10);
}

.contract-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.contract-fields:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================
   AGREEMENT ROW
   ============================================ */
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.agree-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.legal-link {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.label-required {
  font-size: 11px;
  font-weight: 700;
  color: var(--error);
  margin-left: 4px;
}

/* ============================================
   FORM HELPERS
   ============================================ */
.form-sub-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: -4px;
  margin-bottom: 12px;
}

.saved-indicator {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================
   DRAWER USER SECTION
   ============================================ */
.drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 8px;
}

.drawer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-10);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
}

.drawer-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.drawer-user-type {
  font-size: 12px;
  color: var(--gray-400);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding-bottom: var(--safe-bottom);
  z-index: 100;
  transition: transform var(--transition-base);
}

.bottom-nav.hidden {
  transform: translateX(-50%) translateY(100%);
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-tab span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nav-tab.active {
  color: var(--navy);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 0 0 4px 4px;
}

.nav-tab:active {
  transform: scale(0.95);
}

/* ============================================
   MORE PAGE
   ============================================ */
.more-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.more-menu-group {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-700);
  text-align: left;
  transition: background var(--transition-fast);
}

.more-menu-item:last-child {
  border-bottom: none;
}

.more-menu-item:hover {
  background: var(--gray-50);
}

.more-menu-item:active {
  background: var(--navy-05);
}

.more-menu-item span {
  flex: 1;
}

.more-arrow {
  flex-shrink: 0;
}

.more-logout {
  color: var(--error);
}

/* ============================================
   TAX WARNING BANNER (Delivery Payment)
   ============================================ */
.tax-warning-banner {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
  border: 1.5px solid #FECACA;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.tax-warning-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tax-warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  margin: 0 auto 8px;
}

.tax-warning-title {
  font-size: 14px;
  font-weight: 800;
  color: #B91C1C;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.tax-warning-body {
  margin-bottom: 12px;
}

.tax-warning-text {
  font-size: 13px;
  color: #7F1D1D;
  line-height: 1.6;
  margin-bottom: 10px;
}

.tax-warning-text strong {
  color: #DC2626;
  font-weight: 700;
}

.tax-warning-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #065F46;
  line-height: 1.4;
}

.tax-warning-tip svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.tax-warning-tip strong {
  font-weight: 700;
  color: #047857;
}

.tax-warning-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.06);
  border: 1.5px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 4px;
}

.tax-warning-checkbox:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
}

.tax-warning-checkbox .input-agree-tax {
  display: none;
}

.tax-checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #DC2626;
  border-radius: 5px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
}

.tax-checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  margin-top: -2px;
}

.input-agree-tax:checked ~ .tax-checkbox-custom {
  background: #DC2626;
  border-color: #DC2626;
}

.input-agree-tax:checked ~ .tax-checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.tax-checkbox-label {
  font-size: 13px;
  font-weight: 700;
  color: #991B1B;
  line-height: 1.4;
  flex: 1;
}

/* Checked state - banner turns calmer */
.tax-warning-banner:has(.input-agree-tax:checked) {
  border-color: rgba(5, 150, 105, 0.3);
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
}

.tax-warning-banner:has(.input-agree-tax:checked) .tax-warning-title {
  color: #065F46;
}

.tax-warning-banner:has(.input-agree-tax:checked) .tax-warning-checkbox {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
}

.tax-warning-banner:has(.input-agree-tax:checked) .tax-checkbox-label {
  color: #065F46;
}

.tax-warning-banner:has(.input-agree-tax:checked) .tax-checkbox-custom {
  background: #059669;
  border-color: #059669;
}

/* ============================================
   RESPONSIVE (Tablet+)
   ============================================ */
@media (min-width: 481px) {
  body {
    background: var(--gray-100);
  }
  #app {
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
  }
}

/* ============================================
   PAYROLL SCREEN
   ============================================ */

/* --- Segment Tabs --- */
.payroll-segment {
  display: flex;
  gap: 4px;
  margin: 12px 20px 0;
  padding: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.segment-btn {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segment-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.payroll-tab-content {
  display: none;
  padding: 16px 20px calc(var(--safe-bottom) + 80px);
}

.payroll-tab-content.active {
  display: block;
}

/* --- Summary Card --- */
.payroll-summary-card {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a7a 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.payroll-summary-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.payroll-summary-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.payroll-summary-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* --- Section Header --- */
.payroll-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.payroll-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.check-all-label {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* --- Worker Card --- */
.worker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid rgba(10, 21, 81, 0.06);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.worker-card:hover {
  border-color: var(--navy-15);
  box-shadow: var(--shadow-lg);
}

.worker-card:active {
  transform: scale(0.98);
}

.worker-avatar,
.settle-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #2d3fa0 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.worker-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.worker-wage {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px;
}

.worker-pay {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2px;
}

.btn-worklog {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-05);
  border: 1px solid var(--navy-10);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-worklog:hover {
  background: var(--navy-10);
}

.worker-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn-work-status {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-work-status:hover {
  background: var(--gray-100);
}

.btn-resign {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
  background: transparent;
  border: 1px solid #fce4e4;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-resign:hover {
  background: #fdf0f0;
  border-color: #e74c3c;
}

/* ===== Custom Confirm Dialog ===== */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-overlay.show {
  display: flex;
}

.confirm-card {
  width: 100%;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 24px 24px;
  text-align: center;
  animation: confirmPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes confirmPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.confirm-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.confirm-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.confirm-cancel {
  color: var(--gray-600);
  background: var(--gray-100);
}

.confirm-cancel:active {
  background: var(--gray-200);
}

.confirm-ok {
  color: #fff;
  background: #e74c3c;
}

.confirm-ok:active {
  background: #c0392b;
}

.btn-add-worker {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-05);
  border: 2px dashed var(--navy-15);
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--transition-fast);
}

.btn-add-worker:hover {
  background: var(--navy-10);
  border-color: var(--navy-20);
}

/* --- Worker Empty State --- */
.worker-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
}

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

.worker-empty p {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.worker-empty span {
  font-size: 13px;
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: var(--max-width);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px 32px;
  margin-bottom: 64px;
  animation: slideUp 0.3s ease;
}

.modal-card-lg {
  max-height: 85vh;
  overflow-y: auto;
}

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

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-800);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  color: var(--gray-500);
  cursor: pointer;
}

.modal-body {
  margin-bottom: 16px;
}

/* --- Wage Type Toggle --- */
.wage-type-toggle {
  display: flex;
  gap: 8px;
}

.wage-type-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wage-type-btn.active {
  color: var(--navy);
  background: var(--navy-05);
  border-color: var(--navy);
}

/* --- Calendar --- */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-month-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  font-size: 20px;
  color: var(--gray-600);
  cursor: pointer;
}

.calendar-grid {
  margin-bottom: 16px;
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.cal-header span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 4px 0;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.cal-day:hover:not(.empty) {
  background: var(--gray-100);
}

.cal-day.empty {
  cursor: default;
}

.cal-day.today {
  border: 2px solid var(--navy);
  font-weight: 700;
}

.cal-day.worked {
  background: var(--navy);
  color: white;
  font-weight: 700;
}

.cal-day.worked.today {
  border-color: white;
  box-shadow: 0 0 0 2px var(--navy);
}

.worklog-month-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--navy-05);
  border-radius: var(--radius-md);
}

.worklog-month-summary span {
  font-size: 13px;
  color: var(--gray-500);
}

.worklog-month-summary strong {
  font-size: 16px;
  color: var(--navy);
}

.worklog-amount {
  font-weight: 700 !important;
  color: var(--navy) !important;
  font-size: 15px !important;
}

/* --- Hours Input Panel --- */
.worklog-hours-input {
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

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

.hours-input-header span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.hours-input-label {
  font-size: 12px;
  color: var(--gray-400);
}

.hours-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-05);
  border: 1px solid var(--navy-15);
  border-radius: 50%;
  cursor: pointer;
}

.hours-display {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.hours-display input {
  width: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  border: none;
  background: none;
  outline: none;
  -moz-appearance: textfield;
}
.hours-display input::-webkit-outer-spin-button,
.hours-display input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.hours-display span {
  font-size: 14px;
  color: var(--gray-500);
}

.hours-save-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hours-delete-btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Calendar day with hours label */
.cal-day {
  flex-direction: column;
  line-height: 1;
}
.cal-day small {
  font-size: 8px;
  opacity: 0.8;
  margin-top: 1px;
}
.cal-day.selected {
  background: var(--navy-10);
  border: 2px solid var(--navy);
  font-weight: 700;
  color: var(--navy);
}

/* --- Settlement --- */
.settle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settle-item:has(input:checked) {
  border-color: var(--navy-15);
  background: var(--navy-05);
}

.settle-info {
  flex: 1;
}

.settle-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.settle-detail {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px;
}

.settle-pay {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.settlement-summary {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin: 16px 0;
}

.settlement-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-600);
}

.settlement-row.total {
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.btn-settle {
  width: 100%;
  margin-top: 8px;
}

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

/* --- Receipt --- */
.receipt-header {
  text-align: center;
  padding: 20px 0;
}

.receipt-date {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.receipt-total-label {
  font-size: 13px;
  color: var(--gray-500);
}

.receipt-total-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}

.receipt-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}

.receipt-rows {
  padding: 8px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-700);
}

.receipt-row.fee {
  color: var(--gray-400);
  font-size: 13px;
}

.receipt-footer {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

/* --- Report Toggle --- */
.report-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid rgba(10, 21, 81, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: 0 3px 12px rgba(10, 21, 81, 0.08);
}

.report-toggle-info {
  display: flex;
  flex-direction: column;
}

.report-toggle-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.report-toggle-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--navy);
}

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

/* --- Report Card (Premium) --- */
.report-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 21, 81, 0.12), 0 1px 4px rgba(10, 21, 81, 0.06);
  border: 1px solid rgba(10, 21, 81, 0.08);
}

.report-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px;
  background: linear-gradient(135deg, rgba(10,21,81,0.03) 0%, rgba(10,21,81,0.00) 100%);
  border-bottom: 1px solid var(--gray-100);
}

.report-avatar-wrap {
  position: relative;
}

.report-card-info { flex: 1; min-width: 0; }

.report-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.report-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  white-space: nowrap;
}

.report-month-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-05);
  border: 1px solid var(--navy-10);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  align-self: flex-start;
}

.report-breakdown {
  padding: 12px 16px 4px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray-700);
}

.row-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.row-dot.blue { background: var(--navy); }
.row-dot.red { background: #d32f2f; }

.report-amount {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 15px;
}

/* 주휴수당 내역 카드 */
.report-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
}

.report-holiday-card {
  background: #f8fbf9;
  border: 1px solid rgba(10, 138, 74, 0.10);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  margin: 4px 0 8px;
  box-shadow: 0 2px 8px rgba(10, 138, 74, 0.06);
}

.report-holiday-card .report-row.sub {
  font-size: 13px;
  color: var(--gray-600);
  padding: 7px 0;
  border-bottom: 1px solid rgba(10, 138, 74, 0.06);
}

.report-holiday-card .report-row.sub:last-of-type {
  border-bottom: none;
}

.week-hours {
  font-weight: 700;
  color: var(--navy);
  font-size: 12px;
  background: var(--navy-05);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.badge-positive {
  font-size: 12px;
  font-weight: 700;
  color: #0a8a4a;
  background: rgba(10, 138, 74, 0.08);
  padding: 3px 8px;
  border-radius: 100px;
}

.badge-muted {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-300);
  background: var(--gray-50);
  padding: 3px 8px;
  border-radius: 100px;
}

.holiday-total {
  padding: 10px 0 6px !important;
  font-weight: 700;
  border-top: 1px solid rgba(10, 138, 74, 0.12) !important;
  border-bottom: none !important;
}

.tax-row {
  padding: 10px 0;
  border-top: 1px dashed var(--gray-200);
  margin-top: 4px;
}

.text-positive {
  color: #0a8a4a;
  font-weight: 700;
}

.text-negative {
  color: #d32f2f;
  font-weight: 700;
}

.text-muted {
  color: var(--gray-300);
  font-size: 12px;
}

/* 최종 지급액 */
.report-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--navy-05);
  border-top: 1px solid var(--gray-100);
  position: relative;
}

.report-total-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}

.report-total-amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.report-total-amount small {
  font-size: 13px;
  font-weight: 600;
  margin-left: 2px;
  color: var(--gray-500);
}

/* 명세서 전송 버튼 */
.btn-send-slip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: none;
  border-top: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

@media (max-width: 360px) {
  .greeting-text { font-size: 22px; }
  .service-card { padding: 24px 12px 20px; }
  .stat-value { font-size: 14px; }
  .type-card { padding: 16px; }
  .deposit-tabs { gap: 4px; }
  .dep-tab { font-size: 13px; padding: 10px 4px; }
  .nav-tab span { font-size: 10px; }
}

/* ============================================
   HTML CLASS ALIASES
   (Mapping HTML class names to CSS styles)
   ============================================ */

/* Login screen */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 32px;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

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

.login-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-footer {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-login:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: opacity var(--transition-fast);
}

.btn-text:hover { opacity: 0.7; }

/* Input fields */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: -0.2px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.input-field::placeholder {
  color: var(--gray-300);
}

.input-field:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--navy-10);
}

select.input-field {
  cursor: pointer;
  -webkit-appearance: menulist-button;
  appearance: menulist-button;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3B5' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--gray-50);
  padding-right: 40px;
}

/* Screen headers */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: calc(var(--safe-top) + 12px) 12px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.3px;
}

.screen-body {
  padding: 20px 20px calc(var(--safe-bottom) + 32px);
}

.home-body {
  padding: 0 0 calc(var(--safe-bottom) + 32px);
}

.home-body .section-title {
  padding: 0 20px 16px;
}

/* Back buttons */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-back:hover {
  background: var(--navy-05);
}

.btn-back:active {
  background: var(--navy-10);
}

/* Signup */
.btn-full {
  width: 100%;
}

.step-content {
  margin-bottom: 24px;
}

.step-desc {
  font-size: 15px;
  color: var(--gray-500);
}

.type-selection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

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

.type-desc {
  font-size: 13px;
  color: var(--gray-500);
}

/* Home greeting */
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-greeting {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: -0.3px;
}

/* Payment form sections */
.pay-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pay-section {
  margin-bottom: 24px;
}

.pay-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.btn-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--navy-05);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--transition-fast);
}

.btn-upload:hover {
  background: var(--navy-10);
}

.saved-badge {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
}

.amount-display {
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
  margin-top: 4px;
  min-height: 18px;
}

.btn-pay {
  margin-top: 16px;
}

/* Result screen */
.result-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.result-actions {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* More page */
.more-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.more-avatar-wrap {
  flex-shrink: 0;
}

.more-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-10);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.more-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.more-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.more-user-type {
  font-size: 12px;
  color: var(--gray-400);
}

.more-menu {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.btn-logout {
  width: 100%;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--error);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
}

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

.empty-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: var(--max-width);
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-worklog-content {
  max-height: 90vh;
}

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

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--gray-500);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* Payroll */
.payroll-segment {
  display: flex;
  gap: 0;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 3px;
  margin-bottom: 20px;
}

.segment-btn {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-radius: calc(var(--radius-lg) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segment-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.payroll-tab-content {
  display: none;
}

.payroll-tab-content.active {
  display: block;
}

.payroll-summary-card {
  background: linear-gradient(135deg, var(--navy) 0%, #162270 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--white);
}

.payroll-summary-row {
  display: flex;
  justify-content: space-around;
}

.payroll-summary-label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.payroll-summary-value {
  font-size: 20px;
  font-weight: 700;
}

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

.worker-section .section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.btn-add-worker {
  padding: 8px 16px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-05);
  border: 1px solid var(--navy-20);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-worker:hover {
  background: var(--navy-10);
}

/* Calendar */
.cal-section {
  margin-top: 24px;
}

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

.cal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.cal-nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.cal-nav:hover {
  background: var(--navy-05);
  border-color: var(--navy-20);
  color: var(--navy);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.cal-weekday {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 8px 0;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Worklog modal */
.worklog-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 16px;
}

.worklog-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.worklog-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  text-align: center;
}

.worklog-stat-label {
  font-size: 12px;
  color: var(--gray-400);
}

.worklog-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.hours-input-panel .input-label {
  text-align: center;
  margin-bottom: 8px;
}

.hours-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.hours-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.hours-btn:hover {
  background: var(--navy-05);
  border-color: var(--navy-20);
  color: var(--navy);
}

.hours-display {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  min-width: 60px;
  text-align: center;
}

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

.btn-hours-save {
  flex: 1;
  padding: 12px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-hours-delete {
  padding: 12px 20px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--error);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Report toggle */
.report-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.report-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-toggle-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.report-toggle-desc {
  font-size: 12px;
  color: var(--gray-400);
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ============================================
   TAX SETTLEMENT (연말정산)
   ============================================ */
.tax-summary-card {
  margin: 20px;
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tax-summary-title {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.tax-summary-amount {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.tax-summary-desc {
  font-size: 12px;
  opacity: 0.7;
}

.tax-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin-top: 10px;
}

.tax-list-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.btn-download-tax {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--navy-05);
  color: var(--navy);
  border: 1px solid var(--navy-10);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-download-tax:hover {
  background: var(--navy-10);
}

#tax-history-list {
  padding: 0 20px 20px;
}

/* Print Area (Hidden by default) */
#print-area {
  display: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  /* Hide all non-essential elements */
  body > *:not(#app) { display: none !important; }
  #app > *:not(#print-area) { display: none !important; }
  
  /* Reset app container for printing */
  #app {
    box-shadow: none !important;
    background: transparent !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Show print area */
  #print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    color: #000;
  }

  /* Document Styling */
  .tax-document {
    padding: 20mm;
    font-family: 'Malgun Gothic', 'Dotum', sans-serif;
  }

  .doc-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
  }

  .doc-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 2px;
  }

  .doc-header p {
    font-size: 18px;
    color: #555;
  }

  .doc-user-info {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
  }

  .doc-user-info .info-row {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .doc-user-info .label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
    color: #333;
  }

  .doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
  }

  .doc-table th, .doc-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
    font-size: 13px;
  }

  .doc-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
  }

  .doc-table tfoot td {
    background-color: #f9f9f9;
    font-size: 16px;
  }

  .doc-footer {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 50px;
    line-height: 1.6;
  }

  .seal-area {
    margin-top: 30px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 50px;
  }

  .seal-img {
    margin-left: 10px;
    position: relative;
    top: 5px; /* 약간 텍스트와 겹치게(도장 찍힌 느낌) 배치 */
    opacity: 0.9;
  }
}

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.toggle-switch .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; }
.toggle-switch input:checked + .slider { background-color: var(--primary, #2ecc71); }
.toggle-switch input:checked + .slider:before { transform: translateX(16px); }
.toggle-switch .slider.round { border-radius: 20px; }
.toggle-switch .slider.round:before { border-radius: 50%; }

/* ============================================
   Landing Page Styles
   ============================================ */
/* Slider Container */
.landing-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.landing-slider {
  display: flex;
  width: 100%;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scroll-behavior: smooth;
}
.landing-slider::-webkit-scrollbar {
  display: none;
}

.landing-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 180px;
  scroll-snap-align: start;
  position: relative;
  padding: 20px 24px 44px 24px;
  overflow: hidden;
}

/* Common slide styles */
.slide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.slide-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.slide-desc {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.slide-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* Slide 1: Blue */
.slide-blue {
  background-color: #0A58CA;
  background-image: linear-gradient(90deg, #0A58CA 30%, rgba(10, 88, 202, 0.1) 80%), url('images/banner_rent.png');
  background-size: 100% 100%, contain;
  background-position: left center, right center;
  background-repeat: no-repeat;
  color: white;
}
.slide-blue .slide-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.slide-blue .slide-title {
  color: white;
}
.slide-blue .slide-tag {
  background: rgba(0, 0, 0, 0.4);
  color: white;
}
.decor-card {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 1;
}
.decor-card-green {
  background: #10B981;
  width: 70px;
  height: 110px;
  right: -10px;
  top: 20px;
  transform: rotate(15deg);
}
.decor-card-green::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 15px; height: 10px;
  background: #059669;
  border-radius: 2px;
}
.decor-card-white {
  background: white;
  width: 90px;
  height: 130px;
  right: 20px;
  bottom: -30px;
  transform: rotate(-10deg);
}
.decor-card-white::before {
  content: '';
  position: absolute;
  top: 15px; right: 15px;
  width: 20px; height: 15px;
  background: #E5E7EB;
  border-radius: 3px;
}

/* Slide 2: Black */
.slide-black {
  background-color: #111111;
  background-image: linear-gradient(90deg, #111111 30%, rgba(17, 17, 17, 0.1) 80%), url('images/banner_business.png');
  background-size: 100% 100%, contain;
  background-position: left center, right center;
  background-repeat: no-repeat;
  color: white;
}
.slide-black .slide-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.slide-black .slide-title {
  color: white;
}
.text-gold {
  color: #FFD700;
}
.tag-gold {
  background: linear-gradient(90deg, #FDE047, #F59E0B);
  color: #451A03;
}
.slide-speech {
  position: absolute;
  top: 16px;
  right: 60px;
  background: #F43F5E;
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 10px;
  border-radius: 50%;
  text-align: center;
  line-height: 1.1;
  transform: rotate(15deg);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
}
.slide-speech::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: #F43F5E transparent transparent #F43F5E;
}
.decor-lightning {
  position: absolute;
  font-size: 120px;
  right: -20px;
  bottom: -30px;
  opacity: 0.9;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* Slide 3: Orange */
.slide-orange {
  background-color: #F97316;
  background-image: linear-gradient(90deg, #F97316 30%, rgba(249, 115, 22, 0.1) 80%), url('images/banner_safe.png');
  background-size: 100% 100%, contain;
  background-position: left center, right center;
  background-repeat: no-repeat;
  color: white;
}
.slide-orange .slide-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.slide-orange .slide-title {
  color: white;
}
.text-green {
  color: #4ADE80;
}
.tag-white {
  background: white;
  color: #111827;
}
.decor-safe {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 140px;
  height: 180px;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 4px solid #FFEDD5;
  border-bottom: none;
  z-index: 1;
}
.decor-safe::before {
  content: '';
  position: absolute;
  top: 40px; left: 10px; right: 10px; height: 60px;
  background: #F87171;
  border-radius: 8px;
}
.safe-box {
  position: absolute;
  top: -15px;
  left: -30px;
  background: white;
  color: #111827;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.safe-icon {
  background: #10B981;
  color: white;
  border-radius: 50%;
  padding: 2px;
  font-size: 10px;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 4px 10px;
  z-index: 5;
}
.slider-counter {
  color: white;
  font-size: 11px;
  font-weight: 600;
  margin: 0 8px;
  font-family: var(--font-display);
}
.slider-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-content {
  padding: 24px 20px 100px;
  background: #f8fafc;
  min-height: calc(100vh - 270px);
}
.landing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}
.landing-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}
.landing-benefit-list li {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.landing-benefit-list li:last-child {
  margin-bottom: 0;
}
.landing-benefit-list .check.green { color: #2ecc71; }
.landing-benefit-list .check.blue { color: #3498db; }
.landing-guest-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.landing-guest-btn:hover {
  background: #e2e8f0;
}
.landing-login-wrap {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #64748b;
}
.landing-login-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  margin-left: 8px;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================
   Unified Empty State
   ============================================ */
.empty-state-unified {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}
.empty-state-unified .empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  font-size: 28px;
}
.empty-state-unified p {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.empty-state-unified span {
  font-size: 13px;
  color: var(--gray-400);
}

/* 이용후기 마키(무한 롤링) 애니메이션 */
@keyframes reviewsMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1168px); } /* 카드 4개 = (280px + 12px gap) * 4 */
}

.reviews-marquee-track {
  animation: reviewsMarquee 20s linear infinite;
}

.reviews-marquee-track:hover {
  animation-play-state: paused;
}

#landing-reviews-slider::-webkit-scrollbar {
  display: none;
}

/* ============================================
   INSTALLMENT POLICY POPUP
   ============================================ */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popup-installment {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.popup-overlay.active .popup-installment {
  transform: translateY(0) scale(1);
}

/* --- Header --- */
.popup-installment-header {
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a7a 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.popup-installment-badge {
  display: inline-flex;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.popup-installment-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.popup-installment-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.popup-installment-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* --- Body --- */
.popup-installment-body {
  padding: 0;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* --- Table --- */
.installment-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}

.installment-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.installment-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 11px;
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--gray-200);
  letter-spacing: -0.2px;
}

.installment-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  line-height: 1.45;
  vertical-align: top;
  font-size: 11.5px;
}

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

.installment-table tbody tr:hover {
  background: rgba(10, 21, 81, 0.02);
}

/* Column widths */
.col-card { width: 60px; }
.col-free { width: 65px; }
.col-partial { width: 180px; }
.col-note { min-width: 160px; }

/* Card name cell */
.card-name {
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card color dots */
.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red { background: #EF4444; }
.dot-purple { background: #8B5CF6; }
.dot-yellow { background: #EAB308; }
.dot-blue { background: #3B82F6; }
.dot-navy { background: #1E3A8A; }
.dot-green { background: #22C55E; }
.dot-black { background: #1F2937; }
.dot-skyblue { background: #38BDF8; }
.dot-orange { background: #F97316; }
.dot-pink { background: #EC4899; }

.note-cell {
  font-size: 10.5px;
  color: var(--gray-500);
  line-height: 1.5;
}

.text-muted {
  color: var(--gray-300);
  text-align: center;
}

/* --- Footnote --- */
.installment-footnote {
  padding: 10px 12px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.installment-footnote p {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* --- Footer --- */
.popup-installment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.popup-noshow-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-500);
  user-select: none;
}

.popup-noshow-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

.btn-popup-confirm {
  padding: 8px 28px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-popup-confirm:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-popup-confirm:active {
  transform: scale(0.96);
}

/* ============================
   HISTORY FILTER TABS
   ============================ */
.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-tab:hover {
  border-color: var(--navy-15);
  color: var(--navy);
}

.filter-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 600;
}

.history-filter-tabs::-webkit-scrollbar {
  display: none;
}
.history-filter-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

 / *   P a y m e n t   P r o g r e s s   T r a c k e r   * / 
 . p r o g r e s s - t r a c k e r   { 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
     m a r g i n :   3 0 p x   0 ; 
     p o s i t i o n :   r e l a t i v e ; 
     w i d t h :   1 0 0 % ; 
 } 
 . p r o g r e s s - s t e p   { 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     a l i g n - i t e m s :   c e n t e r ; 
     p o s i t i o n :   r e l a t i v e ; 
     z - i n d e x :   2 ; 
     t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
     f l e x :   1 ; 
 } 
 . s t e p - d o t   { 
     w i d t h :   2 4 p x ; 
     h e i g h t :   2 4 p x ; 
     b o r d e r - r a d i u s :   5 0 % ; 
     b a c k g r o u n d - c o l o r :   v a r ( - - g r a y - 2 0 0 ) ; 
     c o l o r :   # f f f ; 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     f o n t - s i z e :   1 2 p x ; 
     f o n t - w e i g h t :   b o l d ; 
     m a r g i n - b o t t o m :   8 p x ; 
     t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
     b o x - s h a d o w :   0   0   0   3 p x   # f f f ; 
 } 
 . s t e p - l a b e l   { 
     f o n t - s i z e :   1 1 p x ; 
     c o l o r :   v a r ( - - g r a y - 4 0 0 ) ; 
     f o n t - w e i g h t :   5 0 0 ; 
     t e x t - a l i g n :   c e n t e r ; 
     w h i t e - s p a c e :   n o w r a p ; 
 } 
 . p r o g r e s s - l i n e   { 
     f l e x :   1 ; 
     h e i g h t :   2 p x ; 
     b a c k g r o u n d - c o l o r :   v a r ( - - g r a y - 2 0 0 ) ; 
     p o s i t i o n :   r e l a t i v e ; 
     t o p :   - 1 2 p x ; 
     z - i n d e x :   1 ; 
     m a r g i n :   0   - 1 0 p x ; 
     t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 / *   A c t i v e   s t a t e   * / 
 . p r o g r e s s - s t e p . a c t i v e   . s t e p - d o t   { 
     b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
     a n i m a t i o n :   p u l s e   1 . 5 s   i n f i n i t e ; 
 } 
 . p r o g r e s s - s t e p . a c t i v e   . s t e p - l a b e l   { 
     c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
     f o n t - w e i g h t :   6 0 0 ; 
 } 
 / *   C o m p l e t e d   s t a t e   * / 
 . p r o g r e s s - s t e p . c o m p l e t e d   . s t e p - d o t   { 
     b a c k g r o u n d - c o l o r :   v a r ( - - s u c c e s s - c o l o r ) ; 
 } 
 . p r o g r e s s - s t e p . c o m p l e t e d   . s t e p - l a b e l   { 
     c o l o r :   v a r ( - - s u c c e s s - c o l o r ) ; 
 } 
 . p r o g r e s s - l i n e . c o m p l e t e d   { 
     b a c k g r o u n d - c o l o r :   v a r ( - - s u c c e s s - c o l o r ) ; 
 } 
 
 @ k e y f r a m e s   p u l s e   { 
     0 %   {   b o x - s h a d o w :   0   0   0   0   r g b a ( 1 0 ,   2 1 ,   8 1 ,   0 . 4 ) ;   } 
     7 0 %   {   b o x - s h a d o w :   0   0   0   6 p x   r g b a ( 1 0 ,   2 1 ,   8 1 ,   0 ) ;   } 
     1 0 0 %   {   b o x - s h a d o w :   0   0   0   0   r g b a ( 1 0 ,   2 1 ,   8 1 ,   0 ) ;   } 
 } 
  
 

/* ============================================
   PROGRESS TRACKER SYSTEM (Horizontal Stepper)
   ============================================ */
.progress-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  margin: 32px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Reset squished style designed for signup dots */
.progress-tracker .progress-step {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.progress-tracker .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  transition: all var(--transition-base);
  border: 2px solid var(--white);
}

.progress-tracker .progress-step.completed .step-dot {
  background: var(--success);
  color: var(--white);
}

.progress-tracker .progress-step.active .step-dot {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(10, 21, 81, 0.25);
  animation: pulse 1.5s infinite;
}

.progress-tracker .step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  transition: all var(--transition-base);
  margin-top: 2px;
}

.progress-tracker .progress-step.completed .step-label {
  color: var(--success);
  font-weight: 700;
}

.progress-tracker .progress-step.active .step-label {
  color: var(--navy);
  font-weight: 700;
}

.progress-tracker .progress-line {
  flex: 1;
  height: 3px;
  background: var(--gray-200);
  margin-top: -22px; /* Align vertically with the center of 32px dot */
  margin-left: -12px;
  margin-right: -12px;
  z-index: 1;
  transition: all var(--transition-base);
}

.progress-tracker .progress-line.completed {
  background: var(--success);
}

/* ============================================
   PREMIUM UX/UI & HIGH-TRUST DESIGN SYSTEM
   ============================================ */

/* --- 계약 관리 Bento 카드 & 슬라이더 --- */
.contracts-slider-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 20px 24px;
  margin: 0 -20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.contracts-slider-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.contract-card {
  flex: 0 0 280px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid rgba(10, 21, 81, 0.08);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contract-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #3B82F6, #0A58CA);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.contract-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 21, 81, 0.15);
}

.contract-card:hover::before {
  opacity: 1;
}

.contract-card:active {
  transform: translateY(-2px) scale(0.97);
  box-shadow: var(--shadow-sm);
}

.contract-card .card-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #0A58CA;
  background: rgba(10, 88, 202, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.contract-card .card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.contract-card .card-info {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.contract-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.contract-card .card-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contract-card .card-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
  border: none;
}
.contract-card .card-btn-secondary:active {
  background: var(--gray-200);
}

.contract-card .card-btn-primary {
  background: linear-gradient(135deg, #0A58CA, #0A1551);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 10px rgba(10, 88, 202, 0.2);
}
.contract-card .card-btn-primary:active {
  transform: scale(0.95);
}

/* --- 플로팅 액션 버튼 (FAB) --- */
.floating-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 88, 202, 0.5);
  background: linear-gradient(135deg, #1e70e6, #0e2075) !important;
}

.floating-fab:active {
  transform: scale(0.95) translateY(0);
}

/* --- 2중 컨펌 모달 및 송금 확인증 팝업 --- */
@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-confirm-modal, .popup-receipt {
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- 결제 진행 중 회전 스피너 --- */
.processing-spinner {
  border-top-color: #0A58CA !important;
  animation: spinner 1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

/* --- 미니멀 완료 및 상세 씬 스타일 --- */
#screen-payment-success, #screen-payment-detail {
  background: var(--white);
}

#screen-payment-success button:hover {
  background: linear-gradient(135deg, #1e70e6, #0e2075) !important;
  box-shadow: 0 6px 16px rgba(10, 88, 202, 0.4) !important;
}
