/* =========================================================
   DREAM FEST 2026 — iTicket.AZ MOBILE-ONLY
   Pure mobile experience (max-width: 480px on any viewport)
   ========================================================= */

/* -------- Reset & Base -------- */
*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: var(--text);
    min-height: var(--app-height, 100vh);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

img {
    max-width: 100%;
    display: block;
    border: 0
}

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

button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0
}

/* -------- Theme tokens (dark default, light optional) -------- */
:root {
    --brand: #fd0;
    --brand-2: #fac800;
    --brand-ink: #111;

    --bg: #000000;
    --bg-2: #0a0a0a;
    --panel: #141416;
    --panel-2: #17171a;
    --panel-3: #1c1c20;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .05);
    --text: #ffffff;
    --text-2: #b3b3b8;
    --text-3: #7d7d85;

    --radius: 16px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --header-h: 56px;
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
    --safe-top: env(safe-area-inset-top);
    --safe-bot: env(safe-area-inset-bottom);
    --app-height: 100vh;
    --visual-height: 100vh;
    --keyboard-height: 0px;
}

html[data-theme="light"] {
    --bg: #ffffff;
    --bg-2: #f7f7f8;
    --panel: #ffffff;
    --panel-2: #f4f4f5;
    --panel-3: #e4e4e7;
    --line: rgba(0, 0, 0, .08);
    --line-2: rgba(0, 0, 0, .05);
    --text: #121827;
    --text-2: #52525b;
    --text-3: #71717a;
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .15);
}

/* -------- Fluid phone frame (adapts to any device size) -------- */
.phone {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg);
    min-height: var(--app-height, 100vh);
    position: relative;
    isolation: isolate;
}

.scroll {
    padding-bottom: calc(20px + var(--safe-bot))
}

/* Content container max-widths per breakpoint (fluid up to comfortable reading widths) */
:root {
    --content-max: 100%;
    --side-pad: 12px;
}

@media(min-width:600px) {
    :root {
        --content-max: 560px;
        --side-pad: 20px;
    }
}

@media(min-width:900px) {
    :root {
        --content-max: 720px;
        --side-pad: 28px;
    }
}

@media(min-width:1200px) {
    :root {
        --content-max: 880px;
        --side-pad: 32px;
    }
}

@media(min-width:1600px) {
    :root {
        --content-max: 1040px;
        --side-pad: 40px;
    }
}

/* =========================================================
   EVENT HEADER (FIXED at top, over hero image)
   ========================================================= */
.e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: calc(10px + var(--safe-top)) 12px 10px;
    background: transparent;
    transition: background .25s ease, box-shadow .25s ease;
}

.e-header.scrolled {
    background: #000;
    border-bottom-color: transparent;
    box-shadow: 0 2px 0 0 var(--brand), 0 8px 20px -12px rgba(0, 0, 0, .7);
}

.e-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 30, 32, .65);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .12s ease, background .2s ease;
}

.e-btn:active {
    transform: scale(.92)
}

.e-actions {
    display: flex;
    gap: 8px
}

.e-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.e-header.scrolled .e-title {
    opacity: 1;
    transform: translateY(0)
}

#favBtn.active {
    color: #ff3b5c
}

#favBtn.active .ico-heart {
    fill: #ff3b5c;
    stroke: #ff3b5c
}

/* =========================================================
   HERO (FIXED at top — content slides over it, minimal)
   ========================================================= */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: clamp(220px, 34vh, 340px);
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.hero.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.price-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #fff;
    border-radius: 9999px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35);
    z-index: 2;
}

/* Content sheet — slides up over the fixed hero */
.content-sheet {
    position: relative;
    z-index: 5;
    margin-top: calc(clamp(220px, 34vh, 340px) - 18px);
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding-top: 4px;
    box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .55);
}

/* =========================================================
   EVENT META (no card — directly on black background)
   ========================================================= */
.event-meta {
    padding: 20px 16px 4px;
}

.event-title {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.15;
    color: #fff;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    color: #fff;
    font-size: 14.5px;
}

.meta-row-split {
    gap: 0
}

.meta-half {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.meta-ico {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}

.meta-txt {
    color: #fff;
    font-weight: 400
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 22px;
    width: 100%;
    background: var(--brand);
    color: #111;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .2px;
    transition: transform .12s ease, filter .18s ease;
}

.btn-primary:hover {
    filter: brightness(.97)
}

.btn-primary:active {
    transform: translateY(1px) scale(.995);
    filter: brightness(.95)
}

.btn-primary--sm {
    padding: 11px 16px;
    font-size: 13.5px;
    width: auto;
    min-width: 150px
}

.hero-cta {
    margin-top: 14px
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    padding: 22px 12px 4px
}

.section-head {
    padding: 0 4px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.section-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px
}

.side-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-ink);
    background: var(--brand);
    padding: 3px 8px;
    border-radius: 9999px;
}

/* =========================================================
   SESSIONS (video-accurate: big day left, time right, tags below)
   ========================================================= */
.sessions {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.session-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
    transition: transform .12s ease, border-color .2s ease, background .2s ease;
}

.session-card:active {
    transform: scale(.995)
}

.session-card.is-selected {
    border-color: rgba(253, 224, 0, .5);
}

.s-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.s-date {
    display: inline-flex;
    align-items: baseline;
    gap: 6px
}

.d-day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -.5px
}

.d-mon {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500
}

.s-time {
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap
}

.s-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tag-price {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

/* =========================================================
   ABOUT BLOCKS (Description, Rules, Venue)
   ========================================================= */
.about-block {
    padding: 14px 16px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* Description */
.desc {
    position: relative;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.6;
    max-height: 180px;
    overflow: hidden;
    transition: max-height .35s ease;
}

.desc.expanded {
    max-height: 9000px
}

.desc p {
    margin: 0 0 10px
}

.desc::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--panel-2) 90%);
    pointer-events: none;
    transition: opacity .25s ease;
}

.desc.expanded::after {
    opacity: 0
}

.lineup {
    margin-top: 10px
}

.lineup-day {
    margin: 12px 0 6px;
    color: #fff
}

.lineup-list {
    margin: 0;
    padding: 0 0 0 18px
}

.lineup-list li {
    margin: 3px 0
}

.lineup-list a {
    color: var(--brand);
    font-weight: 600
}

.lineup-list a:hover {
    text-decoration: underline
}

.more-btn {
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(253, 224, 0, .35);
    border-radius: 9999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.more-btn svg {
    transition: transform .3s ease;
    color: var(--brand)
}

.more-btn.open svg {
    transform: rotate(180deg)
}

/* Rules */
.rules {
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.6
}

.rules p {
    margin: 0 0 10px
}

.rules a {
    color: var(--brand)
}

.rules .rules-warn {
    color: #ff9db0
}

/* =========================================================
   SEAT MODAL (full-screen, slides up from bottom — video style)
   ========================================================= */

/* -------- Session picker modal (centered small dialog) -------- */
.session-picker {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: none;
}

.session-picker.is-open {
    display: block
}

.session-picker-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    animation: pickerFadeIn .2s ease;
}

.session-picker-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05);
    overflow: hidden;
    animation: pickerScaleIn .25s cubic-bezier(.2, .9, .2, 1);
}

@keyframes pickerFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes pickerScaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.94)
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1)
    }
}

.session-picker-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 6px;
}

.session-picker-head h3 {
    margin: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    letter-spacing: .2px;
}

.session-picker-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #555;
    background: rgba(0, 0, 0, .04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.session-picker-close:hover {
    background: rgba(0, 0, 0, .08)
}

.session-picker-sub {
    margin: 0 18px 12px;
    font-size: 12.5px;
    color: #7a7a82;
}

.session-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 16px;
}

.picker-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f7f9;
    border: 1px solid rgba(0, 0, 0, .04);
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.picker-card:hover {
    background: #eef1f5;
    border-color: rgba(0, 0, 0, .08)
}

.picker-card:active {
    transform: scale(.99)
}

.pc-date {
    width: 52px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 8px 4px;
    line-height: 1;
}

.pc-day {
    font-size: 20px;
    font-weight: 800
}

.pc-mon {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
    margin-top: 2px
}

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

.pc-time {
    font-size: 13px;
    font-weight: 700;
    color: #111
}

.pc-price {
    font-size: 12px;
    font-weight: 500;
    color: #8a8a92;
    margin-top: 2px
}

.pc-arrow {
    color: #b0b0b6;
    flex-shrink: 0
}

.seat-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.seat-modal.is-open {
    display: block
}

