/* ===================================================
   BIRDPOST — Magazine Page Styling
   =================================================== */

/* ==========================================
   1. Page Layout Container
   ========================================== */
.magazine-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Header Section */
.magazine-header-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.magazine-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.magazine-main-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.magazine-badge {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.magazine-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

/* ==========================================
   2. Foundr-Style Interactive Hero Banner
   ========================================== */
.magazine-hero-banner {
  display: flex;
  align-items: center;
  gap: 60px;
  background: 
    radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(219, 39, 119, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #0d0d18 0%, #15152a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 60px 70px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

/* Digital mesh background grid */
.magazine-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 75% 50%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 75% 50%, black 20%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

/* Wavy fluid shape backdrop on the left column */
.magazine-hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.22) 0%, rgba(99, 102, 241, 0.15) 60%, rgba(139, 92, 246, 0.0) 100%);
  clip-path: ellipse(85% 120% at 15% 50%);
  z-index: 0;
  pointer-events: none;
}

.hero-content-col {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.issue-tag-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.latest-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #db2777;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.issue-number-badge {
  font-size: 0.72rem;
  background: rgba(219, 39, 119, 0.1);
  border: 1px solid rgba(219, 39, 119, 0.25);
  color: #db2777;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

/* Dynamic featured info box */
.featured-info-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.featured-info-box.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.featured-article-category {
  font-size: 0.85rem;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-article-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 60%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-article-teaser {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive selectors */
.hero-selectors-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selector-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-selectors-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-selector-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.hero-selector-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px) scale(1.05);
}

.hero-selector-btn.active {
  background: linear-gradient(135deg, #db2777 0%, #6366f1 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(219, 39, 119, 0.4), 0 0 8px rgba(99, 102, 241, 0.3);
  transform: scale(1.08);
}

.hero-selector-btn svg {
  width: 18px;
  height: 18px;
}

.active-selector-label {
  font-size: 0.88rem;
  font-weight: 750;
  color: #db2777;
  letter-spacing: 0.2px;
  margin-top: 4px;
  transition: opacity 0.2s;
}

/* Pricing and actions */
.hero-checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-price-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #10b981;
  line-height: 1;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.price-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-buy-print-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.btn-buy-print-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-preview-digital-hero {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-preview-digital-hero:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================
   3. 3D Magazine Cover Mockup (Right Column)
   ========================================== */
.hero-cover-col {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  z-index: 2;
}

.magazine-mockup-wrapper {
  width: 100%;
  max-width: 320px;
  position: relative;
}

.magazine-mockup {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(-1deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 18px 25px 50px rgba(0, 0, 0, 0.6), -1px 0 0 rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.magazine-mockup:hover {
  transform: rotateY(-6deg) rotateX(2deg) rotateZ(0deg) scale(1.03);
  box-shadow: 25px 35px 60px rgba(0, 0, 0, 0.7);
}

.magazine-mockup img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #0f172a;
}

/* Glossy highlight sheet effect */
.mockup-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 35%, transparent 60%);
  pointer-events: none;
  border-radius: 4px;
  z-index: 2;
}

/* 3D Spine Thickness simulation */
.mockup-3d-spine {
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
  background: #0b0b12;
  transform: rotateY(-90deg);
  transform-origin: right center;
  box-shadow: inset -4px 0 8px rgba(0, 0, 0, 0.8);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

/* ==========================================
   4. Archives Grid Section
   ========================================== */
.magazine-archives-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 850;
  color: var(--text-white);
  letter-spacing: -0.8px;
}

.archives-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: -12px;
  margin-bottom: 8px;
}

.archives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.archive-card {
  background: rgba(22, 22, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.archive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  background: rgba(22, 22, 31, 0.75);
}

.archive-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000000;
  overflow: hidden;
}

.archive-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .archive-cover {
  transform: scale(1.04);
}

/* Glassy Action Overlay (Slide-up) */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.archive-card:hover .card-hover-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-overlay-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

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

.card-overlay-btn.btn-buy-archive {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.card-overlay-btn.btn-buy-archive:hover {
  background: #059669;
  transform: scale(1.02);
}

.card-overlay-btn.btn-preview-archive {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.card-overlay-btn.btn-preview-archive:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.archive-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-title {
  font-size: 1rem;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
}

.archive-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================
   5. Modal & Checkout Popup Windows
   ========================================== */
.magazine-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease-out;
}

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

.magazine-modal-box {
  background: rgba(22, 22, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.12);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 0.5;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--red);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: #818cf8;
  font-weight: 600;
  margin-bottom: 28px;
}

/* Modal Form Styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #6366f1;
  background: rgba(10, 10, 15, 0.85);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.order-summary-row strong {
  font-size: 1.35rem;
  color: #10b981;
}

.btn-submit-order {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-submit-order:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.secure-checkout-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================
   6. Digital Flipbook Preview Modal
   ========================================== */
.preview-modal-box {
  background: rgba(22, 22, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 44px;
  width: 100%;
  max-width: 640px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-flipbook-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #09090e;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.flipbook-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.98) translateX(20px);
}

.flipbook-page.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateX(0);
}

.page-content-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 30px;
}

.page-cover-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.flipbook-cover-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.text-page {
  background: #14141d;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.flipbook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.magazine-issue-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.08em;
}

