/**
 * OLAMI Master Manager — Event Styles
 * File: assets/css/events.css
 * Reduced in Phase 21 (v428) — checkin-admin + event-cards extracted
 *
 * Contains: Tickets, dashboard, boarding pass, structured options, event editor, events admin
 */

/* === Tickets & dashboard (preserved) (style.css lines 983-1219) === */
        /* --- 4. TICKETS & DASHBOARD (PRESERVED) --- */
        .olami-scroll-snap {
            position: relative;
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding: 20px 20px 40px 20px;
            scroll-snap-type: x mandatory;
            flex-wrap: nowrap;
            scrollbar-width: none;
        }

        .olami-scroll-snap::-webkit-scrollbar {
            display: none;
        }

        .od-wrapper {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            padding: 10px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
        }
        
        /* Announcement Row - Full width above grid */
        .od-announcement-row {
            width: 100%;
            margin-bottom: 20px;
        }
        
        .od-announcement-row .sec-ann-bar {
            margin: 0;
        }

        .od-ticket-section {
            margin-bottom: 25px;
            margin-top: 5px;
        }

        .od-scroll-container {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            padding: 10px 5px 30px 5px;
            scroll-snap-type: x mandatory;
            flex-wrap: nowrap;
            scrollbar-width: none;
        }

        .od-scroll-container::-webkit-scrollbar {
            display: none;
        }

        .od-top-section {
            display: grid;
            grid-template-columns: 1fr 1.2fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        .od-col {
            background: var(--surface);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-light);
            height: auto;
            display: flex;
            flex-direction: column;
        }

        .od-h3 {
            font-size: 13px;
            font-weight: 800;
            color: var(--text);
            margin: 0 0 15px 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .od-wallet-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
            color: #fcebb6;
            text-align: center;
            position: relative;
            overflow: hidden;
            border-bottom: 4px solid #b8860b;
            justify-content: center;
            align-items: center;
            padding: 30px 20px;
        }

        .od-wallet-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 15px;
        }

        .od-coin-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 10px;
        }

        .od-wallet-coins {
            font-size: 60px;
            font-weight: 800;
            color: var(--text-inverse);
            line-height: 1;
            text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
        }

        .od-coin-container {
            width: 70px;
            height: 70px;
            perspective: 1000px;
            cursor: pointer;
        }

        .od-coin-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            animation: spinCoin 5s infinite linear;
        }

        .od-wallet-card:hover .od-coin-inner {
            animation-play-state: paused;
        }

        @keyframes spinCoin {
            0% {
                transform: rotateY(0deg);
            }

            100% {
                transform: rotateY(360deg);
            }
        }

        .od-coin-front,
        .od-coin-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            background-color: transparent;
        }

        .od-coin-front {
            background-image: url('https://olamiherzliya.org/wp-content/uploads/2026/01/Adobe-Express-file-3.png');
        }

        .od-coin-back {
            background-image: url('https://olamiherzliya.org/wp-content/uploads/2026/01/Adobe-Express-file-1.png');
            transform: rotateY(180deg);
        }

        .od-stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .od-stat-chip {
            background: var(--surface-hover);
            border-radius: 4px;
            padding: 10px;
            text-align: center;
        }

        .od-stat-val {
            font-weight: 800;
            font-size: 16px;
            color: var(--text);
            display: block;
        }

        .od-stat-lbl {
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .od-activity-list {
            max-height: 220px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .od-activity-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--surface-hover);
            font-size: 13px;
        }

        .od-activity-row:last-child {
            border-bottom: none;
        }

        .olami-trip-wrapper {
            flex: 0 0 340px !important;
            width: 340px !important;
            max-width: 340px !important;
            scroll-snap-align: center;
            position: relative;
            margin-bottom: 25px;
        }

        .olami-ticket-wrapper {
            flex: 0 0 95%;
            max-width: 540px;
            min-width: 300px;
            scroll-snap-align: center;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        

/* === Cancel buttons, boarding pass, ticket layouts (style.css lines 1220-1662) === */
        /* Cancel button below interactive tickets */
        .olami-cancel-row {
            margin-top: 8px;
            padding: 10px 16px;
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            text-align: center;
        }
        .olami-cancel-row:hover {
            background: var(--danger-bg);
            border-color: var(--danger);
            color: var(--danger);
        }

        .obp-card {
            width: 100%;
            height: 500px;
            background: var(--surface);
            color: var(--text);
            border-radius: 16px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            overflow: hidden;
        }

        .obp-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .obp-card:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .obp-top {
            flex: 0 0 280px;
            background-size: cover;
            background-position: center;
            position: relative;
            padding: 25px;
            display: flex;
            flex-direction: column;
        }

        .obp-top::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.70);
            z-index: 0;
        }

        .obp-badge {
            position: absolute;
            top: 25px;
            right: 25px;
            z-index: 2;
            background: #F0F59F;
            color: var(--text);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 1px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .obp-title {
            margin-top: auto;
            position: relative;
            z-index: 2;
            color: var(--text-inverse);
            font-size: 28px;
            font-weight: 900;
            line-height: 0.95;
            letter-spacing: -1px;
            text-transform: uppercase;
            text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
        }

        .obp-input-stack {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 30px;
        }

        .obp-ghost-input {
            width: 100%;
            box-sizing: border-box;
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid #F3E5AB;
            border-radius: 10px;
            padding: 12px 15px;
            color: var(--text-inverse) !important;
            font-weight: 600;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }

        .obp-ghost-input:focus {
            background: rgba(0, 0, 0, 0.8);
            border-color: #FFF8E7;
        }

        .obp-ghost-input::placeholder {
            color: var(--text-inverse) !important;
            opacity: 1;
            text-transform: uppercase;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .obp-content {
            flex-grow: 1;
            padding: 12px;
            display: flex;
            flex-direction: column;
            position: relative;
            background: var(--surface);
            justify-content: space-between;
        }

        .obp-content::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 10px;
            right: 10px;
            border-top: 2px dashed rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .obp-meta-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }

        .obp-label {
            font-size: 9px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 3px;
            display: block;
        }

        .obp-val {
            font-size: 14px;
            font-weight: 800;
            color: var(--text);
        }

        /* TARGET PARENT + CHILD TO BEAT THEME */
        .obp-card .obp-input-stack input.obp-clean-input,
        .obp-card .obp-grid-2 select.obp-clean-select,
        .obp-card input.obp-clean-input {
            background-color: rgba(0, 0, 0, 0.5) !important;
            /* Transparent Black */
            color: var(--text-inverse) !important;
            /* White Text */
            border: 1px solid rgba(255, 255, 255, 0.5) !important;
            border-radius: 6px !important;
            padding: 10px !important;
            box-shadow: none !important;
            /* Kill theme shadows */
            height: auto !important;
            /* Fix theme height locks */
        }

        /* Fix Placeholder Text */
        .obp-card input.obp-clean-input::placeholder {
            color: rgba(255, 255, 255, 0.7) !important;
            opacity: 1 !important;
        }

        /* Fix Dropdown Arrow & Background */
        .obp-card select.obp-clean-select {
            background-color: rgba(0, 0, 0, 0.5) !important;
            color: var(--text-inverse) !important;
            background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24"><path fill="%23ffffff" d="M7 10l5 5 5-5z"/></svg>') !important;
            background-repeat: no-repeat !important;
            background-position: right 10px center !important;
            border: 1px solid rgba(255, 255, 255, 0.5) !important;
        }

        .obp-clean-select {
            -webkit-appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24"><path fill="%23333" d="M7 10l5 5 5-5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 10px center;
            padding-right: 25px;
        }

        .obp-grid-2 {
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 10px;
            margin-top: 10px;
        }

        .obp-btn {
            width: 100%;
            padding: 15px;
            border-radius: 10px;
            border: none;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 13px;
            cursor: pointer;
            letter-spacing: 1px;
            text-align: center;
            text-decoration: none;
            display: block;
            margin-top: auto;
        }

        .btn-action {
            background: var(--text);
            color: var(--text-inverse);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            transition: transform 0.1s;
        }

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

        .btn-booked {
            background: var(--success-bg);
            color: var(--success-text);
            border: 1px solid var(--success-bg);
            cursor: default;
        }

        .btn-pending {
            background: var(--warning-bg);
            color: var(--warning-text);
            border: 1px solid var(--warning-bg);
            cursor: default;
        }

        .btn-login {
            background: var(--text);
            color: var(--text-inverse);
        }

        .obp-success {
            display: none;
            text-align: center;
            padding: 10px 0;
        }

        .obp-success h4 {
            margin-bottom: 2px;
            line-height: 1.6;
        }

        .obp-card.is-ripped .obp-success {
            display: block;
            animation: fadeIn 0.5s;
        }

        .obp-card.is-past::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(30, 30, 30, 0.75);
            z-index: 99;
            pointer-events: all;
        }

        .obp-card.is-past::after {
            content: 'TRIP ENDED';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-12deg);
            z-index: 100;
            color: var(--border-hover);
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            border: 4px double var(--border-hover);
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 22px;
            white-space: nowrap;
        }

        .olami-ticket {
            width: 100%;
            height: 220px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            position: relative;
            border-radius: 12px;
            transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
            margin-bottom: 20px;
            background: var(--surface);
        }

        @media (max-width: 600px) {
            .olami-ticket {
                height: 230px !important;
            }
        }

        .olami-ticket:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
        }

        .olami-ticket:active {
            transform: scale(0.98) translateY(0);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .olami-ticket-inner {
            display: flex;
            width: 100%;
            height: 100%;
            border-radius: 12px;
            overflow: hidden;
            transform: translateZ(0);
        }

        .olami-ticket-info.has-bg-img {
            background-size: cover !important;
            background-position: center !important;
        }

        .olami-ticket-info.has-bg-img::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
            z-index: 1;
            grid-area: 1 / 1;
        }

        .olami-ticket-info.has-bg-img .ot-title {
            color: var(--text-inverse);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        }

        .olami-ticket-info.has-bg-img .ot-date {
            color: rgba(255, 255, 255, 0.9);
        }

        .olami-ticket-info.has-bg-img .ot-desc {
            color: var(--text-inverse);
        }

        .olami-ticket-info.has-bg-img .ot-options-container strong {
            color: rgba(255, 255, 255, 0.8) !important;
        }

        .olami-ticket-info.has-bg-img .ot-extra-label {
            color: rgba(255, 255, 255, 0.8) !important;
        }

        .olami-ticket-info.has-bg-img .ot-success-title {
            color: var(--text-inverse) !important;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        }

        .olami-ticket-info.has-bg-img .ot-success-msg,
        .obp-success span {
            line-height: 1.2;
            margin-top: 0;
            display: block;
        }

        .olami-ticket-info.has-gradient-bg {
            mask-image: radial-gradient(circle at right center, transparent 10px, black 10.5px);
            -webkit-mask-image: radial-gradient(circle at right center, transparent 10px, black 10.5px);
        }

        .olami-ticket-info {
            flex: 1;
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: 1fr;
            position: relative;
            /* UPDATED: Moves content 2px down and 3px right */
            padding: 16px 14px 14px 12px !important;
            border-right: 2px dashed var(--border);
            background: var(--surface);
            z-index: 2;
        }

        .ot-title {
            font-size: 18px;
            font-weight: 800;
            margin: 0;
            color: var(--text);
            line-height: 1.1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ot-date {
            color: var(--text-muted);
            font-size: 11px;
            margin-top: 3px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .ot-desc {
            margin: 8px 0;
            font-size: 12px;
            line-height: 1.3;
            color: var(--text-secondary);
            flex-grow: 1;
            overflow-y: auto;
            scrollbar-width: none;
        }


/* === Compact ticket layout, mobile responsive (style.css lines 1663-2136) === */
        /* NEW: Compact Left-aligned Ticket Layout */
        .ot-content-main {
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            z-index: 5;
            gap: 2px;
        }

        /* Vertically Centered Content - Matches Backend Preview */
        .ot-content-centered {
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            z-index: 5;
        }

        .ot-date-line {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            opacity: 0.9;
            margin-bottom: 3px;
        }

        .ot-title-main {
            font-size: 28px;
            font-weight: 900;
            margin: 0;
            line-height: 1.0;
            text-transform: uppercase;
            letter-spacing: -0.5px;
        }

        .ot-location-line {
            font-size: 13px;
            font-weight: 500;
            opacity: 0.9;
            margin-top: 6px;
        }

        .ot-desc-line {
            font-size: 14px;
            margin-top: 10px;
            opacity: 0.85;
            line-height: 1.4;
        }

        /* Options Section - Tight Layout */
        .ot-options-section {
            margin-top: 50px !important;
            position: relative;
            z-index: 5;
            line-height: 1 !important;
        }

        .ot-q-text {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            opacity: 0.8;
            margin-bottom: 6px;
        }

        .ot-pills-row {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: wrap !important;
            justify-content: flex-start !important;
            gap: 2px !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .ot-pill {
            display: flex !important;
            align-items: center !important;
            cursor: pointer !important;
            margin: 0 !important;
            padding: 0 !important;
            width: auto !important;
            flex: 0 0 auto !important;
            border: none !important;
            background: none !important;
        }

        .ot-pill input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .ot-pill span {
            display: inline-block !important;
            padding: 4px 10px !important;
            margin: 0 !important;
            font-size: 13px !important;
            font-weight: 600;
            background: rgba(0, 0, 0, 0.25) !important;
            border: none;
            border-radius: 25px;
            color: var(--text-inverse);
            transition: all 0.15s ease;
            line-height: normal !important;
        }

        .ot-pill:hover span {
            background: rgba(0, 0, 0, 0.35);
        }

        .ot-pill input:checked+span {
            background: rgba(255, 255, 255, 0.95);
            color: var(--text);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .ot-text-input {
            width: 100%;
            padding: 10px 16px;
            border-radius: 25px;
            border: none;
            background: rgba(0, 0, 0, 0.25);
            font-size: 13px;
            margin-top: 8px;
            color: var(--text-inverse);
            outline: none;
            transition: all 0.15s;
        }

        .ot-text-input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .ot-text-input:focus {
            background: rgba(0, 0, 0, 0.35);
        }

        /* OLD STYLES - Keep for backwards compatibility */
        .ot-date-top {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            opacity: 0.9;
            margin-bottom: 2px;
        }

        .ot-title-big {
            font-size: 26px;
            font-weight: 900;
            margin: 0;
            line-height: 1.05;
            text-transform: uppercase;
            letter-spacing: -0.5px;
        }

        .ot-location {
            font-size: 11px;
            font-weight: 600;
            opacity: 0.85;
            margin-top: 4px;
            letter-spacing: 0.2px;
        }

        .ot-desc-subtle {
            font-size: 13px;
            margin-top: 8px;
            opacity: 0.8;
            line-height: 1.3;
        }

        /* Clean Pill-Style Options */
        .ot-options-bottom {
            margin-top: 10px;
            position: relative;
            z-index: 5;
        }

        .ot-q-label {
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.7;
            margin-bottom: 5px;
        }

        .ot-options-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .ot-pill-label {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .ot-pill-label input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .ot-pill-label span {
            display: inline-block;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 20px;
            color: var(--text-inverse);
            transition: all 0.2s ease;
        }

        .ot-pill-label:hover span {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        .ot-pill-label input:checked+span {
            background: rgba(255, 255, 255, 0.95);
            color: var(--text);
            border-color: transparent;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        /* Mobile responsive tickets */
        @media (max-width: 480px) {
            .ot-title-main {
                font-size: 22px;
            }

            .ot-title-big {
                font-size: 20px;
            }

            .ot-date-line,
            .ot-date-top {
                font-size: 9px;
            }

            .ot-location-line,
            .ot-location {
                font-size: 11px;
            }

            .ot-desc-line,
            .ot-desc-subtle {
                font-size: 12px;
            }

            .ot-pill span,
            .ot-pill-label span {
                padding: 6px 14px;
                font-size: 11px;
            }
        }

        /* Reward badge green variant */
        .ot-reward-badge {
            color: var(--success) !important;
            box-shadow: 0 0 15px rgba(70, 180, 80, 0.5), inset 0 0 10px rgba(70, 180, 80, 0.2) !important;
            border-color: rgba(70, 180, 80, 0.5) !important;
        }

        .ot-options-container strong {
            color: var(--text-muted);
            font-size: 9px;
            text-transform: uppercase;
            display: block;
            margin-bottom: 1px;
        }

        .ot-extra-label {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-muted);
            display: block;
            margin-top: 8px;
        }

        .ot-custom-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            pointer-events: none;
        }

        .ot-state-initial {
            grid-area: 1 / 1;
            display: flex;
            flex-direction: column;
            z-index: 10;
            clip-path: inset(0 0 0 0);
            transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
            position: relative;
        }

        .ot-state-success {
            grid-area: 1 / 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            z-index: 5;
            clip-path: inset(0 0 0 100%);
            transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
            position: relative;
        }

        .olami-ticket.is-ripped .ot-state-initial {
            clip-path: inset(0 100% 0 0);
        }

        .olami-ticket.is-ripped .ot-state-success {
            clip-path: inset(0 0 0 0);
            z-index: 20;
        }

        .ot-success-title {
            font-size: 24px;
            font-weight: 800;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0 0 6px 0;
        }

        .ot-success-msg {
            font-size: 15px;
            color: var(--border);
            font-weight: 500;
            max-width: 90%;
            line-height: 1.3;
            margin: 0;
        }

        .olami-ticket-stub {
            width: 55px;
            flex: 0 0 55px;
            background: var(--primary);
            color: var(--text-inverse);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 100;
            transition: transform 0.2s ease, background 0.2s;
            mask-image: radial-gradient(circle at left center, transparent 10px, black 10.5px);
            -webkit-mask-image: radial-gradient(circle at left center, transparent 10px, black 10.5px);
        }

        .olami-ticket-stub:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
        }

        .olami-ticket-stub:active {
            transform: scale(0.95);
        }

        .olami-stub-text {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-size: 14px;
        }

        .ot-options-container {
            margin-top: auto;
            width: 100%;
        }

        .ot-options-list {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 4px;
        }

        .ot-opt-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.9);
            padding: 4px 10px;
            border-radius: 50px;
            color: var(--text-secondary);
            border: 1px solid transparent;
            box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
            transition: all 0.1s ease;
        }

        .ot-opt-label:hover {
            background: var(--surface);
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .ot-opt-label:active {
            transform: scale(0.95);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .ot-opt-label input {
            margin-right: 5px;
            transform: scale(1);
            margin-top: -1px;
            accent-color: var(--primary);
        }

        .ot-extra-input {
            width: 100%;
            padding: 8px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-size: 12px;
            margin-top: 6px;
            color: var(--text-inverse);
            outline: none;
            transition: all 0.2s;
        }

        .ot-extra-input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .ot-extra-input:focus {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .olami-ticket.is-ripped:not(.is-pending) .olami-ticket-stub {
            transition: transform 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0.8s ease-in;
            transform: translate(80px, -400px) rotate(25deg);
            opacity: 0;
            pointer-events: none;
        }

        .olami-ticket.is-ripped .olami-ticket-inner {
            overflow: visible;
        }

        .olami-ticket.is-pending .olami-ticket-stub {
            background: #b8860b;
            cursor: default;
        }

        .olami-ticket.is-pending .ot-success-title {
            color: #b8860b;
        }


/* === Static ticket container (style.css lines 2137-2281) === */
        /* Static Ticket Container (holds ticket + cancel button) */
        .ot-pass-container {
            flex: 0 0 auto;
            width: 300px;
            display: flex;
            flex-direction: column;
            scroll-snap-align: start;
            min-height: 140px; /* Consistent height for all tickets */
        }

        .ot-pass-wrapper {
            display: flex;
            background: var(--surface);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border-light);
            position: relative;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            flex: 1; /* Fill available space */
            min-height: 100px;
        }
        
        /* Cancel button for static tickets */
        .ot-cancel-btn {
            margin-top: 8px;
            padding: 8px 12px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .ot-cancel-btn:hover {
            background: var(--danger-bg);
            border-color: var(--danger);
            color: var(--danger);
        }
        /* Placeholder to maintain consistent height */
        .ot-cancel-placeholder {
            margin-top: 8px;
            height: 34px; /* Same as cancel button */
        }

        .ot-pass-main {
            flex: 1;
            padding: 15px;
            border-right: 2px dashed var(--border);
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            opacity: 1;
        }

        .ot-pass-main::after {
            content: '';
            position: absolute;
            right: -6px;
            bottom: -6px;
            width: 12px;
            height: 12px;
            background: var(--surface-hover);
            border-radius: 50%;
            box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
        }

        .ot-pass-main::before {
            content: '';
            position: absolute;
            right: -6px;
            top: -6px;
            width: 12px;
            height: 12px;
            background: var(--surface-hover);
            border-radius: 50%;
            box-shadow: inset 2px -2px 5px rgba(0, 0, 0, 0.05);
        }

        .ot-pass-stub {
            width: 50px;
            background: var(--primary);
            color: var(--text-inverse);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ot-stub-text {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            transform: rotate(180deg);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .ot-date-badge {
            display: inline-block;
            background: var(--border-light);
            color: var(--text-secondary);
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 4px;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .ot-h4 {
            font-size: 16px;
            font-weight: 800;
            color: var(--text);
            line-height: 1.2;
            margin: 0 0 5px 0;
            text-transform: uppercase;
        }

        .ot-meta {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            margin-top: 3px;
            font-weight: 500;
        }

        .ot-meta span {
            margin-right: 5px;
            font-size: 14px;
        }

        .ot-pending-msg {
            font-size: 10px;
            color: #b8860b;
            font-weight: 800;
            text-transform: uppercase;
            margin-top: 5px;
        }


/* === Interactive ticket cancel buttons (style.css lines 2282-2603) === */
        /* Cancel button for interactive tickets - kept simple */
        .olami-cancel-row {
            margin-top: 8px;
            padding: 10px 16px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .olami-cancel-row:hover {
            background: var(--danger-bg);
            border-color: var(--danger);
            color: var(--danger);
        }

        #olami-install-banner {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 999999;
            animation: slideUp 0.5s ease-out forwards;
        }

        @media all and (display-mode: standalone) {
            #olami-install-banner {
                display: none !important;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(100px);
                opacity: 0;
            }

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

        .oib-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .oib-logo {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            margin-right: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .oib-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            margin: 0;
            line-height: 1.2;
        }

        .oib-desc {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 3px;
        }

        .oib-instructions {
            font-size: 14px;
            color: var(--text);
            background: var(--bg);
            padding: 12px;
            border-radius: 8px;
            line-height: 1.4;
        }

        .oib-icon {
            display: inline-block;
            vertical-align: middle;
            font-size: 18px;
            margin: 0 2px;
            color: var(--info);
        }

        .oib-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }

        .oib-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            border: none;
            cursor: pointer;
        }

        .oib-btn-close {
            background: var(--border-light);
            color: var(--text-muted);
        }

        .op-card {
            background: var(--surface);
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-light);
            max-width: 550px;
            margin: 0 auto;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            position: relative;
        }

        .op-back-link {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 15px;
            transition: all 0.2s;
        }

        .op-back-link:hover {
            color: #b8860b;
            transform: translateX(-3px);
        }

        .op-back-icon {
            margin-right: 5px;
            font-size: 13px;
        }

        .op-header {
            text-align: center;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--surface-hover);
            padding-bottom: 20px;
        }

        .op-avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--surface);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            margin-bottom: 10px;
        }

        .op-title {
            font-size: 22px;
            font-weight: 800;
            color: var(--text);
            margin: 0;
            line-height: 1.1;
        }

        .op-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }

        .op-section-title {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #b8860b;
            margin: 18px 0 12px 0;
        }

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

        .op-form-group {
            margin-bottom: 0;
            text-align: left;
        }

        .op-label {
            font-size: 10px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            display: block;
            margin-bottom: 4px;
        }

        .op-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-light);
            border-radius: 5px;
            font-size: 13px;
            color: var(--text);
            background: var(--surface-hover);
            box-sizing: border-box;
            transition: all 0.2s;
            height: 38px;
        }

        .op-input:focus {
            background: var(--surface);
            border-color: #b8860b;
            outline: none;
            box-shadow: 0 2px 5px rgba(184, 134, 11, 0.1);
        }

        .op-input[readonly] {
            background: transparent;
            border-color: transparent;
            padding-left: 0;
            color: var(--text-secondary);
            font-weight: 600;
            cursor: default;
        }

        .op-input-group {
            position: relative;
        }

        .op-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.4;
            font-size: 15px;
        }

        .op-card.is-editing .op-has-icon {
            padding-left: 32px;
        }

        .op-card:not(.is-editing) .op-icon {
            display: none;
        }

        .op-actions {
            margin-top: 25px;
            text-align: center;
            border-top: 1px solid var(--surface-hover);
            padding-top: 20px;
        }

        .op-btn {
            padding: 10px 25px;
            border-radius: 50px;
            border: none;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s;
            text-decoration: none;
            display: inline-block;
        }

        .op-btn-save {
            background: var(--text);
            color: var(--text-inverse);
            display: none;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .op-btn-edit {
            background: var(--surface-hover);
            color: var(--text);
        }

        .op-btn:hover {
            transform: translateY(-2px);
        }

        .op-card.is-editing .op-input {
            background: var(--surface);
            border-color: var(--border);
        }

        .op-card.is-editing .op-input[readonly] {
            background: var(--surface-hover);
            border-color: var(--border-light);
            color: var(--text-muted);
        }

        .op-card.is-editing .op-btn-save {
            display: inline-block;
        }

        .op-card.is-editing .op-btn-edit {
            display: none;
        }


/* === Collapsible group headers (style.css lines 2604-2643) === */
        /* COLLAPSIBLE GROUP HEADERS */
        .oc-group-header {
            padding: 12px 15px;
            background: var(--surface-hover);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border-light);
            margin-top: 10px;
            cursor: pointer;
            /* Shows it's clickable */
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
            transition: background 0.2s;
        }

        .oc-group-header:hover {
            background: var(--border-light);
            color: var(--text);
        }

        /* THE ARROW ANIMATION */
        .oc-arrow {
            font-size: 10px;
            transition: transform 0.2s ease;
        }

        .oc-group-header.collapsed .oc-arrow {
            transform: rotate(-90deg);
            /* Rotates when closed */
        }

        .oc-group-header.collapsed {
            border-bottom: 1px solid transparent;
            /* Cleaner look when closed */
        }