.seat-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.seat-modal-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: #1a1a1c;
    display: flex;
    flex-direction: column;
    animation: seatSlideUp .38s cubic-bezier(.2, .9, .2, 1);
    overflow: hidden;
}

@media(min-width:600px) {
    .seat-modal-panel {
        left: 50%;
        top: 5%;
        bottom: 5%;
        right: auto;
        width: min(560px, 92vw);
        height: 90vh;
        transform: translateX(-50%);
        border-radius: 22px;
        box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .7);
    }
}

@keyframes seatSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media(min-width:600px) {
    @keyframes seatSlideUp {
        from {
            transform: translate(-50%, 100%);
        }

        to {
            transform: translate(-50%, 0);
        }
    }
}

.seat-modal-head {
    position: relative;
    padding: calc(18px + env(safe-area-inset-top)) 16px 12px;
    background: #232326;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.drag-handle {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .18);
}

.seat-modal-title {
    flex: 1;
    min-width: 0
}

.seat-modal-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px
}

.seat-modal-meta {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #a1a1a5
}

.seat-modal-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    transition: background .18s ease;
}

.seat-modal-close:hover {
    background: rgba(255, 255, 255, .12)
}

.seat-legend-bar {
    display: flex;
    gap: 14px;
    padding: 11px 16px;
    overflow-x: auto;
    background: #f5f5f7;
    color: #111;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    scrollbar-width: none;
}

.seat-legend-bar::-webkit-scrollbar {
    display: none
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    padding: 0;
    background: transparent;
    border: 0;
}

.legend-chip .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
}

.legend-chip small {
    color: #666;
    font-weight: 500;
    font-size: 12px
}

.seat-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    touch-action: none;
    cursor: grab;
}

.seat-viewport.is-grabbing {
    cursor: grabbing
}

.seat-map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

/* Hide seat-number text elements when the map is zoomed out too far — otherwise
   the ~355 tiny <text> elements clump together into visible black blobs. */
.seat-modal.is-low-zoom #seatSvg text {
    display: none;
}

/* Interactive seat states on the real iTicket venue SVG */
#seatSvg circle[id^="SEAT"] {
    cursor: pointer;
    transition: fill .12s ease, r .12s ease;
}

#seatSvg circle[id^="SEAT"]:hover {
    r: 6;
}

/* Sold seats — WHITE with a light stroke, non-clickable */
#seatSvg circle[id^="SEAT"].is-sold {
    fill: #ffffff !important;
    stroke: #8a8a92 !important;
    stroke-width: 0.6 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Selected seats — violet (bənövşəyi) with a soft glow */
#seatSvg circle[id^="SEAT"].is-selected {
    fill: #7c3aed !important;
    stroke: #4c1d95 !important;
    stroke-width: 1.5 !important;
    r: 6;
    filter: drop-shadow(0 0 3px rgba(124, 58, 237, .55));
}

/* Fan Zone is a single large general-admission selector. Keep it large in every state. */
#seatSvg .fan-zone-seat {
    r: 50;
    stroke: #ffffff;
    stroke-width: 5;
    filter: drop-shadow(0 8px 16px rgba(20, 20, 35, .22));
}

#seatSvg .fan-zone-seat:hover {
    r: 58;
}

#seatSvg .fan-zone-seat.is-selected {
    r: 56;
    stroke-width: 7 !important;
    filter: drop-shadow(0 0 14px rgba(124, 58, 237, .72));
}

#seatSvg .fan-zone-seat.is-sold {
    r: 50;
}

#seatSvg .fan-zone-seat-label {
    user-select: none;
}

.seat-canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.seat-canvas svg {
    display: block;
    user-select: none
}

.zoom-controls {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05);
    overflow: hidden;
    z-index: 5;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background .15s ease;
}

.zoom-btn:hover {
    background: #f5f5f7
}

.zoom-btn:active {
    background: #e4e4e7
}

.zoom-btn+.zoom-btn {
    border-top: 1px solid rgba(0, 0, 0, .06)
}

/* Seats */
.seat {
    cursor: pointer;
    transition: transform .12s ease, filter .18s ease, stroke-width .12s ease;
}

.seat:hover {
    filter: brightness(1.1)
}

.seat.is-selected {
    stroke: #111;
    stroke-width: 2.4;
}

.seat.is-sold {
    fill: #dcdce1;
    cursor: not-allowed;
    pointer-events: none
}

.seat.is-empty {
    fill: none;
    stroke: #c9c9d1;
    stroke-width: 1;
    cursor: default;
    pointer-events: none
}

.row-label {
    font-size: 9px;
    font-weight: 600;
    fill: #8e8e94;
    user-select: none;
}

.section-label {
    font-size: 14px;
    font-weight: 800;
    fill: #1a1a1c;
    letter-spacing: .5px;
    user-select: none;
}

.section-outline {
    fill: none;
    stroke: #e6e6ec;
    stroke-width: 1.2;
}

.lens-outline {
    fill: #fbfbfd;
    stroke: #dcdce1;
    stroke-width: 1;
}

.water-blob {
    fill: #bfe1f0;
    opacity: .75;
}

.fan-zone rect {
    shape-rendering: crispEdges
}

.stage-arc {
    fill: none;
    stroke: #c9c9d1;
    stroke-width: 14;
    stroke-linecap: round;
}

.stage-label {
    font-size: 12px;
    font-weight: 700;
    fill: #8e8e94;
    letter-spacing: 2px
}

.seat-bottom-bar {
    background: #fff;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ensure the HTML `hidden` attribute actually hides the flex bar. Without this
   override the `display:flex` above wins over the browser default `[hidden]
   { display:none }` rule, causing the empty selection bar to stay visible after
   the user completes an order. */
.seat-bottom-bar[hidden] {
    display: none !important
}

.selected-seats {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
}

.selected-seats::-webkit-scrollbar {
    display: none
}

.sel-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 4px;
    background: #f4f4f7;
    border-radius: 9999px;
    font-size: 12px;
    color: #111;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.sel-chip .sc-n {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #232326;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.sel-chip .sc-rm {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    cursor: pointer;
    transition: background .15s ease;
}

.sel-chip .sc-rm:hover {
    background: rgba(0, 0, 0, .14)
}

.continue-btn {
    padding: 12px 18px;
    font-size: 13.5px;
    width: auto;
    min-width: 170px;
    flex: 0 0 auto;
}

/* Hide old venue-map inline styles remnants (safety) */
.venue-map-section[hidden] {
    display: none !important
}

.venue-map-section {
    padding-top: 8px
}

.venue-map-section .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.v-map-date {
    margin-left: 6px;
    padding: 3px 10px;
    background: rgba(253, 224, 0, .14);
    color: #ffe57a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
}

.v-map-total {
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
}

.venue-map {
    padding: 14px;
    background: #0f0f11;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.venue-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
}

.v-zone {
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease
}

.v-zone:hover {
    opacity: .85
}

.v-zone.is-active .v-shape {
    stroke: #fff;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, .4));
}

.v-zone.is-soldout .v-shape {
    fill: url(#soldOutPattern) !important;
    opacity: .6 !important;
}

.v-zone.is-soldout text {
    fill: #999 !important
}

.v-zone.is-low .v-shape {
    opacity: .55 !important
}

/* Legend list */
.v-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .12s ease, border-color .18s ease, background .18s ease;
    cursor: pointer;
}

.v-legend-item:hover {
    border-color: rgba(255, 255, 255, .18)
}

.v-legend-item:active {
    transform: scale(.995)
}

.v-legend-item.is-active {
    border-color: rgba(253, 224, 0, .5);
    background: linear-gradient(180deg, rgba(253, 224, 0, .06), var(--panel));
}

.v-legend-item.is-soldout {
    opacity: .6
}

.v-legend-item.is-soldout .v-name {
    text-decoration: line-through
}

.v-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex: 0 0 16px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .05) inset;
}

.v-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.v-name {
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.2
}

.v-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.v-price {
    color: var(--brand);
    font-weight: 800;
    font-size: 13.5px
}

.v-avail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
}

.v-avail::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

.v-avail.avail-ok {
    color: #5ee0a1
}

.v-avail.avail-low {
    color: #ff9142
}

.v-avail.avail-none {
    color: #ff6b7c
}

.v-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, .06);
    border-radius: 9999px;
    overflow: hidden;
    flex: 0 0 auto;
}

.v-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width .5s cubic-bezier(.2, .9, .2, 1);
}

@media(max-width:400px) {
    .v-legend-item {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    .v-bar {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 2px
    }
}

overflow:hidden;
transition:max-height .35s ease;
}

.desc.expanded {
    max-height: 9000px
}

