/* === Catalogue Flipbook Viewer Stylesheet === */

:root {
      --ink: #0D0D0D;
      --ink-soft: #17171A;
      --red: #E30613;
      --red-deep: #A80410;
      --navy: #1B2A6B;
      --gold: #E3A006;
      --white: #FFFFFF;
      --steel: #6B6E76;
      --concrete: #F5F5F4;
      --concrete-deep: #EDEDEC;
      --line: #26262A;
      --line-soft: #E4E4E4;
      --display: 'Anton', sans-serif;
      --body: 'Inter', sans-serif;
      --mono: 'JetBrains Mono', monospace;
      --ease: cubic-bezier(.16,.84,.44,1);
      --bg-dark: #09090b;
      --card-dark: #121215;
      --border-dark: #27272a;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--body);
      color: #f4f4f5;
      background: var(--bg-dark);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      margin: 0; padding: 0;
    }
    img { display: block; max-width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }
    ul { list-style: none; }
    h1, h2, h3, h4, .font-display { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; font-weight: 400; }
    .mono { font-family: var(--mono); }
    .wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
    @media (max-width: 640px) { .wrap { padding: 0 16px; } }

    /* ============ Buttons (Same as index.html) ============ */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
      padding: 14px 24px; border: 2px solid var(--ink);
      transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .2s;
      white-space: nowrap; position: relative; overflow: hidden; cursor: pointer; text-decoration: none;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 8px 20px -8px rgba(227,6,19,.6); }
    .btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 12px 28px -8px rgba(227,6,19,.7); }
    .btn-about { background: var(--navy); border-color: var(--navy); color: var(--white); }
    .btn-about:hover { background: #15225a; border-color: #15225a; }
    .btn-sm { padding: 10px 16px; font-size: .72rem; }
    .btn-lg { padding: 18px 36px; font-size: .9rem; }

    /* ============ Top Announcement Bar ============ */
    .top-bar {
      background: var(--ink); color: var(--white); text-align: center; padding: 8px 16px;
      font-family: var(--mono); font-size: clamp(0.7rem, 2.2vw, 0.8rem); letter-spacing: .04em;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .top-bar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }

    /* ============ Header / Nav (Same as index.html) ============ */
    header.site {
      position: sticky; top: 0; z-index: 210;
      background: #ffffff !important;
      border-bottom: 1px solid var(--line-soft);
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      transition: box-shadow .25s, padding .25s, background .3s;
    }
    nav.main { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 24px; }
    .brand { display: flex; align-items: center; gap: 0; }
    .brand picture img { height: 52px; width: auto; mix-blend-mode: multiply; transition: height .25s; }
    .navlinks { display: flex; gap: 4px; align-items: center; }
    .navlinks a {
      font-family: var(--body); font-weight: 700; font-size: .82rem; text-transform: uppercase;
      letter-spacing: .04em; color: var(--ink); padding: 10px 14px; position: relative;
    }
    .navlinks a::after {
      content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
      background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
    }
    .navlinks a:hover::after { transform: scaleX(1); }
    .nav-cta { display: flex; align-items: center; gap: 10px; }
    .mobile-toggle {
      display: none; width: 44px; height: 44px; position: relative; z-index: 210;
      flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    }
    .mobile-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s, background .3s; }
    .mobile-toggle.open span { background: var(--white); }
    .mobile-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* ============ Mobile Menu ============ */
    .mobile-menu {
      position: fixed; inset: 0; background: var(--ink); z-index: 200;
      display: flex; flex-direction: column; padding: 90px 24px 32px;
      transform: translateY(-100%); transition: transform .45s var(--ease); overflow-y: auto;
    }
    .mobile-menu.open { transform: translateY(0); }
    .mobile-menu .mm-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 40px; }
    .mobile-menu .mm-links a {
      font-family: var(--display); font-size: clamp(1.5rem, 8vw, 2.1rem); color: var(--white);
      text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
      opacity: 0; transform: translateX(-24px); transition: opacity .5s var(--ease), transform .5s var(--ease);
    }
    .mobile-menu.open .mm-links a { opacity: 1; transform: translateX(0); }
    .mobile-menu.open .mm-links a:nth-child(1) { transition-delay: .08s; }
    .mobile-menu.open .mm-links a:nth-child(2) { transition-delay: .14s; }
    .mobile-menu.open .mm-links a:nth-child(3) { transition-delay: .2s; }
    .mobile-menu.open .mm-links a:nth-child(4) { transition-delay: .26s; }
    .mobile-menu .mm-cta { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
    body.menu-open { overflow: hidden; }
    @media (max-width: 900px) {
      .navlinks { display: none; }
      .nav-cta .btn-sm.hide-mobile { display: none; }
      .mobile-toggle { display: flex; }
    }
    @media (max-width: 480px) {
      nav.main { padding: 10px 16px; gap: 12px; }
      .brand picture img { height: 40px; }
      .nav-cta { gap: 8px; }
    }

    /* ============ Catalogue Arena Styling ============ */
    .cat-arena {
      padding: clamp(24px, 5vw, 60px) 0 clamp(60px, 8vw, 100px);
      min-height: calc(100vh - 250px);
    }
    .cat-header-box {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-end;
      gap: 20px;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border-dark);
    }
    @media (max-width: 640px) {
      .cat-header-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .cat-title-wrap .sub {
        justify-content: center;
      }
    }
    .cat-title-wrap h1 {
      font-family: var(--display);
      font-size: clamp(1.6rem, 5vw, 2.8rem);
      text-transform: uppercase;
      color: #fff;
      margin: 4px 0 0;
      line-height: 1.1;
    }
    .cat-title-wrap .sub {
      color: #a1a1aa;
      font-size: clamp(0.85rem, 2.5vw, 1rem);
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      padding: 4px 12px;
      border-radius: 50px;
      font-size: 0.72rem;
      font-weight: 700;
      border: 1px solid rgba(34, 197, 94, 0.3);
      letter-spacing: 0.05em;
    }
    .live-dot {
      width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
      display: inline-block; animation: pulseLiveDot 1.8s ease-in-out infinite;
    }
    @keyframes pulseLiveDot {
      0% { transform: scale(0.95); opacity: 0.9; }
      70% { transform: scale(2.2); opacity: 0; }
      100% { transform: scale(0.95); opacity: 0; }
    }
    .dl-btn {
      background: var(--red); color: #fff !important; font-weight: 800;
      font-size: clamp(0.78rem, 2.5vw, 0.9rem); padding: clamp(12px, 2.5vw, 16px) clamp(18px, 4vw, 28px);
      border-radius: 50px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
      gap: 8px; box-shadow: 0 8px 25px rgba(227,6,19,0.4); transition: all 0.25s ease; white-space: nowrap;
    }
    .dl-btn:hover { background: #ff1a28; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(227,6,19,0.55); }

    /* Single-row Navigation Controls - CENTERED AND BEAUTIFUL ON MOBILE & DESKTOP */
    .nav-row {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: clamp(6px, 2vw, 20px);
      width: 100%;
      max-width: 680px;
      margin: 20px auto;
      background: #18181b;
      border: 1px solid #27272a;
      border-radius: 50px;
      padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 24px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .nav-btn {
      background: #27272a; color: #fff; border: 1px solid #3f3f46;
      padding: clamp(8px, 2.5vw, 12px) clamp(14px, 3.5vw, 24px); border-radius: 50px;
      font-weight: 700; font-size: clamp(0.75rem, 2.8vw, 0.95rem); cursor: pointer;
      transition: all 0.25s ease; white-space: nowrap; display: inline-flex;
      align-items: center; justify-content: center; flex-shrink: 0; user-select: none;
    }
    .nav-btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); box-shadow: 0 4px 15px rgba(227,6,19,0.4); transform: translateY(-2px); }
    .nav-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
    .page-indicator {
      display: inline-flex; align-items: center; justify-content: center; gap: clamp(4px, 1vw, 8px);
      color: #e2e8f0; font-family: var(--mono); font-size: clamp(0.78rem, 2.8vw, 1rem);
      font-weight: 700; white-space: nowrap; flex-shrink: 0;
    }
    .page-input {
      width: clamp(40px, 10vw, 52px); text-align: center; background: #27272a;
      border: 1px solid #3f3f46; color: #fff; border-radius: 8px; padding: 4px 6px;
      font-weight: 800; font-family: var(--mono); font-size: clamp(0.78rem, 2.8vw, 1rem); transition: border-color 0.2s;
    }
    .page-input:focus { outline: none; border-color: var(--red); }

    /* Book Stage - CENTERED PICTURE ON MOBILE & DESKTOP */
    .book-stage {
      background: var(--card-dark);
      border: 1px solid var(--border-dark);
      border-radius: 24px;
      padding: clamp(10px, 3vw, 36px);
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: clamp(360px, 75vh, 900px);
      box-shadow: inset 0 2px 20px rgba(0,0,0,0.8), 0 30px 60px -15px rgba(0,0,0,0.95);
      perspective: 1800px;
      overflow: hidden;
      position: relative;
      margin: 0 auto;
    }
    .book-page-img {
      max-width: 100%;
      height: auto;
      max-height: 82vh;
      object-fit: contain;
      margin: 0 auto;
      display: block;
      border-radius: 12px;
      box-shadow: 0 25px 50px rgba(0,0,0,0.85);
      transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
      transform-style: preserve-3d;
      user-select: none;
      cursor: grab;
    }
    .book-page-img:active { cursor: grabbing; }

    .stage-loader {
      position: absolute; inset: 0; background: rgba(18, 18, 21, 0.85); backdrop-filter: blur(8px);
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
      z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
    }
    .stage-loader.active { opacity: 1; pointer-events: auto; }
    .spinner {
      width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.1);
      border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite;
    }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    /* ============ Footer (Same as index.html) ============ */
    footer.site { background: var(--ink); color: rgba(255,255,255,.6); padding-top: 72px; border-top: 1px solid var(--border-dark); }
    .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
    @media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
    @media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } .foot-brand picture img { height: 38px; } }
    .foot-brand picture img { height: 52px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 16px; }
    .foot-brand p { font-size: .88rem; max-width: 280px; line-height: 1.7; }
    .foot-col h4 { font-family: var(--mono); color: var(--white); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
    .foot-col ul { display: flex; flex-direction: column; gap: 11px; }
    .foot-col a { font-size: .88rem; transition: color .2s; }
    .foot-col a:hover { color: var(--red); }
    .foot-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: .78rem; flex-wrap: wrap; gap: 12px; }
    @media (max-width: 560px) { .foot-bottom { flex-direction: column; text-align: center; gap: 8px; } }

    /* ============ Floating WhatsApp & Popup (Same as index.html) ============ */
    .float-wa {
      position: fixed; bottom: 28px; right: 28px; z-index: 150; width: 62px; height: 62px;
      border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s var(--ease), box-shadow .25s;
      animation: waPulse 2.2s ease-in-out infinite; cursor: pointer; border: none;
    }
    .float-wa:hover { transform: scale(1.12); box-shadow: 0 14px 32px rgba(37,211,102,.6); animation: none; }
    .float-wa svg { width: 34px; height: 34px; transition: transform .25s; }
    .float-wa:hover svg { transform: rotate(-8deg) scale(1.08); }
    @keyframes waPulse { 0%,100%{box-shadow:0 8px 24px rgba(37,211,102,.45);} 50%{box-shadow:0 12px 36px rgba(37,211,102,.7), 0 0 0 14px rgba(37,211,102,.08);} }
    @media (max-width: 440px) { .float-wa { width: 54px; height: 54px; bottom: 20px; right: 20px; } .float-wa svg { width: 28px; height: 28px; } }

    .wa-popup {
      position: fixed; bottom: 100px; right: 28px; z-index: 160; width: 340px; background: white;
      border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); overflow: hidden;
      transform: translateY(20px) scale(0.95); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .wa-popup.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
    .wa-popup-header { background: #075E54; color: white; padding: 16px; display: flex; align-items: center; gap: 12px; position: relative; }
    .wa-popup-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: white; padding: 4px; }
    .wa-popup-name { font-weight: 700; font-size: .95rem; color: white; }
    .wa-popup-status { font-size: .72rem; opacity: .8; margin-top: 2px; color: #e2e8f0; }
    .wa-popup-close { position: absolute; right: 16px; top: 16px; color: white; font-size: 1.5rem; opacity: .8; cursor: pointer; background: none; border: none; }
    .wa-popup-close:hover { opacity: 1; }
    .wa-popup-body { background: #ECE5DD; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
    .wa-popup-msg { background: white; color: #1e293b; padding: 12px 14px; border-radius: 0 12px 12px 12px; font-size: .88rem; box-shadow: 0 1px 2px rgba(0,0,0,0.1); line-height: 1.4; }
    .wa-popup-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: .88rem; resize: none; height: 70px; color: #1e293b; }
    .wa-popup-input:focus { outline: none; border-color: #25D366; }
    .wa-popup-send { background: #25D366; color: white; font-weight: 700; text-align: center; padding: 12px; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 4px 12px rgba(37,211,102,0.3); transition: all 0.2s; }
    .wa-popup-send:hover { background: #1da851; transform: translateY(-2px); }
    @media (max-width: 440px) { .wa-popup { width: calc(100vw - 36px); right: 18px; bottom: 88px; } }