/* guest.css — Mobile First (375–430px) */

:root {
    --primary: #4361ee;
    --success: #2ec4b6;
    --warning: #ff9f1c;
    --danger: #e71d36;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --header-bg: #2b2d42;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font, 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif);
    background-color: var(--bg-primary, #09090B);
    color: var(--text-primary, #FAFAFA);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.guest-header {
    background-color: var(--header-bg);
    color: white;
    padding: 4px 0;
    z-index: 1000;
}

.guest-header a {
    font-size: 0.95rem;
}

/* Action buttons */
.btn-action {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-action:active {
    transform: scale(0.97);
}

.btn-action-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.btn-action-text {
    flex: 1;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* List group */
.list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 0.85rem 1rem;
}

.list-group-item:first-child {
    border-top: 0;
    border-radius: 12px 12px 0 0;
}

.list-group-item:last-child {
    border-bottom: 0;
    border-radius: 0 0 12px 12px;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.4em 0.7em;
    border-radius: 8px;
}

/* Forms */
.form-control-lg {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

/* QR code container */
#guestQr {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

#guestQr img {
    display: block;
}

/* QR Scanner modal */
#qr-reader {
    border: none !important;
}

#qr-reader video {
    border-radius: 0 !important;
}

/* Info content from WYSIWYG */
.info-content {
    line-height: 1.7;
}

.info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Input group */
.input-group .form-control {
    border-radius: 12px 0 0 12px;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    font-size: 1.3rem;
    padding: 0 1rem;
}

/* Scrollable */
.container {
    padding-left: 16px;
    padding-right: 16px;
}

/* Safe area for notch phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .guest-header {
        padding-top: env(safe-area-inset-top);
    }
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Telegram Mini App shell */
.tma-body {
    max-width: 100%;
}
.tma-root {
    padding: 24px 16px 32px;
}
.tma-panel .tma-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.tma-panel .tma-text {
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.tma-or {
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
    margin: 16px 0;
}

.pick-event-list .pick-event-card {
    width: 100%;
    text-align: left;
}

.bottom-nav .nav-item-disabled {
    opacity: 0.35;
    pointer-events: none;
}