.desc p {
    margin: 0 0 10px
}

.desc::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--panel-2) 90%);
    pointer-events: none;
    transition: opacity .25s ease;
}

.desc.expanded::after {
    opacity: 0
}

.lineup {
    margin-top: 10px
}

.lineup-day {
    margin: 12px 0 6px;
    color: #fff
}

.lineup-list {
    margin: 0;
    padding: 0 0 0 18px
}

.lineup-list li {
    margin: 3px 0
}

.lineup-list a {
    color: var(--brand);
    font-weight: 600
}

.lineup-list a:hover {
    text-decoration: underline
}

.more-btn {
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(253, 224, 0, .35);
    border-radius: 9999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.more-btn svg {
    transition: transform .3s ease;
    color: var(--brand)
}

.more-btn.open svg {
    transform: rotate(180deg)
}

/* Rules */
.rules {
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.6
}

.rules p {
    margin: 0 0 10px
}

.rules a {
    color: var(--brand)
}

.rules .rules-warn {
    color: #ff9db0
}

/* =========================================================
   PERFORMERS (Ä°façı cards)
   ========================================================= */
.performers {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.perf-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-items: center;
    animation: fadeInUp .4s ease both;
}

.perf-card.is-hidden {
    display: none
}

.perf-card.revealing {
    display: grid;
    animation: fadeInUp .35s ease both
}

.perf-media {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel-3);
    display: block;
}

.perf-media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.perf-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0
}

.perf-name-wrap {
    min-width: 0
}

.perf-name {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.perf-name:hover {
    color: var(--brand)
}

.perf-genre {
    margin-top: 2px;
    color: var(--text-2);
    font-size: 12.5px
}

.perf-socials {
    display: flex;
    gap: 6px
}

.perf-socials a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    color: var(--text-2);
    transition: color .2s, background .2s, transform .12s;
}

.perf-socials a:hover {
    color: var(--brand);
    background: var(--panel-3)
}

.perf-socials a:active {
    transform: scale(.92)
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 4px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none
}

.g-item {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    aspect-ratio: 16/9;
    transition: transform .15s ease;
}

.g-item:active {
    transform: scale(.99)
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

/* =========================================================
   VENUE (mobile)
   ========================================================= */
.venue-block {
    padding: 14px 16px
}

.venue-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-2)
}

.venue-row+.venue-row {
    border-top: 1px dashed var(--line-2)
}

.venue-row a {
    color: var(--brand);
    font-weight: 600
}

.venue-ico {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(253, 224, 0, .10);
    color: var(--brand);
}

.mobile-map {
    position: relative;
    margin-top: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-frame {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
    filter: brightness(.92) saturate(1.05);
}

.map-cta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.map-cta svg {
    color: var(--brand)
}

/* =========================================================
   SIMILAR EVENTS
   ========================================================= */
.similar-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 4px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.similar-scroll::-webkit-scrollbar {
    display: none
}

.sim-card {
    flex: 0 0 78%;
    max-width: 280px;
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .12s ease, border-color .2s ease;
}

.sim-card:active {
    transform: scale(.995)
}

.sim-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    background-color: var(--panel-2);
}

.sim-price,
.sim-age {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sim-price {
    left: 10px
}

.sim-age {
    right: 10px
}

.sim-body {
    padding: 12px 12px 14px
}

.sim-date {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px
}

.sim-title {
    margin-top: 4px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2
}

.sim-venue {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 12.5px
}

/* =========================================================
   APP PROMO BANNER (yellow)
   ========================================================= */
.app-promo {
    padding: 18px 16px;
    background: linear-gradient(140deg, #ffdd00 0%, #ffc400 100%);
    border-radius: var(--radius);
    color: #111;
    box-shadow: 0 20px 40px -20px rgba(253, 224, 0, .35);
    position: relative;
    overflow: hidden;
}

.app-promo::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent 70%);
    pointer-events: none;
}

.app-promo-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1
}

.app-promo-badge {
    width: 44px;
    height: 44px;
    background: #111;
    color: #fd0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

.app-promo-badge .logo-mark {
    background: transparent;
    color: #fd0;
    font-size: 18px
}

.app-promo-title {
    font-weight: 800;
    font-size: 16px;
    color: #111;
    line-height: 1.2
}

.app-promo-text {
    margin-top: 4px;
    font-size: 13px;
    color: #333;
    line-height: 1.4
}

.app-promo-btns {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.store-btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    transition: transform .12s ease, background .2s ease;
}

.store-btn:hover {
    background: #000
}

.store-btn:active {
    transform: scale(.98)
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1
}

.store-btn-text small {
    font-size: 9px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700
}

.store-btn-text span {
    font-size: 13px;
    font-weight: 800
}

/* =========================================================
   FOOTER (mobile — iticket.az reference layout)
   ========================================================= */
.m-footer {
    margin-top: 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.m-footer-inner {
    padding: 26px 22px 120px;
    color: var(--text)
}

/* Logo (yellow "ticket" mark + "iticket.az" text) */
.m-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    margin-bottom: 14px;
}

.itk-logo {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-block;
    flex: 0 0 34px;
}

.itk-logo-body {
    position: absolute;
    inset: 0;
    background: var(--brand);
    border-radius: 8px 8px 8px 3px;
    color: #111;
    font-weight: 900;
    font-size: 20px;
    line-height: 34px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.itk-logo-tab {
    position: absolute;
    right: -3px;
    top: 6px;
    width: 7px;
    height: 22px;
    background: var(--brand);
    border-radius: 2px;
    box-shadow: inset 2px 0 0 rgba(0, 0, 0, .2);
}

.itk-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.4px;
    color: var(--text);
    line-height: 1;
}

.itk-logo-dot {
    color: var(--text)
}

.m-footer-tag {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
}

/* Blocks (Dəstək Xidməti / Bizi Ä°zləyin / Şirkət / Məlumat) */
.m-block {
    margin-bottom: 24px
}

.m-block-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-3);
    text-transform: uppercase;
}

/* Support lines (phone/email) */
.m-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s ease;
}

.m-line+.m-line {
    margin-top: 4px
}

.m-line:hover {
    color: var(--brand)
}

.m-line-ico {
    flex: 0 0 18px;
    color: var(--text);
    transition: color .2s ease;
}

.m-line:hover .m-line-ico {
    color: var(--brand)
}

/* Social icons */
.m-socials {
    display: flex;
    gap: 18px
}

.m-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: color .2s ease, transform .12s ease;
}

.m-socials a:hover {
    color: var(--brand)
}

.m-socials a:active {
    transform: scale(.9)
}

/* Link lists (Şirkət, Məlumat, Legal) */
.m-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.m-list li {
    margin: 0
}

.m-list a {
    display: inline-block;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s ease;
}

.m-list a:hover {
    color: var(--brand)
}

.m-footer-divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0 22px;
}

.m-legal {
    margin-bottom: 24px
}

/* Preferences (language / theme / country) */
.m-prefs {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.m-pref {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    transition: color .2s ease;
    align-self: flex-start;
}

.m-pref:hover {
    color: var(--brand)
}

.m-pref svg {
    color: var(--text-2);
    flex: 0 0 auto
}

.m-pref .m-pref-label {
    color: var(--text)
}

/* Small Azerbaijani flag (blue/red/green stripes with crescent-ish look via CSS) */
.m-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    display: inline-flex;
    flex: 0 0 22px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.flag-az {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%
}

.flag-az>span {
    flex: 1;
    display: block
}

.flag-az>span:nth-child(1) {
    background: #00b5e2
}

.flag-az>span:nth-child(2) {
    background: #ef3340;
    position: relative;
}

.flag-az>span:nth-child(2)::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 1px 0 0 #ef3340;
}

.flag-az>span:nth-child(3) {
    background: #509e2f
}

/* =========================================================
   STICKY BOTTOM CTA
   ========================================================= */
.bottom-spacer {
    height: 16px
}

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 12px calc(10px + var(--safe-bot));
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, .85) 45%, #050505 100%);
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.cta-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    background: rgba(24, 24, 27, .94);
    border: 1px solid var(--line);
    border-radius: 9999px;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: var(--shadow-lg);
}

.cta-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1
}

.cta-price-label {
    font-size: 10.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 800
}

.cta-price-value {
    font-size: 15px;
    color: #fff;
    font-weight: 800;
    margin-top: 2px
}

