/* ==========================================================================
   CSS Design System - LuxCat Prize Claim Portal (活動領獎資料填寫表)
   Theme: LuxCat Warm Gold & Cozy Cream (Inspired by luxcat.life)
   ========================================================================== */

/* 1. Core Variables & Reset */
:root {
  /* Color Palette - LuxCat Brand */
  --bg-primary: #fbf9f4; /* Cozy warm cream white */
  --bg-card: rgba(255, 255, 255, 0.88); /* Translucent bright glass card */
  --bg-card-hover: rgba(250, 247, 240, 0.95);
  
  --primary: #bea078; /* LuxCat Brand Gold */
  --primary-hover: #a68962; /* Slightly darker gold */
  --primary-glow: rgba(190, 160, 120, 0.25);
  
  --secondary: #333333; /* Charcoal dark gray */
  --secondary-light: #555555;
  --secondary-glow: rgba(51, 51, 51, 0.1);
  
  --tan-border: #e1d7c3; /* Warm tan borders */
  --border-light: rgba(225, 215, 195, 0.6);
  
  --text-main: #2b2b2b;
  --text-muted: #737373;
  --text-white: #ffffff;
  
  --success: #10b981; /* Cozy mint success green */
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.08);
  
  --font-family: 'Noto Sans TC', 'Inter', sans-serif;
  --shadow-sm: 0 4px 12px rgba(190, 160, 120, 0.08);
  --shadow-md: 0 10px 30px rgba(190, 160, 120, 0.12);
  --shadow-lg: 0 20px 48px rgba(124, 77, 255, 0.03), 0 15px 35px rgba(190, 160, 120, 0.15);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* 2. Background Grid/Mesh Effect & Watermark */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(190, 160, 120, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(225, 215, 195, 0.1) 0%, transparent 45%);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.085; /* 加深浮水印顏色 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Ctext x='40' y='90' fill='%23bea078' font-size='16' font-family='Inter, sans-serif' font-weight='800' transform='rotate(-25, 40, 90)' letter-spacing='3'%3ELUXCAT%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* 3. Base Layout Container */
.container {
  width: 100%;
  max-width: 600px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

/* 4. Mock Banner styling (Top alerts) */
.mock-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #bea078, #a68962);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  z-index: 1000;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: slideDown 0.4s ease-out forwards;
}