/* === Dark boarding pass fields (style.css lines 5502-5574) === */
        /* =================================================================
   NEW: SLICK DARK BOARDING PASS FIELDS
   ================================================================= */

        /* 1. Base Style: Dark, Glassy, White Text */
        .obp-clean-input,
        .obp-clean-select {
            appearance: none !important;
            -webkit-appearance: none !important;
            background: rgba(0, 0, 0, 0.25) !important;
            /* Dark Glass */
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            /* Subtle border */
            border-radius: 8px !important;
            padding: 10px 12px !important;
            font-size: 14px !important;
            color: var(--text-inverse) !important;
            /* White Text */
            width: 100% !important;
            box-shadow: none !important;
            outline: none !important;
            min-height: 42px !important;
            margin-top: 5px !important;
            backdrop-filter: blur(4px);
            /* Blur effect */
            -webkit-backdrop-filter: blur(4px);
            transition: all 0.2s ease;
        }

        /* 2. Placeholder Text (Lighter White) */
        .obp-clean-input::placeholder {
            color: rgba(255, 255, 255, 0.6) !important;
            font-weight: 500;
        }

        /* 3. Focus State (Glow) */
        .obp-clean-input:focus,
        .obp-clean-select:focus {
            background: rgba(0, 0, 0, 0.4) !important;
            border-color: var(--text-inverse) !important;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
        }

        /* 4. White Dropdown Arrow */
        .obp-clean-select {
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
            background-repeat: no-repeat !important;
            background-position: right 12px center !important;
            background-size: 16px !important;
            padding-right: 35px !important;
        }

        /* 5. Fix Dropdown Options (Must be dark solid color to be readable) */
        .obp-clean-select option {
            background-color: var(--text) !important;
            color: var(--text-inverse) !important;
        }

        /* Custom Greeting Styles */
        .olami-greeting {
            font-weight: 600 !important;
            /* Makes it less bold (was 700) */
            font-size: 14px !important;
            /* Makes it smaller */
            letter-spacing: -0.1px;
            /* Tighter character spacing */
            line-height: 1.0;
            /* Tighter line spacing */
            color: var(--text);
            /* Optional: Dark Grey instead of black */
            display: inline-block;
        }