/* Center on desktop preview */
@media(min-width:520px) {
    .sticky-cta {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 20px);
        max-width: calc(480px - 24px);
        border-radius: 9999px
    }

    .sticky-cta.visible {
        transform: translate(-50%, 0)
    }
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(100px + var(--safe-bot));
    transform: translate(-50%, 24px);
    z-index: 250;
    padding: 10px 16px;
    background: rgba(24, 24, 27, .96);
    border: 1px solid var(--line);
    border-radius: 9999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

/* =========================================================
   Accessibility & motion
   ========================================================= */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 12px;
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}


/* =========================================================
   RESPONSIVE ENHANCEMENTS — fluid across any device size
   ========================================================= */

/* Center content sections on wider viewports (hero is fullscreen fixed) */
.event-meta,
.section,
.m-footer-inner {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

/* Fluid typography (scales smoothly between viewport sizes) */
.event-title {
    font-size: clamp(24px, 3vw, 34px);
}

.section-head h3 {
    font-size: clamp(17px, 1.9vw, 24px);
}

.e-title {
    font-size: clamp(15px, 1.6vw, 18px);
}

.hero-cta {
    font-size: clamp(15px, 1.6vw, 17px);
}

.meta-txt {
    font-size: clamp(14.5px, 1.4vw, 16px);
}

.tag {
    font-size: clamp(11.5px, 1.15vw, 13px);
}

.d-day {
    font-size: clamp(26px, 2.6vw, 32px);
}

.desc {
    font-size: clamp(14.5px, 1.4vw, 16px);
}

.rules {
    font-size: clamp(13.5px, 1.3vw, 15px);
}

.perf-name {
    font-size: clamp(15px, 1.5vw, 17px);
}

.perf-genre {
    font-size: clamp(12.5px, 1.2vw, 14px);
}

.sim-title {
    font-size: clamp(15px, 1.5vw, 18px);
}

.m-line,
.m-list a,
.m-pref {
    font-size: clamp(14.5px, 1.4vw, 16.5px);
}

/* Header spacing scales */
.e-header {
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
}

.event-meta {
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
}

.section {
    padding: 22px var(--side-pad) 4px;
}

.m-footer-inner {
    padding: 26px var(--side-pad) 40px;
}

/* Hero — modest peek offset on wider viewports */
@media(min-width:600px) {
    .content-sheet {
        margin-top: calc(clamp(240px, 36vh, 380px) - 20px);
    }

    .hero {
        height: clamp(240px, 36vh, 380px);
    }
}

@media(min-width:1024px) {
    .content-sheet {
        margin-top: calc(clamp(280px, 40vh, 460px) - 22px);
        border-radius: 24px 24px 0 0;
    }

    .hero {
        height: clamp(280px, 40vh, 460px);
    }
}

/* Hero object-position: keep faces centered when aspect changes */
.hero-img {
    object-position: center 25%;
}

/* SESSIONS — grid on tablet+ */
@media(min-width:600px) {
    .sessions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media(min-width:900px) {
    .sessions {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* PERFORMERS — 2 col on tablet, 3 col on desktop */
@media(min-width:600px) {
    .performers {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .perf-card {
        padding: 12px;
    }
}

@media(min-width:1024px) {
    .performers {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .perf-card {
        grid-template-columns: 76px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .perf-media {
        width: 76px;
        height: 76px;
        flex: 0 0 76px;
    }

    .perf-name {
        -webkit-line-clamp: 3;
        font-size: 14.5px;
    }
}

@media(min-width:1400px) {
    .performers {
        grid-template-columns: repeat(4, 1fr);
    }

    .perf-card {
        grid-template-columns: 72px 1fr;
    }

    .perf-media {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }

    .perf-name {
        -webkit-line-clamp: 3;
    }
}

/* GALLERY — bigger tiles on wider viewports */
@media(min-width:600px) {
    .g-item {
        flex: 0 0 52%;
        max-width: 520px;
    }
}

@media(min-width:900px) {
    .g-item {
        flex: 0 0 40%;
    }
}

@media(min-width:1200px) {
    .g-item {
        flex: 0 0 32%;
    }
}

/* SIMILAR EVENTS — larger cards on tablet+ */
@media(min-width:600px) {
    .sim-card {
        flex: 0 0 46%;
        max-width: 340px;
    }
}

@media(min-width:900px) {
    .sim-card {
        flex: 0 0 300px;
    }
}

/* Small phones — tighten session padding */
@media(max-width:359px) {
    .session-card {
        padding: 12px 14px;
    }

    .d-day {
        font-size: 24px;
    }

    .event-title {
        font-size: 22px;
    }
}

/* MAP — taller on wider screens */
@media(min-width:600px) {
    .map-frame {
        height: 220px;
    }
}

@media(min-width:900px) {
    .map-frame {
        height: 280px;
    }
}

/* App promo — horizontal layout on wider viewports */
@media(min-width:600px) {
    .app-promo {
        padding: 22px 22px;
    }

    .app-promo-head {
        gap: 16px;
    }

    .app-promo-btns {
        margin-top: 16px;
    }

    .app-promo-title {
        font-size: 18px;
    }
}

/* FOOTER — multi-column on wider viewports */
@media(min-width:768px) {
    .m-footer-inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-areas:
            "brand support social"
            "brand shirket melumat"
            "divider divider divider"
            "legal legal prefs";
        gap: 24px 40px;
    }

    .m-footer-logo,
    .m-footer-tag {
        grid-column: brand;
    }

    .m-block:nth-of-type(1) {
        grid-area: support;
        margin: 0;
    }

    .m-block:nth-of-type(2) {
        grid-area: social;
        margin: 0;
    }

    .m-block:nth-of-type(3) {
        grid-area: shirket;
        margin: 0;
    }

    .m-block:nth-of-type(4) {
        grid-area: melumat;
        margin: 0;
    }

    .m-footer-divider {
        grid-area: divider;
        margin: 8px 0;
    }

    .m-legal {
        grid-area: legal;
        margin: 0;
        flex-direction: row;
        gap: 24px;
    }

    .m-prefs {
        grid-area: prefs;
        flex-direction: row;
        gap: 22px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .m-list {
        gap: 12px;
    }
}

@media(min-width:1200px) {
    .m-footer-inner {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        grid-template-areas:
            "brand support shirket melumat"
            "brand social  shirket melumat"
            "divider divider divider divider"
            "legal legal prefs prefs";
    }
}

/* STICKY CTA — center + max width on all screens */
.sticky-cta {
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
}

.sticky-cta .cta-inner {
    max-width: min(var(--content-max), 640px);
}

@media(min-width:900px) {
    .sticky-cta .cta-inner {
        max-width: 520px;
    }
}

/* HERO IMG object-position: keep faces centered */
.hero-img {
    object-position: center 25%;
}

/* Small phones (very narrow, < 340px) — tighten spacings */
@media(max-width:339px) {
    .event-title {
        font-size: 20px;
    }

    .btn-primary {
        padding: 14px 18px;
        font-size: 14px;
    }

    .section-head h3 {
        font-size: 16px;
    }

    .m-footer-inner {
        padding: 22px 16px 120px;
    }
}

/* Ultra-wide screens — cap content nicely, add breathing room */
@media(min-width:1900px) {
    :root {
        --content-max: 1120px;
    }
}

/* ==========================================================================
   CHECKOUT MODAL — slides up after user picks seats and taps "Davam et"
   Layout mirrors the iTicket order confirmation screen shown in the design
   reference: sticky header w/ back button + drag handle, timer pill, tickets
   card, promo/delivery/summary card, sticky yellow "Sifarişi yarat" footer.
   ========================================================================== */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.checkout-modal.is-open {
    pointer-events: auto;
    visibility: visible;
}

.checkout-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .28s ease;
}

.checkout-modal.is-open .checkout-scrim {
    opacity: 1
}

.checkout-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    margin-top: auto;
    height: var(--visual-height, 100dvh);
    max-height: var(--visual-height, 100dvh);
    background: #0d0e11;
    color: #e8e9ec;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.22, .9, .32, 1);
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.checkout-modal.is-open .checkout-panel {
    transform: translateY(0)
}

@media(min-width:640px) {
    .checkout-panel {
        height: min(calc(var(--visual-height, 100dvh) * .94), 900px);
        margin-top: auto;
        margin-bottom: 0;
        border-radius: 18px 18px 0 0;
    }
}

/* ---- Header ---- */
.chk-head {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #0d0e11;
    flex-shrink: 0;
}

.chk-drag {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .18);
}

.chk-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #e8e9ec;
    border: 0;
    cursor: pointer;
    transition: background .14s ease;
}

.chk-back:hover {
    background: rgba(255, 255, 255, .08)
}

.chk-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    letter-spacing: .2px;
}

/* ---- Body (scrollable) ---- */
.chk-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 14px 12px;
    background: #0d0e11;
    scroll-behavior: smooth;
}

.chk-body::-webkit-scrollbar {
    width: 6px
}

.chk-body::-webkit-scrollbar-thumb {
    background: #26272c;
    border-radius: 6px
}

.chk-body-spacer {
    height: 12px
}

/* ---- Timer pill ---- */
.chk-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(180deg, rgba(255, 220, 90, .14), rgba(255, 220, 90, .06));
    border: 1px solid rgba(255, 220, 90, .35);
    border-radius: 12px;
    color: #e8dc78;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.chk-timer strong {
    color: #fff;
    font-weight: 800;
    margin-left: 2px
}

/* ---- Card container ---- */
.chk-card {
    background: #17181c;
    border: 1px solid #1e1f24;
    border-radius: 14px;
    padding: 14px 14px;
    margin-bottom: 12px;
}

/* ---- Tickets card ---- */
.chk-tickets-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.chk-tickets-count {
    font-size: 15px;
    color: #f0f1f4
}

.chk-tickets-count strong {
    color: #fff;
    font-weight: 700
}

.chk-tickets-count span {
    color: #8f9199;
    font-weight: 600;
    margin-left: 6px
}

.chk-link {
    background: transparent;
    border: 0;
    color: #a5a7ad;
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color .14s ease, background .14s ease;
}

.chk-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05)
}

