/* ============================================
   Miale Photography — Gallery Styles
   Light Premium Theme
   ============================================ */

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

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #888;
  --text-light: #bbb;
  --accent: #c8a97e;
  --accent-hover: #b8965f;
  --accent-light: rgba(200,169,126,0.12);
  --border: #eee;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --nav-height: 100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Navigation --- */
.gallery-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow var(--transition);
}
.gallery-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.nav-logo img {
  height: 85px; width: auto; display: block;
  transition: opacity var(--transition);
}
.nav-logo:hover img { opacity: 0.7; }
.nav-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.nav-count {
  font-size: 0.8rem; color: var(--text-muted);
  margin-left: 12px; font-weight: 400;
}
.nav-left { display: flex; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-icon {
  position: relative; background: transparent; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  color: var(--text);
  padding: 2px;
}
.btn-icon:hover { background: var(--accent-light); color: var(--accent); }

/* Premium Favorites Button style in header to match liked photos */
#btnFavorites {
  background: #ef5350;
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,83,80,0.3);
}
#btnFavorites svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: #ef5350;
}
#btnFavorites:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

.btn-icon .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
#btnDownloadAll.loading .spinner {
  border-color: rgba(200,169,126,0.2);
  border-top-color: var(--accent);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-outline {
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}

.btn-primary {
  background: var(--accent); color: #fff; border: none;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-close {
  background: none; border: none; font-size: 1.8rem;
  color: var(--text-muted); cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.btn-close:hover { color: var(--text); }

/* --- Favorites Panel --- */
.favorites-panel {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.favorites-panel.open { max-height: 400px; }

.favorites-inner {
  max-width: 1400px; margin: 0 auto; padding: 16px 24px;
}
.favorites-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.favorites-header h3 {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.favorites-header h3 span { color: var(--text-muted); font-weight: 400; }

.favorites-grid {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.favorites-grid::-webkit-scrollbar { height: 4px; }
.favorites-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.fav-thumb {
  position: relative; flex-shrink: 0;
  width: 72px; height: 72px; border-radius: 6px;
  overflow: hidden; scroll-snap-align: start;
  cursor: pointer;
}
.fav-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.fav-thumb:hover img { transform: scale(1.05); }
.fav-thumb .fav-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; font-size: 0.7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.fav-thumb:hover .fav-remove { opacity: 1; }

.favorites-actions {
  padding-top: 12px; border-top: 1px solid var(--border);
  margin-top: 12px; text-align: right;
}

/* --- Gallery Grid (Masonry) --- */
.gallery-container {
  max-width: 1400px; margin: 0 auto;
  padding: calc(var(--nav-height) + 24px) 24px 80px;
}

.masonry-grid {
  column-count: 3; column-gap: 16px;
}

.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  animation: fadeInUp 0.5s ease both;
}
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }

.image-wrapper {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: #f0f0f0;
  cursor: pointer;
}

.gallery-image {
  display: block; width: 100%; height: auto;
  transition: transform 0.4s ease;
}
.image-wrapper:hover .gallery-image { transform: scale(1.03); }

.image-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px; display: flex; justify-content: flex-end; gap: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
  opacity: 0; transition: opacity var(--transition), background var(--transition);
}
.image-wrapper:hover .image-overlay { opacity: 1; }

/* Keep overlay visible when liked to show the heart icon, but remove gradient background */
.image-wrapper.is-liked .image-overlay {
  opacity: 1;
  background: transparent;
}
.image-wrapper.is-liked:hover .image-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

/* Hide download button if liked but not hovering to keep layout extremely clean */
.image-wrapper.is-liked:not(:hover) .btn-download {
  opacity: 0;
  pointer-events: none;
}

.img-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #333; transition: all var(--transition);
  opacity: 0.8;
}
.img-btn svg {
  width: 24px;
  height: 24px;
}
.img-btn:hover { opacity: 1; transform: scale(1.1); background: #fff; }
.img-btn.liked {
  background: #ef5350; color: #fff; opacity: 1;
}
.img-btn.liked svg { fill: #fff; stroke: #ef5350; }

/* --- Empty Gallery --- */
.empty-gallery {
  text-align: center; padding: 120px 20px;
}
.empty-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-gallery h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  margin-bottom: 8px;
}
.empty-gallery p { color: var(--text-muted); }

/* --- Error Page --- */
.error-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  width: 100vw;
  height: 100vh;
  background: #fafafa;
  text-align: left;
  overflow: hidden;
}