.preview-tag {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.contents-title {
  font-size: 1.5rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.contents-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contents-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 750;
  color: #ffffff;
}

.contents-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: -10px;
  margin-bottom: 4px;
}

/* Sample Article styling inside preview */
.sample-article {
  font-family: var(--font);
}

.preview-article-cat {
  font-size: 0.75rem;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.1em;
}

.preview-article-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.3;
}

.preview-article-by {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 8px;
}

.article-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 600;
}

.article-body-p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.text-page blockquote {
  border-left: 3px solid #6366f1;
  padding-left: 14px;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin: 10px 0;
}

.preview-upgrade-banner {
  background: rgba(99, 102, 241, 0.05);
  border: 1px dashed rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-upgrade-banner p {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.btn-upgrade-print {
  background: #10b981;
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all 0.2s;
  align-self: center;
}

.btn-upgrade-print:hover {
  background: #059669;
  transform: scale(1.02);
}

/* Flipbook Controls */
.flipbook-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flip-control-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  cursor: pointer;
}

.flip-control-btn:hover:not(:disabled) {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.flip-control-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-secondary);
}

/* Toast Notification (Image 2 Spec) */
.toast-notification-box,
.birdpost-toast-bar {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: #0f1419 !important;
  color: #ffffff !important;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  z-index: 100004 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-width: 320px !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
}

.toast-notification-box.visible,
.birdpost-toast-bar.visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.toast-icon {
  display: none !important;
}

.toast-notification-box .toast-message,
.toast-notification-box .birdpost-toast-text,
.birdpost-toast-bar .birdpost-toast-text {
  flex: 1 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
}

.toast-notification-box .birdpost-toast-close,
.birdpost-toast-bar .birdpost-toast-close,
.birdpost-toast-close {
  background: none !important;
  border: none !important;
  color: #71767b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.toast-notification-box .birdpost-toast-close:hover,
.birdpost-toast-bar .birdpost-toast-close:hover,
.birdpost-toast-close:hover {
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

/* ==========================================
   7. Light Theme Overrides (adaptable glassmorphism)
   ========================================== */
[data-theme="light"] .magazine-hero-banner {
  background: 
    radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(219, 39, 119, 0.05) 0%, transparent 45%),
    linear-gradient(135deg, #f0f2f5 0%, #e2e8f0 100%);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .magazine-hero-banner::before {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.1) 0%, rgba(99, 102, 241, 0.08) 60%, rgba(139, 92, 246, 0.0) 100%);
}

[data-theme="light"] .magazine-hero-banner::after {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.012) 1px, transparent 1px);
}

[data-theme="light"] .featured-article-title {
  background: linear-gradient(135deg, #0f172a 60%, #312e81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .magazine-mockup {
  box-shadow: 18px 25px 50px rgba(0, 0, 0, 0.18), -1px 0 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-selector-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .hero-selector-btn:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hero-selector-btn.active {
  background: linear-gradient(135deg, #db2777 0%, #4f46e5 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(219, 39, 119, 0.25), 0 0 8px rgba(79, 70, 229, 0.25);
}

[data-theme="light"] .btn-preview-digital-hero {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

[data-theme="light"] .btn-preview-digital-hero:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .archive-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .archive-card:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .archive-title {
  color: #0f172a;
}

[data-theme="light"] .card-hover-overlay {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .card-overlay-btn.btn-preview-archive {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

[data-theme="light"] .card-overlay-btn.btn-preview-archive:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .magazine-modal-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .modal-title {
  color: #0f172a;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #ffffff;
}

[data-theme="light"] .order-summary-row {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .preview-modal-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .contents-title {
  color: #0f172a;
}

[data-theme="light"] .contents-item {
  color: #0f172a;
}

[data-theme="light"] .text-page {
  background: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .preview-article-title {
  color: #0f172a;
}

[data-theme="light"] .text-page blockquote {
  border-left-color: #4f46e5;
  color: #1e293b;
}

[data-theme="light"] .preview-upgrade-banner {
  background: rgba(79, 70, 229, 0.03);
  border-color: rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .flip-control-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

[data-theme="light"] .flip-control-btn:hover:not(:disabled) {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.04);
}

/* ==========================================
   8. Responsive Media Queries
   ========================================== */
@media (max-width: 991px) {
  .magazine-hero-banner {
    flex-direction: column;
    padding: 50px;
    gap: 50px;
    text-align: center;
  }
  
  .magazine-hero-banner::before {
    width: 100%;
    height: 60%;
    clip-path: ellipse(120% 80% at 50% 0%);
  }
  
  .hero-content-col {
    align-items: center;
  }
  
  .hero-selectors-row {
    justify-content: center;
  }
  
  .hero-checkout-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .hero-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .magazine-wrapper {
    padding: 40px 16px;
    gap: 60px;
  }
  
  .magazine-main-title {
    font-size: 2.3rem;
  }
  
  .magazine-hero-banner {
    padding: 36px 20px;
    gap: 36px;
  }
  
  .featured-article-title {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-buy-print-hero,
  .btn-preview-digital-hero {
    width: 100%;
  }
  
  .archives-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .magazine-modal-box,
  .preview-modal-box {
    padding: 24px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .preview-flipbook-container {
    height: 380px;
  }
}