.chk-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.chk-ticket-item {
    padding: 12px 0;
    border-top: 1px solid #22232a;
}

.chk-ticket-item:first-child {
    border-top: 0;
    padding-top: 6px
}

.chk-ticket-head {
    margin-bottom: 6px
}

.chk-ticket-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .15px
}

.chk-ticket-meta {
    font-size: 12px;
    color: #9a9ca4;
    margin-top: 2px
}

.chk-ticket-meta .dot {
    margin: 0 6px;
    opacity: .5
}

.chk-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.chk-ticket-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.chk-seat-ico {
    color: #8f9199;
    flex-shrink: 0;
    margin-top: 2px;
}

.chk-ticket-seat {
    font-size: 13.5px;
    color: #e2e3e7;
    font-weight: 600;
    line-height: 1.35;
    min-width: 0;
}

.chk-ticket-seat small {
    display: block;
    color: #8f9199;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 2px;
}

.chk-ticket-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.chk-ticket-price {
    color: #fff;
    font-weight: 800;
    font-size: 15px
}

.chk-ticket-price .man {
    font-weight: 500;
    margin-left: 1px;
    color: #c9cad0
}

.chk-ticket-rm {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: transparent;
    color: #8f9199;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .14s ease, background .14s ease;
}

.chk-ticket-rm:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06)
}

/* ---- Promo row ---- */
.chk-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 2px;
    background: transparent;
    border: 0;
    color: #c9cad0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.chk-promo:hover {
    color: #fff
}

.chk-promo-ico {
    color: #8f9199;
    display: inline-flex
}

.chk-divider {
    height: 1px;
    background: #22232a;
    margin: 14px -14px;
}

/* ---- Section titles ---- */
.chk-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.chk-section-title--sum {
    margin-top: 14px
}

/* ---- Radios ---- */
.chk-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #22232a;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease;
}

.chk-radio:last-of-type {
    margin-bottom: 0
}

.chk-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.chk-radio-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #3a3b42;
    background: #0d0e11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .14s ease;
    position: relative;
}

.chk-radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .16s ease;
}

.chk-radio input:checked~.chk-radio-mark {
    border-color: #fff
}

.chk-radio input:checked~.chk-radio-mark::after {
    transform: scale(1)
}

/* Disabled radio: full row is unclickable and visually dimmed */
.chk-radio--disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.chk-radio-ico {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chk-radio-label {
    font-size: 13.5px;
    color: #e2e3e7;
    font-weight: 500
}

/* ---- Summary rows ---- */
.chk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #c9cad0;
    padding: 2px 0;
}

.chk-row span:last-child {
    color: #fff;
    font-weight: 700
}

.chk-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 12px;
}

.chk-total-row strong {
    font-size: 16px;
    color: #fff;
    font-weight: 800
}

.chk-total-price {
    font-size: 18px !important
}

/* ---- Terms checkbox ---- */
.chk-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #c9cad0;
    line-height: 1.45;
    padding: 6px 0 2px;
}

.chk-terms input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.chk-check-mark {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #4a4b51;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background .14s ease, border-color .14s ease;
}

.chk-check-mark::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: transform .14s ease;
}

.chk-terms input:checked~.chk-check-mark {
    background: #ffd54a;
    border-color: #ffd54a
}

.chk-terms input:checked~.chk-check-mark::after {
    transform: rotate(-45deg) translate(1px, -1px) scale(1)
}

.chk-terms-txt a {
    color: #e8dc78;
    text-decoration: underline;
    text-underline-offset: 2px
}

/* ---- Sticky footer with primary CTA ---- */
.chk-foot {
    flex-shrink: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(13, 14, 17, 0) 0%, #0d0e11 22%);
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.chk-cta {
    width: 100%;
    padding: 16px 20px;
    background: #ffd54a;
    color: #111;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .14s ease, background .14s ease, opacity .14s ease;
}

.chk-cta:hover:not(:disabled) {
    background: #f4c832
}

.chk-cta:active:not(:disabled) {
    transform: translateY(1px)
}

.chk-cta:disabled {
    background: #3a3b42;
    color: #7d7f85;
    cursor: not-allowed;
    opacity: .85;
}

/* Empty-state (no tickets) */
.chk-empty {
    padding: 22px 6px;
    text-align: center;
    color: #8f9199;
    font-size: 13px;
}


/* ==========================================================================
   BUYER INFO POPUP — centered dialog that opens after "Sifarişi yarat".
   Follows the site's dark/gold theme. Collects Ad Soyad / Doğum tarixi /
   Telefon nömrəsi and hands off to a mock confirmation flow.
   ========================================================================== */
.buyer-modal {
    position: fixed;
    inset: 0;
    z-index: 230;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    visibility: hidden;
}

.buyer-modal.is-open {
    pointer-events: auto;
    visibility: visible
}

.buyer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .22s ease;
}

.buyer-modal.is-open .buyer-scrim {
    opacity: 1
}

.buyer-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #17181c;
    color: #e8e9ec;
    border: 1px solid #24252b;
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 213, 74, .05);
    transform: translateY(12px) scale(.98);
    opacity: 0;
    transition: transform .24s cubic-bezier(.22, .9, .32, 1), opacity .18s ease;
}

.buyer-modal.is-open .buyer-panel {
    transform: translateY(0) scale(1);
    opacity: 1
}

.buyer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    color: #a5a7ad;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .14s ease, color .14s ease;
}

.buyer-close:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff
}

.buyer-head {
    padding-right: 24px;
    margin-bottom: 14px
}

.buyer-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
}

.buyer-sub {
    margin: 0;
    font-size: 12.5px;
    color: #8f9199;
    line-height: 1.4
}

.buyer-form {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.buyer-field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.buyer-label {
    font-size: 12px;
    color: #a5a7ad;
    font-weight: 600;
    letter-spacing: .1px
}

.buyer-form input[type="text"],
.buyer-form input[type="date"],
.buyer-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    background: #0d0e11;
    border: 1px solid #26272c;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
    font-family: inherit;
}

.buyer-form input::placeholder {
    color: #5e6069
}

.buyer-form input:focus {
    border-color: #ffd54a;
    box-shadow: 0 0 0 3px rgba(255, 213, 74, .14);
}

.buyer-form input[type="date"] {
    color: #fff;
    color-scheme: dark;
}

.buyer-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(.9);
    cursor: pointer;
}

.buyer-phone {
    display: flex;
    align-items: stretch;
    background: #0d0e11;
    border: 1px solid #26272c;
    border-radius: 10px;
    transition: border-color .14s ease, box-shadow .14s ease;
    overflow: hidden;
}

.buyer-phone:focus-within {
    border-color: #ffd54a;
    box-shadow: 0 0 0 3px rgba(255, 213, 74, .14);
}

.buyer-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: transparent;
    color: #a5a7ad;
    font-size: 15px;
    font-weight: 600;
    border-right: 1px solid #26272c;
    flex-shrink: 0;
}

