/**
	* global.css
	*
	* IME Hub design system.
	* Contains: CSS custom properties, reset, typography, and all component styles
	* for the hub mockup. Loaded on every page via functions.php.
	*
	* Google Fonts (Figtree) is loaded in header.php via <link> for performance.
	*
	* Table of contents:
	*  1.  Custom properties (design tokens)
	*  2.  Reset & base
	*  3.  Global top bar
	*  4.  Product switcher
	*  5.  Main layout
	*  6.  Page top bar (greeting + time strip)
	*  7.  Band headers
	*  8.  Postcard band
	*  9.  City card
	*  10. Word card
	*  11. Video card (Manu weekly)
	*  12. Promo banner
	*  13. Products grid
	*  14. Communities grid
	*  15. Modals (city, magazine flipbook, audio playlist)
	*  16. Footer
	*  17. Responsive overrides
*/
  

/* ==========================================================================
	1. Custom properties
========================================================================== */

:root {
    --bg:               #F2F6FB;
    --surface:          #ffffff;
    --surface-alt:      #F8FAFD;
    --text:             #1C3447;
    --text-muted:       #5C7184;
    --blue:             #0090FF;
    --pink:             #E93D82;
    --green:            #009246;
    --red:              #CE2B37;
    --border:           rgba(28, 52, 71, 0.08);
    --border-strong:    rgba(28, 52, 71, 0.14);
    --shadow-sm:        0 1px 2px rgba(28, 52, 71, 0.04), 0 4px 12px rgba(28, 52, 71, 0.05);
    --shadow-md:        0 8px 28px rgba(28, 52, 71, 0.08);
    --r-sm:             8px;
    --r-md:             14px;
    --r-lg:             20px;
    --r-xl:             28px;
}


/* ==========================================================================
	2. Reset & base
========================================================================== */

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

html,
body {
    background:              var(--bg);
    color:                   var(--text);
    font-family:             'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size:               17px;
    line-height:             1.55;
    -webkit-font-smoothing:  antialiased;
}

a {
    color:           inherit;
    text-decoration: none;
}


/* ==========================================================================
	3. Global top bar
========================================================================== */

.topbar-global {
    background:    var(--surface);
    border-bottom: 1px solid var(--border);
    position:      sticky;
    top:           0;
    z-index:       10;
}

.topbar-inner {
    max-width:   1320px;
    margin:      0 auto;
    padding:     12px 28px;
    display:     flex;
    align-items: center;
    gap:         20px;
}

/* Brand */
.brand {
    display:     flex;
    align-items: center;
    gap:         11px;
    flex-shrink: 0;
}

.brand-mark {
    width:         34px;
    height:        34px;
    border-radius: 9px;
    background:    linear-gradient(135deg, var(--blue), var(--pink));
    display:       flex;
    align-items:   center;
    justify-content: center;
    color:         #fff;
    font-weight:   900;
    font-size:     1rem;
    letter-spacing: -0.02em;
}

.brand-text {
    font-weight:    800;
    font-size:      0.95rem;
    letter-spacing: -0.01em;
}

/* Top bar actions (help, avatar) */
.topbar-actions {
    display:      flex;
    align-items:  center;
    gap:          16px;
    flex-shrink:  0;
    padding-left: 14px;
    border-left:  1px solid var(--border);
    margin-left:  6px;
}

.topbar-link {
    font-size:   0.84rem;
    font-weight: 600;
    color:       var(--text-muted);
    cursor:      pointer;
}

.topbar-link:hover {
    color: var(--text);
}

.topbar-avatar {
    display:     flex;
    align-items: center;
    gap:         10px;
    cursor:      pointer;
}

.topbar-avatar .avatar {
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      linear-gradient(135deg, var(--blue), var(--pink));
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #fff;
    font-weight:     800;
    font-size:       0.92rem;
}

.user-info {
    display:        flex;
    flex-direction: column;
    line-height:    1.1;
}

.user-name {
    font-size:   0.85rem;
    font-weight: 700;
}

.user-tag {
    font-size:   0.74rem;
    font-weight: 600;
    color:       var(--blue);
    margin-top:  2px;
}


/* ==========================================================================
	4. Product switcher
========================================================================== */

.switcher {
    position:    relative;
    margin-left: auto;
}

.switcher-trigger {
    display:         inline-flex;
    align-items:     center;
    gap:             10px;
    padding:         9px 14px 9px 12px;
    background:      var(--surface-alt);
    border:          1px solid var(--border);
    border-radius:   100px;
    font-size:       0.92rem;
    font-weight:     700;
    color:           var(--text);
    cursor:          pointer;
    line-height:     1;
    transition:      background 0.15s, border-color 0.15s;
}

.switcher-trigger:hover,
.switcher.open .switcher-trigger {
    background:    #fff;
    border-color:  var(--border-strong);
}

.switcher-trigger .current-mark {
    width:           24px;
    height:          24px;
    border-radius:   6px;
    background:      linear-gradient(135deg, var(--blue), var(--pink));
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    color:           #fff;
    font-weight:     900;
    font-size:       0.74rem;
    letter-spacing:  -0.02em;
    flex-shrink:     0;
}

.switcher-trigger .current-name {
    display:        inline-flex;
    flex-direction: column;
    line-height:    1.1;
    align-items:    flex-start;
}

.switcher-trigger .current-name small {
    font-size:   0.66rem;
    font-weight: 600;
    color:       var(--text-muted);
    margin-bottom: 2px;
}

.switcher-trigger .caret {
    width:      14px;
    height:     14px;
    flex-shrink: 0;
    opacity:    0.55;
    transition: transform 0.2s;
}

.switcher.open .switcher-trigger .caret {
    transform: rotate(180deg);
}

.switcher-menu {
    position:      absolute;
    top:           calc(100% + 8px);
    right:         0;
    min-width:     280px;
    background:    #fff;
    border:        1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow:    0 12px 36px rgba(28, 52, 71, 0.12), 0 2px 6px rgba(28, 52, 71, 0.06);
    padding:       6px;
    display:       none;
    z-index:       20;
}

.switcher.open .switcher-menu {
    display: block;
}

.switcher-item {
    display:       flex;
    align-items:   center;
    gap:           11px;
    padding:       10px 12px;
    border-radius: var(--r-sm);
    font-size:     0.9rem;
    font-weight:   600;
    color:         var(--text);
    cursor:        pointer;
    text-decoration: none;
    transition:    background 0.12s;
}