/* === Olami Live Pulse (style.css lines 5633-5818) === */
        /* =================================================================
   OLAMI LIVE PULSE (Refined Layout)
   ================================================================= */
        .integrated-feed {
            margin: 0 !important;
            max-width: 100% !important;
            border-radius: 12px;
            box-shadow: none !important;
            border: 1px solid var(--border);
        }

        .olami-feed-app-shell {
            background: var(--surface);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .ofa-header {
            padding: 15px 20px;
            background: var(--bg);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ofa-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
        }

        .ofa-refresh {
            cursor: pointer;
            font-size: 18px;
            color: var(--secondary);
            margin-left: 10px;
        }

        .olami-feed-wrapper {
            padding: 0;
            background: var(--surface);
        }

        .ofa-date-group {
            padding: 10px 20px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: var(--bg);
            border-bottom: 1px solid var(--border-light);
        }

        /* WIDER CARD + RIGHT ALIGNED BUTTONS */
        .ofa-item {
            display: flex;
            align-items: center;
            /* Center vertically */
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-light);
            transition: background 0.2s;
        }

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

        .ofa-icon-wrapper {
            position: relative;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .ofa-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
        }

        .ofa-type-badge {
            position: absolute;
            bottom: -2px;
            right: -4px;
            width: 20px;
            height: 20px;
            background: var(--surface);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .ofa-content {
            flex-grow: 1;
            min-width: 0;
        }

        .ofa-top-line {
            font-size: 14px;
            margin-bottom: 2px;
        }

        .ofa-name {
            font-weight: 600;
            color: var(--text);
        }

        .ofa-time {
            font-size: 11px;
            color: var(--text-secondary);
            margin-left: 8px;
        }

        .ofa-meta {
            font-size: 13px;
            color: var(--text);
            display: block;
            font-weight: 500;
        }

        .ofa-details {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* OVERRIDE THEME BUTTONS (Fixes Black Buttons) */
        .ofa-actions-inline {
            margin-left: 15px;
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        button.ofa-btn {
            appearance: none;
            -webkit-appearance: none;
            padding: 0;
            width: 34px;
            height: 34px;
            border-radius: 50% !important;
            /* Circle */
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s !important;
            line-height: 1;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        button.ofa-btn-approve {
            background-color: var(--success) !important;
            color: var(--text-inverse) !important;
        }

        button.ofa-btn-reject {
            background-color: var(--danger) !important;
            color: var(--text-inverse) !important;
        }

        button.ofa-btn:hover {
            transform: scale(1.1);
            opacity: 0.9;
        }

        .ofa-birthday-strip div::-webkit-scrollbar {
            display: none;
            /* Hide scrollbar for a clean mobile look */
        }

        .ofa-birthday-strip div {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }


/* === Paid events & ticket badges (style.css lines 11392-11523) === */
        /* =================================================================
   PAID EVENTS & TICKET BADGES
   ================================================================= */

        /* 1. Boarding Pass Badge (Top Right) */
        .olami-price-badge {
            position: absolute;
            top: 20px;
            left: 20px;
            /* Moved to left as per user preference/image hint */
            right: auto;
            background: rgba(0, 0, 0, 0.6);
            /* Semi-transparent background for contrast */
            backdrop-filter: blur(5px);
            color: #FFD700;
            padding: 8px 16px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 800;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.2);
            z-index: 20;
            border: 1px solid rgba(255, 215, 0, 0.5);
            animation: super-glow 2s infinite alternate;
        }

        .opb-amount {
            font-size: 18px;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
        }

        @keyframes super-glow {
            from {
                box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
                transform: scale(1);
            }

            to {
                box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
                transform: scale(1.05);
            }
        }

        /* 2. Feed Ticket Badge (Top Right of Card) */
        .olami-price-badge-fed {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            color: #FFD700;
            padding: 6px 12px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 800;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.2);
            z-index: 10;
            border: 1px solid rgba(255, 215, 0, 0.5);
            animation: super-glow 2s infinite alternate;
        }

        .olami-price-badge {
            font-weight: 700;
            font-size: 12px;
            color: var(--danger);
            /* Red cost */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border-light);
            animation: badge-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Shine Animation */
        .olami-price-badge::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
            transform: skewX(-25deg);
            animation: shine-sweep 3s infinite;
        }

        @keyframes shine-sweep {
            0% {
                left: -100%;
            }

            20% {
                left: 200%;
            }

            100% {
                left: 200%;
            }
        }

        @keyframes gold-pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
            }
        }

        /* 3. Earn Button (Gold) */
        .obp-btn.btn-earn {
            background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
            border: 1px solid var(--dark-surface-hover);
            color: #FFD700;
            /* Gold text */
            font-weight: 800;
        }

        .obp-btn.btn-earn:hover {
            background: var(--text);
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
        }