.buyer-phone input {
    flex: 1;
    padding: 12px 12px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.buyer-err {
    font-size: 11.5px;
    color: #f4a3a3;
    min-height: 14px;
    transition: color .14s ease;
}

.buyer-field.has-error input {
    border-color: #a15252
}

.buyer-field.has-error .buyer-phone {
    border-color: #a15252
}

.buyer-submit {
    margin-top: 6px;
    width: 100%;
    padding: 14px 18px;
    background: #ffd54a;
    color: #111;
    border: 0;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease, opacity .14s ease;
}

.buyer-submit:hover:not(:disabled) {
    background: #f4c832
}

.buyer-submit:active:not(:disabled) {
    transform: translateY(1px)
}

.buyer-submit:disabled {
    background: #3a3b42;
    color: #7d7f85;
    cursor: not-allowed;
    opacity: .85
}

@media (max-width: 380px) {
    .buyer-panel {
        padding: 20px 16px 14px
    }

    .buyer-head h3 {
        font-size: 17px
    }
}


/* ==========================================================================
   PAYMENT METHOD MODAL — appears after buyer form is confirmed.
   Slide-up modal (identical framing to checkout) with a timer, an "Ödəmə
   üsulu" card containing only Epoint + Azericard options, and a sticky
   yellow "Ödə X.XX ₼" CTA.
   ========================================================================== */
.pay-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    /* above checkout(210), below buyer(230) */
    display: flex;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.pay-modal.is-open {
    pointer-events: auto;
    visibility: visible
}

.pay-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .28s ease;
}

.pay-modal.is-open .pay-scrim {
    opacity: 1
}

.pay-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    margin-top: auto;
    height: var(--visual-height, 100dvh);
    max-height: var(--visual-height, 100dvh);
    background: #0d0e11;
    color: #e8e9ec;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.22, .9, .32, 1);
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.pay-modal.is-open .pay-panel {
    transform: translateY(0)
}

@media(min-width:640px) {
    .pay-panel {
        height: min(94dvh, 900px);
        border-radius: 18px 18px 0 0
    }
}

.pay-head {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #0d0e11;
    flex-shrink: 0;
}

.pay-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #e8e9ec;
    border: 0;
    cursor: pointer;
    transition: background .14s ease;
}

.pay-back:hover {
    background: rgba(255, 255, 255, .08)
}

.pay-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    letter-spacing: .2px;
}

.pay-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 14px 12px;
    background: #0d0e11;
}

.pay-body::-webkit-scrollbar {
    width: 6px
}

.pay-body::-webkit-scrollbar-thumb {
    background: #26272c;
    border-radius: 6px
}

.pay-card {
    padding: 16px 14px
}

.pay-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: .15px;
}

/* Payment option row */
.pay-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #0f1013;
    border: 1px solid #22232a;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease;
    margin-bottom: 10px;
}

.pay-option:last-child {
    margin-bottom: 0
}

.pay-option:hover {
    background: #141518
}

.pay-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.pay-option:has(input:checked) {
    border-color: #ffd54a
}

.pay-brand {
    min-width: 56px;
    height: 42px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #eceef2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-brand img {
    display: block;
    max-width: 100%;
    max-height: 26px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pay-brand[data-brand="epoint"] img {
    max-height: 20px
}

.pay-brand[data-brand="azericard"] img {
    max-height: 28px
}

.pay-name {
    flex: 1;
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .15px;
}

.pay-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #3a3b42;
    background: #0d0e11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .14s ease;
    position: relative;
}

.pay-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .16s ease;
}

.pay-option input:checked~.pay-radio {
    border-color: #fff
}

.pay-option input:checked~.pay-radio::after {
    transform: scale(1)
}

.pay-cta {
    /* Same base as chk-cta, override the price span so it inherits weight */
}

.pay-cta #payAmount {
    font-weight: 800;
    margin-left: 2px
}



/* ---- Payment: order details / summary / tickets link ---- */
.pay-details {
    padding: 14px 14px
}

.pay-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.pay-detail-key {
    color: #a5a7ad;
    font-weight: 500
}

.pay-detail-val {
    color: #fff;
    font-weight: 700;
    text-align: right
}

.pay-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 213, 74, .12);
    border: 1px solid rgba(255, 213, 74, .35);
    color: #e8dc78;
    font-size: 12px;
    font-weight: 700;
}

.pay-tickets-link {
    padding: 0
}

.pay-tickets-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    background: transparent;
    border: 0;
    color: #e8e9ec;
    cursor: pointer;
    text-align: left;
    transition: background .14s ease;
    border-radius: 14px;
}

.pay-tickets-btn:hover {
    background: rgba(255, 255, 255, .03)
}

.pay-tickets-ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 213, 74, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-tickets-label {
    flex: 1;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff
}

.pay-tickets-arrow {
    color: #8f9199;
    display: inline-flex
}

.pay-summary {
    padding: 12px 14px
}

.pay-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #c9cad0;
}

.pay-sum-row span:last-child {
    color: #fff;
    font-weight: 700
}

.pay-sum-total strong {
    color: #fff;
    font-weight: 800;
    font-size: 16px
}

.pay-sum-total strong:last-child {
    font-size: 18px
}

.pay-cancel-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 4px 0;
    background: transparent;
    border: 0;
    color: #ef6a6a;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .14s ease;
}

.pay-cancel-link:hover {
    color: #f89a9a
}

/* ==========================================================================
   EPOINT (iTicket.az) CARD PAYMENT PAGE — full-screen yellow background with
   two white cards mimicking the real iTicket/Epoint checkout page. Opens when
   the user selects Epoint in the payment modal and taps "Ödə".
   ========================================================================== */
.epoint-page {
    position: fixed;
    inset: 0;
    z-index: 240;
    /* above all other modals */
    background: #ffdc00;
    color: #111;
    overflow-y: auto;
    padding: 20px 14px 40px;
    display: none;
}

.epoint-page.is-open {
    display: block
}

.epoint-page::before {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffee66, #ffcf00);
    opacity: .55;
    pointer-events: none;
}

.epoint-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .06);
    color: #111;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .14s ease;
    z-index: 2;
}

.epoint-close:hover {
    background: rgba(0, 0, 0, .12)
}

.epoint-container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.epoint-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* iTicket brand mark */
.epoint-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1;
}

.epoint-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #ffdc00;
    color: #111;
    border-radius: 5px;
    font-weight: 800;
    font-style: italic;
}

.epoint-brand-txt b {
    font-weight: 800;
    letter-spacing: -.5px
}

.epoint-brand-txt span {
    color: #c0a800;
    font-weight: 600
}

/* Amount box */
.epoint-amount-box {
    background: #f2f3f5;
    border-radius: 10px;
    padding: 14px 16px;
    position: relative;
}

.epoint-amount-lbl {
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px
}

.epoint-amount-val {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    line-height: 1.1
}

.epoint-amount-cur {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-top: 2px
}

.epoint-show {
    display: block;
    margin: 14px auto 4px;
    background: transparent;
    border: 0;
    color: #c9a800;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
}

.epoint-show:hover {
    color: #a68a00
}

/* Card form */
.epoint-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: .1px;
}

.epoint-form {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.epoint-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0
}

.epoint-field label {
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: .1px;
}

