/* Mobile-first conference companion */
.conference-app {
    --app-maroon: #7c1235;
    --app-deep: #310511;
    --app-gold: #d5ad55;
    --app-ink: #231b1e;
    --app-muted: #746a6d;
    min-height: 100svh;
    color: var(--app-ink);
    background: #f7f4f2;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.conference-app-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left));
    color: white;
    background: rgba(49, 5, 17, .96);
    border-bottom: 2px solid var(--app-gold);
    backdrop-filter: blur(18px);
}

.conference-app-brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; min-width: 0; }
.conference-app-brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--app-gold); }
.conference-app-brand span { display: flex; flex-direction: column; min-width: 0; }
.conference-app-brand strong { font-size: 14px; line-height: 1.4; white-space: nowrap; }
.conference-app-brand small { color: #e8c977; font-size: 10px; }
.conference-app-brand small i { color: #32cf77; font-size: 7px; margin-left: 4px; animation: appPulse 1.6s infinite; }
.conference-ticket-shortcut { min-width: 52px; height: 42px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); }
.conference-ticket-shortcut span { font-size: 9px; font-weight: 700; }

.conference-app-main { width: min(100%, 620px); margin: 0 auto; padding: 18px 14px 30px; }
.live-welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 10px 2px 17px; }
.live-kicker { display: inline-flex; gap: 6px; align-items: center; color: var(--app-maroon); font-size: 11px; font-weight: 800; }
.live-welcome h1 { margin: 5px 0 3px; font-size: clamp(23px, 7vw, 31px); line-height: 1.35; font-weight: 900; letter-spacing: -.5px; }
.live-welcome p { margin: 0; color: var(--app-muted); font-size: 12px; }
.live-day-chip { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #fff; border: 1px solid #e5dcda; font-size: 11px; font-weight: 800; color: var(--app-maroon); box-shadow: 0 3px 10px rgba(49,5,17,.05); }

.notification-card { width: 100%; border: 1px solid #eadbd8; background: #fff; border-radius: 15px; padding: 12px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; text-align: right; cursor: pointer; color: var(--app-ink); box-shadow: 0 5px 18px rgba(49,5,17,.05); }
.notification-card .notification-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--app-maroon); }
.notification-card > span:nth-child(2) { display: flex; flex-direction: column; }
.notification-card strong { font-size: 13px; }
.notification-card small { font-size: 10.5px; color: var(--app-muted); margin-top: 2px; }
.notification-card > i { color: #a79da0; }
.notification-card.enabled { border-color: #b9ddc1; background: #f6fcf7; }
.notification-card.enabled .notification-icon { background: #27783b; }
.notification-card.denied .notification-icon { background: #777; }

.conference-loading { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--app-maroon); }
.now-stage { margin-top: 18px; }
.section-label-row, .flow-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 9px; }
.section-label-row div { display: flex; align-items: center; gap: 7px; }
.section-label-row strong { font-size: 14px; }
.section-label-row > span { color: var(--app-muted); font-size: 11px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e92951; box-shadow: 0 0 0 5px rgba(233,41,81,.12); animation: appPulse 1.5s infinite; }

.current-session-card { position: relative; overflow: hidden; padding: 20px; color: white; border-radius: 22px; background: radial-gradient(circle at 0 0, #a51e50 0, transparent 42%), linear-gradient(145deg, #6e0d30, #310511); box-shadow: 0 18px 38px rgba(83,8,34,.25); }
.current-session-card::after { content: ""; position: absolute; width: 170px; height: 170px; border: 35px solid rgba(255,255,255,.035); border-radius: 50%; left: -75px; bottom: -95px; pointer-events: none; }
.current-session-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: #f0d68c; font-size: 11px; font-weight: 800; }
.current-session-topline span { border: 1px solid rgba(213,173,85,.5); padding: 4px 9px; border-radius: 999px; }
.current-session-card h2 { position: relative; z-index: 1; margin: 16px 0 10px; font-size: clamp(20px, 6vw, 27px); line-height: 1.5; font-weight: 900; color: white; }
.session-speaker { position: relative; z-index: 1; margin: 0 0 15px; color: rgba(255,255,255,.9); font-size: 12px; }
.session-speaker small { display: block; color: rgba(255,255,255,.58); margin: 3px 20px 0 0; }
.session-location { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: #f4dfaa; font-size: 12px; }
.session-progress { position: relative; z-index: 1; height: 5px; border-radius: 5px; overflow: hidden; margin: 18px 0 13px; background: rgba(255,255,255,.18); }
.session-progress span { display: block; height: 100%; background: linear-gradient(90deg, #fff0bd, var(--app-gold)); border-radius: inherit; transition: width .5s; }
.session-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 48px; gap: 9px; }
.session-actions button { min-height: 48px; border: 0; border-radius: 12px; background: var(--app-gold); color: #2d0915; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.session-actions button.secondary { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.16); }
.countdown-strip { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.1); color: #f6df9f; font-size: 12px; font-weight: 700; }

.stream-placeholder { position: relative; min-height: 215px; margin-top: 10px; border-radius: 18px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: #110309; border: 1px solid #6d1834; }
.stream-placeholder > i { font-size: 35px; color: var(--app-gold); margin-bottom: 9px; }
.stream-placeholder strong { font-size: 16px; }
.stream-placeholder p { max-width: 320px; margin: 6px 0 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.7; }
.stream-badge { position: absolute; top: 12px; left: 12px; padding: 4px 8px; border-radius: 6px; background: #e3264e; font-size: 9px; font-weight: 900; direction: ltr; }
.stream-badge span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: white; }

.session-flow, .smart-tools { margin-top: 24px; }
.flow-heading h2 { margin: 0; font-size: 17px; font-weight: 900; }
.flow-heading a { color: var(--app-maroon); font-size: 11px; font-weight: 800; text-decoration: none; }
.flow-card { display: grid; grid-template-columns: 66px 1fr; gap: 11px; padding: 13px; margin-bottom: 8px; background: #fff; border: 1px solid #e9e1de; border-radius: 14px; }
.flow-card.current { border-color: #bd5276; box-shadow: inset -3px 0 var(--app-maroon); }
.flow-card.previous { opacity: .7; }
.flow-state { align-self: start; display: inline-flex; justify-content: center; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 7px; color: #6d6467; background: #f1eeed; font-size: 10px; font-weight: 800; }
.flow-card.current .flow-state { color: #fff; background: var(--app-maroon); }
.flow-card.next .flow-state { color: #775b12; background: #f9edcd; }
.flow-card time { color: var(--app-maroon); font-size: 10px; font-weight: 800; direction: ltr; display: inline-block; }
.flow-card h3 { margin: 3px 0 0; font-size: 13px; line-height: 1.55; }
.flow-card p { margin: 4px 0 0; color: var(--app-muted); font-size: 10px; }

.smart-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.smart-tools-grid a, .smart-tools-grid button { min-height: 112px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; text-align: right; border-radius: 15px; border: 1px solid #e7deda; background: #fff; color: var(--app-ink); text-decoration: none; font: inherit; cursor: pointer; }
.smart-tools-grid i { color: var(--app-maroon); font-size: 21px; margin-bottom: auto; }
.smart-tools-grid strong { font-size: 13px; }
.smart-tools-grid small { font-size: 10px; color: var(--app-muted); margin-top: 2px; }
.live-notice { display: flex; gap: 11px; margin-top: 20px; padding: 14px; color: #644b12; background: #fff7df; border: 1px solid #ead18e; border-radius: 14px; }
.live-notice > i { margin-top: 3px; }
.live-notice strong { font-size: 12px; }
.live-notice p { margin: 3px 0 0; font-size: 10.5px; line-height: 1.65; }

.conference-bottom-nav { position: fixed; z-index: 110; inset-inline: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom)); padding: 7px max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid #e4d9d7; box-shadow: 0 -9px 30px rgba(49,5,17,.08); backdrop-filter: blur(18px); }
.conference-bottom-nav.five-items { grid-template-columns: repeat(5, 1fr); }
.conference-bottom-nav a { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; color: #877c80; font-size: 10px; font-weight: 700; text-decoration: none; border-radius: 12px; }
.conference-bottom-nav a i { font-size: 18px; }
.conference-bottom-nav a.active { color: var(--app-maroon); background: #f8ecef; }
.conference-bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 4px 4px; background: var(--app-maroon); }

.app-page-heading { padding: 8px 2px 17px; }
.app-page-heading > span { color: var(--app-maroon); font-size: 11px; font-weight: 800; }
.app-page-heading h1 { margin: 5px 0 3px; font-size: 26px; font-weight: 900; }
.app-page-heading p { margin: 0; color: var(--app-muted); font-size: 12px; }
.day-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 15px; }
.day-selector button { min-width: 0; padding: 10px 5px; border: 1px solid #e4dad7; border-radius: 12px; background: #fff; color: var(--app-muted); font: inherit; cursor: pointer; }
.day-selector span, .day-selector strong { display: block; font-size: 10px; }
.day-selector strong { margin-top: 2px; color: var(--app-ink); font-size: 11px; }
.day-selector button.active { color: #f0d487; background: var(--app-deep); border-color: var(--app-deep); }
.day-selector button.active strong { color: white; }
.mobile-agenda-item { position: relative; display: grid; grid-template-columns: 77px 1fr 34px; gap: 10px; padding: 15px 11px; margin-bottom: 9px; border-radius: 15px; border: 1px solid #e7ddda; background: #fff; }
.mobile-agenda-item.saved { border-color: #c68da1; box-shadow: inset -3px 0 var(--app-maroon); }
.agenda-time { border-left: 1px solid #eee5e2; }
.agenda-time time { display: block; direction: ltr; text-align: right; color: var(--app-maroon); font-size: 10px; font-weight: 900; }
.agenda-time span { display: inline-block; margin-top: 8px; padding: 3px 6px; border-radius: 6px; background: #f7edf0; color: var(--app-maroon); font-size: 9px; font-weight: 800; }
.agenda-content h2 { margin: 0; font-size: 13px; line-height: 1.55; }
.agenda-content p { margin: 7px 0 0; color: #574e51; font-size: 10.5px; }
.agenda-content small { display: block; margin-top: 5px; color: var(--app-muted); font-size: 9.5px; }
.mobile-agenda-item > button { width: 34px; height: 38px; border: 0; border-radius: 9px; color: var(--app-maroon); background: #f7edef; cursor: pointer; }

.updates-feed { margin-top: 16px; }
.update-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 13px; margin-bottom: 10px; background: #fff; border: 1px solid #e7ddda; border-radius: 15px; }
.update-item.urgent { background: #fff8eb; border-color: #ead193; }
.update-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--app-maroon); background: #f8ecef; }
.urgent .update-icon { color: #8a5e00; background: #f7e4ac; }
.update-item span { color: var(--app-maroon); font-size: 9.5px; font-weight: 800; }
.update-item h2 { margin: 4px 0; font-size: 14px; line-height: 1.5; }
.update-item p { margin: 0; color: var(--app-muted); font-size: 11px; line-height: 1.65; }
.update-item a { display: inline-block; margin-top: 8px; color: var(--app-maroon); font-size: 10.5px; font-weight: 800; text-decoration: none; }

.attendee-gate { margin-top: 14px; padding: 18px 15px; color: white; border-radius: 18px; background: linear-gradient(145deg, #6e0d30, #310511); box-shadow: 0 14px 32px rgba(49,5,17,.2); }
.attendee-gate > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #2d0915; background: var(--app-gold); font-size: 18px; }
.attendee-gate h2 { margin: 12px 0 4px; color: white; font-size: 18px; }
.attendee-gate p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.7; }
.attendee-gate-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.attendee-gate-form input { min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 11px; background: white; color: #24191d; font: 700 13px monospace; direction: ltr; }
.attendee-gate-form button { min-height: 48px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--app-gold); color: #2d0915; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.attendee-message { display: block; margin-top: 9px; font-size: 11px; color: #ffd4dc; }
.attendee-message.success { color: #a7f3d0; }
.attendee-verified { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 11px; border: 1px solid rgba(167,243,208,.25); border-radius: 11px; background: rgba(46,125,50,.22); }
.attendee-verified span { font-size: 11px; font-weight: 800; color: #baf4d2; }
.attendee-verified button { border: 0; background: transparent; color: rgba(255,255,255,.7); font: inherit; font-size: 10px; cursor: pointer; }

.polls-list { margin-top: 18px; }
.poll-card { padding: 18px 14px; margin-bottom: 13px; border: 1px solid #e7deda; border-radius: 18px; background: white; box-shadow: 0 6px 20px rgba(49,5,17,.05); }
.poll-context { display: inline-flex; align-items: center; gap: 5px; color: var(--app-maroon); font-size: 10px; font-weight: 800; }
.poll-card h2 { margin: 7px 0 4px; font-size: 17px; line-height: 1.55; }
.poll-card-sub { margin: 0 0 14px; color: var(--app-muted); font-size: 10.5px; }
.poll-option { position: relative; width: 100%; min-height: 52px; margin-top: 8px; overflow: hidden; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 9px 11px; text-align: right; border: 1px solid #e6dcda; border-radius: 12px; background: #fff; color: var(--app-ink); font: inherit; cursor: pointer; }
.poll-option:disabled { cursor: default; opacity: 1; }
.poll-option.selected { border-color: var(--app-maroon); box-shadow: inset -3px 0 var(--app-maroon); }
.poll-option-progress { position: absolute; z-index: 0; inset-block: 0; right: 0; background: #f7e9ed; transition: width .5s ease; }
.poll-option > *:not(.poll-option-progress) { position: relative; z-index: 1; }
.poll-radio { width: 21px; height: 21px; display: grid; place-items: center; border: 1.5px solid #c7bbbe; border-radius: 50%; color: white; font-size: 9px; }
.poll-option.selected .poll-radio { border-color: var(--app-maroon); background: var(--app-maroon); }
.poll-option-label { font-size: 12px; font-weight: 700; }
.poll-percentage { direction: ltr; color: var(--app-maroon); font-size: 11px; font-weight: 900; }
.poll-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; color: var(--app-muted); font-size: 10px; }
.poll-feedback { margin-top: 11px; padding: 9px; border-radius: 9px; color: #246b35; background: #edf8ef; font-size: 11px; font-weight: 700; }
.poll-empty { padding: 35px 18px; text-align: center; color: var(--app-muted); border: 1px dashed #d8cdca; border-radius: 16px; background: white; }
.poll-empty i { display: block; margin-bottom: 9px; font-size: 28px; color: #b8aaae; }

@media (max-width: 380px) {
    .attendee-gate-form { grid-template-columns: 1fr; }
    .conference-bottom-nav a { font-size: 9px; }
    .conference-bottom-nav a i { font-size: 16px; }
}

@keyframes appPulse { 50% { opacity: .4; transform: scale(.86); } }

@media (min-width: 700px) {
    .conference-app-main { padding-top: 26px; }
    .conference-app-header { padding-inline: calc((100% - 620px) / 2); }
    .conference-bottom-nav { left: 50%; right: auto; width: 620px; transform: translateX(-50%); border-inline: 1px solid #e4d9d7; border-radius: 18px 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .conference-app *, .conference-app *::before, .conference-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
