/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* New event app menu */
.app-menu-page {
    background: url('../img/bg_3_m.jpg') center / cover no-repeat fixed !important;
    color: #07145f;
}

.app-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 16px 24px;
    background: transparent;
    color: #07145f;
    display: flex;
    flex-direction: column;
}

.app-event-header {
    text-align: center;
    margin-bottom: 18px;
}

.app-event-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.app-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 18px;
}

.app-profile-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(7, 20, 95, 0.08);
    min-width: 0;
}

.app-text-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.35em;
    row-gap: 0.12em;
}

.app-text-word {
    white-space: nowrap;
}

.app-hello {
    font-size: 16px;
    margin-bottom: 4px;
    color: #07145f;
    font-weight: 800;
}

.app-name {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 12px;
    color: #07145f;
}

.app-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.35em;
    row-gap: 0.15em;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #07145f;
    text-transform: uppercase;
}

.app-meta-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-meta-value {
    flex: 1 1 0;
    min-width: 0;
}

.app-id,
.app-group {
    font-size: 12px;
    color: #07145f;
}

.app-group {
    margin-top: 8px;
    display: inline-block;
    padding: 5px 10px;
    background: #f2f5ff;
    border-radius: 999px;
}

.app-avatar-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.app-avatar {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    background: transparent;
    box-shadow: none;
}

.app-avatar-edit {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07145f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(7, 20, 95, 0.24);
}

.app-menu-panel {
    background: #ffffff;
    border-radius: 36px;
    padding: 22px 14px 26px;
    margin: 0 -4px;
}

.app-menu-panel h1 {
    font-size: 15px;
    margin: 0 0 18px;
    font-weight: 900;
    color: #07145f;
    text-align: center;
    letter-spacing: 0.5px;
}

.app-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
}

.app-menu-item,
.app-postcard {
    text-decoration: none;
    background: transparent;
    color: #07145f;
    box-shadow: none;
}

.app-menu-item {
    min-height: auto;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 2px;
}

.app-menu-item img {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.app-menu-item span {
    font-size: 10px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.app-menu-item.is-disabled {
    opacity: 0.42;
    cursor: default;
}

.app-logout-wrap {
    padding: 18px 4px 8px;
}

.app-logout-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #07145f;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 10px 24px rgba(7, 20, 95, 0.22);
}

.app-postcard {
    min-height: 58px;
    border-radius: 14px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 900;
}

.app-postcard-icon {
    font-size: 24px;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.app-brand,
.avatar-flow-brand {
    font-size: 24px;
    font-weight: 900;
    color: #07145f;
}

.app-brand span,
.avatar-flow-brand span {
    font-size: 20px;
    vertical-align: 1px;
}

.app-bell {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07145f;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
}

.app-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 76px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eef0f5;
}

.app-bottom-nav a {
    color: #8a91a5;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.app-bottom-nav a span {
    font-size: 24px;
    line-height: 1;
}

.app-bottom-nav a.active {
    color: #07145f;
}

/* Avatar creation flow */
body.avatar-flow-page {
    padding-top: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.avatar-flow-page {
    background: url('../img/bg_3_m.jpg') center / cover no-repeat fixed !important;
    color: #ffffff;
}

.avatar-phone {
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0 auto;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.avatar-step {
    display: none;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.avatar-step.is-active {
    display: flex;
}

.avatar-camera-step {
    flex-direction: column;
    background: #000000;
    min-height: 0;
}

.camera-topbar {
    flex: 0 0 auto;
    height: 64px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    padding: 10px 12px 0;
}

.camera-topbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 34px;
    line-height: 1;
}

.camera-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #1a1a1a;
    overflow: hidden;
}

.avatar-camera,
.avatar-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 0;
    background: #111111;
}

.face-guide {
    position: absolute;
    left: 50%;
    top: 18%;
    width: 68%;
    aspect-ratio: 1 / 1.14;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-bottom-color: transparent;
    border-radius: 50% 50% 46% 46%;
    pointer-events: none;
}

.camera-controls {
    flex: 0 0 auto;
    height: 114px;
    display: grid;
    grid-template-columns: 1fr 86px 1fr;
    align-items: center;
    justify-items: center;
    background: #000000;
}

.camera-shutter {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 5px solid #e7e7e7;
    background: #ffffff;
    box-shadow: inset 0 0 0 3px #000000;
}

.camera-small {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: transparent;
    font-size: 28px;
    font-weight: 900;
}

.camera-small:disabled {
    opacity: 0.35;
}

.camera-gallery-wrap {
    flex: 0 0 auto;
    padding: 0 16px 8px;
    background: #000000;
    text-align: center;
}

.camera-gallery-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
}