/* Một lớp phủ gradient màu trắng mềm mại để hỗ trợ đọc chữ ở bên trái */
.error-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.1) 75%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.error-left-panel {
  position: relative;
  z-index: 3;
  flex: 1; /* Tự động co giãn chiếm toàn bộ phần diện tích còn lại bên trái */
  min-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(250, 250, 250, 0.9); /* Nền trắng kính mờ */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.error-panel-content {
  max-width: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.error-logo-link {
  display: inline-block;
  align-self: flex-start;
  transition: transform 0.3s ease;
}
.error-logo-link:hover {
  transform: translateY(-2px);
}

.error-logo {
  height: 80px;
  width: auto;
  filter: none;
}

.error-text-group {
  margin: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: errorFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.error-badge {
  align-self: flex-start;
  background: rgba(200, 169, 126, 0.12);
  border: 1px solid rgba(200, 169, 126, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.error-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.error-desc {
  font-size: 1.15rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

.error-actions {
  margin-top: 15px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(200, 169, 126, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-home:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 26px rgba(200, 169, 126, 0.5);
  color: #fff;
}

/* --- Welcome Page Search Form --- */
.welcome-search-form {
  margin-top: 10px;
  width: 100%;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 4px 6px 4px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(200, 169, 126, 0.15);
}

.search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  padding: 10px 0;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

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

.search-btn svg {
  transition: transform var(--transition);
}

.search-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .search-input-wrapper {
    padding-left: 14px;
  }
  .search-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.error-footer {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
}

.error-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.error-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.error-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 15px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.error-right-panel {
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  background: #fafafa;
  z-index: 1;
}

.error-bg-img {
  height: 100%; /* Lúc nào cũng 100% chiều cao màn hình */
  width: auto; /* Chiều rộng tự động co giãn theo tỉ lệ ảnh */
  object-fit: contain;
  display: block;
}

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

/* --- Responsive for Error Page --- */
@media (max-width: 1024px) {
  .error-left-panel {
    padding: 50px 60px;
  }
}

@media (max-width: 768px) {
  .error-page::before {
    background: rgba(255, 255, 255, 0.85);
  }
  .error-left-panel {
    width: 100%;
    min-width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-right: none;
  }
  .error-panel-content {
    max-width: 100%;
  }
  .error-title {
    font-size: 2.8rem;
  }
  .error-right-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
  }
  .error-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25; /* Làm mờ ảnh nền trên mobile để dễ đọc chữ */
  }
  .error-text-group {
    margin: 40px 0;
  }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  animation: fadeIn 0.25s ease;
}

.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 2.4rem; cursor: pointer; z-index: 10; line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: rgba(255,255,255,0.7); font-size: 2.5rem;
  width: 50px; height: 80px; cursor: pointer; z-index: 10;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); color: #fff; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-content {
  position: relative; z-index: 5;
  max-width: 90vw; max-height: 85vh;
}

.lightbox-image {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 4px;
  animation: fadeIn 0.3s ease;
}

.lightbox-toolbar {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
  border-radius: 30px; padding: 8px 20px;
  display: flex; align-items: center; gap: 16px;
}
.lightbox-btn {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--transition), color var(--transition);
  color: rgba(255,255,255,0.8);
}
.lightbox-btn svg {
  width: 24px;
  height: 24px;
}
.lightbox-btn:hover { transform: scale(1.15); color: #fff; }
.lightbox-btn.liked { color: #ef5350; }
.lightbox-btn.liked svg { fill: #ef5350; }
.lightbox-filename {
  color: rgba(255,255,255,0.5); font-size: 0.75rem;
}

/* --- Toast --- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 2000; display: flex; flex-direction: column; gap: 8px;
}

.toast {
  background: var(--bg-card); color: var(--text);
  padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 0.85rem;
  display: flex; align-items: center; gap: 8px;
  animation: slideInRight 0.35s ease, fadeOut 0.35s ease 2.2s forwards;
  border-left: 3px solid var(--accent);
}
.toast-icon { font-size: 1.1rem; }
.toast.success { border-left-color: #4caf50; }
.toast.error { border-left-color: #ef5350; }

/* --- Footer --- */
.site-footer {
  margin-top: auto; text-align: center;
  padding: 24px; color: var(--text-muted);
  font-size: 0.8rem; letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 640px) {
  .masonry-grid { column-count: 1; column-gap: 12px; }
  .gallery-container { padding-left: 12px; padding-right: 12px; }

  /* Nav: Logo on line 1, Album details + Buttons on line 2 */
  .gallery-nav {
    height: auto;
    position: fixed; top: 0; left: 0; right: 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    padding: 8px 16px 12px;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px 0;
  }

  /* Logo line: Full width, perfectly centered on top */
  .nav-center {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    order: 1;
    margin-bottom: 4px;
  }
  .nav-logo img {
    height: 48px;
  }

  /* Album info line: Left side of line 2 */
  .nav-left {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    order: 2;
  }
  .nav-title { 
    font-size: 0.95rem; 
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-count { 
    font-size: 0.72rem; 
    margin-left: 0; 
    white-space: nowrap;
  }

  /* Buttons line: Right side of line 2 */
  .nav-right {
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    order: 3;
  }

  /* Adjust gallery padding and panel offsets for new compact header height (~110px) */
  .gallery-container {
    padding-top: calc(110px + 16px);
  }
  .favorites-panel {
    top: 110px;
  }

  .btn-text { display: none; }
  .btn-outline { padding: 6px 8px; }
  .btn-icon { width: 34px; height: 34px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-nav { width: 36px; height: 60px; font-size: 1.8rem; }
  .fav-thumb { width: 56px; height: 56px; }
}

/* --- Download Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.download-modal-card {
  text-align: center;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: fadeInUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
.modal-close-btn {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.8rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); transition: color var(--transition);
}
.modal-close-btn:hover { color: var(--text); }
.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}
.download-modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}
.download-modal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.modal-warning {
  background: rgba(200, 169, 126, 0.08);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--accent-hover);
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-actions .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* Progress state */
.spinner-large {
  width: 50px;
  height: 50px;
  border: 3.5px solid rgba(200, 169, 126, 0.15);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 16px 0 8px;
}
.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
