/* ===========================
   Love Gift Dashboard - Styles
   =========================== */

/* Google Fonts already imported via HTML */

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --pink: #ff6b9d;
  --pink-light: #ffb3d1;
  --pink-lighter: #ffe0ec;
  --pink-bg: #fff0f5;
  --pink-dark: #e84393;
  --rose: #fd79a8;
  --white: #ffffff;
  --red: #ff4757;
  --green: #00b894;
  --green-light: #55efc4;
  --text-dark: #2d1f2d;
  --text-mid: #4a3040;
  --text-light: #7a5a6a;
  --text-muted: #a08090;
  --border: rgba(255, 107, 157, 0.15);
  --shadow-sm: 0 2px 10px rgba(255, 107, 157, 0.1);
  --shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
  --shadow-lg: 0 8px 40px rgba(255, 107, 157, 0.2);
  --shadow-xl: 0 20px 60px rgba(255, 107, 157, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 30%, #f8bbd0 60%, #fff0f5 100%);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   Background Hearts
   =========================== */
.bg-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-hearts .heart {
  position: absolute;
  font-size: 1rem;
  opacity: 0.08;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.08; }
  90% { opacity: 0.08; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ===========================
   Header
   =========================== */
.dashboard-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.tagline {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}

/* ===========================
   Stepper Navigation
   =========================== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 1rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step.active .step-circle {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  border-color: var(--pink);
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  transform: scale(1.1);
}

.step.completed .step-circle {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-color: var(--green);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--pink);
}

.step.completed .step-label {
  color: var(--green);
}

.step-line {
  width: 50px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 0.3rem;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.step-line.completed {
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

/* ===========================
   Main Content
   =========================== */
.dashboard-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

/* ===========================
   Step Panels
   =========================== */
.step-panel {
  display: none;
  animation: slideIn 0.5s ease-out;
}

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

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

.panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.panel-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.panel-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===========================
   Step 1: Photo Upload Grid (Polaroid Style)
   =========================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.photo-slot {
  background: white;
  padding: 10px 10px 45px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  transform: rotate(var(--rotation, 0deg));
}

.photo-slot:nth-child(1) { --rotation: -1.5deg; }
.photo-slot:nth-child(2) { --rotation: 1deg; }
.photo-slot:nth-child(3) { --rotation: -0.5deg; }
.photo-slot:nth-child(4) { --rotation: 1.5deg; }
.photo-slot:nth-child(5) { --rotation: -1deg; }
.photo-slot:nth-child(6) { --rotation: 0.5deg; }

.photo-slot:hover {
  transform: rotate(0deg) scale(1.03) translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 2;
}

.photo-slot.has-image {
  padding: 10px 10px 0;
}

.photo-slot .upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--pink-lighter), #f5e0eb);
  border-radius: 2px;
}

.photo-slot .upload-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.photo-slot .upload-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.photo-slot .upload-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.photo-slot .preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.photo-slot .caption-input {
  width: calc(100% + 20px);
  margin-left: -10px;
  border: none;
  border-top: none;
  padding: 0.6rem 0.5rem 0.4rem;
  font-family: 'Dancing Script', cursive;
  font-size: 0.9rem;
  color: var(--text-mid);
  background: transparent;
  outline: none;
  text-align: center;
}

.photo-slot .caption-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.photo-slot .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 71, 87, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.photo-slot:hover .remove-btn {
  opacity: 1;
}

.photo-slot input[type="file"] {
  display: none;
}

/* ===========================
   Step 2: YouTube Search
   =========================== */
.search-section {
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.search-bar input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 2.5px solid var(--border);
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.btn-search {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.search-results {
  min-height: 100px;
  margin-bottom: 1.5rem;
}

.results-placeholder {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
}

.results-placeholder span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.video-results {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.video-card {
  display: flex;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--pink);
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.video-card.selected {
  border-color: var(--green);
  background: rgba(0, 184, 148, 0.05);
}

.video-card img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.video-card .video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
}

.video-card .video-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .video-channel {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Selected song display */
.selected-song {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.selected-song h3 {
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.selected-song-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.selected-song-card img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

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

.selected-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.btn-remove {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove:hover {
  background: var(--red);
  color: white;
}

/* ===========================
   Step 3: Letter Form
   =========================== */
.letter-form {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.8;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ===========================
   Step 4: Preview
   =========================== */
.preview-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.preview-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.preview-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.preview-photos {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.preview-photos .preview-thumb {
  flex: 0 0 90px;
  height: 90px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 2px solid var(--pink-lighter);
}

.preview-photos .preview-thumb-placeholder {
  flex: 0 0 90px;
  height: 90px;
  border-radius: var(--radius-xs);
  background: var(--pink-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.5;
}

.preview-song-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preview-song-content img {
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.preview-song-content .song-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.preview-letter-content {
  font-family: 'Dancing Script', cursive;
}

.preview-letter-content .letter-preview-title {
  font-size: 1.3rem;
  color: var(--pink);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.preview-letter-content .letter-preview-body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.preview-letter-content .letter-preview-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(transparent, var(--glass-bg));
}

.preview-letter-content .letter-preview-sig {
  font-size: 1.1rem;
  color: var(--pink);
  text-align: right;
  margin-top: 0.6rem;
  font-weight: 700;
}

.no-data {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ===========================
   Generate Button
   =========================== */
.generate-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 50%, var(--rose) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 30px rgba(255, 107, 157, 0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-generate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}

.btn-generate:hover::before {
  left: 100%;
}

.btn-generate:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(255, 107, 157, 0.5);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-generate-icon {
  font-size: 1.3rem;
}

.generate-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

/* ===========================
   Step Action Buttons
   =========================== */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-prev, .btn-next {
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-prev {
  background: var(--glass-bg);
  color: var(--text-mid);
  border: 2px solid var(--border);
}

.btn-prev:hover {
  border-color: var(--pink-light);
  background: white;
  transform: translateX(-3px);
}

.btn-next {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
  margin-left: auto;
}

.btn-next:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* ===========================
   Success Modal
   =========================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.modal-content h2 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.modal-content > p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.share-link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.share-link-box input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--pink-lighter);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--pink-bg);
  outline: none;
  min-width: 0;
}

.btn-copy {
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  transform: scale(1.05);
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.btn-preview-link, .btn-new {
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-preview-link {
  background: var(--pink-bg);
  color: var(--pink);
  border: 2px solid var(--pink-light);
}

.btn-preview-link:hover {
  background: var(--pink-lighter);
}

.btn-new {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-new:hover {
  transform: translateY(-2px);
}

/* ===========================
   Loading Overlay
   =========================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 240, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--pink-lighter);
  border-top: 4px solid var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.2rem;
}

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

.loading-content p {
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.loading-progress {
  width: 250px;
  height: 6px;
  background: var(--pink-lighter);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .logo {
    font-size: 2rem;
  }

  .stepper {
    padding: 1rem 0.5rem;
  }

  .step-circle {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .step-line {
    width: 30px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .video-card img {
    width: 120px;
    height: 68px;
  }

  .panel-header h2 {
    font-size: 1.4rem;
  }

  .letter-form {
    padding: 1.2rem;
  }

  .btn-generate {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }

  .modal-content {
    padding: 1.8rem;
  }

  .share-link-box {
    flex-direction: column;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 1.5rem 1rem 1rem;
  }

  .logo {
    font-size: 1.7rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-circle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .step-line {
    width: 18px;
  }

  .video-card {
    flex-direction: column;
  }

  .video-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}