/* === Mobile tweaks (hardening) (style.css lines 11524-11646) === */
        /* =================================================================
   MOBILE TWEAKS (HARDENING)
   ================================================================= */
        @media (max-width: 480px) {

            /* Prevent badge overlap */
            .ot-title,
            .obp-title {
                padding-right: 80px !important;
                white-space: normal !important;
                overflow: visible !important;
                height: auto !important;
            }

            /* Shrink Earn Button text if long */
            .obp-btn.btn-earn {
                font-size: 11px !important;
                padding: 10px 5px !important;
            }
        }

        /* Quantity Stepper Buttons - Refined */
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: center;
            margin: 20px 0;
        }

        .qty-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--text);
            /* Soft black */
            color: var(--text-inverse);
            border: none;
            font-size: 20px;
            font-weight: 400;
            line-height: 1;
            /* Critical for vertical centering */
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, transform 0.1s;
            padding: 0 0 2px 0;
            /* Slight visual adjustment */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .qty-btn:active {
            transform: scale(0.95);
            background: var(--text);
        }

        #raffle-qty-input {
            width: 70px;
            height: 50px;
            text-align: center;
            font-size: 24px;
            font-weight: 700;
            border: 1px solid var(--border);
            /* Standard Apple-esque gray */
            border-radius: 12px;
            padding: 0;
            background: var(--surface);
            color: var(--text);
            -moz-appearance: textfield;
            /* Remove spinner on FF */
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        #raffle-qty-input:focus {
            border-color: var(--info);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
        }

        /* Remove spinner on Webkit */
        #raffle-qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* RSVP Family Pill Fix */
        .ot-pill {
            cursor: pointer;
            position: relative;
        }

        .ot-pill input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .ot-pill span {
            display: inline-block;
            padding: 5px 12px !important;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: var(--text-inverse);
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .ot-pill:hover span {
            background: rgba(255, 255, 255, 0.25);
        }

        /* ACTIVE STATE: Bright White + Brand Color Text */
        .ot-pill input:checked+span {
            background: var(--surface) !important;
            color: var(--primary) !important;
            border-color: var(--surface) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: translateY(-1px);
        }

/* === Structured options builder (style.css lines 12465-12716) === */
/* =================================================================
   STRUCTURED OPTIONS BUILDER (Event Editor V2)
   ================================================================= */
.olami-options-builder {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    min-height: 50px;
}

.olami-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.olami-option-row:last-child {
    margin-bottom: 0;
}

.olami-option-row:hover {
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.olami-option-row.is-inactive {
    opacity: 0.5;
    background: var(--border-light);
}

.olami-option-row.is-full {
    border-left: 3px solid var(--danger);
}

.olami-option-row.is-dragging {
    opacity: 0.5;
    background: var(--border);
}

.opt-drag-handle {
    cursor: grab;
    font-size: 16px;
    color: var(--text-muted);
    padding: 0 4px;
    user-select: none;
}

.opt-drag-handle:active {
    cursor: grabbing;
}

.opt-fields {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
}

.opt-fields input[type="text"],
.opt-fields input[type="number"],
.opt-fields input[type="time"] {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
}

.opt-fields .opt-name {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
}

.opt-fields .opt-address {
    flex: 2;
    min-width: 120px;
}

.opt-fields .opt-time {
    width: 90px;
    font-size: 12px;
    padding: 6px 4px;
}

.opt-fields .opt-limit {
    width: 60px;
    text-align: center;
}

.opt-count {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--border-light);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 45px;
    text-align: center;
}

.olami-option-row.is-full .opt-count {
    background: var(--danger-bg);
    color: var(--danger);
    font-weight: 600;
}

.opt-waitlist {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 6px;
    background: var(--surface-hover);
    border-radius: 4px;
    white-space: nowrap;
}

.opt-waitlist input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin: 0;
}