.epoint-form input {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e4ea;
    border-radius: 999px;
    color: #111;
    font-size: 14.5px;
    outline: none;
    font-family: inherit;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.epoint-form input::placeholder {
    color: #a3a7b0
}

.epoint-form input:focus {
    border-color: #c9a800;
    box-shadow: 0 0 0 3px rgba(255, 220, 0, .28);
}

.epoint-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.epoint-err {
    font-size: 11.5px;
    color: #c22b2b;
    min-height: 14px;
    font-weight: 500;
}

.epoint-err-exp {
    margin-top: -6px
}

.epoint-field.has-error input {
    border-color: #c22b2b
}

.epoint-confirm {
    margin-top: 6px;
    width: 100%;
    padding: 14px 18px;
    background: #ffdc00;
    color: #111;
    border: 0;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease, opacity .14s ease;
    box-shadow: 0 4px 12px rgba(201, 168, 0, .25);
}

.epoint-confirm:hover:not(:disabled) {
    background: #f5cf00
}

.epoint-confirm:active:not(:disabled) {
    transform: translateY(1px)
}

.epoint-confirm:disabled {
    background: #e4e5ea;
    color: #8f9199;
    box-shadow: none;
    cursor: not-allowed
}

/* Trust badges strip */
.epoint-trust {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f0f1f4;
}

.ep-trust-item {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #111;
    letter-spacing: .2px;
    line-height: 1;
}

.ep-trust-item small {
    font-size: 8.5px;
    color: #6b7280;
    font-weight: 600;
    margin-right: 3px;
    letter-spacing: 0
}

.ep-trust-verified b {
    color: #003087;
    font-size: 13px;
    font-family: Georgia, serif;
    font-style: italic
}

.ep-trust-visa {
    color: #1a1f71;
    font-family: Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    font-weight: 900;
    font-style: italic;
    border-bottom: 3px solid #f0a71c;
    padding-bottom: 1px
}

.ep-trust-mc {
    gap: 0;
    padding: 2px 4px
}

.ep-mc-red,
.ep-mc-yellow {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block
}

.ep-mc-red {
    background: #eb001b
}

.ep-mc-yellow {
    background: #f79e1b;
    margin-left: -6px;
    mix-blend-mode: multiply
}

.ep-trust-maestro {
    gap: 0;
    padding: 2px 4px
}

.ep-ma-blue,
.ep-ma-red {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block
}

.ep-ma-blue {
    background: #0099df
}

.ep-ma-red {
    background: #eb001b;
    margin-left: -6px;
    mix-blend-mode: multiply
}

.ep-trust-securecode {
    flex-direction: column;
    line-height: 1.1;
    gap: 0
}

.ep-trust-securecode b {
    color: #eb001b;
    font-size: 10.5px
}

.ep-trust-securecode small {
    color: #111;
    font-size: 8.5px;
    font-weight: 700;
    margin: 0
}

@media (max-width: 380px) {
    .epoint-card {
        padding: 16px 16px
    }

    .epoint-title {
        font-size: 16.5px
    }

    .epoint-grid {
        gap: 8px
    }

    .epoint-form input {
        padding: 11px 12px;
        font-size: 14px
    }
}


/* ==========================================================================
   AZERICARD 3D-SECURE PAGE — full-screen light gray background with a single
   centered white card, green "PAY NOW" CTA, and 3D-Secure trust badges. Opens
   when the user selects Azericard in the payment modal and taps "Ödə".
   ========================================================================== */
.azcard-page {
    position: fixed;
    inset: 0;
    z-index: 240;
    background: #e6e7e8;
    color: #212121;
    overflow-y: auto;
    padding: 22px 14px 40px;
    display: none;
}

.azcard-page.is-open {
    display: block
}

.azcard-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .06);
    color: #212121;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .14s ease;
    z-index: 2;
}

.azcard-close:hover {
    background: rgba(0, 0, 0, .12)
}

.azcard-container {
    max-width: 420px;
    margin: 24px auto 0;
}

.azcard-card {
    background: #f5f5f7;
    border-radius: 6px;
    padding: 26px 26px 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.azcard-brand-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 22px;
}

.azcard-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #212121;
}

.azcard-form {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.azcard-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0
}

.azcard-label {
    font-size: 11.5px;
    color: #5a6068;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.azcard-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9dbe0;
    border-radius: 2px;
    padding: 0 12px;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.azcard-input-wrap:focus-within {
    border-color: #28c76f;
    box-shadow: 0 0 0 3px rgba(40, 199, 111, .16);
}

.azcard-card-icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-right: 8px;
}

.azcard-input-wrap input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    background: transparent;
    border: 0;
    outline: none;
    font-size: 16px;
    color: #212121;
    font-family: inherit;
    letter-spacing: 1px;
}

.azcard-input-wrap input::placeholder {
    color: #a3a7b0;
    letter-spacing: .5px
}

.azcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.azcard-exp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d9dbe0;
    border-radius: 2px;
    padding: 0 12px;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.azcard-exp-row:focus-within {
    border-color: #28c76f;
    box-shadow: 0 0 0 3px rgba(40, 199, 111, .16);
}

.azcard-exp-row input {
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 10px 0;
    background: transparent;
    border: 0;
    outline: none;
    font-size: 16px;
    color: #212121;
    font-family: inherit;
    text-align: left;
}

.azcard-field .azcard-label+input {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d9dbe0;
    border-radius: 2px;
    font-size: 16px;
    color: #212121;
    outline: none;
    font-family: inherit;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.azcard-field .azcard-label+input:focus {
    border-color: #28c76f;
    box-shadow: 0 0 0 3px rgba(40, 199, 111, .16);
}

.azcard-field.has-error input,
.azcard-field.has-error .azcard-input-wrap,
.azcard-field.has-error .azcard-exp-row {
    border-color: #c22b2b
}

.azcard-err {
    font-size: 11.5px;
    color: #c22b2b;
    min-height: 14px;
    font-weight: 500;
}

.azcard-paynow {
    margin-top: 4px;
    width: 100%;
    padding: 14px 18px;
    background: #28c76f;
    color: #fff;
    border: 0;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease;
}

.azcard-paynow:hover:not(:disabled) {
    background: #22b464
}

.azcard-paynow:active:not(:disabled) {
    transform: translateY(1px)
}

.azcard-paynow:disabled {
    background: #a8b3ab;
    cursor: not-allowed
}

.azcard-copy {
    margin: 14px 0 6px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

.azcard-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: center;
    align-items: center;
    padding-top: 6px;
}

.ep-trust-safekey {
    flex-direction: column;
    line-height: 1.15;
    gap: 0
}

.ep-trust-safekey small {
    color: #6b7280;
    font-size: 8px;
    font-weight: 700;
    margin: 0;
    letter-spacing: .5px
}

.ep-trust-safekey b {
    color: #003366;
    font-size: 11.5px;
    font-weight: 800
}

.ep-trust-safekey b sup {
    font-size: 6px;
    top: -.5em
}

@media (max-width: 380px) {
    .azcard-card {
        padding: 22px 18px 18px
    }

    .azcard-brand {
        font-size: 20px
    }

    .azcard-grid {
        gap: 12px
    }
}


/* ==========================================================================
   OTP / SECURECODE PAGE — shared 3D-Secure verification screen shown after
   Epoint "Confirm" or Azericard "PAY NOW". Layout mirrors Mastercard ID Check
   provided by AzeriCard.
   ========================================================================== */
.otp-page {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: #f4f5f7;
    color: #212121;
    overflow-y: auto;
    padding: 22px 16px 40px;
    display: none;
}

.otp-page.is-open {
    display: block
}

/* Decorative accents (top-right dark blue triangle-ish; bottom-left green shape) */
.otp-deco {
    position: fixed;
    pointer-events: none;
    z-index: 0
}

.otp-deco--tr {
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 40%, #144e70, #0d3854);
    border-radius: 52% 48% 40% 60%/60% 40% 60% 40%;
    transform: rotate(15deg);
    opacity: .85;
}

.otp-deco--bl {
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: #5aa957;
    border-radius: 50% 50% 40% 60%/50% 45% 55% 50%;
    opacity: .75;
}

.otp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .06);
    color: #212121;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .14s ease;
    z-index: 3;
}

.otp-close:hover {
    background: rgba(0, 0, 0, .12)
}

.otp-container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

/* Header row */
.otp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 16px;
    gap: 12px;
}

.otp-brand-left,
.otp-brand-right {
    display: inline-flex;
    align-items: center
}

.otp-azcard-logo {
    display: block;
    height: 38px;
    width: auto;
    object-fit: contain;
}

.otp-mc-logo {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 380px) {
    .otp-azcard-logo {
        height: 34px
    }

    .otp-mc-logo {
        height: 40px
    }
}

/* Card */
.otp-card {
    background: #fff;
    border-radius: 6px;
    padding: 22px 28px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    color: #212121;
}

.otp-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .1px;
}

.otp-title sup {
    font-size: 10px;
    top: -.8em;
    position: relative
}

.otp-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #3d434c;
    line-height: 1.5;
}

.otp-txn {
    background: #f7f8fa;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.otp-txn-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 10px;
    font-size: 13.5px;
    color: #212121;
    line-height: 1.65;
}

.otp-txn-row+.otp-txn-row {
    margin-top: 2px
}

.otp-txn-row span {
    color: #4b5158;
    font-weight: 500
}

.otp-txn-row b {
    font-weight: 600
}

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.otp-field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.otp-label {
    font-size: 12.5px;
    color: #4b5158;
    font-weight: 500
}

.otp-form input#otpInput {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d9dbe0;
    border-radius: 2px;
    color: #212121;
    font-size: 16px;
    letter-spacing: 6px;
    font-family: inherit;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.otp-form input#otpInput:focus {
    border-color: #144e70;
    box-shadow: 0 0 0 3px rgba(20, 78, 112, .18);
}

.otp-field.has-error input#otpInput {
    border-color: #c22b2b
}

.otp-err {
    font-size: 11.5px;
    color: #c22b2b;
    min-height: 14px;
    font-weight: 500
}

.otp-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 4px;
}