.avatar-camera-step .avatar-message {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 12px 10px;
    color: rgba(255, 255, 255, 0.78);
    background: #000000;
    font-size: 12px;
    text-align: center;
}

.avatar-ai-step {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16vh 20px 28px;
    background: transparent;
    overflow-y: auto;
    position: relative;
}

.avatar-result-step {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16vh 20px 28px;
    background: transparent;
    overflow-y: auto;
    position: relative;
}

.avatar-flow-panel {
    width: 100%;
    max-width: 420px;
    padding: 0 4px;
    color: #07145f;
}

.avatar-glass-card {
    width: 100%;
    padding: 30px 24px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(7, 20, 95, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.avatar-flow-panel--ai .avatar-glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-result-step .avatar-glass-card {
    text-align: center;
}

.avatar-result-step .avatar-glass-card h1 {
    color: #07145f;
    font-size: 28px;
    line-height: 1.18;
    margin: 0 0 24px;
    font-weight: 900;
}

.ai-hero {
    position: relative;
    width: 210px;
    height: 210px;
    margin-bottom: 26px;
}

.ai-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ai-hero-ring--1 {
    inset: -10px;
    border-top-color: #07145f;
    border-right-color: rgba(0, 100, 255, 0.35);
    animation: aiSpin 2.8s linear infinite;
}

.ai-hero-ring--2 {
    inset: -22px;
    border-bottom-color: rgba(40, 212, 255, 0.75);
    border-left-color: rgba(7, 20, 95, 0.18);
    animation: aiSpinReverse 3.5s linear infinite;
}

.ai-hero-photo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 18px 42px rgba(7, 20, 95, 0.22),
        inset 0 0 0 1px rgba(7, 20, 95, 0.08);
    background: #07145f;
}

.ai-hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: aiPhotoPulse 3s ease-in-out infinite;
}

.ai-hero-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(40, 212, 255, 0.28), transparent);
    animation: aiScanPhoto 2.4s ease-in-out infinite;
    pointer-events: none;
}

.ai-hero-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%);
    animation: aiShimmer 2.6s ease-in-out infinite;
    pointer-events: none;
}

.ai-hero-chip {
    position: absolute;
    right: 4px;
    bottom: 4px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: #07145f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 18px rgba(7, 20, 95, 0.28);
}

.ai-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
    color: #07145f;
}

.ai-status {
    margin: 0;
    min-height: 20px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(7, 20, 95, 0.68);
    animation: aiStatusFade 0.45s ease;
}

.ai-progress-panel {
    width: 100%;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(7, 20, 95, 0.08);
}

.ai-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(7, 20, 95, 0.72);
}

.ai-progress-head strong {
    font-size: 15px;
    font-weight: 900;
    color: #07145f;
    letter-spacing: 0;
    text-transform: none;
}

.avatar-ai-step .ai-progress {
    width: 100%;
    height: 8px;
    background: rgba(7, 20, 95, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.avatar-ai-step .ai-progress span {
    position: relative;
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #07145f 0%, #0064ff 55%, #28d4ff 100%);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.avatar-ai-step .ai-progress span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: aiShimmer 1.8s ease-in-out infinite;
}

.result-avatar-wrap {
    position: relative;
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    margin: 0 auto 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.result-avatar-glow {
    position: absolute;
    left: 50%;
    bottom: 8%;
    z-index: 0;
    width: 72%;
    height: 42%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 100, 255, 0.28) 0%, rgba(40, 212, 255, 0.08) 42%, transparent 72%);
    filter: blur(2px);
    pointer-events: none;
    animation: resultGlowPulse 3.2s ease-in-out infinite;
}

.result-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.result-sparkle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 0;
}

.result-sparkle--1 {
    top: 16%;
    left: 18%;
    background: #28d4ff;
    animation: resultSparkle 2.8s ease-in-out infinite;
}

.result-sparkle--2 {
    top: 10%;
    right: 20%;
    background: #0064ff;
    animation: resultSparkle 2.4s ease-in-out infinite 0.5s;
}

.result-sparkle--3 {
    top: 42%;
    left: 8%;
    background: #8a63ff;
    animation: resultSparkle 3s ease-in-out infinite 1s;
}

.result-sparkle--4 {
    top: 36%;
    right: 10%;
    background: #28d4ff;
    animation: resultSparkle 2.6s ease-in-out infinite 1.4s;
}

.result-sparkle--5 {
    bottom: 24%;
    left: 22%;
    background: #0064ff;
    animation: resultSparkle 3.1s ease-in-out infinite 0.8s;
}

.result-sparkle--6 {
    bottom: 20%;
    right: 18%;
    background: #8a63ff;
    animation: resultSparkle 2.5s ease-in-out infinite 1.8s;
}