/* Active Toggle Switch */
.opt-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

.opt-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.2s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.opt-toggle input:checked + .toggle-slider {
    background-color: var(--success);
}

.opt-toggle input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

.opt-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
}

.opt-remove:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.olami-add-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--border-light);
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.olami-add-option-btn:hover {
    background: var(--border);
    border-color: var(--text-muted);
    color: var(--text);
}

/* Mobile: Stack option fields */
@media screen and (max-width: 768px) {
    .olami-option-row {
        flex-wrap: wrap;
    }
    
    .opt-fields {
        width: 100%;
        order: 2;
    }
    
    .opt-fields .opt-name,
    .opt-fields .opt-address {
        flex: 1 1 100%;
        max-width: none;
    }
    
    .opt-fields .opt-time {
        width: 100px;
    }
    
    .opt-fields .opt-limit {
        width: 70px;
    }
    
    .opt-drag-handle {
        order: 1;
    }
    
    .opt-remove {
        order: 1;
        margin-left: auto;
    }
}


/* === Events command center toggle (style.css lines 12717-12799) === */
/* =================================================================
   EVENTS COMMAND CENTER: REGISTRATION TOGGLE
   ================================================================= */
.card-reg-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface-hover);
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.card-reg-toggle .reg-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.card-reg-toggle .reg-status {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-reg-toggle.is-open .reg-status {
    background: var(--success-bg);
    color: var(--success-text);
}

.card-reg-toggle.is-closed .reg-status {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Registration Toggle Switch */
.reg-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.reg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.reg-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--danger);
    transition: 0.3s;
    border-radius: 22px;
}