.otp-link {
    background: transparent;
    border: 0;
    color: #5a6068;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    padding: 2px 0;
    text-decoration: underline;
    text-decoration-color: #c7c9cf;
    text-underline-offset: 3px;
    align-self: flex-start;
}

.otp-link:hover {
    color: #212121;
    text-decoration-color: #5a6068
}

.otp-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px 18px;
    background: #144e70;
    color: #fff;
    border: 0;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease;
}

.otp-submit:hover:not(:disabled) {
    background: #0d3854
}

.otp-submit:active:not(:disabled) {
    transform: translateY(1px)
}

.otp-submit:disabled {
    background: #95a0aa;
    cursor: not-allowed
}

.otp-exit {
    margin-top: 2px;
    background: transparent;
    border: 0;
    color: #4b5158;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: color .14s ease;
}

.otp-exit:hover {
    color: #212121
}

.otp-copy {
    margin: 24px 0 8px;
    text-align: center;
    font-size: 11px;
    color: #8b9098;
    letter-spacing: .2px;
}

@media (max-width: 420px) {
    .otp-card {
        padding: 20px 18px
    }

    .otp-title {
        font-size: 18px
    }

    .otp-txn-row {
        grid-template-columns: 100px 1fr;
        font-size: 12.5px
    }

    .otp-desc {
        font-size: 12.5px
    }
}



/* Mobile virtual keyboard stability */
html {
    min-height: 100%;
    height: auto;
}

body {
    min-height: var(--app-height, 100vh);
}

body.is-scroll-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.checkout-modal,
.buyer-modal,
.pay-modal,
.epoint-page,
.azcard-page,
.otp-page {
    height: var(--visual-height, 100dvh);
    max-height: var(--visual-height, 100dvh);
}

body.keyboard-open .buyer-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}

body.keyboard-open .buyer-panel {
    margin: auto 0;
    max-height: calc(var(--visual-height, 100dvh) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.keyboard-open .checkout-panel,
body.keyboard-open .pay-panel {
    height: var(--visual-height, 100dvh);
    max-height: var(--visual-height, 100dvh);
}

body.keyboard-open .epoint-page,
body.keyboard-open .azcard-page,
body.keyboard-open .otp-page {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

input,
textarea,
select {
    font-size: 16px;
    /* prevents iOS focus zoom and layout jumps */
}


/* Definitive mobile keyboard/IME stability fix */
html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    overflow-x: hidden;
}

/* iOS zooms focused controls below 16px. !important is intentional because
   several component/mobile rules above use 14â€“15px. */
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    font-size: 16px !important;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Never animate geometry while the IME is open. Keyboard suggestion/autofill
   updates can otherwise restart panel transforms on each character. */
body.keyboard-open .buyer-panel,
body.keyboard-open .checkout-panel,
body.keyboard-open .pay-panel,
body.keyboard-open .epoint-page,
body.keyboard-open .azcard-page,
body.keyboard-open .otp-page {
    transition: none !important;
    animation: none !important;
}

body.keyboard-open .buyer-modal,
body.keyboard-open .checkout-modal,
body.keyboard-open .pay-modal,
body.keyboard-open .epoint-page,
body.keyboard-open .azcard-page,
body.keyboard-open .otp-page {
    height: var(--visual-height) !important;
    max-height: var(--visual-height) !important;
    min-height: 0 !important;
}

body.keyboard-open .epoint-page,
body.keyboard-open .azcard-page,
body.keyboard-open .otp-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    contain: layout paint;
}

/* Final no-resize keyboard architecture */
@media (max-width: 900px) {
    /* Do not lock the document height: the main event artwork and footer must
     remain in normal document flow. Keyboard sizing is scoped to modals only. */

    .checkout-modal,
    .buyer-modal,
    .pay-modal,
    .epoint-page,
    .azcard-page,
    .otp-page {
        top: 0 !important;
        bottom: auto !important;
        height: var(--app-height, 100vh) !important;
        min-height: 0 !important;
        max-height: var(--app-height, 100vh) !important;
    }

    .checkout-panel,
    .buyer-panel,
    .pay-panel {
        height: var(--app-height, 100vh) !important;
        max-height: var(--app-height, 100vh) !important;
    }

    body.keyboard-open .checkout-panel,
    body.keyboard-open .buyer-panel,
    body.keyboard-open .pay-panel,
    body.keyboard-open .epoint-page,
    body.keyboard-open .azcard-page,
    body.keyboard-open .otp-page {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    body.keyboard-open .chk-body,
    body.keyboard-open .pay-body,
    body.keyboard-open .buyer-panel,
    body.keyboard-open .epoint-page,
    body.keyboard-open .azcard-page,
    body.keyboard-open .otp-page {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scroll-padding-top: 24px;
        scroll-padding-bottom: calc(var(--keyboard-height, 0px) + 96px);
        padding-bottom: calc(var(--keyboard-height, 0px) + 96px + env(safe-area-inset-bottom)) !important;
    }

    input:not([type="radio"]):not([type="checkbox"]),
    textarea,
    select {
        font-size: 16px !important;
        line-height: 1.25 !important;
        transform: none !important;
    }
}

/* Popup choice stability: tapping radio/checkbox/select must not move the
   fixed dialog or alter its scroll position. */
.checkout-modal input[type="radio"],
.checkout-modal input[type="checkbox"],
.pay-modal input[type="radio"],
.pay-modal input[type="checkbox"] {
    scroll-margin: 0 !important;
}

.checkout-panel,
.pay-panel,
.buyer-panel {
    overflow-anchor: none;
}

.chk-body,
.pay-body {
    overflow-anchor: none;
}

/* ================================================================
   PAYMENT MODAL — final mobile stability and compact layout
   This screen contains no text-entry fields, so it must use the live
   viewport instead of the frozen keyboard viewport used by forms.
   ================================================================ */
@media (max-width: 639px) {

    .pay-modal,
    body.keyboard-open .pay-modal {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
    }

    .pay-panel,
    body.keyboard-open .pay-panel {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transform: none;
        overflow: hidden !important;
    }

    .pay-head {
        min-height: 52px;
        padding: 9px 10px 7px;
    }

    .pay-body,
    body.keyboard-open .pay-body {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 9px 10px 10px !important;
        scroll-padding: 0 !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .pay-body .chk-timer {
        padding: 8px 12px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .pay-body .chk-card {
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .pay-card {
        padding: 11px 10px !important;
    }

    .pay-section-title {
        margin-bottom: 9px;
        font-size: 14px;
    }

    .pay-option {
        min-height: 52px;
        padding: 7px 10px;
        margin-bottom: 7px;
        gap: 10px;
        border-radius: 11px;
        transform: none !important;
    }

    .pay-option:active {
        transform: none !important;
    }

    .pay-brand {
        min-width: 48px;
        width: 48px;
        height: 36px;
        padding: 5px 6px;
        border-radius: 8px;
    }

    .pay-name {
        font-size: 14px
    }

    .pay-radio {
        width: 20px;
        height: 20px
    }

    .pay-radio::after {
        width: 9px;
        height: 9px
    }

    .pay-details {
        padding: 9px 11px !important;
    }

    .pay-detail-row {
        min-height: 30px;
        padding: 4px 0;
        font-size: 13px;
    }

    .pay-status-badge {
        padding: 4px 7px;
        font-size: 11px;
        white-space: nowrap;
    }

    .pay-tickets-btn {
        min-height: 48px;
        padding: 8px 11px;
    }

    .pay-tickets-ico {
        width: 32px;
        height: 32px;
    }

    .pay-summary {
        padding: 8px 11px !important;
    }

    .pay-sum-row {
        padding: 4px 0;
        font-size: 13px;
    }

    .pay-sum-total strong {
        font-size: 15px
    }

    .pay-sum-total strong:last-child {
        font-size: 16px
    }

    .pay-cancel-link {
        padding: 5px 3px 6px;
        font-size: 13px;
    }

    .pay-body .chk-body-spacer {
        display: none !important;
    }

    .pay-panel>.chk-foot {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 auto !important;
        width: 100%;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        background: #0d0e11 !important;
        z-index: 5;
    }

    .pay-panel>.chk-foot .chk-cta {
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 15px;
    }
}

/* Older Safari fallback when dynamic viewport units are unavailable. */
@supports not (height: 100dvh) {
    @media (max-width: 639px) {

        .pay-modal,
        .pay-panel,
        body.keyboard-open .pay-modal,
        body.keyboard-open .pay-panel {
            height: 100vh !important;
            min-height: 100vh !important;
            max-height: 100vh !important;
        }
    }
}