.result-avatar {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    background: transparent;
}

.avatar-result-step.is-revealed .avatar-glass-card {
    animation: resultCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avatar-result-step.is-revealed .avatar-glass-card h1 {
    animation: resultTitleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.avatar-result-step.is-revealed .result-avatar-wrap {
    animation: resultWrapIn 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) 0.18s both;
}

.avatar-result-step.is-revealed .continue-menu {
    animation: resultBtnIn 0.65s ease 0.42s both;
}

.continue-menu {
    width: 100%;
    max-width: none;
    height: 54px;
    margin-top: 4px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: #07145f;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(7, 20, 95, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.continue-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 20, 95, 0.28);
}

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

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

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

@keyframes resultGlowPulse {
    0%, 100% {
        opacity: 0.45;
        transform: translateX(-50%) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}

@keyframes resultSparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.4);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    45% {
        opacity: 0.85;
        transform: scale(1.15);
    }
    70% {
        opacity: 0;
        transform: scale(0.5) translateY(-8px);
    }
}

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

@keyframes aiSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes aiSpinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes aiScanPhoto {
    0%, 100% {
        top: -45%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        top: 55%;
        opacity: 1;
    }
    85% {
        opacity: 0;
    }
}

@keyframes aiPhotoPulse {
    0%, 100% {
        transform: scale(1.02);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        filter: brightness(1.08);
    }
}

@keyframes aiShimmer {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

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

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 360px) {
    .app-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-profile {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    }

    .app-menu-item img {
        width: 66px;
        height: 66px;
    }

    .app-menu-item span {
        font-size: 9px;
    }
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background-color: #000;
    background-image: url('../img/bg_3_m.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
    animation: pageFadeIn 0.6s ease-out;
    margin: 0;
    padding: 0;
}

body.login-page {
    background-image: url('../img/bg_m.jpg');
}

.app-page-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    z-index: 2;
    pointer-events: none;
    line-height: 0;
}

.app-page-header img {
    width: 100%;
    height: auto;
    display: block;
}

body:not(.login-page):not(.avatar-flow-page):not(.myqr-page):not(.quiz-page):not(.estamp-page):not(.myscore-page):not(.agenda-page):not(.booking-page) {
    padding-top: 20vh;
}

body.quiz-page {
    padding-top: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.quiz-page .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
}

body.quiz-page .quiz-container {
    flex: 1 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    margin-top: 20px;
}

body.quiz-page .back-btn-container {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

body.estamp-page {
    padding-top: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.estamp-page .app-page-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 95%;
    margin: 0 auto;
    flex: 0 0 auto;
}

body.estamp-page .estamp-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: auto;
    box-sizing: border-box;
}

body.estamp-page .estamp-card-wrap,
body.estamp-page .estamp-back-wrap {
    width: 95vw;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
}

body.estamp-page .estamp-card-wrap {
    flex: 1 0 auto;
    margin-top: 20px;
}

body.estamp-page .stamp-toast + .estamp-card-wrap {
    margin-top: 14px;
}

body.estamp-page .estamp-back-wrap {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

body.myscore-page {
    padding-top: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.myscore-page .app-page-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 95%;
    margin: 0 auto;
    flex: 0 0 auto;
}

body.myscore-page .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 0;
    min-height: auto;
}