.switcher-item:hover {
    background: var(--surface-alt);
}

.switcher-item .item-mark {
    width:           28px;
    height:          28px;
    border-radius:   6px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #fff;
    font-weight:     900;
    font-size:       0.72rem;
    letter-spacing:  -0.02em;
    flex-shrink:     0;
}

.switcher-item.hub       .item-mark { background: linear-gradient(135deg, var(--blue), var(--pink)); }
.switcher-item.platform  .item-mark { background: linear-gradient(135deg, #0090FF, #5BB3FF); }
.switcher-item.audio     .item-mark { background: linear-gradient(135deg, #1C3447, #3A5169); }
.switcher-item.magazine  .item-mark { background: linear-gradient(135deg, #D4A017, #9C5A1A); }
.switcher-item.community .item-mark { background: linear-gradient(135deg, #009246, #0090FF); }

.switcher-item .item-text {
    flex:        1;
    display:     flex;
    flex-direction: column;
    line-height: 1.2;
    gap:         1px;
}

.switcher-item .item-text small {
    font-size:   0.72rem;
    font-weight: 500;
    color:       var(--text-muted);
}

.switcher-item.current {
    background: linear-gradient(135deg, rgba(0, 144, 255, 0.06), rgba(233, 61, 130, 0.05));
    color:      var(--text);
}

.switcher-item.current::after {
    content:       "";
    width:         6px;
    height:        6px;
    border-radius: 50%;
    background:    linear-gradient(135deg, var(--blue), var(--pink));
    margin-left:   auto;
}

.switcher-item.locked {
    opacity: 0.55;
}

.switcher-item.locked::after {
    content:     "";
    width:       12px;
    height:      12px;
    background:  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235C7184" stroke-width="2.4" stroke-linecap="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>') no-repeat center / contain;
    margin-left: auto;
    opacity:     0.7;
}

.switcher-divider {
    height:     1px;
    background: var(--border);
    margin:     6px 4px;
}

.switcher-section-label {
    padding:        8px 12px 4px;
    font-size:      0.72rem;
    font-weight:    700;
    color:          var(--text-muted);
    letter-spacing: 0.04em;
}


/* ==========================================================================
	5. Main layout
========================================================================== */

.main {
    max-width:      1320px;
    margin:         0 auto;
    width:          100%;
    padding:        24px 28px 40px;
    display:        flex;
    flex-direction: column;
    gap:            22px;
    min-width:      0;
}


/* ==========================================================================
	6. Page top bar — greeting + time strip
========================================================================== */

.topbar {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             18px;
    flex-wrap:       wrap;
}

.topbar .greeting {
    display:        flex;
    flex-direction: column;
    gap:            2px;
}

.topbar .greeting h1 {
    font-size:      clamp(1.6rem, 2.2vw, 2rem);
    font-weight:    900;
    letter-spacing: -0.02em;
    line-height:    1.05;
}

.topbar .greeting h1 .accent {
    background:              linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip:         text;
    -webkit-text-fill-color: transparent;
}

.topbar .greeting .sub {
    font-size: 0.86rem;
    color:     var(--text-muted);
}

.topbar .greeting .sub em {
    font-style:  italic;
    font-weight: 700;
    color:       var(--text);
}

/* Time strip */
.time-strip {
    display:       inline-flex;
    align-items:   center;
    gap:           16px;
    padding:       11px 18px;
    background:    var(--surface);
    border:        1px solid var(--border);
    border-radius: 100px;
    font-size:     0.94rem;
    box-shadow:    var(--shadow-sm);
}

.time-strip .time-block {
    display:     inline-flex;
    align-items: center;
    gap:         9px;
}

.time-strip .time-label {
    font-size:   0.86rem;
    font-weight: 600;
    color:       var(--text-muted);
}

.time-strip .time-value {
    font-weight:         800;
    font-variant-numeric: tabular-nums;
    font-size:           1rem;
    letter-spacing:      0.01em;
}

.time-strip .time-mood {
    font-style: italic;
    color:      var(--text-muted);
    font-size:  0.92rem;
}

.time-strip .time-mood:not(:empty)::before {
    content:  "— ";
    font-style: normal;
    opacity:  0.5;
}

.time-strip .time-divider {
    color: var(--border-strong);
}

.time-strip .time-flag {
    display: inline-flex;
    gap:     3px;
}

.time-strip .time-flag span {
    width:         5px;
    height:        5px;
    border-radius: 50%;
}

.time-strip .time-flag span:nth-child(1) { background: var(--green); }
.time-strip .time-flag span:nth-child(2) { background: #fff; outline: 1px solid var(--border); }
.time-strip .time-flag span:nth-child(3) { background: var(--red); }


/* ==========================================================================
	7. Band headers
========================================================================== */

.band-head {
    display:         flex;
    align-items:     baseline;
    justify-content: space-between;
    margin-bottom:   14px;
    gap:             14px;
}

.band-head h2 {
    font-size:      1.18rem;
    font-weight:    800;
    letter-spacing: -0.01em;
    color:          var(--text);
}

.band-head h2 .accent { color: var(--blue); }

.band-head .meta {
    font-size:   0.84rem;
    color:       var(--text-muted);
    font-weight: 500;
}

.band-head .link {
    font-size:   0.86rem;
    color:       var(--blue);
    font-weight: 700;
}

.band-head .link::after { content: " ›"; }


/* ==========================================================================
	8. Postcard band & Manu band
========================================================================== */

/* City (2/3) + Word (1/3) */
.postcard-band {
    display:               grid;
    grid-template-columns: 2fr 1fr;
    gap:                   14px;
}

/* Promo (2/3) + Video (1/3) */
.manu-band {
    display:               grid;
    grid-template-columns: 2fr 1fr;
    gap:                   14px;
}

.manu-band .pc-video {
    grid-column: 2;
}

/* Shared postcard card base */
.postcard-card {
    background:  var(--surface);
    border:      1px solid var(--border);
    border-radius: var(--r-md);
    overflow:    hidden;
    display:     flex;
    flex-direction: column;
    position:    relative;
    transition:  transform 0.15s, box-shadow 0.15s;
    cursor:      pointer;
}

.postcard-card:hover {
    transform:  translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
	9. City card
========================================================================== */

.pc-city {
    position:   relative;
    color:      #fff;
    min-height: 300px;
}

.pc-city .photo {
    position:            absolute;
    inset:               0;
    background-size:     cover;
    background-position: center 50%;
}

.pc-city .scrim {
    position:   absolute;
    inset:      0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.0) 30%, rgba(10, 22, 40, 0.78) 100%);
}

.pc-city .body {
    position:        relative;
    z-index:         2;
    display:         flex;
    flex-direction:  column;
    justify-content: flex-end;
    height:          100%;
    padding:         24px 26px;
    min-height:      300px;
}

.pc-city .eyebrow {
    font-size:   0.78rem;
    font-weight: 600;
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    color:       rgba(255, 255, 255, 0.92);
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pc-city .eyebrow .dots { display: inline-flex; gap: 3px; }
.pc-city .eyebrow .dots span { width: 5px; height: 5px; border-radius: 50%; }
.pc-city .eyebrow .dots span:nth-child(1) { background: var(--green); }
.pc-city .eyebrow .dots span:nth-child(2) { background: #fff; }
.pc-city .eyebrow .dots span:nth-child(3) { background: var(--red); }

.pc-city .name {
    font-size:      2rem;
    font-weight:    900;
    letter-spacing: -0.02em;
    line-height:    1;
    text-shadow:    0 2px 12px rgba(0, 0, 0, 0.4);
}

.pc-city .discover-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         0;
    background:      none;
    border:          0;
    color:           rgba(255, 255, 255, 0.85);
    font-weight:     500;
    font-size:       0.86rem;
    cursor:          pointer;
    font-family:     inherit;
    text-shadow:     0 1px 6px rgba(0, 0, 0, 0.5);
    margin-top:      8px;
    align-self:      flex-start;
    border-bottom:   1px solid rgba(255, 255, 255, 0.35);
    padding-bottom:  1px;
    transition:      color 0.15s, border-color 0.15s;
}

.pc-city .discover-btn:hover {
    color:        #fff;
    border-bottom-color: #fff;
}

.pc-city .discover-btn::after {
    content:     "›";
    font-weight: 300;
    font-size:   1.05rem;
    line-height: 1;
    margin-left: 2px;
    opacity:     0.9;
}


/* ==========================================================================
	10. Word card
========================================================================== */

.pc-word {
    padding:        18px 20px;
    display:        flex;
    flex-direction: column;
    gap:            6px;
    background:     linear-gradient(180deg, #fff 0%, rgba(0, 144, 255, 0.04) 100%);
}

.pc-word .eyebrow {
    font-size:   0.78rem;
    font-weight: 600;
    color:       var(--blue);
}

.pc-word .word {
    font-size:               2rem;
    font-weight:             900;
    letter-spacing:          -0.02em;
    line-height:             1;
    background:              linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip:         text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

.pc-word .phon {
    font-size:  0.78rem;
    color:      var(--text-muted);
    font-style: italic;
}

.pc-word .means {
    font-size:   0.84rem;
    color:       var(--text);
    font-weight: 600;
    margin-top:  auto;
    padding-top: 8px;
}

.pc-word .means em {
    color:      var(--blue);
    font-style: normal;
}

.pc-word .play-row {
    display:     flex;
    align-items: center;
    gap:         8px;
     margin-top: 35px;
}

.pc-word .play-btn {
    width:         45px;
    height:        45px;
    border-radius: 50%;
    background:    linear-gradient(135deg, var(--blue), var(--pink));
    display:       flex;
    align-items:   center;
    justify-content: center;
    flex-shrink:   0;
    box-shadow:    0 4px 10px rgba(233, 61, 130, 0.25);
}

.pc-word .play-btn::before {
    content: "";
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0;
    margin-left: 4px;
}

.play-btn.iw-playing::before {
    border: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 2px;
    margin-left: 0;
}

.pc-word .play-label {
    font-size:      0.74rem;
    color:          var(--text-muted);
    font-weight:    600;
    letter-spacing: 0.02em;
}


/* ==========================================================================
	11. Video card — Manu weekly
========================================================================== */

.pc-video {
    display:    flex;
    flex-direction: column;
    background: var(--surface);
}

.pc-video .thumb {
    position:     relative;
    aspect-ratio: 16 / 10;
    background:   linear-gradient(135deg, #0A1628, #1C3447);
    overflow:     hidden;
}

.pc-video .thumb-photo {
    position:            absolute;
    inset:               0;
    background-size:     cover;
    background-position: center 22%;
    opacity:             0.92;
}

.pc-video .thumb-grad {
    position:   absolute;
    inset:      0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 22, 40, 0.85) 100%);
}

.pc-video .play-overlay {
    position:        absolute;
    top:             50%;
    left:            50%;
    transform:       translate(-50%, -50%);
    width:           48px;
    height:          48px;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.95);
    display:         flex;
    align-items:     center;
    justify-content: center;
    box-shadow:      0 8px 22px rgba(0, 0, 0, 0.3);
}

.pc-video .play-overlay::before {
    content:      "";
    width:        0;
    height:       0;
    border:       8px solid transparent;
    border-left:  13px solid var(--text);
    border-right: 0;
    margin-left:  3px;
}

.pc-video .duration {
    position:         absolute;
    bottom:           8px;
    right:            8px;
    padding:          3px 8px;
    background:       rgba(0, 0, 0, 0.7);
    backdrop-filter:  blur(6px);
    border-radius:    5px;
    font-size:        0.7rem;
    font-weight:      700;
    color:            #fff;
    font-variant-numeric: tabular-nums;
}

.pc-video .meta {
    padding: 14px 16px;
}

.pc-video .who {
    font-size:   0.78rem;
    font-weight: 600;
    color:       var(--text-muted);
    margin-bottom: 4px;
}

.pc-video h3 {
    font-size:   0.95rem;
    font-weight: 800;
    line-height: 1.25;
}


/* ==========================================================================
	12. Promo banner
========================================================================== */

.promo-banner {
    position:               relative;
    background:             linear-gradient(135deg, #FFF0F0 0%, #FFE5DA 50%, #FFF7E8 100%);
    border:                 1px solid rgba(233, 61, 130, 0.12);
    border-radius:          var(--r-md);
    padding:                30px 34px 40px;
    display:                grid;
    grid-template-columns:  1.25fr 1fr;
    gap:                    24px;
    align-items:            center;
    overflow:               hidden;
    box-shadow:             0 8px 24px rgba(233, 61, 130, 0.06);
}

.promo-banner::before {
    content:         "";
    position:        absolute;
    top:             -40px;
    right:           -40px;
    width:           200px;
    height:          200px;
    background:      radial-gradient(circle, rgba(0, 144, 255, 0.12) 0%, transparent 70%);
    pointer-events:  none;
}

.promo-content {
    display:        flex;
    flex-direction: column;
    gap:            14px;
    position:       relative;
    z-index:        1;
}

.promo-content h3 {
    font-size:      1.55rem;
    font-weight:    900;
    letter-spacing: -0.02em;
    line-height:    1.05;
    color:          var(--text);
}

.promo-content h3 .accent {
    background:              linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip:         text;
    -webkit-text-fill-color: transparent;
}

.promo-content p {
    font-size:  0.94rem;
    color:      var(--text);
    line-height: 1.5;
    max-width:  420px;
}

.promo-content p strong { font-weight: 800; }
.promo-content p em     { font-style: italic; font-weight: 600; }

.promo-cta {
    display:      inline-flex;
    align-items:  center;
    gap:          8px;
    padding:      12px 22px;
    border-radius: 100px;
    background:   linear-gradient(135deg, var(--blue), var(--pink));
    color:        #fff;
    font-weight:  700;
    font-size:    0.9rem;
    text-decoration: none;
    margin-top:   6px;
    align-self:   flex-start;
    box-shadow:   0 8px 22px rgba(233, 61, 130, 0.26), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition:   transform 0.15s, box-shadow 0.15s;
}

.promo-cta:hover {
    transform:  translateY(-1px);
    box-shadow: 0 12px 28px rgba(233, 61, 130, 0.32), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.promo-cta::after {
    content:     "→";
    font-weight: 400;
    font-size:   1rem;
    line-height: 1;
    margin-left: 1px;
}

/* Magazine stack illustration */
.promo-image {
    position:        relative;
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-height:      200px;
    z-index:         1;
}

.mag-stack {
    position:    relative;
    width:       240px;
    height:      200px;
    perspective: 600px;
}

.mag-stack .mag {
    position:      absolute;
    border-radius: 5px;
    box-shadow:    0 14px 32px rgba(28, 52, 71, 0.18), 0 4px 10px rgba(28, 52, 71, 0.1);
    overflow:      hidden;
}

.mag-stack .mag-back {
    width:      88px;
    height:     120px;
    top:        8px;
    left:       14px;
    transform:  rotate(-14deg);
    background: linear-gradient(155deg, #1C3447 0%, #3A5169 60%, #0090FF 130%);
}

.mag-stack .mag-back::before {
    content:     "";
    position:    absolute;
    top:         8px;
    left:        6px;
    right:       6px;
    height:      18px;
    background:  rgba(255, 255, 255, 0.18);
    border-radius: 2px;
}

.mag-stack .mag-back::after {
    content:     "";
    position:    absolute;
    bottom:      10px;
    left:        6px;
    right:       6px;
    height:      42px;
    background:  linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 2px;
}

.mag-stack .mag-mid {
    width:      88px;
    height:     120px;
    top:        24px;
    left:       64px;
    transform:  rotate(6deg);
    background: linear-gradient(165deg, #FFD27D 0%, #E93D82 100%);
}

.mag-stack .mag-mid::before {
    content:     "";
    position:    absolute;
    inset:       8px;
    background:  rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.mag-stack .mag-front {
    width:          108px;
    height:         142px;
    top:            18px;
    left:           118px;
    transform:      rotate(-3deg);
    background:     linear-gradient(170deg, #A6D5F0 0%, #5BB3FF 50%, #0090FF 100%);
    display:        flex;
    flex-direction: column;
    padding:        10px;
    color:          #fff;
}

.mag-stack .mag-front .mf-label {
    font-size:      0.6rem;
    font-weight:    900;
    letter-spacing: 0.04em;
    background:     #fff;
    color:          var(--text);
    padding:        2px 6px;
    border-radius:  2px;
    width:          fit-content;
    line-height:    1.1;
}

.mag-stack .mag-front .mf-tag {
    font-size:      0.5rem;
    font-weight:    700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          rgba(255, 255, 255, 0.85);
    margin-top:     auto;
    margin-bottom:  3px;
}

.mag-stack .mag-front .mf-headline {
    font-size:      0.84rem;
    font-weight:    900;
    line-height:    1.05;
    letter-spacing: -0.01em;
    text-shadow:    0 1px 4px rgba(0, 0, 0, 0.25);
}

.mag-stack .mag-front .mf-sub {
    font-size:   0.5rem;
    font-weight: 600;
    color:       rgba(255, 255, 255, 0.78);
    margin-top:  2px;
}

/* Slider dots */
.promo-dots {
    position:  absolute;
    bottom:    16px;
    left:      50%;
    transform: translateX(-50%);
    display:   flex;
    gap:       6px;
    align-items: center;
    z-index:   2;
}

.promo-dots .dot {
    width:         7px;
    height:        7px;
    border-radius: 50%;
    background:    rgba(28, 52, 71, 0.2);
    transition:    background 0.2s, width 0.2s;
    cursor:        pointer;
    border:        0;
    padding:       0;
}

.promo-dots .dot.active {
    background:    linear-gradient(135deg, var(--blue), var(--pink));
    width:         22px;
    border-radius: 100px;
    box-shadow:    0 2px 6px rgba(233, 61, 130, 0.3);
}

/* "Recommended for you" tag */
.promo-tag {
    position:       absolute;
    top:            14px;
    left:           18px;
    font-size:      0.66rem;
    font-weight:    700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color:          var(--text-muted);
    z-index:        2;
    display:        inline-flex;
    align-items:    center;
    gap:            6px;
}

.promo-tag::before {
    content:       "";
    width:         5px;
    height:        5px;
    border-radius: 50%;
    background:    linear-gradient(135deg, var(--blue), var(--pink));
}


/* ==========================================================================
	13. Products grid
========================================================================== */

.products-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   14px;
}

.product {
    background:     var(--surface);
    border:         1px solid var(--border);
    border-radius:  var(--r-md);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    transition:     transform 0.15s, box-shadow 0.15s;
    position:       relative;
    min-height:     230px;
}

.product:hover {
    transform:  translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Membership — active / celebratory */
.product.membership {
    background:
	radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 144, 255, 0.07) 0%, transparent 60%),
	radial-gradient(ellipse 80% 60% at 90% 110%, rgba(233, 61, 130, 0.06) 0%, transparent 60%),
	linear-gradient(165deg, #fff 0%, #FFFAFC 60%, #F4F8FE 100%);
    border-color: rgba(0, 144, 255, 0.14);
    box-shadow:
	0 1px 2px rgba(28, 52, 71, 0.04),
	0 8px 28px rgba(0, 144, 255, 0.05),
	0 6px 22px rgba(233, 61, 130, 0.05);
}

.product.membership:hover {
    box-shadow:
	0 1px 2px rgba(28, 52, 71, 0.06),
	0 14px 36px rgba(0, 144, 255, 0.08),
	0 10px 30px rgba(233, 61, 130, 0.08);
}

/* Sparkle twinkle animation on membership card */
.product.membership .sparkles-mini {
    animation: sparkleTwinkle 2.4s ease-in-out infinite;
}

.product.membership .sparkles-mini .sp:nth-child(2),
.product.membership .sparkles-mini circle {
    animation:       sparkleTwinkle 2.4s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.92); }
}

/* Colour strip at top of each card */
.product .strip {
    height:     5px;
    background: #ddd;
    flex-shrink: 0;
}

.product.platform .strip { background: linear-gradient(90deg, var(--blue), var(--pink)); }
.product.audio      .strip { background: linear-gradient(90deg, #3FB0FF, #FF7FA8); }
.product.magazine   .strip { background: linear-gradient(90deg, #FFCD7D, #E93D82); }

.product .body {
    padding:         22px 22px 24px;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    text-align:      center;
    gap:             14px;
    flex:            1;
}

/* Status pill */
.product .pill-status {
    display:       inline-flex;
    align-items:   center;
    gap:           7px;
    padding:       5px 13px 5px 11px;
    border-radius: 100px;
    font-size:     0.78rem;
    font-weight:   700;
    line-height:   1;
}

.product .pill-status,
.product .pill-status.active-state {
    background: rgba(0, 146, 70, 0.12);
    color:      var(--green);
    border:     1px solid rgba(0, 146, 70, 0.22);
}

.product .pill-status.locked {
    background: rgba(28, 52, 71, 0.06);
    color:      var(--text-muted);
    border:     1px solid var(--border);
}

/* Icons inside pill */
.product .pill-status .lock-mini {
    width:              19px;
    height:             19px;
    flex-shrink:        0;
    fill:               none;
    stroke-width:       2;
    stroke-linecap:     round;
    stroke-linejoin:    round;
}

.product .pill-status .lock-mini .lock-shape-mini {
    stroke: url(#lockGradient);
}

.product .pill-status .sparkles-mini {
    width:       20px;
    height:      20px;
    flex-shrink: 0;
}

.product .pill-status .sparkles-mini .sp,
.product .pill-status .sparkles-mini circle {
    fill: url(#lockGradient);
}

.product h3 {
    font-size:      1.04rem;
    font-weight:    800;
    letter-spacing: -0.01em;
    line-height:    1.3;
    white-space:    nowrap;
}

/* CTAs */
.product .cta {
    display:      inline-flex;
    align-items:  center;
    gap:          8px;
    padding:      11px 22px;
    border-radius: 100px;
    font-weight:  700;
    font-size:    0.88rem;
    text-decoration: none;
    transition:   transform 0.15s, box-shadow 0.15s;
    cursor:       pointer;
    line-height:  1;
}

.product .cta-primary {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    color:      #fff;
    box-shadow: 0 8px 22px rgba(233, 61, 130, 0.24), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.product .cta-primary:hover {
    transform:  translateY(-1px);
    box-shadow: 0 12px 28px rgba(233, 61, 130, 0.3), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.product .cta-primary::after {
    content:     "›";
    font-weight: 300;
    font-size:   1.15rem;
    line-height: 1;
}

.product .cta-ghost {
    background:   transparent;
    color:        var(--blue);
    border:       1px solid rgba(0, 144, 255, 0.3);
}

.product .cta-ghost:hover {
    background:   rgba(0, 144, 255, 0.06);
    border-color: var(--blue);
}

.product .cta-ghost::after {
    content:     "›";
    font-weight: 300;
    font-size:   1.15rem;
    line-height: 1;
}

.product .cta-secondary {
    font-size:        0.82rem;
    color:            var(--text-muted);
    font-weight:      600;
    text-decoration:  none;
    border-bottom:    1px solid var(--border-strong);
    padding-bottom:   1px;
    transition:       color 0.15s, border-color 0.15s;
    margin-top:       -2px;
}

.product .cta-secondary:hover {
    color:        var(--text);
    border-color: var(--text);
}

/* Locked product cards — calm brand-blue tint */
.product.locked {
    background:
	radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 144, 255, 0.14) 0%, transparent 60%),
	radial-gradient(ellipse 80% 50% at 50% 110%, rgba(233, 61, 130, 0.08) 0%, transparent 60%),
	linear-gradient(180deg, #F0F6FC, #E5EDF7);
    border-color: rgba(0, 144, 255, 0.16);
}   
  
.product.locked h3,
.product.locked h3 {
    color:       var(--text);
    text-shadow: none;
}

.product.locked .pill-status.locked,
.product.locked .pill-status.locked {
    background:   rgba(255, 255, 255, 0.7);
    color:        var(--text-muted);
    border-color: rgba(28, 52, 71, 0.12);
}

.product.locked .cta-primary,
.product.locked .cta-primary {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    color:      #fff;
    box-shadow: 0 3px 10px rgba(28, 52, 71, 0.1), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.product.locked .cta-primary:hover,
.product.locked .cta-primary:hover {
    box-shadow: 0 6px 14px rgba(28, 52, 71, 0.14), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.product.locked .cta-secondary,
.product.locked .cta-secondary {
    color:        var(--text-muted);
    border-color: var(--border-strong);
}

.product.locked .cta-secondary:hover,
.product.locked .cta-secondary:hover {
    color:        var(--text);
    border-color: var(--text);
}


/* ==========================================================================
	14. Communities grid
========================================================================== */

.communities-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   14px;
}

.community {
    background:     var(--surface);
    border:         1px solid var(--border);
    border-radius:  var(--r-md);
    padding:        18px 20px;
    display:        flex;
    flex-direction: column;
    gap:            12px;
    position:       relative;
    overflow:       hidden;
    transition:     transform 0.15s, box-shadow 0.15s;
}

.community:hover {
    transform:  translateY(-2px);
    box-shadow: var(--shadow-md);
}

.community.exclusive {
    background:   linear-gradient(180deg, #fff, #FFF8FB);
    border-color: rgba(233, 61, 130, 0.18);
}

.community-head {
    display:     flex;
    align-items: center;
    gap:         11px;
}

.community-icon {
    width:           36px;
    height:          36px;
    border-radius:   8px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #fff;
    font-weight:     900;
    font-size:       0.95rem;
    letter-spacing:  -0.02em;
    flex-shrink:     0;
}

.community.public    .community-icon { background: linear-gradient(135deg, #0090FF, #009246); }
.community.exclusive .community-icon { background: linear-gradient(135deg, #E93D82, #CE2B37); }

.community-title-block {
    flex:      1;
    min-width: 0;
}

.community h3 {
    font-size:   0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.community .sub-tag {
    font-size:   0.7rem;
    color:       var(--text-muted);
    font-weight: 600;
    margin-top:  2px;
}

.community.exclusive .sub-tag { color: var(--pink); }

.community-badge {
    font-size:     0.72rem;
    font-weight:   700;
    padding:       3px 9px;
    border-radius: 100px;
}

.community.public    .community-badge { background: rgba(0, 146, 70, 0.08); color: var(--green); }
.community.exclusive .community-badge { background: rgba(233, 61, 130, 0.1); color: var(--pink); }

.community-stats {
    display:       flex;
    gap:           0;
    padding:       10px 0;
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.community-stats .cell {
    flex:       1;
    text-align: center;
}

.community-stats .cell + .cell {
    border-left: 1px solid var(--border);
}

.community-stats .num {
    font-size:      1.05rem;
    font-weight:    900;
    letter-spacing: -0.01em;
    line-height:    1;
}

.community.public    .community-stats .num { color: var(--blue); }
.community.exclusive .community-stats .num { color: var(--pink); }

.community-stats .lab {
    font-size:   0.74rem;
    font-weight: 600;
    color:       var(--text-muted);
    margin-top:  3px;
}

.community-pick {
    display:     flex;
    gap:         10px;
    align-items: flex-start;
}

.community-pick .manu-dot {
    width:         24px;
    height:        24px;
    border-radius: 50%;
    border:        1.5px solid #fff;
    box-shadow:    0 0 0 1px var(--border);
    flex-shrink:   0;
    margin-top:    2px;
    background-size: cover;
    background-position: center 18%;
}

.community-pick .pick-body {
    flex:      1;
    min-width: 0;
}

.community-pick .pick-label {
    font-size:   0.78rem;
    font-weight: 700;
    color:       var(--blue);
    margin-bottom: 4px;
}

.community.exclusive .community-pick .pick-label { color: var(--pink); }

.community-pick .pick-quote {
    font-size:   0.84rem;
    line-height: 1.45;
    color:       var(--text);
    font-style:  italic;
}

.community-cta {
    display:     inline-flex;
    align-items: center;
    gap:         6px;
    font-weight: 700;
    font-size:   0.82rem;
    margin-top:  auto;
    padding-top: 8px;
    border-top:  1px solid var(--border);
}

.community.public    .community-cta { color: var(--text); }
.community.exclusive .community-cta { color: var(--pink); }

.community-cta::after {
    content:     "›";
    font-weight: 300;
    font-size:   1.05rem;
    line-height: 1;
}

/* Piazza Italia — locked state */
.community.exclusive.locked {
    background:
	radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 144, 255, 0.14) 0%, transparent 60%),
	radial-gradient(ellipse 80% 50% at 50% 110%, rgba(233, 61, 130, 0.08) 0%, transparent 60%),
	linear-gradient(180deg, #F0F6FC, #E5EDF7);
    border-color: rgba(0, 144, 255, 0.16);
}

.community.exclusive.locked::before { display: none; }

.community.exclusive.locked .community-badge {
    background:  rgba(28, 52, 71, 0.06);
    color:       var(--text-muted);
    border:      1px solid rgba(28, 52, 71, 0.12);
    display:     inline-flex;
    align-items: center;
    gap:         6px;
}

.community.exclusive.locked .community-badge .lock-mini {
    width:           13px;
    height:          13px;
    flex-shrink:     0;
    fill:            none;
    stroke-width:    2.2;
    stroke-linecap:  round;
    stroke-linejoin: round;
}

.community.exclusive.locked .community-badge .lock-mini .lock-shape-mini {
    stroke: url(#lockGradient);
}

.community.exclusive.locked .community-stats .num {
    filter:      blur(4px);
    user-select: none;
    letter-spacing: 0.05em;
}

.community.exclusive.locked .community-cta {
    color:         #fff;
    background:    linear-gradient(135deg, var(--blue), var(--pink));
    padding:       9px 18px;
    border-radius: 100px;
    border-top:    0;
    margin-top:    8px;
    font-size:     0.84rem;
    align-self:    flex-start;
    box-shadow:    0 6px 18px rgba(233, 61, 130, 0.22), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition:    transform 0.15s;
}

.community.exclusive.locked .community-cta:hover { transform: translateY(-1px); }
.community.exclusive.locked .community-cta::after { color: #fff; font-weight: 300; }


/* ==========================================================================
	15. Modals
========================================================================== */

.modal-overlay {
    position:         fixed;
    inset:            0;
    background:       rgba(10, 22, 40, 0.7);
    backdrop-filter:  blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index:          50;
    display:          none;
    align-items:      center;
    justify-content:  center;
    padding:          28px;
    animation:        fadeInOverlay 0.2s ease;
}

.modal-overlay.open { display: flex; }

.modal {
    background:    var(--surface);
    border-radius: var(--r-lg);
    max-width:     620px;
    width:         100%;
    max-height:    85vh;
    overflow:      auto;
    box-shadow:    0 28px 70px rgba(10, 22, 40, 0.45);
    animation:     slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position:      relative;
}

.modal-header {
    padding:       30px 32px 22px;
    display:       flex;
    gap:           18px;
    align-items:   flex-start;
    /*border-bottom: 1px solid var(--border);*/
}

.modal-header .photo {
    width:         68px;
    height:        68px;
    border-radius: 14px;
    background-size: cover;
    background-position: center 50%;
    flex-shrink:   0;
    box-shadow:    0 6px 16px rgba(28, 52, 71, 0.18);
}

.modal-header .meta {
    flex:        1;
    padding-top: 4px;
}

.modal-header .eyebrow {
    font-size:    0.78rem;
    font-weight:  700;
    color:        var(--blue);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    display:      inline-flex;
    align-items:  center;
    gap:          8px;
}

.modal-header .eyebrow .dots { display: inline-flex; gap: 4px; }
.modal-header .eyebrow .dots span { width: 5px; height: 5px; border-radius: 50%; }
.modal-header .eyebrow .dots span:nth-child(1) { background: var(--green); }
.modal-header .eyebrow .dots span:nth-child(2) { background: #fff; outline: 1px solid var(--border); }
.modal-header .eyebrow .dots span:nth-child(3) { background: var(--red); }

.modal-header h3 {
    font-size:      1.55rem;
    font-weight:    900;
    letter-spacing: -0.02em;
    line-height:    1.15;
}

.modal-close {
    position:        absolute;
    top:             18px;
    right:           18px;
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      var(--surface-alt);
    border:          1px solid var(--border);
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.1rem;
    color:           var(--text-muted);
    font-family:     inherit;
    line-height:     1;
    padding:         0;
    transition:      background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: #fff;
    color:      var(--text);
}

.modal-body {
    padding: 14px 32px 30px;
}

.modal-body .item {
    display:     flex;
    gap:         14px;
    padding:     16px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.modal-body .item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.modal-body .num {
    width:           30px;
    height:          30px;
    border-radius:   50%;
    background:      linear-gradient(135deg, var(--blue), var(--pink));
    color:           #fff;
    font-weight:     900;
    font-size:       0.86rem;
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    box-shadow:      0 4px 12px rgba(233, 61, 130, 0.22);
}

.modal-body .item p {
    font-size:   0.96rem;
    line-height: 1.55;
    color:       var(--text);
    padding-top: 3px;
}

.modal-body .item p strong { color: var(--blue); font-weight: 700; }
.modal-body .item p em     { font-style: italic; font-weight: 600; color: var(--text); }

/* Placeholder note (flipbook + playlist modals) */
.modal-body .placeholder-note {
    margin-top:     18px;
    padding:        10px 14px;
    background:     rgba(0, 144, 255, 0.05);
    border-left:    3px solid var(--blue);
    border-radius:  0 8px 8px 0;
    font-size:      0.84rem;
    color:          var(--text-muted);
    font-style:     italic;
    line-height:    1.4;
}

/* Modal animations */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* --- Magazine flipbook modal --- */
.modal-flipbook .flipbook-frame {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   3px;
    background:            linear-gradient(180deg, #1C3447, #0A1628);
    border-radius:         8px;
    overflow:              hidden;
    box-shadow:            0 16px 36px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.1);
    aspect-ratio:          5 / 3;
    position:              relative;
}

.modal-flipbook .flipbook-frame::before {
    content:    "";
    position:   absolute;
    left:       50%;
    top:        0;
    bottom:     0;
    width:      1px;
    background: rgba(0, 0, 0, 0.35);
    transform:  translateX(-50%);
    z-index:    2;
}

.modal-flipbook .page {
    padding:        18px 16px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
    font-size:      0.78rem;
    color:          var(--text);
    position:       relative;
}

.modal-flipbook .page-left {
    background:      linear-gradient(135deg, #3D0E2A 0%, #5A1F44 50%, #0090FF 200%);
    color:           #fff;
    align-items:     center;
    justify-content: center;
    text-align:      center;
    padding:         24px;
}

.modal-flipbook .page-left .cover-issue {
    font-size:      0.7rem;
    font-weight:    700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color:          rgba(255, 255, 255, 0.7);
    margin-bottom:  8px;
}

.modal-flipbook .page-left .cover-title {
    font-size:      1.4rem;
    font-weight:    900;
    line-height:    1.05;
    letter-spacing: -0.02em;
    margin-bottom:  6px;
}

.modal-flipbook .page-left .cover-tag {
    font-size:   0.7rem;
    color:       rgba(255, 255, 255, 0.6);
    margin-top:  10px;
    font-weight: 600;
}

.modal-flipbook .page-right {
    background: #FEFBF5;
    color:      var(--text);
}

.modal-flipbook .page-right .page-eyebrow {
    font-size:      0.66rem;
    font-weight:    700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color:          var(--text-muted);
    margin-bottom:  4px;
}

.modal-flipbook .page-right .page-h {
    font-size:      1rem;
    font-weight:    800;
    line-height:    1.2;
    margin-bottom:  8px;
    letter-spacing: -0.01em;
}

.modal-flipbook .page-right .lorem {
    display:        flex;
    flex-direction: column;
    gap:            5px;
}

.modal-flipbook .page-right .lorem span {
    height:        6px;
    background:    rgba(28, 52, 71, 0.08);
    border-radius: 3px;
}

.modal-flipbook .page-right .lorem span:nth-child(1) { width: 96%; }
.modal-flipbook .page-right .lorem span:nth-child(2) { width: 88%; }
.modal-flipbook .page-right .lorem span:nth-child(3) { width: 92%; }
.modal-flipbook .page-right .lorem span:nth-child(4) { width: 74%; }
.modal-flipbook .page-right .lorem span:nth-child(5) { width: 88%; }
.modal-flipbook .page-right .lorem span:nth-child(6) { width: 60%; }

.modal-flipbook .flipbook-nav {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    margin-top:      14px;
}

.modal-flipbook .flip-btn {
    background:    var(--surface);
    border:        1px solid var(--border);
    border-radius: 100px;
    padding:       8px 14px;
    font-size:     0.82rem;
    font-weight:   600;
    cursor:        pointer;
    color:         var(--text);
    font-family:   inherit;
    transition:    background 0.15s, border-color 0.15s;
}

.modal-flipbook .flip-btn:hover {
    background:   var(--surface-alt);
    border-color: var(--border-strong);
}

.modal-flipbook .flip-btn:disabled {
    opacity: 0.45;
    cursor:  default;
}

.modal-flipbook .page-indicator {
    font-size:           0.84rem;
    color:               var(--text-muted);
    font-weight:         600;
    font-variant-numeric: tabular-nums;
}

/* --- Audio playlist modal --- */
.modal-playlist .playlist {
    list-style:     none;
    display:        flex;
    flex-direction: column;
    gap:            6px;
}

.modal-playlist .track {
    display:     flex;
    align-items: center;
    gap:         14px;
    padding:     8px 10px;
    border-radius: 10px;
    border:      1px solid transparent;
    transition:  background 0.15s, border-color 0.15s;
    cursor:      pointer;
}

.modal-playlist .track:hover { background: var(--surface-alt); }

.modal-playlist .track.playing {
    background:   linear-gradient(135deg, rgba(0, 144, 255, 0.06), rgba(233, 61, 130, 0.04));
    border-color: rgba(0, 144, 255, 0.18);
}

.modal-playlist .track-thumb {
    width:         96px;
    height:        54px;
    border-radius: 6px;
    flex-shrink:   0;
    position:      relative;
    overflow:      hidden;
    background:    linear-gradient(135deg, #0A1628, #1C3447);
    background-size: cover;
}

.modal-playlist .track-thumb::after {
    content:    "";
    position:   absolute;
    inset:      0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.modal-playlist .track-thumb .play-icon {
    position:        absolute;
    top:             50%;
    left:            50%;
    transform:       translate(-50%, -50%);
    width:           26px;
    height:          26px;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.92);
    display:         flex;
    align-items:     center;
    justify-content: center;
    z-index:         1;
    box-shadow:      0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-playlist .track-thumb .play-icon svg {
    width:       9px;
    height:      9px;
    fill:        var(--text);
    stroke:      none;
    margin-left: 1px;
}

.modal-playlist .track.playing .track-thumb .play-icon {
    background: linear-gradient(135deg, var(--blue), var(--pink));
}

.modal-playlist .track.playing .track-thumb .play-icon svg { fill: #fff; }

.modal-playlist .track-thumb .thumb-duration {
    position:             absolute;
    bottom:               4px;
    right:                4px;
    padding:              1px 5px;
    background:           rgba(0, 0, 0, 0.7);
    backdrop-filter:      blur(4px);
    border-radius:        3px;
    font-size:            0.66rem;
    font-weight:          700;
    color:                #fff;
    font-variant-numeric: tabular-nums;
    z-index:              1;
}

.modal-playlist .track-info {
    flex:      1;
    min-width: 0;
}

.modal-playlist .track-num-label {
    font-size:      0.66rem;
    font-weight:    700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--text-muted);
    margin-bottom:  2px;
}

.modal-playlist .track-title {
    font-size:   0.94rem;
    font-weight: 700;
    color:       var(--text);
    line-height: 1.2;
}

.modal-playlist .track-meta {
    font-size:  0.78rem;
    color:      var(--text-muted);
    margin-top: 3px;
}

.modal-playlist .track.playing .track-num-label { color: var(--blue); }

/* ==========================================================================
   City modal (modal--city) — scroll and sticky header overrides.
   These rules apply ONLY to the city curiosities modal and do not
   affect any other modal on the page.
========================================================================== */

.modal--city {
    max-width:      760px;
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
}

.modal--city .modal-header {
    flex-shrink: 0;
	    background: linear-gradient(135deg, rgba(0, 144, 255, 0.05), rgba(233, 61, 130, 0.05));
}

.modal--city .iw-tab-row {
    flex-shrink:   0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
	background: linear-gradient(135deg, rgba(0, 144, 255, 0.05), rgba(233, 61, 130, 0.05));
}

.modal--city .modal-body {
    overflow-y: auto;
    flex:       1;
    min-height: 0;
	background: linear-gradient(135deg, rgba(0, 144, 255, 0.05), rgba(233, 61, 130, 0.05));
}

/* Custom scrollbar — city modal only */
.modal--city .modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal--city .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal--city .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue), var(--pink));
    border-radius: 100px;
}

  

/* ==========================================================================
	16. Footer
========================================================================== */

.site-footer {
    max-width: 1320px;
    margin:    0 auto;
    padding:   0 28px;
}

.footer {
    margin-top:      8px;
    padding-top:     14px;
    border-top:      1px solid var(--border);
    font-size:       0.74rem;
    color:           var(--text-muted);
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    flex-wrap:       wrap;
    gap:             12px;
}


/* ==========================================================================
	17. Responsive overrides
========================================================================== */

@media (max-width: 1180px) {
    .topbar-inner         { padding: 12px 20px; }
    .manu-band            { grid-template-columns: 1.6fr 1fr; }
.promo-banner         { grid-template-columns: 1fr; padding: 24px 24px 36px; }
.promo-image          { display: none; }
.product h3           { font-size: 1rem; white-space: normal; }
}

@media (max-width: 1024px) {
.switcher             { order: 3; width: 100%; margin: 6px 0 0; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.topbar-inner         { flex-wrap: wrap; padding: 10px 20px; }
.topbar-actions       { margin-left: auto; border-left: 0; padding-left: 0; }
.products-grid        { grid-template-columns: 1fr 1fr; }
.communities-grid     { grid-template-columns: 1fr 1fr; }
.postcard-band        { grid-template-columns: 1fr 1fr; }
.manu-band            { grid-template-columns: 1fr; }
.promo-banner         { grid-template-columns: 1.2fr 1fr; }
.promo-image          { display: flex; }
}

@media (max-width: 760px) {
.main                 { padding: 18px 16px; gap: 18px; }
.products-grid        { grid-template-columns: 1fr; }
.postcard-band        { grid-template-columns: 1fr; }
.communities-grid     { grid-template-columns: 1fr; }
.topbar               { align-items: flex-start; flex-direction: column; }
.topbar-actions .user-info { display: none; }
.brand-text           { display: none; }
.modal-header         { padding: 24px 22px 18px; }
.modal-body           { padding: 8px 22px 24px; }
.modal-header h3      { font-size: 1.3rem; }
}