.reg-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.reg-switch input:checked + .reg-slider {
    background-color: var(--success);
}

.reg-switch input:checked + .reg-slider:before {
    transform: translateX(18px);
}


/* === Waitlist & limited spot pills (style.css lines 12800-12840) === */
/* =================================================================
   FRONTEND: WAITLIST & LIMITED SPOT PILLS
   ================================================================= */
.ot-pill.is-waitlist span {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
    border: 1px solid var(--warning) !important;
}

.ot-pill.is-waitlist span:after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--warning);
    border-radius: 50%;
    margin-left: 6px;
    animation: pulse 1.5s infinite;
}

.ot-pill.is-limited span {
    border: 1px solid var(--danger) !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Waitlist indicator in confirmation */
.ot-waitlist-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--warning-bg);
    color: var(--warning);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 6px;
}


/* Source: V310-trip-date-options-update.php line 216 (block 1/1) */
.om-trip-option:hover { background:rgba(255,255,255,0.1); border-color:var(--card-accent); }
                .om-trip-option:has(input:checked) { background:rgba(var(--card-accent-rgb, 212,175,55), 0.2); border-color:var(--card-accent); }

/* Source: includes/event-editor.php line 120 (block 1/1) */
#olami-editor-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
    #olami-editor-wrap * { box-sizing: border-box; }
    
    /* Split Screen Layout */
    .olami-editor-grid { display: grid; grid-template-columns: 1fr 380px; gap: 25px; }
    @media (max-width: 1200px) { .olami-editor-grid { grid-template-columns: 1fr; } }
    
    /* Event Type Selector */
    .olami-type-selector { display: flex; gap: 12px; margin-bottom: 20px; }
    .olami-type-btn { flex: 1; padding: 16px 12px; border: 2px solid var(--border-light); border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.3s; background: var(--surface); }
    .olami-type-btn:hover { border-color: var(--primary); background: var(--surface-hover); }
    .olami-type-btn.active { border-color: var(--primary); background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.02)); box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.13); }
    .olami-type-btn .icon { font-size: 24px; margin-bottom: 6px; display: block; }
    .olami-type-btn .label { font-weight: 600; font-size: 13px; color: var(--text); }
    .olami-type-btn .desc { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
    .olami-type-btn.active .label { color: var(--primary); }
    
    /* Collapsible Sections */
    .olami-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
    .olami-section-header { display: flex; align-items: center; padding: 12px 16px; cursor: pointer; background: var(--surface-hover); border-bottom: 1px solid var(--border); transition: background 0.2s; }
    .olami-section-header:hover { background: var(--border-light); }
    .olami-section-header .icon { font-size: 16px; margin-right: 10px; }
    .olami-section-header .title { font-weight: 600; font-size: 13px; color: var(--text); flex: 1; }
    .olami-section-header .toggle { font-size: 11px; color: var(--text-muted); transition: transform 0.3s; }
    .olami-section.collapsed .toggle { transform: rotate(-90deg); }
    .olami-section-body { padding: 16px; display: block; }
    .olami-section.collapsed .olami-section-body { display: none; }
    
    /* Form Fields */
    .olami-field { margin-bottom: 14px; }
    .olami-field:last-child { margin-bottom: 0; }
    .olami-field label { display: block; font-weight: 600; font-size: 12px; color: var(--text); margin-bottom: 5px; }
    .olami-field input[type="text"], .olami-field input[type="date"], .olami-field input[type="time"], .olami-field input[type="number"], .olami-field select, .olami-field textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; transition: border-color 0.2s, box-shadow 0.2s; }
    .olami-field input:focus, .olami-field select:focus, .olami-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.13); }
    .olami-field .helper { display: block; font-size: 10px; color: var(--text-secondary); margin-top: 4px; line-height: 1.3; }
    .olami-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 600px) { .olami-field-row { grid-template-columns: 1fr; } }
    
    /* Checkbox Field */
    .olami-checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: var(--surface-hover); border-radius: 6px; cursor: pointer; }
    .olami-checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }
    .olami-checkbox .check-label { font-weight: 600; font-size: 12px; color: var(--text); }
    .olami-checkbox .check-desc { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
    
    /* Preview Container */
    .olami-preview-container { background: linear-gradient(145deg, #1a1a2e, #16213e); border-radius: 12px; padding: 20px; min-height: 350px; position: sticky; top: 50px; }
    .olami-preview-title { color: var(--text-inverse); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; opacity: 0.7; text-align: center; }
    .olami-preview-placeholder { background: rgba(255,255,255,0.05); border: 2px dashed rgba(255,255,255,0.2); border-radius: 10px; padding: 50px 20px; text-align: center; }
    .olami-preview-placeholder .icon { font-size: 40px; margin-bottom: 12px; }
    .olami-preview-placeholder .text { color: rgba(255,255,255,0.6); font-size: 13px; }
    
    /* Hidden by default sections */
    .olami-trip-fields, .olami-program-fields { display: none; }
    .olami-editor-wrap[data-type="trip"] .olami-trip-fields { display: block; }
    .olami-editor-wrap[data-type="program"] .olami-program-fields { display: block; }
    
    /* Session mapper shows for programs AND recurring events */
    .olami-session-mapper { display: none; }
    .olami-editor-wrap[data-type="program"] .olami-session-mapper { display: block; }
    .olami-editor-wrap[data-recurring="weekly"] .olami-session-mapper { display: block; }

/* Source: includes/events-admin.php line 140 (block 1/1) */
.olami-events-wrap {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            max-width: 1200px;
            margin: 20px auto;
        }
        
        /* HEADER area */
        .olami-events-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 30px 0;
            gap: 20px;
        }
        
        .search-box {
            position: relative;
            flex-grow: 1;
            max-width: 400px;
        }
        .search-box input {
            width: 100%;
            padding: 12px 12px 12px 40px;
            border-radius: 12px;
            border: 1px solid var(--border);
            font-size: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            transition: all 0.2s;
        }
        .search-box input:focus {
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
            outline: none;
        }
        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.5;
            font-size: 16px;
        }
        
        .view-tabs {
            display: flex;
            background: var(--border-light);
            padding: 4px;
            border-radius: 10px;
        }
        .view-tab {
            border: none;
            background: none;
            padding: 6px 16px;
            border-radius: 7px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }
        .view-tab.active {
            background: var(--surface);
            color: var(--text);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        /* SECTIONS */
        .event-section {
            margin-bottom: 50px;
        }
        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }
        
        /* CARDS */
        .olami-event-card {
            background: var(--surface);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            transition: transform 0.2s, box-shadow 0.2s;
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
        }
        .olami-event-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.1);
        }
        
        /* Program card special styling */
        .olami-event-card.is-program-card {
            position: relative;
            border: 2px solid rgba(124, 58, 237, 0.15);
        }
        .olami-event-card.is-program-card:hover {
            border-color: rgba(124, 58, 237, 0.35);
            box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
        }
        
        .card-image {
            height: 140px;
            background-color: var(--bg);
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .card-badges {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
        }
        .status-badge {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            padding: 4px 8px;
            border-radius: 20px;
            background: rgba(255,255,255,0.9);
            color: var(--text);
            backdrop-filter: blur(4px);
        }
        .status-active { color: var(--success); }
        .status-draft { color: var(--warning); }
        .status-finished { color: var(--text-muted); }
        
        .card-body {
            padding: 16px;
            flex-grow: 1;
        }
        .card-title {
            margin: 0 0 8px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text);
            line-height: 1.3;
        }
        .card-date {
            font-size: 13px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .card-actions {
            padding: 12px 16px;
            background: var(--surface-hover);
            border-top: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .action-icon {
            color: var(--text-secondary);
            text-decoration: none;
            padding: 6px;
            border-radius: 6px;
            transition: background 0.2s;
        }
        .action-icon:hover { background: var(--border); }
        
        .shortcode-btn {
            font-size: 11px;
            background: var(--info-bg);
            color: var(--secondary);
            border: none;
            padding: 4px 10px;
            border-radius: 12px;
            cursor: pointer;
        }
        .shortcode-btn:hover { background: var(--info-bg); }
        
        /* Utilities */
        .events-tab-content { display: none; }
        .events-tab-content.active { display: block; }
        .empty-state {
            text-align: center;
            padding: 50px;
            background: var(--surface-hover);
            border-radius: 12px;
            color: var(--text-muted);
        }
        
        /* Mobile Optimization */
        @media screen and (max-width: 782px) {
            .olami-events-wrap {
                padding: 0 10px;
            }
            
            .olami-events-header {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
                margin: 20px 0;
            }
            
            .search-box {
                max-width: 100%;
            }
            
            .search-box input {
                font-size: 16px; /* Prevent zoom on iOS */
            }
            
            .view-tabs {
                width: 100%;
                justify-content: center;
            }
            .view-tab {
                flex: 1;
                text-align: center;
                padding: 8px 12px;
            }
            
            .events-grid {
                grid-template-columns: 1fr; /* Force single column on mobile */
                gap: 15px;
            }
            
            .olami-event-card {
                margin-bottom: 10px;
            }
            
            .card-image {
                height: 120px;
            }
            
            .card-body {
                padding: 14px;
            }
            
            .card-title {
                font-size: 15px;
            }
            
            .card-actions {
                padding: 10px 14px;
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .shortcode-btn {
                flex: 1;
                text-align: center;
            }
            
            .section-title {
                font-size: 16px;
            }
            
            .empty-state {
                padding: 35px 20px;
            }
        }
        
        @media screen and (max-width: 480px) {
            .olami-events-wrap {
                padding: 0 5px;
            }
            
            .view-tab {
                font-size: 12px;
                padding: 6px 10px;
            }
            
            .card-badges {
                top: 8px;
                right: 8px;
            }
            
            .status-badge {
                font-size: 9px;
                padding: 3px 6px;
            }
            
            .action-icon {
                padding: 8px;
            }
        }