.mock-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.mock-banner-content code {
  background: rgba(0,0,0,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* 5. Header Section (LuxCat Mascot Banner) */
.app-header {
  text-align: center;
  margin-bottom: 24px;
}

.banner-container {
  max-width: 100%;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.luxcat-brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  background: transparent;
  margin: 0 auto 8px;
  user-select: none;
  transition: transform var(--transition-normal);
}

.luxcat-brand-logo:hover {
  transform: scale(1.03);
}

.brand-title {
  color: var(--primary);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.38em;
  text-indent: 0.38em; /* offset for centering letter-spacing */
  line-height: 1;
  font-family: 'Inter', sans-serif;
  transform: scaleX(1.18); /* 增加字體寬幅 */
  display: inline-block;
}

.brand-subtitle {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 1;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  transform: scaleX(1.15); /* 增加字體寬幅 */
  display: inline-block;
  opacity: 0.95;
}

.app-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.app-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.subtitle {
  color: var(--secondary-light);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

/* 6. The Core Cozy Card */
.app-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--tan-border);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* 7. Steps Transition Logic */
.step-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 8. Search Box and Input Elements */
.search-box {
  margin-bottom: 28px;
  background: rgba(190, 160, 120, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--primary);
  font-size: 1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: #ffffff;
  border: 1px solid var(--tan-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-family);
  outline: none;
  transition: var(--transition-normal);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-wrapper input.invalid {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.01);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* 9. Rules Card styling (【領獎規則】) */
.rules-card {
  border: 1px solid var(--tan-border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background-color: #fdfcf9;
  padding: 20px 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.rules-body {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #444444;
}

.rules-intro {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.rules-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.rules-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}

.rules-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.rules-tax-note {
  font-weight: 500;
  color: var(--secondary-light);
  margin-bottom: 12px;
}

.rules-divider {
  height: 1px;
  border-top: 1px dashed var(--tan-border);
  margin: 12px 0;
}

.rules-delivery {
  margin-bottom: 10px;
}

.rules-deadline {
  color: var(--danger);
  font-weight: 500;
}

.rules-disclaimer {
  margin-top: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--secondary-light);
  font-size: 0.8rem;
}

/* Customer Service Box inside Rules */
.service-box {
  background: rgba(190, 160, 120, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0 6px 0;
}

.service-title {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 0.88rem;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.service-item i {
  color: var(--primary);
  width: 14px;
}

.service-item .line-icon {
  color: #06c755; /* Official LINE Green */
}

/* 10. Buttons */
.btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(190, 160, 120, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(190, 160, 120, 0.45);
}

.btn-primary:disabled {
  background: #d4cfc5;
  color: #faf9f6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-success {
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2);
}

.btn-success:hover:not(:disabled) {
  background: #1e1e1e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(51, 51, 51, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--tan-border);
  color: var(--secondary-light);
}

.btn-outline:hover {
  background: rgba(190, 160, 120, 0.05);
  border-color: var(--primary);
}

.btn-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-back:hover {
  color: var(--primary-hover);
  transform: translateX(-2px);
}

.btn:active {
  transform: translateY(1px) !important;
}

.btn-spinner {
  font-size: 1.1rem;
}

/* 11. Step-specific layouts */

/* Section header for Steps 2 & 3 */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
}

.results-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 12. Prize list cards */
.prizes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for prize list */
.prizes-list::-webkit-scrollbar {
  width: 5px;
}
.prizes-list::-webkit-scrollbar-track {
  background: rgba(190, 160, 120, 0.02);
  border-radius: 4px;
}
.prizes-list::-webkit-scrollbar-thumb {
  background: var(--tan-border);
  border-radius: 4px;
}

/* Prize Item (Card) */
.prize-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--tan-border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  user-select: none;
}

.prize-card:hover:not(.claimed) {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateX(2px);
}

.prize-card.selected {
  background: rgba(190, 160, 120, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(190, 160, 120, 0.1);
}

.prize-card.claimed {
  opacity: 0.55;
  background: #faf9f6;
  border-color: var(--tan-border);
  cursor: not-allowed;
}

/* Checkbox styling */
.prize-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--tan-border);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  color: transparent;
  font-size: 0.75rem;
}

.prize-card.selected .prize-checkbox {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.prize-card.claimed .prize-checkbox {
  border-color: transparent;
  background: #d4cfc5;
  color: #fff;
}

.prize-info {
  flex-grow: 1;
  text-align: left;
}

.prize-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--secondary);
}

.prize-card.claimed .prize-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.prize-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-unclaimed {
  background: rgba(190, 160, 120, 0.12);
  color: #92754d;
}

.status-claimed {
  background: #e5e0d8;
  color: var(--text-muted);
}

/* 13. Selected Summary Box (Step 3) */
.selected-summary-box {
  background: rgba(190, 160, 120, 0.04);
  border: 1px solid var(--tan-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-item {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-item::before {
  content: '\f06b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
}

/* 14. Success Section Details */
.success-section {
  text-align: center;
  padding: 16px 0;
}

.success-illustration {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
}

.success-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--success-bg);
  animation: scaleUpRing 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(190, 160, 120, 0.3);
  animation: bounceCheckmark 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
  opacity: 0;
}

.success-section h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 8px;
}

.success-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Receipt Display */
.receipt-card {
  background: #ffffff;
  border: 1px solid var(--tan-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  gap: 16px;
}

.receipt-row.border-top {
  border-top: 1px dashed var(--tan-border);
  margin-top: 6px;
  padding-top: 14px;
}

.receipt-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.receipt-value {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

#receipt-prize-name {
  color: var(--primary);
}

/* --- Added Form Styles for Ragic Layout Features --- */
.read-only-section {
  background: rgba(190, 160, 120, 0.05);
  border: 1px solid var(--tan-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle i {
  color: var(--primary);
}

.readonly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.readonly-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.readonly-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-part-box {
  border: 1px solid rgba(225, 215, 195, 0.5);
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.required-star {
  color: var(--danger);
  font-weight: bold;
}

/* File Upload Style */
.file-uploader {
  border: 2px dashed var(--tan-border);
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  gap: 8px;
}

.file-uploader:hover {
  border-color: var(--primary);
  background: rgba(190, 160, 120, 0.03);
}

.file-uploader i {
  font-size: 28px;
  color: var(--primary);
}

.file-uploader span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-input-hidden {
  display: none;
}

.upload-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  z-index: 5;
}

/* 沒有圖片(無 src／空 src)或標記 hidden 時，不顯示，避免瀏覽器畫出破圖示 */
.upload-preview.hidden,
.upload-preview:not([src]),
.upload-preview[src=""] {
  display: none;
}

/* 「📷 拍照」按鈕 */
.btn-camera {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--tan-border);
  border-radius: 12px;
  color: var(--primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-camera:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

/* 「與基本資料相同」按鈕 */
.btn-same-as-basic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 16px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-same-as-basic:hover {
  background: var(--primary);
  color: #ffffff;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

select {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--tan-border);
  border-radius: 12px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23bea078' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all var(--transition-fast);
}

select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

select.invalid {
  border-color: var(--danger);
  background-color: rgba(239, 68, 68, 0.01);
}

.alert-box-info {
  background: rgba(239, 68, 68, 0.05);
  border-left: 4px solid var(--danger);
  padding: 12px;
  border-radius: 8px;
}

/* Conditional visibility anims */
.conditional-fields {
  max-height: 1000px;
  opacity: 1;
  overflow: visible;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.conditional-fields.hidden, .form-part-box.hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 通用隱藏：一般元素(如 #shipping-fields、#proxy-fields、橫幅、按鈕 spinner)用 .hidden 即可隱藏。
   排除 conditional-fields / form-part-box，保留它們以 max-height 做的展開/收合動畫。 */
.hidden:not(.conditional-fields):not(.form-part-box) {
  display: none !important;
}

/* 15. Footer */
.app-footer {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* 16. Keyframe Animations */
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes scaleUpRing {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounceCheckmark {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
  80% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 17. Responsive Layouts */
@media (max-width: 480px) {
  .app-card {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .app-header h1 {
    font-size: 1.5rem;
  }
  .banner-logo {
    max-height: 120px;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .readonly-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .upload-grid {
    grid-template-columns: 1fr;
  }
}