body.myscore-page .qr-container {
    flex: 1 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin: 20px auto 0;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

body.myscore-page .back-btn-container {
    flex: 0 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

body.myscore-page .redeem-btn-container {
    flex: 0 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin: 14px auto 0;
}

body.agenda-page {
    padding-top: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.agenda-page .app-page-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 95%;
    margin: 0 auto;
    flex: 0 0 auto;
}

body.agenda-page .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 0;
    min-height: auto;
}

body.agenda-page .agenda-container {
    flex: 1 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin: 20px auto 0;
    padding: 0;
    gap: 0;
}

body.agenda-page .back-btn-container {
    flex: 0 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

body.booking-page {
    padding-top: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.booking-page .app-page-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 95%;
    margin: 0 auto;
    flex: 0 0 auto;
}

body.booking-page .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 0;
    min-height: auto;
}

body.booking-page .back-btn-container {
    flex: 0 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* Countdown bar */
.bk-timer {
    width: 95vw;
    max-width: 95vw;
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b1f6b, #07145f);
    color: #fff;
    box-shadow: 0 10px 24px rgba(7, 20, 95, 0.3);
    flex: 0 0 auto;
}

.bk-timer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.85; }
.bk-timer-label::before { content: '\23F1'; margin-right: 6px; }

.bk-timer-value {
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.bk-timer.is-low { background: #c0392b; animation: bkPulse 1s ease-in-out infinite; }

@keyframes bkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Steps */
.bk-step {
    display: none;
    flex: 1 0 auto;
    width: 95vw;
    max-width: 95vw;
    margin: 14px auto 0;
    flex-direction: column;
}

.bk-step.is-active { display: flex; animation: bkStepIn 0.4s ease both; }

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

/* White card */
.bk-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fe 100%);
    border-radius: 28px;
    padding: 26px 22px;
    box-shadow: 0 22px 50px rgba(7, 20, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bk-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #07145f 0%, #1e3fb0 50%, #f1c40f 100%);
}

.bk-card--center { align-items: center; justify-content: flex-start; text-align: center; }

.bk-card-title {
    margin: 6px 0 14px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #07145f;
    position: relative;
}

.bk-card-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 54px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #1e3fb0, #f1c40f);
}

.bk-card-note {
    margin: 0 0 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(7, 20, 95, 0.7);
    font-weight: 600;
}

.bk-card-zone {
    margin: 0 0 12px;
    align-self: flex-start;
    font-size: 16px;
    font-weight: 900;
    color: #07145f;
    letter-spacing: 1px;
}

.bk-card--center .bk-card-zone { align-self: flex-start; }

/* Pill buttons */
.bk-pill {
    position: relative;
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0b1f6b 0%, #07145f 60%, #050d3f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(7, 20, 95, 0.4);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.bk-pill::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.bk-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(7, 20, 95, 0.45); }
.bk-pill:hover::after { left: 120%; }
.bk-pill:active { transform: translateY(0); }
.bk-pill:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.bk-pill:disabled::after { display: none; }
.bk-pill--block { display: block; width: 100%; margin-top: 20px; }

/* Floor plan */
.bk-floor {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(7, 20, 95, 0.06);
}

.bk-floor-img { width: 100%; height: auto; display: block; }

.bk-zone-buttons {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex: 0 0 auto;
}

.bk-zone-btn { flex: 1; padding: 18px 10px; font-size: 16px; }

/* Quantity stepper */
.bk-qty-label {
    margin: 8px 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #07145f;
    text-align: center;
}

.bk-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.bk-step-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1e3fb0, #07145f);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(7, 20, 95, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bk-step-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(7, 20, 95, 0.45); }
.bk-step-btn:active { transform: scale(0.92); }

.bk-step-input {
    width: 90px;
    height: 46px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #07145f;
    border: 2px solid rgba(7, 20, 95, 0.3);
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.bk-qty-unit {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #07145f;
    text-align: center;
}

/* Seat map */
.bk-pick-info {
    margin: 0 0 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(7, 20, 95, 0.75);
}

.bk-map { width: 100%; }

.bk-stage {
    width: 64%;
    max-width: 240px;
    margin: 0 auto 18px;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    background: linear-gradient(135deg, #1e3fb0, #07145f);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(7, 20, 95, 0.3);
}

.bk-map-grid {
    display: grid;
    gap: 7px;
    justify-items: center;
    margin-bottom: 16px;
}

.bk-cell-empty { width: 100%; aspect-ratio: 1 / 1; }

.bk-table {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 50%;
    font-size: clamp(8px, 2.4vw, 11px);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}

.bk-table--available {
    background: radial-gradient(circle at 30% 25%, #2a52cf 0%, #0b1f6b 70%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(11, 31, 107, 0.4);
}

.bk-table--available:hover { transform: scale(1.1); box-shadow: 0 6px 14px rgba(11, 31, 107, 0.55); }

.bk-table--mine {
    background: radial-gradient(circle at 30% 25%, #ffe27a 0%, #f1c40f 70%);
    color: #07145f;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.5), 0 6px 14px rgba(241, 196, 15, 0.5);
    animation: bkPop 0.25s ease;
}

@keyframes bkPop {
    0% { transform: scale(0.8); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.bk-table--taken {
    background: #c9ccd6;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
}

.bk-table--vip {
    background: #b8bcc8;
    color: #fff;
    cursor: not-allowed;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    opacity: 0.95;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.bk-dot--vip { background: #b8bcc8; }

/* Legend */
.bk-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.bk-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(7, 20, 95, 0.8);
}

.bk-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.bk-dot--available { background: #0b1f6b; }
.bk-dot--mine { background: #f1c40f; }
.bk-dot--taken { background: #c9ccd6; }

/* Roster (agent ids per table) */
.bk-roster-table {
    margin-bottom: 18px;
    border: 1px solid rgba(7, 20, 95, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(7, 20, 95, 0.08);
}

.bk-roster-head {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #1e3fb0, #07145f);
    padding: 12px 16px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bk-roster-head::before { content: none; }

.bk-roster-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
}

.bk-roster-row {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 14px;
    border-top: 1px solid rgba(7, 20, 95, 0.06);
}

.bk-roster-row:first-child { border-top: none; }

.bk-roster-row:nth-child(even) { background: rgba(7, 20, 95, 0.025); }

.bk-roster-seat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30, 63, 176, 0.12), rgba(7, 20, 95, 0.08));
    border: 1px solid rgba(7, 20, 95, 0.1);
    font-size: 11px;
    font-weight: 800;
    color: #07145f;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-sizing: border-box;
    align-self: center;
}

.bk-roster-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bk-roster-input {
    width: 100%;
    max-width: none;
    height: 42px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #07145f;
    border: 2px solid rgba(7, 20, 95, 0.14);
    border-radius: 12px;
    background: #f8faff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bk-roster-input:focus { border-color: #07145f; background: #fff; }
.bk-roster-input.is-ok { border-color: #2ecc71; background: #f4fff8; }
.bk-roster-input.is-error { border-color: #e74c3c; background: #fff8f8; }
.bk-roster-input.is-self { background: #eef1fb; color: #07145f; cursor: default; border-color: rgba(7, 20, 95, 0.2); }

.bk-roster-name {
    display: block;
    min-height: 18px;
    line-height: 1.35;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(7, 20, 95, 0.72);
    padding-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.bk-roster-name.is-visible {
    opacity: 1;
    visibility: visible;
}

.bk-roster-name.is-loading { opacity: 0.7; }
.bk-roster-name.is-ok { color: #1e8449; }
.bk-roster-name.is-error { color: #c0392b; }

.bk-roster-name.is-booked-detail {
    white-space: pre-line;
    min-height: auto;
    line-height: 1.4;
    font-size: 11px;
}

/* Already booked screen */
.bk-step--existing { justify-content: flex-start; }

.bk-existing-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.35);
}

.bk-existing-lead {
    margin: 0 0 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(7, 20, 95, 0.75);
}

.bk-existing-summary {
    background: rgba(7, 20, 95, 0.05);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.bk-existing-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(7, 20, 95, 0.08);
}

.bk-existing-line:last-child { border-bottom: none; }

.bk-existing-label {
    font-size: 12px;
    font-weight: 800;
    color: rgba(7, 20, 95, 0.65);
    flex-shrink: 0;
}

.bk-existing-value {
    font-size: 13px;
    font-weight: 700;
    color: #07145f;
    text-align: right;
}

.bk-existing-table {
    margin-bottom: 16px;
    border: 1px solid rgba(7, 20, 95, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(7, 20, 95, 0.08);
}

.bk-existing-table-head {
    background: linear-gradient(135deg, #1e3fb0, #07145f);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    padding: 12px 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bk-existing-seat {
    display: grid;
    grid-template-columns: 62px 72px 1fr;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-top: 1px solid rgba(7, 20, 95, 0.06);
    font-size: 13px;
}

.bk-existing-seat:nth-child(even) {
    background: rgba(7, 20, 95, 0.025);
}

.bk-existing-seat-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30, 63, 176, 0.12), rgba(7, 20, 95, 0.08));
    border: 1px solid rgba(7, 20, 95, 0.1);
    font-size: 11px;
    font-weight: 800;
    color: #07145f;
    white-space: nowrap;
    letter-spacing: 0.02em;
    justify-self: start;
}

.bk-existing-seat-id {
    font-weight: 800;
    color: #07145f;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.bk-existing-seat-name {
    font-weight: 600;
    color: rgba(7, 20, 95, 0.88);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}

/* Success */
.bk-step--done { justify-content: center; }

.bk-done-icon {
    width: 84px;
    height: 84px;
    margin: 4px auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #43e08a 0%, #25b866 70%);
    color: #fff;
    font-size: 46px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0.18), 0 10px 24px rgba(37, 184, 102, 0.45);
    animation: bkDonePop 0.5s ease;
}

@keyframes bkDonePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.bk-done-detail {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(7, 20, 95, 0.75);
    font-weight: 600;
}

/* Flash toast */
.bk-flash {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(7, 20, 95, 0.95);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.bk-flash.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Expired modal */
.bk-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bk-modal.is-open { display: flex; }

.bk-modal-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 24px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.bk-modal-icon { font-size: 48px; margin-bottom: 8px; }

.bk-modal-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: 900; color: #07145f; }

.bk-modal-card p {
    margin: 0 0 20px;
    font-size: 14px;
    color: rgba(7, 20, 95, 0.75);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardSlideUp 0.6s ease-out;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.login-page .header {
    padding-top: 20px;
}

.home-page .header,
.myqr-page .header {
    padding-top: 10px;
    margin-bottom: 20px;
}

.logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 0px;
}

.header-image {
    display: block;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

.profile-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.profile-edit {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #000000;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.profile-info {
    min-width: 0;
    color: #ffffff;
}

.profile-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

.profile-meta,
.profile-group {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.78);
}

.profile-group {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.brand-name {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 15px;
}

.brand-icon {
    font-size: 24px;
}

.event-title {
    margin-top: 15px;
}

.event-subtitle {
    font-size: 14px;
    color: #87CEEB;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.event-name {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 2px;
}

.up-text {
    color: #87CEEB;
}

/* Login Form */
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 250px;
}

.login-page .login-form {
    flex: 0;
    justify-content: flex-start;
    padding-top: 55vh;
    padding-bottom: 120px;
}

.form-group {
    width: 100%;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 5px;
    letter-spacing: 1px;
}

.login-page .form-hint {
    font-size: 16px;
    color: #ffffff;
}

.login-page .form-hint a,
.login-page .form-hint a:visited,
.login-page .form-hint a:hover,
.login-page .form-hint a:active {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.login-page .form-group:last-child {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: calc(100% - 40px);
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #999;
    text-align: center;
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 1);
    color: #333;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.25s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.16);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #002a58 0%, #002a58 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    margin: 0 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.btn-close {
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
    color: #002a58;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Page Title */
.page-title {
    text-align: center;
    margin: 20px 0 30px;
}

.page-title h2 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    margin: 20px 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.menu-item.active {
    opacity: 1;
}

.menu-item.inactive {
    opacity: 0.4;
    pointer-events: none;
}

.menu-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    padding: 15px;
}

.menu-item.inactive .menu-icon {
    background: #ccc;
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-label {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.menu-item.active:hover .menu-icon {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 42, 88, 0.28);
}

.avatar-camera {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #111111;
    border-radius: 22px;
    display: block;
}

.avatar-preview {
    width: 100%;
    border-radius: 22px;
    display: none;
}

.avatar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.avatar-message {
    margin-top: 14px;
    min-height: 22px;
    color: #002a58;
    font-weight: 700;
    text-align: center;
}

.btn-avatar {
    padding: 14px 16px;
    border: none;
    border-radius: 18px;
    background: #002a58;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-avatar.secondary {
    background: rgba(0, 42, 88, 0.12);
    color: #002a58;
}

.btn-avatar:disabled {
    opacity: 0.55;
    cursor: default;
}

.estamp-header {
    text-align: center;
    margin-bottom: 16px;
}

.estamp-event-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
}

.estamp-title {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 2px;
    color: #07145f;
    text-transform: uppercase;
}

.estamp-subtitle {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(7, 20, 95, 0.72);
}

.estamp-card-wrap {
    width: 100%;
    margin: 0 auto;
}

.estamp-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 22px 14px 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.estamp-empty {
    text-align: center;
    color: #002a58;
    margin: 0 0 16px;
    font-size: 13px;
}

.stamp-toast {
    text-align: center;
    margin: 20px auto 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.stamp-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stamp-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.stamp-item {
    width: 72px;
    max-width: 21vw;
    flex: 0 0 auto;
}

.stamp-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.42;
    filter: grayscale(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.stamp-item img.is-scanned {
    opacity: 1;
    filter: none;
}

.estamp-scan-btn {
    width: 74px;
    height: 74px;
    margin: 22px auto 0;
    border-radius: 50%;
    background: #07145f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(7, 20, 95, 0.28);
}

.estamp-scan-btn img {
    width: 38px;
    height: 38px;
    display: block;
    filter: brightness(0) invert(1);
}

body.estamp-page .stamp-item {
    width: 18vw;
    max-width: 82px;
}

.estamp-back-wrap {
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
}

.estamp-back-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #07145f;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 24px rgba(7, 20, 95, 0.22);
}

.estamp-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 20, 95, 0.3);
}

@media (max-width: 360px) {
    .estamp-title {
        font-size: 26px;
    }

    .stamp-item {
        width: 64px;
    }

    .estamp-scan-btn {
        width: 68px;
        height: 68px;
    }
}

/* QR Code Page */
.qr-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.qr-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 36px 28px 32px;
    text-align: center;
    color: #002a58;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: cardFloat 6s ease-in-out infinite;
}

/* My QR page */
body.myqr-page {
    padding-top: 20vh;
    overflow: hidden;
    height: 100dvh;
}

.myqr-page .container {
    min-height: calc(100dvh - 20vh);
    height: calc(100dvh - 20vh);
    max-height: calc(100dvh - 20vh);
    padding: 10px 18px 14px;
    overflow-y: auto;
}

.myqr-page .qr-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    min-height: 0;
}

.myqr-page .qr-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 26px 24px 22px;
    animation: none;
    border-radius: 32px;
}

.myqr-page .user-info {
    margin-bottom: 14px;
}

.myqr-page .info-line {
    padding: 6px 0;
}

.myqr-page .info-label,
.myqr-page .info-value {
    font-size: 13px;
    line-height: 1.4;
}

.myqr-page .qr-code {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 0;
    min-height: 190px;
}

.myqr-page .qr-image {
    width: min(100%, 232px);
    max-width: 232px;
    padding: 10px;
    border-width: 3px;
    border-radius: 12px;
}

.myqr-page .back-btn-container {
    flex: 0 0 auto;
    margin-top: 14px;
    padding-bottom: 8px;
}

@media (max-height: 740px) {
    .myqr-page .qr-card {
        padding: 18px 20px 16px;
    }

    .myqr-page .info-line {
        padding: 4px 0;
    }

    .myqr-page .info-label,
    .myqr-page .info-value {
        font-size: 12px;
    }

    .myqr-page .qr-code {
        min-height: 160px;
    }

    .myqr-page .qr-image {
        width: min(100%, 200px);
        max-width: 200px;
    }
}

/* My Score (scoped) */
.myscore-page .qr-card.score-card {
    width: 100%;
    max-width: none;
    padding: 22px;
    border-radius: 40px;
    animation: none;
}

.myscore-page .score-panel {
    background: #002a58;
    color: #ffffff;
    border-radius: 30px;
    padding: 24px 18px 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.myscore-page .score-panel-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.myscore-page .score-panel-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.myscore-page .score-panel-value {
    margin-top: 10px;
    font-size: 86px;
    font-weight: 900;
    line-height: 1;
}

.myscore-page .score-unit {
    display: inline-block;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    vertical-align: baseline;
}

.myscore-page .score-panel-sub {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.myscore-page .score-split {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(227, 230, 239, 0.9);
    background: rgba(255, 255, 255, 0.98);
}

.myscore-page .score-split-item {
    padding: 14px 10px 12px;
}

.myscore-page .score-split-item + .score-split-item {
    border-left: 1px solid rgba(227, 230, 239, 0.9);
}

.myscore-page .score-split-value {
    font-size: 36px;
    font-weight: 900;
    color: #002a58;
    line-height: 1;
}

.myscore-page .score-split-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0, 42, 88, 0.7);
}

.myscore-page .redeem-btn-container {
    text-align: center;
}

.user-info {
    width: 100%;
    text-align: left;
    margin-bottom: 18px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(227, 230, 239, 0.9);
}

.info-line:last-child {
    border-bottom: none;
}

.info-label {
    color: #002a58;
    font-weight: 700;
}

.info-value {
    color: #002a58;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.qr-title {
    font-size: 30px;
    font-weight: 700;
    color: #002a58;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.qr-code {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 3px solid #002a58;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.no-qr {
    font-size: 16px;
    color: #999;
    padding: 50px 20px;
}

.agency-id {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e3e6ef;
}

.agency-id p {
    font-size: 14px;
    color: #777;
    margin: 4px 0;
}

.id-value {
    font-size: 22px;
    font-weight: 700;
    color: #002a58;
    letter-spacing: 1.5px;
}

/* Button Containers */
.logout-btn-container,
.back-btn-container {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
}

/* Agenda Page */
.agenda-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0;
    overflow-y: auto;
    gap: 20px;
}

.agenda-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agenda-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Quiz Page */
body.quiz-page .app-page-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 95%;
    margin: 0 auto;
    flex: 0 0 auto;
}

body.quiz-popup-page .quiz-container.is-popup {
    position: relative;
    inset: auto;
    flex: 1;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    margin-top: 20px;
    z-index: auto;
}

.quiz-container.is-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 20;
    flex: none;
}

.quiz-container.is-popup ~ .back-btn-container {
    display: none;
}

.quiz-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.quiz-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 36px 28px 32px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.quiz-question {
    margin-bottom: 30px;
}

.question-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.quiz-question h3 {
    font-size: 20px;
    color: #002a58;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 25px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

label.quiz-option {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #002a58;
    transform: translateX(5px);
}

.quiz-option.selected {
    background: rgba(0, 42, 88, 0.10);
    border-color: #002a58;
}

.quiz-option.correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.quiz-option input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #002a58;
    margin: 0;
}

.quiz-option-text {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #002a58;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
}

.quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-quiz {
    padding: 15px 50px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    font-size: 16px;
    font-weight: bold;
    background: rgba(0, 42, 88, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.25s ease;
}

.btn-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 42, 88, 0.4);
    background: rgba(0, 42, 88, 1);
}

.quiz-result {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.result-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.result-card h3 {
    font-size: 32px;
    color: #002a58;
    margin-bottom: 20px;
    font-weight: 700;
}

.result-message {
    font-size: 18px;
    color: #002a58;
    margin-bottom: 30px;
    font-weight: 500;
}

.result-score {
    font-size: 24px;
    color: #002a58;
    margin-bottom: 30px;
    font-weight: 600;
}

.result-score span {
    font-size: 36px;
    color: #002a58;
    font-weight: 700;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #87CEEB;
}

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

.btn-logout,
.btn-back {
    display: inline-block;
    padding: 15px 60px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.25s ease;
}

.btn-logout:hover,
.btn-back:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.16);
}

/* Animations */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Responsive Design */
@media (max-width: 400px) {
    .container {
        padding: 15px;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .event-name {
        font-size: 30px;
    }
    
    .menu-grid {
        gap: 10px;
        padding: 10px;
    }
    
    .menu-icon {
        width: 60px;
        height: 60px;
    }
    
    .menu-label {
        font-size: 10px;
    }
    
    .qr-card {
        padding: 30px 20px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .menu-grid {
        gap: 20px;
        padding: 30px;
    }
    
    .menu-icon {
        width: 100px;
        height: 100px;
    }
    
    .menu-label {
        font-size: 14px;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 900px;
        padding: 40px;
    }
    
    .header {
        margin-bottom: 50px;
        padding-top: 40px;
    }
    
    .logo {
        width: 80%;
        max-width: 80%;
        margin-bottom: 20px;
    }
    
    .brand-name {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .brand-icon {
        font-size: 32px;
    }
    
    .event-subtitle {
        font-size: 18px;
    }
    
    .event-name {
        font-size: 48px;
        letter-spacing: 3px;
    }
    
    .page-title h2 {
        font-size: 42px;
        margin-bottom: 10px;
    }
    
    .menu-grid {
        gap: 30px;
        padding: 40px;
        border-radius: 40px;
        max-width: 800px;
        margin: 30px auto;
    }
    
    .menu-icon {
        width: 120px;
        height: 120px;
    }
    
    .menu-label {
        font-size: 16px;
        margin-top: 5px;
    }
    
    .login-form {
        max-width: 500px;
    }
    
    .form-input {
        padding: 22px 24px;
        font-size: 18px;
        border-radius: 30px;
    }
    
    .btn-submit {
        padding: 22px 24px;
        font-size: 20px;
        border-radius: 32px;
    }
    
    .login-page .form-group:last-child {
        max-width: 500px;
    }
    
    .qr-card {
        max-width: 500px;
        padding: 50px 40px;
        border-radius: 40px;
    }
    
    .qr-title {
        font-size: 36px;
        margin-bottom: 35px;
    }
    
    .qr-image {
        max-width: 350px;
        border-width: 4px;
        border-radius: 15px;
        padding: 15px;
    }
    
    .agency-id p {
        font-size: 16px;
    }
    
    .id-value {
        font-size: 26px;
    }
    
    .btn-logout,
    .btn-back {
        padding: 18px 80px;
        font-size: 18px;
        border-radius: 32px;
    }
    
    .agenda-image {
        max-width: 900px;
        border-radius: 30px;
    }
    
    .modal-image {
        max-width: 90%;
        max-height: 90%;
    }
}

/* Final overrides for the new reference flow. */
body.app-menu-page {
    background: url('../img/bg_3_m.jpg') center / cover no-repeat fixed !important;
    color: #07145f;
}

body.app-menu-page .app-shell {
    min-height: auto;
}

body.avatar-flow-page {
    background: url('../img/bg_3_m.jpg') center / cover no-repeat fixed !important;
    color: #ffffff;
}

.avatar-flow-page .avatar-camera,
.avatar-flow-page .avatar-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    background: #111111;
}

body.myqr-page .back-btn-container .btn-back,
body.myscore-page .back-btn-container .btn-back,
body.myscore-page .redeem-btn-container .btn-back,
body.quiz-page .back-btn-container .btn-back,
body.agenda-page .back-btn-container .btn-back,
body.booking-page .back-btn-container .btn-back {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: #07145f;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(7, 20, 95, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.myqr-page .back-btn-container .btn-back:hover,
body.myscore-page .back-btn-container .btn-back:hover,
body.myscore-page .redeem-btn-container .btn-back:hover,
body.quiz-page .back-btn-container .btn-back:hover,
body.agenda-page .back-btn-container .btn-back:hover,
body.booking-page .back-btn-container .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 20, 95, 0.3);
    background: #07145f;
}
