/* INFINITI EVENTS — interface styles carried over unchanged from EVENTO, plus fixes at the end. */
        :root {
            --bg-body: #080a0f;
            --panel-bg: rgba(18, 24, 38, 0.75);
            --panel-border: rgba(212, 175, 55, 0.2);
            --gold-primary: #d4af37;
            --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
            --gold-glow: rgba(212, 175, 55, 0.3);
            --text-main: #f8fafc;
            --text-sub: #94a3b8;
            --accent-green: #10b981;
            --accent-yellow: #f59e0b;
            --accent-red: #f43f5e;
            --accent-blue: #3b82f6;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Cairo', sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        body {
            background: radial-gradient(circle at top right, #1a1600, #080a0f 60%);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-body); }
        ::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 4px; }

        .glass-panel {
            background: var(--panel-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--panel-border);
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }

        /* Sidebar Right */
        .sidebar-right {
            width: 290px;
            margin: 15px 15px 15px 0;
            padding: 25px 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 35px;
        }

        .brand-logo i {
            font-size: 2.2rem;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 0 10px var(--gold-glow));
        }

        .brand-logo h1 {
            font-size: 1.5rem;
            font-weight: 900;
            letter-spacing: 2px;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .menu-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .menu-item a {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px 18px;
            color: var(--text-sub);
            text-decoration: none;
            border-radius: 14px;
            font-weight: 700;
            font-size: 0.9rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .menu-item.active a, .menu-item a:hover {
            background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
            color: #fff;
            border-right: 4px solid var(--gold-primary);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .menu-item i {
            font-size: 1.1rem;
            transition: 0.3s;
        }

        .menu-item.active i, .menu-item a:hover i {
            color: var(--gold-primary);
            transform: scale(1.1);
        }

        /* Modern Corporate Credits Styling */
        .corporate-credits {
            border: 1px solid rgba(212, 175, 55, 0.25);
            background: rgba(0, 0, 0, 0.35);
            border-radius: 14px;
            padding: 14px;
            text-align: center;
            margin-top: 20px;
            position: relative;
            overflow: hidden;
        }

        .corporate-credits::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 2px;
            background: var(--gold-gradient);
        }

        .credits-tag {
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 1.5px;
            color: var(--text-sub);
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .company-name {
            font-size: 0.85rem;
            font-weight: 900;
            letter-spacing: 1px;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 6px;
        }

        .eng-name {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .eng-phone {
            font-size: 0.8rem;
            color: var(--gold-primary);
            text-decoration: none;
            font-weight: 800;
            direction: ltr;
            display: inline-block;
            margin-top: 4px;
            letter-spacing: 1px;
            transition: 0.2s;
        }

        .eng-phone:hover {
            color: #fcf6ba;
            text-shadow: 0 0 8px var(--gold-glow);
        }

        /* Main Workspace Center */
        .workspace {
            flex: 1;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
        }

        .user-welcome h2 { font-size: 1.4rem; font-weight: 800; }
        .user-welcome p { color: var(--text-sub); font-size: 0.85rem; }

        .btn-gold-action {
            background: var(--gold-gradient);
            color: #000;
            border: none;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 800;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 0 20px var(--gold-glow);
            transition: all 0.3s ease;
        }

        .btn-gold-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
        }

        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .card-stat {
            padding: 18px;
            position: relative;
            overflow: hidden;
            transition: 0.3s;
        }

        .card-stat:hover {
            transform: translateY(-3px);
            border-color: rgba(212, 175, 55, 0.4);
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-value {
            font-size: 1.6rem;
            font-weight: 800;
            margin-bottom: 5px;
        }

        .stat-label { color: var(--text-sub); font-size: 0.8rem; }

        .table-wrapper { padding: 20px; }

        .luxury-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 8px;
            margin-top: 10px;
        }

        .luxury-table th {
            color: var(--text-sub);
            font-weight: 700;
            font-size: 0.8rem;
            padding: 10px 12px;
            text-align: right;
        }

        .luxury-table tbody tr {
            background: rgba(255, 255, 255, 0.02);
            transition: 0.3s;
        }

        .luxury-table tbody tr:hover { background: rgba(212, 175, 55, 0.05); }

        .luxury-table td {
            padding: 14px 12px;
            border-top: 1px solid rgba(255,255,255,0.05);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 0.85rem;
        }

        .luxury-table td:first-child {
            border-radius: 0 10px 10px 0;
            border-right: 1px solid rgba(255,255,255,0.05);
        }

        .luxury-table td:last-child {
            border-radius: 10px 0 0 10px;
            border-left: 1px solid rgba(255,255,255,0.05);
        }

        .pill {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .pill-gold { background: rgba(212, 175, 55, 0.15); color: #fcf6ba; border: 1px solid rgba(212, 175, 55, 0.3); }
        .pill-green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
        .pill-yellow { background: rgba(245, 158, 11, 0.15); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.3); }
        .pill-red { background: rgba(244, 63, 94, 0.15); color: #fca5a5; border: 1px solid rgba(244, 63, 94, 0.3); }

        .sidebar-left {
            width: 310px;
            margin: 15px 0 15px 15px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .mini-calendar-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .mini-calendar-title h4 { font-size: 0.95rem; font-weight: 800; color: var(--gold-primary); }

        .cal-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            text-align: center;
        }

        .cal-day-name {
            font-size: 0.7rem;
            color: var(--text-sub);
            font-weight: 700;
            padding-bottom: 5px;
        }

        .cal-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.2s;
            border: 1px solid transparent;
        }

        .day-free { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
        .day-free:hover { background: rgba(16, 185, 129, 0.3); }
        .day-deposit { background: rgba(245, 158, 11, 0.2); color: #fde047; border-color: rgba(245, 158, 11, 0.4); }
        .day-deposit:hover { background: rgba(245, 158, 11, 0.4); }
        .day-booked { background: rgba(244, 63, 94, 0.2); color: #fca5a5; border-color: rgba(244, 63, 94, 0.4); }
        .day-booked:hover { background: rgba(244, 63, 94, 0.4); }

        .cal-legend {
            display: flex;
            justify-content: space-between;
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.08);
            font-size: 0.7rem;
        }

        .legend-item { display: flex; align-items: center; gap: 4px; }
        .legend-dot { width: 8px; height: 8px; border-radius: 50%; }

        .hall-item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 12px;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
        }

        .modal {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.88);
            backdrop-filter: blur(12px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 999;
            overflow-y: auto;
            padding: 20px 0;
        }

        .modal-card {
            width: 820px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 30px;
            border: 1px solid var(--gold-primary);
            box-shadow: 0 0 50px var(--gold-glow);
        }

        .form-grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 15px;
        }

        .form-grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 15px;
        }

        .field label {
            display: block;
            font-size: 0.8rem;
            color: var(--text-sub);
            margin-bottom: 6px;
            font-weight: 700;
        }

        .field input, .field select, .field textarea {
            width: 100%;
            background: rgba(0,0,0,0.6);
            border: 1px solid rgba(212, 175, 55, 0.3);
            padding: 10px 12px;
            border-radius: 8px;
            color: #fff;
            outline: none;
        }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--gold-primary);
            box-shadow: 0 0 8px var(--gold-glow);
        }

        .modal-section-title {
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--gold-primary);
            margin-top: 20px;
            padding-bottom: 6px;
            border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 12px;
        }

        .checkbox-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            padding: 10px 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: 0.2s;
            user-select: none;
        }

        .checkbox-card:hover { border-color: var(--gold-primary); background: rgba(212, 175, 55, 0.05); }

        .checkbox-card input[type="checkbox"] {
            accent-color: var(--gold-primary);
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .checkbox-card span { font-size: 0.8rem; font-weight: 600; color: var(--text-main); }

        /* ============ EXTENSIONS ============ */

        .page { display: none; animation: fadeUp .35s ease; }
        .page.active { display: block; }

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

        .section-head {
            display: flex; justify-content: space-between; align-items: center;
            gap: 15px; margin-bottom: 15px; flex-wrap: wrap;
        }
        .section-head h3 { font-weight: 800; font-size: 1.05rem; }
        .section-head h3 i { color: var(--gold-primary); }
        .section-head .muted { color: var(--text-sub); font-size: .8rem; }

        .toolbar {
            display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
            margin-bottom: 16px;
        }
        .toolbar input, .toolbar select {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-main);
            padding: 9px 12px; border-radius: 10px;
            font-size: .82rem; font-family: 'Cairo', sans-serif;
            outline: none; transition: .2s;
        }
        .toolbar input:focus, .toolbar select:focus {
            border-color: var(--gold-primary);
            box-shadow: 0 0 0 3px rgba(212,175,55,.12);
        }
        .toolbar .search-box { position: relative; flex: 1; min-width: 190px; }
        .toolbar .search-box input { width: 100%; padding-right: 34px; }
        .toolbar .search-box i {
            position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
            color: var(--text-sub); font-size: .8rem; pointer-events: none;
        }

        .btn-ghost {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-main);
            padding: 9px 14px; border-radius: 10px;
            font-family: 'Cairo', sans-serif; font-size: .8rem; font-weight: 700;
            cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 7px;
        }
        .btn-ghost:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
        .btn-ghost.danger:hover { border-color: var(--accent-red); color: #fca5a5; }

        .btn-sm {
            background: transparent; border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-sub); width: 30px; height: 30px; border-radius: 8px;
            cursor: pointer; transition: .2s; font-size: .75rem;
        }
        .btn-sm:hover { color: var(--gold-primary); border-color: var(--gold-primary); }
        .btn-sm.danger:hover { color: #fca5a5; border-color: var(--accent-red); }
        .row-actions { display: flex; gap: 5px; justify-content: center; }

        .table-scroll { overflow-x: auto; }
        .table-scroll .luxury-table { min-width: 780px; }

        .empty-state {
            text-align: center; padding: 45px 20px; color: var(--text-sub);
        }
        .empty-state i { font-size: 2.2rem; color: rgba(212,175,55,.35); margin-bottom: 12px; display: block; }
        .empty-state h4 { font-size: .95rem; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
        .empty-state p { font-size: .82rem; margin-bottom: 16px; }

        /* Cards grid for packages / suppliers / inventory */
        .cards-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px;
        }
        .item-card { padding: 18px; transition: .25s; }
        .item-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.45); }
        .item-card .ic-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
        .item-card h4 { font-size: .95rem; font-weight: 800; }
        .item-card .ic-sub { color: var(--text-sub); font-size: .75rem; margin-top: 3px; }
        .item-card .ic-price {
            font-size: 1.3rem; font-weight: 900; margin: 10px 0;
            background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .item-card ul { list-style: none; margin: 10px 0; }
        .item-card ul li { font-size: .78rem; color: var(--text-sub); padding: 3px 0; }
        .item-card ul li i { color: var(--accent-green); font-size: .7rem; margin-left: 6px; }
        .item-card .ic-foot {
            display: flex; justify-content: space-between; align-items: center;
            border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; margin-top: 12px;
        }

        /* Progress bar (stock / occupancy) */
        .bar-track { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 8px 0; }
        .bar-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }

        /* Finance chart */
        .chart-wrap { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 10px 4px 0; overflow-x: auto; }
        .chart-col { flex: 1; min-width: 42px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
        .chart-bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; width: 100%; justify-content: center; }
        .chart-bar { width: 14px; border-radius: 5px 5px 0 0; transition: height .6s cubic-bezier(.22,1,.36,1); position: relative; }
        .chart-bar.income { background: var(--gold-gradient); }
        .chart-bar.expense { background: linear-gradient(180deg, #f43f5e, #881337); }
        .chart-label { font-size: .68rem; color: var(--text-sub); white-space: nowrap; }
        .chart-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: .75rem; color: var(--text-sub); }

        /* Timeline / payments list */
        .pay-row {
            display: flex; justify-content: space-between; align-items: center; gap: 10px;
            padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.06); margin-bottom: 8px;
        }
        .pay-row .pr-main { font-size: .82rem; font-weight: 700; }
        .pay-row .pr-sub { font-size: .7rem; color: var(--text-sub); margin-top: 2px; }
        .pay-row .pr-amt { font-weight: 800; color: var(--accent-green); font-size: .9rem; white-space: nowrap; }
        .pay-row .pr-amt.out { color: #fca5a5; }

        /* Detail sheet */
        .detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 14px 0; }
        .detail-item .dl { font-size: .7rem; color: var(--text-sub); margin-bottom: 4px; }
        .detail-item .dv { font-size: .88rem; font-weight: 700; }

        .tag-list { display: flex; flex-wrap: wrap; gap: 7px; }

        /* Calendar additions */
        .cal-day { position: relative; }
        .cal-day.is-today { outline: 2px solid var(--gold-primary); outline-offset: 1px; }
        .cal-day.is-empty { background: transparent; border-color: transparent; cursor: default; }
        .cal-day.is-past { opacity: .35; }
        .cal-nav-btn {
            background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
            color: var(--text-sub); width: 24px; height: 24px; border-radius: 7px;
            cursor: pointer; font-size: .7rem; transition: .2s;
        }
        .cal-nav-btn:hover { color: var(--gold-primary); border-color: var(--gold-primary); }

        /* Toast */
        #toastHost {
            position: fixed; bottom: 24px; left: 24px; z-index: 900;
            display: flex; flex-direction: column; gap: 10px;
        }
        .toast {
            background: rgba(18,24,38,.95); backdrop-filter: blur(14px);
            border: 1px solid var(--panel-border); border-radius: 14px;
            padding: 13px 18px; display: flex; align-items: center; gap: 11px;
            box-shadow: 0 18px 40px rgba(0,0,0,.55); font-size: .84rem; font-weight: 700;
            animation: toastIn .3s cubic-bezier(.22,1,.36,1);
            max-width: 340px;
        }
        .toast.ok i { color: var(--accent-green); }
        .toast.warn i { color: var(--accent-yellow); }
        .toast.err i { color: var(--accent-red); }
        .toast.err { border-color: rgba(244,63,94,.4); }
        @keyframes toastIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

        /* Modal sizing variants */
        .modal-card.narrow { max-width: 520px; }
        .modal-card.mid { max-width: 700px; }

        /* Mobile nav */
        .mobile-bar {
            display: none; position: fixed; top: 0; right: 0; left: 0; z-index: 700;
            padding: 10px 14px; align-items: center; justify-content: space-between;
            background: rgba(10,13,20,.92); backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--panel-border);
        }
        .mobile-bar .mb-brand { display: flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: 2px; }
        .mobile-bar .mb-brand i { color: var(--gold-primary); }
        .icon-btn {
            background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
            color: var(--text-main); width: 38px; height: 38px; border-radius: 11px;
            cursor: pointer; font-size: .95rem;
        }
        .scrim {
            display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6);
            backdrop-filter: blur(3px); z-index: 750;
        }
        .scrim.open { display: block; }

        /* ============ RESPONSIVE ============ */
        @media (max-width: 1400px) {
            .analytics-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 1180px) {
            .sidebar-left {
                position: fixed !important; top: 0; left: 0; bottom: 0; z-index: 800;
                transform: translateX(-105%); transition: transform .3s ease;
                border-radius: 0; margin: 0; height: 100vh; overflow-y: auto;
            }
            .sidebar-left.open { transform: none; }
        }

        @media (max-width: 900px) {
            body { display: block; padding-top: 60px; }
            .mobile-bar { display: flex; }
            .sidebar-right {
                position: fixed !important; top: 0; right: 0; bottom: 0; z-index: 800;
                transform: translateX(105%); transition: transform .3s ease;
                border-radius: 0; margin: 0; height: 100vh; overflow-y: auto;
            }
            .sidebar-right.open { transform: none; }
            .workspace { padding: 16px; width: 100%; }
            .top-bar { flex-direction: column; align-items: stretch; gap: 14px; }
            .top-bar .btn-gold-action { justify-content: center; }
            .analytics-grid { grid-template-columns: 1fr; }
            .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; }
            .modal-card { padding: 20px; max-height: 92vh; }
            .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
            #toastHost { left: 12px; right: 12px; bottom: 12px; }
            .toast { max-width: none; }
        }

        @media (max-width: 520px) {
            .checkbox-grid { grid-template-columns: 1fr; }
            .stat-value { font-size: 1.5rem; }
            .cards-grid { grid-template-columns: 1fr; }
        }

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

        :focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }

        /* ============ PRINT ============ */
        @media print {
            body { background: #fff; color: #000; display: block; }
            .sidebar-right, .sidebar-left, .mobile-bar, .toolbar, .btn-gold-action,
            .row-actions, #toastHost, .scrim, .modal { display: none !important; }
            .glass-panel { background: #fff; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
            .workspace { padding: 0; }
            .stat-value, .item-card .ic-price { -webkit-text-fill-color: #000 !important; background: none !important; color: #000 !important; }
            .luxury-table th, .luxury-table td { color: #000 !important; border-color: #ddd !important; }
            .pill { border: 1px solid #999 !important; color: #000 !important; background: none !important; }
        }

        /* ==========================================================
           LUXE LAYER — "Palace at Night"
           plum uplighting + engraved gold + calligraphic Arabic display
           ========================================================== */
        :root {
            --ink: #04060a;
            --plum: #170d22;
            --plum-glow: rgba(124, 58, 190, 0.16);
            --gold-deep: #7a5f18;
            --champagne: #e8d9a0;
            --hairline: rgba(212, 175, 55, 0.16);
            --display-ar: 'Aref Ruqaa', 'Cairo', serif;
            --display-lat: 'Marcellus', Georgia, serif;
        }

        body {
            background: var(--ink);
            position: relative;
        }
        .sidebar-right, .sidebar-left, .workspace, .mobile-bar { position: relative; z-index: 1; }
        .sidebar-right, .sidebar-left { z-index: 2; }

        /* Ambient uplighting — the wash of colour a hall throws on its walls */
        body::before {
            content: '';
            position: fixed; inset: -20%;
            z-index: 0; pointer-events: none;
            background:
                radial-gradient(circle at 78% -5%, rgba(212, 175, 55, 0.20), transparent 45%),
                radial-gradient(circle at 8% 12%, var(--plum-glow), transparent 42%),
                radial-gradient(circle at 92% 88%, rgba(212, 175, 55, 0.10), transparent 40%),
                radial-gradient(circle at 22% 96%, var(--plum-glow), transparent 45%);
            animation: drift 26s ease-in-out infinite alternate;
        }
        @keyframes drift {
            0%   { transform: translate3d(0, 0, 0) scale(1); }
            50%  { transform: translate3d(-2.5%, 2%, 0) scale(1.06); }
            100% { transform: translate3d(2%, -2.5%, 0) scale(1.02); }
        }

        /* Fine grain — keeps the large dark fields from banding */
        body::after {
            content: '';
            position: fixed; inset: 0;
            z-index: 0; pointer-events: none; opacity: .5;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
        }

        /* ---------- Display typography ---------- */
        .brand-logo h1 {
            font-family: var(--display-lat);
            letter-spacing: 5px;
            font-weight: 400;
            background: var(--gold-gradient);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 220% auto;
            animation: shimmerText 7s linear infinite;
        }
        @keyframes shimmerText { to { background-position: 220% center; } }

        .user-welcome h2 {
            font-family: var(--display-ar);
            font-size: 1.65rem; font-weight: 700; line-height: 1.9;
            color: var(--champagne);
        }
        .section-head h3, .modal-section-title, #genericTitle {
            font-family: var(--display-ar);
            line-height: 1.9;
        }
        .modal-section-title { font-size: .98rem; }

        .eyebrow {
            font-family: var(--display-lat);
            font-size: .6rem; letter-spacing: 4px; text-transform: uppercase;
            color: var(--gold-deep); display: block; margin-bottom: 3px;
        }

        .stat-value, .luxury-table td, .ic-price, .pr-amt, .dv {
            font-variant-numeric: tabular-nums;
            font-feature-settings: "tnum";
        }

        /* ---------- Engraved panels + deco corners ---------- */
        .glass-panel {
            background:
                linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0) 38%),
                var(--panel-bg);
            box-shadow:
                0 24px 60px rgba(0,0,0,.55),
                inset 0 1px 0 rgba(255,255,255,.07);
        }

        .deco { position: relative; }
        .deco::before, .deco::after {
            content: ''; position: absolute; width: 12px; height: 12px;
            border: 1px solid var(--gold-primary); opacity: .35; pointer-events: none;
        }
        .deco::before { top: 7px; right: 7px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
        .deco::after  { bottom: 7px; left: 7px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }

        .ornament {
            display: flex; align-items: center; gap: 12px;
            color: var(--gold-deep); margin: 4px 0 14px;
        }
        .ornament::before, .ornament::after {
            content: ''; flex: 1; height: 1px;
            background: linear-gradient(90deg, transparent, var(--hairline), transparent);
        }
        .ornament i { font-size: .6rem; color: var(--gold-primary); }

        /* ---------- Navigation rail ---------- */
        .menu-item { position: relative; }
        .menu-item a { position: relative; z-index: 1; }
        .menu-item.active::before {
            content: ''; position: absolute; top: 50%; right: -20px;
            transform: translateY(-50%);
            width: 3px; height: 60%; border-radius: 3px;
            background: var(--gold-gradient);
            box-shadow: 0 0 14px var(--gold-primary);
        }

        /* ---------- Gold button: light sweeps across the metal ---------- */
        .btn-gold-action { position: relative; overflow: hidden; }
        .btn-gold-action::after {
            content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
            right: -60%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
            transform: skewX(-18deg);
            transition: right .55s ease;
        }
        .btn-gold-action:hover::after { right: 115%; }

        /* ---------- KPI cards ---------- */
        .card-stat { position: relative; overflow: hidden; }
        .card-stat::before {
            content: ''; position: absolute; inset: 0; pointer-events: none;
            background: radial-gradient(circle at 85% 0%, rgba(212,175,55,.14), transparent 55%);
            opacity: 0; transition: opacity .35s;
        }
        .card-stat:hover::before { opacity: 1; }
        .stat-value { font-size: 1.85rem; letter-spacing: -.5px; }
        .sparkline { display: block; width: 100%; height: 26px; margin-top: 10px; opacity: .85; }

        /* Staggered entrance */
        .stagger > * { animation: rise .5s cubic-bezier(.22,1,.36,1) backwards; }
        .stagger > *:nth-child(1) { animation-delay: .04s; }
        .stagger > *:nth-child(2) { animation-delay: .10s; }
        .stagger > *:nth-child(3) { animation-delay: .16s; }
        .stagger > *:nth-child(4) { animation-delay: .22s; }
        .stagger > *:nth-child(5) { animation-delay: .28s; }
        @keyframes rise { from { opacity: 0; transform: translateY(16px); } }

        /* ==========================================================
           SIGNATURE — THE JEWEL BOARD
           Every day in the hall's year is a cut stone: clear when the
           date is free, lit when it is spoken for.
           ========================================================== */
        .cal-grid { gap: 7px; }

        .cal-day {
            position: relative;
            border-radius: 9px;
            font-weight: 700;
            background:
                linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,0) 52%),
                rgba(255,255,255,.03);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,.16),
                inset 0 -6px 12px rgba(0,0,0,.35),
                0 3px 8px rgba(0,0,0,.45);
            transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, filter .22s;
        }
        .cal-day:hover {
            transform: translateY(-4px) scale(1.09);
            z-index: 5;
            filter: brightness(1.25);
        }

        /* facet highlight */
        .cal-day::before {
            content: ''; position: absolute; inset: 1px 1px 55% 1px;
            border-radius: 8px 8px 40% 40%;
            background: linear-gradient(180deg, rgba(255,255,255,.20), transparent);
            pointer-events: none;
        }

        .day-free {
            background:
                linear-gradient(155deg, rgba(255,255,255,.14), rgba(255,255,255,0) 52%),
                rgba(16,185,129,.10);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -6px 12px rgba(0,0,0,.3), 0 3px 8px rgba(0,0,0,.4);
        }
        .day-deposit {
            background:
                linear-gradient(155deg, rgba(255,255,255,.16), rgba(255,255,255,0) 52%),
                rgba(245,158,11,.22);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -6px 12px rgba(0,0,0,.3), 0 3px 10px rgba(245,158,11,.22);
        }
        .day-booked {
            background:
                linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,0) 52%),
                rgba(244,63,94,.24);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -6px 12px rgba(0,0,0,.3), 0 3px 12px rgba(244,63,94,.26);
        }

        /* hall occupancy dots along the girdle of the stone */
        .cal-day .dots {
            position: absolute; bottom: 3px; left: 0; right: 0;
            display: flex; gap: 3px; justify-content: center; pointer-events: none;
        }
        .cal-day .dots span {
            width: 4px; height: 4px; border-radius: 50%;
            background: rgba(255,255,255,.22);
        }
        .cal-day .dots span.on { background: var(--gold-primary); box-shadow: 0 0 5px var(--gold-primary); }

        .cal-day.is-today {
            outline: none;
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,.2),
                0 0 0 2px var(--gold-primary),
                0 0 18px rgba(212,175,55,.55);
            animation: stone 2.6s ease-in-out infinite;
        }
        @keyframes stone {
            50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 2px var(--gold-primary), 0 0 30px rgba(212,175,55,.85); }
        }

        .cal-day.is-empty { background: none; box-shadow: none; }
        .cal-day.is-empty::before { display: none; }

        /* tooltip on the stone */
        .cal-day[data-tip]:hover::after {
            content: attr(data-tip);
            position: absolute; bottom: calc(100% + 9px); left: 50%;
            transform: translateX(-50%);
            background: rgba(8,10,15,.97);
            border: 1px solid var(--panel-border);
            color: var(--text-main);
            padding: 7px 11px; border-radius: 9px;
            font-size: .68rem; font-weight: 600; white-space: nowrap;
            box-shadow: 0 12px 28px rgba(0,0,0,.6); z-index: 20;
        }

        /* ---------- Table polish ---------- */
        .luxury-table tbody tr { transition: background .2s, box-shadow .2s; }
        .luxury-table tbody tr:hover {
            background: rgba(212,175,55,.06);
            box-shadow: inset 3px 0 0 var(--gold-primary);
        }

        /* ---------- Star rating ---------- */
        .stars { display: inline-flex; gap: 3px; direction: ltr; }
        .stars i { color: rgba(255,255,255,.18); font-size: .8rem; cursor: pointer; transition: .15s; }
        .stars i.lit { color: var(--gold-primary); text-shadow: 0 0 8px rgba(212,175,55,.6); }
        .stars.readonly i { cursor: default; }
        .stars .star { background: none; border: 0; padding: 0 1px; font: inherit; font-family: Arial, sans-serif; line-height: 1; color: rgba(255,255,255,.18); cursor: pointer; transition: .15s; }
        .stars .star.lit { color: var(--gold-primary); text-shadow: 0 0 8px rgba(212,175,55,.6); }
        .stars .star:focus-visible { outline: 2px solid var(--gold-primary); border-radius: 4px; }
        .stars.readonly .star { cursor: default; }

        /* ---------- Checklist ---------- */
        .check-row {
            display: flex; align-items: center; gap: 11px;
            padding: 10px 12px; border-radius: 10px;
            background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.06);
            margin-bottom: 7px; transition: .2s;
        }
        .check-row:hover { border-color: var(--hairline); }
        .check-row input { accent-color: var(--gold-primary); width: 17px; height: 17px; cursor: pointer; flex-shrink: 0; }
        .check-row.done span { text-decoration: line-through; color: var(--text-sub); }
        .check-row span { font-size: .83rem; font-weight: 600; flex: 1; }

        /* ---------- Report bars ---------- */
        .rank-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 13px; }
        .rank-row .rk-name { font-size: .82rem; font-weight: 700; }
        .rank-row .rk-val { font-size: .82rem; font-weight: 800; color: var(--gold-primary); font-variant-numeric: tabular-nums; }
        .rank-row .rk-bar { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
        .rank-row .rk-bar i { display: block; height: 100%; border-radius: 99px; background: var(--gold-gradient); animation: grow .8s cubic-bezier(.22,1,.36,1); }
        @keyframes grow { from { width: 0 !important; } }

        .donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
        .donut-legend { display: flex; flex-direction: column; gap: 9px; }
        .donut-legend div { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
        .donut-legend b { color: var(--text-main); font-variant-numeric: tabular-nums; }

        /* ---------- Command palette ---------- */
        .cmdk {
            display: none; position: fixed; inset: 0; z-index: 990;
            background: rgba(0,0,0,.75); backdrop-filter: blur(10px);
            padding-top: 12vh; justify-content: center;
        }
        .cmdk.open { display: flex; }
        .cmdk-box {
            width: min(620px, 92vw); height: fit-content; max-height: 66vh;
            display: flex; flex-direction: column; overflow: hidden; padding: 0;
            border: 1px solid var(--gold-primary);
            box-shadow: 0 0 60px var(--gold-glow);
        }
        .cmdk-box input {
            width: 100%; background: transparent; border: 0;
            border-bottom: 1px solid var(--hairline);
            padding: 20px 22px; color: var(--text-main);
            font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none;
        }
        .cmdk-results { overflow-y: auto; padding: 8px; }
        .cmdk-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 14px; border-radius: 11px; cursor: pointer; transition: .15s;
        }
        .cmdk-item:hover, .cmdk-item.sel { background: rgba(212,175,55,.12); }
        .cmdk-item i { color: var(--gold-primary); width: 18px; text-align: center; }
        .cmdk-item .ci-main { font-size: .86rem; font-weight: 700; }
        .cmdk-item .ci-sub { font-size: .7rem; color: var(--text-sub); margin-top: 2px; }
        .kbd {
            font-family: var(--display-lat); font-size: .62rem; letter-spacing: 1px;
            border: 1px solid rgba(255,255,255,.16); border-radius: 5px;
            padding: 2px 6px; color: var(--text-sub);
        }

        /* ---------- Lead cards ---------- */
        .lead-card { padding: 16px; border-right: 3px solid var(--gold-primary); }
        .lead-card.cold { border-right-color: var(--text-sub); }
        .lead-card.hot { border-right-color: var(--accent-red); }

        /* ---------- Contract / receipt (screen preview + print) ---------- */
        .doc-sheet {
            background: #fffdf7; color: #1a1a1a; border-radius: 14px;
            padding: 34px; margin-top: 16px;
            font-size: .84rem; line-height: 2;
            box-shadow: 0 20px 50px rgba(0,0,0,.5);
        }
        .doc-sheet h2, .doc-sheet h3 { font-family: var(--display-ar); color: #6b5314; line-height: 1.9; }
        .doc-head { text-align: center; border-bottom: 2px solid #d4af37; padding-bottom: 16px; margin-bottom: 20px; }
        .doc-head .dh-brand { font-family: var(--display-lat); font-size: 2rem; letter-spacing: 8px; color: #8a6d1f; }
        .doc-head .dh-sub { font-size: .72rem; letter-spacing: 3px; color: #9a8244; }
        .doc-sheet table { width: 100%; border-collapse: collapse; margin: 14px 0; }
        .doc-sheet th, .doc-sheet td { border: 1px solid #e0d6b8; padding: 9px 11px; text-align: right; font-size: .8rem; }
        .doc-sheet th { background: #f7f1de; color: #6b5314; font-weight: 800; }
        .doc-sheet .doc-total { background: #f7f1de; font-weight: 900; }
        .doc-terms { font-size: .74rem; color: #55503f; }
        .doc-terms li { margin-bottom: 5px; }
        .doc-sign { display: flex; justify-content: space-between; margin-top: 40px; gap: 30px; }
        .doc-sign div { flex: 1; border-top: 1px solid #b9a870; padding-top: 9px; text-align: center; font-size: .78rem; color: #55503f; }
        .doc-foot { text-align: center; margin-top: 26px; font-size: .66rem; color: #9a8244; letter-spacing: 1px; }

        body.printing-doc > *:not(#printRoot) { display: none !important; }
        #printRoot { display: none; }
        body.printing-doc #printRoot { display: block; }
        body.printing-doc { background: #fff; padding: 0; }
        body.printing-doc #printRoot .doc-sheet { box-shadow: none; border-radius: 0; margin: 0; }

        /* ---------- Whatsapp accent ---------- */
        .btn-wa { border-color: rgba(37,211,102,.4); color: #6ee7a8; }
        .btn-wa:hover { border-color: #25d366; color: #25d366; }

        @media (max-width: 900px) {
            .user-welcome h2 { font-size: 1.3rem; }
            .doc-sheet { padding: 20px; }
            .cmdk { padding-top: 6vh; }
        }

        @media (prefers-reduced-motion: reduce) {
            body::before { animation: none; }
            .brand-logo h1 { animation: none; }
            .cal-day.is-today { animation: none; }
            .stagger > * { animation: none; }
        }
        /* ==========================================================
           LAYER III — "The Doors Open"
           a boot reveal, a lit floor plan, and a night that has depth
           ========================================================== */

        /* ---------- Boot reveal: the hall lights coming up ---------- */
        #boot {
            position: fixed; inset: 0; z-index: 9999;
            background: #05070c;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 18px;
            transition: opacity .7s ease, visibility .7s;
        }
        #boot.gone { opacity: 0; visibility: hidden; }
        #boot .boot-mark {
            font-family: var(--display-lat);
            font-size: clamp(2.4rem, 9vw, 4.4rem);
            letter-spacing: 16px; padding-right: 16px;
            background: var(--gold-gradient);
            background-size: 250% auto;
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: bootShine 2.4s linear infinite;
        }
        @keyframes bootShine { to { background-position: 250% center; } }
        #boot .boot-sub {
            font-size: .68rem; letter-spacing: 7px; color: #6b5720;
            font-family: var(--display-lat);
        }
        #boot .boot-line {
            width: min(260px, 60vw); height: 2px; border-radius: 2px;
            background: rgba(212,175,55,.15); overflow: hidden;
        }
        #boot .boot-line i {
            display: block; height: 100%; width: 0;
            background: var(--gold-gradient);
            animation: bootFill 1.15s cubic-bezier(.5,0,.2,1) forwards;
        }
        @keyframes bootFill { to { width: 100%; } }
        #boot .boot-rays {
            position: absolute; inset: 0; pointer-events: none;
            background: conic-gradient(from 200deg at 50% -10%,
                transparent 0deg, rgba(212,175,55,.10) 18deg, transparent 36deg,
                transparent 54deg, rgba(212,175,55,.07) 72deg, transparent 90deg);
            animation: bootRays 6s ease-in-out infinite alternate;
        }
        @keyframes bootRays { to { transform: rotate(9deg) scale(1.14); } }

        /* ---------- Chandelier glow over the header ---------- */
        .top-bar { position: relative; overflow: hidden; }
        .top-bar::before {
            content: ''; position: absolute;
            top: -120px; left: 50%; transform: translateX(-50%);
            width: 340px; height: 200px; pointer-events: none;
            background: radial-gradient(ellipse at center, rgba(212,175,55,.28), transparent 68%);
            filter: blur(18px);
            animation: chandelier 5.5s ease-in-out infinite alternate;
        }
        @keyframes chandelier {
            to { opacity: .55; transform: translateX(-50%) scale(1.12); }
        }

        /* ---------- Currency switch ---------- */
        .cur-switch {
            display: inline-flex; padding: 3px; border-radius: 11px; gap: 3px;
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.1);
        }
        .cur-switch button {
            border: 0; background: transparent; cursor: pointer;
            color: var(--text-sub); font-family: 'Cairo', sans-serif;
            font-size: .72rem; font-weight: 800;
            padding: 6px 13px; border-radius: 9px; transition: .2s;
        }
        .cur-switch button.on {
            background: var(--gold-gradient); color: #2a2205;
            box-shadow: 0 3px 12px rgba(212,175,55,.35);
        }

        .hijri-line { font-size: .72rem; color: var(--gold-deep); margin-top: 3px; }

        /* ==========================================================
           SIGNATURE II — THE FLOOR PLAN
           the hall drawn as it is actually laid out on the night
           ========================================================== */
        .floor {
            position: relative;
            border-radius: 18px;
            padding: 26px 20px 20px;
            background:
                radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.14), transparent 58%),
                repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 2px, transparent 2px 26px),
                rgba(8,11,18,.6);
            border: 1px solid var(--hairline);
            overflow: hidden;
        }
        .floor-stage {
            width: 58%; max-width: 340px; margin: 0 auto 8px;
            padding: 13px; border-radius: 14px 14px 40% 40%;
            text-align: center; font-weight: 800; font-size: .8rem;
            font-family: var(--display-ar); line-height: 1.9;
            color: #2a2205; background: var(--gold-gradient);
            box-shadow: 0 10px 34px rgba(212,175,55,.34);
        }
        .floor-dance {
            width: 44%; max-width: 250px; margin: 14px auto;
            padding: 9px; border-radius: 12px; text-align: center;
            font-size: .72rem; font-weight: 700; color: var(--text-sub);
            border: 1px dashed rgba(212,175,55,.35);
            background: rgba(212,175,55,.05);
        }
        .floor-tables {
            display: grid; gap: 13px; margin-top: 16px;
            grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        }
        .tbl {
            aspect-ratio: 1; border-radius: 50%;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 2px;
            cursor: pointer; position: relative;
            font-size: .68rem; font-weight: 800;
            border: 1px solid rgba(255,255,255,.12);
            background:
                radial-gradient(circle at 34% 26%, rgba(255,255,255,.16), transparent 55%),
                rgba(255,255,255,.04);
            box-shadow: inset 0 -6px 12px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.45);
            transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s;
        }
        .tbl:hover { transform: translateY(-5px) scale(1.07); z-index: 3; }
        .tbl .tno { color: var(--text-sub); font-size: .6rem; }
        .tbl .tname {
            font-size: .58rem; color: var(--champagne); line-height: 1.25;
            max-width: 84%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .tbl.filled {
            border-color: rgba(212,175,55,.55);
            background:
                radial-gradient(circle at 34% 26%, rgba(255,255,255,.22), transparent 55%),
                rgba(212,175,55,.20);
            box-shadow: inset 0 -6px 12px rgba(0,0,0,.35), 0 5px 18px rgba(212,175,55,.3);
        }
        .tbl.over {
            border-color: rgba(244,63,94,.6);
            background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.2), transparent 55%), rgba(244,63,94,.22);
        }
        /* chairs around the rim */
        .tbl::after {
            content: ''; position: absolute; inset: -5px; border-radius: 50%;
            background: radial-gradient(circle, transparent 63%, rgba(255,255,255,.10) 64%, transparent 69%);
            -webkit-mask: repeating-conic-gradient(#000 0deg 12deg, transparent 12deg 36deg);
            mask: repeating-conic-gradient(#000 0deg 12deg, transparent 12deg 36deg);
            pointer-events: none;
        }
        .floor-legend {
            display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
            margin-top: 18px; font-size: .73rem; color: var(--text-sub);
        }

        /* ---------- Run of show ---------- */
        .rundown { position: relative; padding-right: 26px; margin-top: 6px; }
        .rundown::before {
            content: ''; position: absolute; top: 6px; bottom: 6px; right: 7px; width: 2px;
            background: linear-gradient(180deg, transparent, var(--hairline) 12%, var(--hairline) 88%, transparent);
        }
        .run-item { position: relative; padding-bottom: 16px; }
        .run-item::before {
            content: ''; position: absolute; right: -24px; top: 5px;
            width: 11px; height: 11px; border-radius: 50%;
            background: var(--gold-gradient);
            box-shadow: 0 0 0 3px rgba(212,175,55,.16);
        }
        .run-item .rt {
            font-family: var(--display-lat); font-size: .78rem;
            color: var(--gold-primary); letter-spacing: 1px;
        }
        .run-item .rl { font-size: .85rem; font-weight: 700; margin-top: 1px; }
        .run-item .rd { font-size: .72rem; color: var(--text-sub); margin-top: 2px; }

        /* ---------- Staff ---------- */
        .staff-card { padding: 16px; display: flex; gap: 13px; align-items: center; transition: .25s; }
        .staff-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.4); }
        .avatar {
            width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
            display: grid; place-items: center;
            font-family: var(--display-lat); font-weight: 700; font-size: 1rem;
            color: #2a2205; background: var(--gold-gradient);
            box-shadow: 0 5px 16px rgba(212,175,55,.3);
        }
        .avatar.off { background: rgba(255,255,255,.08); color: var(--text-sub); box-shadow: none; }

        /* ---------- Panel lift ---------- */
        .item-card, .card-stat { will-change: transform; }
        .glass-panel { transition: border-color .3s; }

        /* ---------- Scrollbar ---------- */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(212,175,55,.5), rgba(212,175,55,.2));
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

        @media (max-width: 900px) {
            .floor-tables { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
            .floor-stage { width: 78%; }
            .top-bar::before { width: 220px; }
        }

        @media (prefers-reduced-motion: reduce) {
            #boot .boot-rays, .top-bar::before, #boot .boot-mark { animation: none; }
        }

        @media print {
            #boot, .cur-switch { display: none !important; }
            .floor { background: #fff; border: 1px solid #ccc; }
            .floor-stage { background: #f7f1de !important; color: #000 !important; box-shadow: none; }
            .tbl { background: #fff !important; border: 1px solid #999 !important; box-shadow: none !important; color: #000 !important; }
            .tbl .tname, .tbl .tno { color: #000 !important; }
        }
    

/* ==========================================================
   INFINITI EVENTS — additions for the multi-hall SaaS
   (hall branding, new pages, «فقرات الفرح», permissions)
   ========================================================== */
.perm-hidden { display: none !important; }
.ro-locked { pointer-events: none; cursor: default; }

/* Hall wordmark: Arabic calligraphy must never be letter-spaced */
.ar-mark { font-family: var(--display-ar) !important; letter-spacing: 0 !important; }
.brand-logo h1.ar-mark { font-size: 1.4rem; font-weight: 700; line-height: 1.5; }
.brand-logo .brand-img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; flex-shrink: 0; }
.brand-logo .brand-sub { font-family: var(--display-lat); font-size: .6rem; letter-spacing: 3px; color: var(--text-sub); }
#boot .boot-logo { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(212,175,55,.35)); }
#boot .boot-mark.ar-mark { padding-right: 0; line-height: 1.5; font-weight: 700; font-size: clamp(2rem, 7vw, 3.6rem); }
.mobile-bar .mb-brand { font-family: var(--display-ar); letter-spacing: 0; font-weight: 700; font-size: 1.05rem; }
.mobile-bar .mb-brand img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.mobile-bar .mb-brand span { max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Drawers above the scrim on phones (the luxe layer's z-index: 2 otherwise wins) */
@media (max-width: 1180px) { .sidebar-left { z-index: 800; } }
@media (max-width: 900px) { .sidebar-right { z-index: 800; } }

.user-card .company-name { font-size: .9rem; letter-spacing: 0; }
.powered { display: inline-flex; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: 2px; color: var(--text-sub); text-decoration: none; text-transform: uppercase; }
.powered i { color: var(--gold-primary); }
.powered b { font-family: var(--display-lat); font-weight: 400; letter-spacing: 3px; color: var(--champagne); }

.page-note { color: var(--text-sub); font-size: .8rem; line-height: 1.9; margin: 6px 0 14px; }
.settings-card { padding: 22px; }
.logo-pick { display: flex; gap: 14px; align-items: flex-start; }
.logo-pick .preview { width: 84px; height: 84px; border-radius: 16px; border: 1px dashed rgba(212,175,55,.45); display: grid; place-items: center; overflow: hidden; background: rgba(0,0,0,.4); flex-shrink: 0; }
.logo-pick .preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-pick .preview i { color: rgba(212,175,55,.5); font-size: 1.5rem; }
.logo-pick input[type=file], #restoreFile { color: var(--text-sub); font-size: .8rem; margin-bottom: 8px; }
.readonly-banner { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.45); color: #fde68a; border-radius: 14px; padding: 12px 16px; font-size: .84rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.readonly-banner a { color: var(--gold-primary); font-weight: 800; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.pager .muted { color: var(--text-sub); font-size: .8rem; }
.roles-matrix th, .roles-matrix td { text-align: center; }
.roles-matrix td:first-child, .roles-matrix th:first-child { text-align: right; }
.btn-ghost:disabled, .btn-sm:disabled, .btn-gold-action:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- «فقرات الفرح» ---------- */
.modal-card.wide { width: min(1120px, 96vw); max-width: 1120px; }
.btn-segments { border-color: rgba(212,175,55,.45); color: var(--champagne); }
.seg-hint { color: var(--gold-deep); }
.seg-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.seg-total { font-size: .86rem; color: var(--text-sub); display: flex; align-items: center; gap: 8px; }
.seg-total b { font-size: 1.2rem; color: var(--gold-primary); font-family: var(--display-lat); letter-spacing: 1px; direction: ltr; }
.seg-total .muted { font-size: .75rem; }
.seg-wrap { max-height: 56vh; overflow: auto; border: 1px solid var(--hairline); border-radius: 14px; }
.seg-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 760px; }
.seg-table thead th { position: sticky; top: 0; z-index: 2; background: #0e121b; }
.seg-table td { padding: 4px 6px !important; }
.seg-table .c-no { width: 54px; text-align: center; color: var(--gold-primary); font-family: var(--display-lat); }
.seg-table .c-dur { width: 96px; }
.seg-table .c-act { width: 118px; }
.seg-in { width: 100%; background: rgba(0,0,0,.45); border: 1px solid rgba(212,175,55,.18); border-radius: 8px; color: #fff; padding: 8px 10px; font-family: inherit; font-size: .84rem; outline: none; }
.seg-in:focus { border-color: var(--gold-primary); box-shadow: 0 0 8px var(--gold-glow); }
.seg-in.bad { border-color: var(--accent-red); background: rgba(244,63,94,.08); }
.seg-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.seg-spacer { flex: 1; }

/* ---------- Printed documents carry the hall's identity ---------- */
.doc-head .dh-logo { max-height: 76px; max-width: 180px; object-fit: contain; display: block; margin: 0 auto 6px; }
.doc-head .dh-brand.ar-mark { font-size: 2rem; line-height: 1.5; color: #8a6d1f; }
.doc-head .dh-contact { font-size: .72rem; color: #8a7a4a; }
.doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e0d6b8; padding-top: 10px; }
.doc-powered { text-transform: uppercase; letter-spacing: 2px; }
.doc-powered b { font-family: var(--display-lat); font-weight: 400; letter-spacing: 3px; color: #8a6d1f; }
.print-brand { display: none; }
@media print {
    .print-brand { display: flex !important; align-items: center; gap: 14px; border-bottom: 2px solid #d4af37; padding: 0 0 10px; margin-bottom: 14px; order: -1; }
    .print-brand img { max-height: 56px; max-width: 140px; object-fit: contain; }
    .print-brand b { display: block; font-family: var(--display-ar); font-size: 1.4rem; color: #6b5314; }
    .print-brand small { color: #555; font-size: .75rem; }
    .print-brand span { margin-inline-start: auto; font-size: .6rem; letter-spacing: 2px; color: #8a6d1f; }
    body.printing-doc .print-brand, .readonly-banner, .page:not(.active) { display: none !important; }
    .workspace { display: flex; flex-direction: column; }
}
.user-card .powered { flex-wrap: wrap; justify-content: center; letter-spacing: 1px; gap: 4px 6px; }
.user-card .powered b { letter-spacing: 2px; }

/* Non-production copies (staging, local) carry a visible badge; never printed. */
.env-ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 9999; pointer-events: none;
    background: #7c2d12; color: #fff7ed; border: 1px solid #fdba74; border-radius: 999px;
    padding: 5px 12px; font: 700 .72rem/1.4 "Cairo", sans-serif; letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: .92; }
.env-ribbon i { margin-inline-end: 4px; }
@media print { .env-ribbon { display: none !important; } }

/* ---------- Subscription page (INFINITI billing) ---------- */
.readonly-banner.warn { background: rgba(201,162,39,.1); border-color: rgba(201,162,39,.45); color: #fde68a; }
.sub-top { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; margin-bottom: 8px; }
.sub-top .detail-grid { flex: 1; min-width: 240px; }
.sub-days { min-width: 130px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px 18px;
    border-radius: 16px; border: 1px solid rgba(201,162,39,.35); background: rgba(201,162,39,.06); }
.sub-days b { font-size: 2.4rem; line-height: 1; color: var(--gold-primary); font-family: 'Cairo', sans-serif; }
.sub-days span { font-size: .74rem; color: var(--text-sub); margin-top: 6px; }
.sub-days.over { border-color: rgba(244,63,94,.4); background: rgba(244,63,94,.06); }
.sub-days.over b { color: #fca5a5; }
.sub-usages { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sub-usage .su-head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-sub); margin-bottom: 6px; }
.sub-usage .su-head b { color: var(--text-main, #fff); }
.su-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.su-bar i { display: block; height: 100%; background: var(--gold-gradient, #c9a227); border-radius: 999px; }
.su-bar i.hot { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.sub-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.sub-features span { font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); }
.sub-features span.on { color: #6ee7b7; border-color: rgba(16,185,129,.35); }
.sub-features span.off { color: var(--text-sub); opacity: .7; text-decoration: line-through; }
.sub-open { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin: 18px 0 6px; padding: 14px 16px;
    border-radius: 14px; border: 1px solid rgba(245,158,11,.45); background: rgba(245,158,11,.06); }
.sub-open > div:first-child { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.sub-open .sub-pay { color: var(--text-sub); font-size: .76rem; white-space: pre-line; }
.sub-open-actions, .sub-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.sub-plan { cursor: pointer; position: relative; }
.sub-plan input { position: absolute; opacity: 0; }
.sub-plan > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); }
.sub-plan b { color: var(--gold-primary); }
.sub-plan small { color: var(--text-sub); font-size: .72rem; }
.sub-plan em { font-style: normal; font-size: .8rem; }
.sub-plan input:checked + span { border-color: var(--gold-primary); box-shadow: 0 0 0 1px var(--gold-primary) inset; }
.sub-plan input:focus-visible + span { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.sub-cycle { display: flex; gap: 18px; margin: 12px 0; }
.sub-cycle .check { display: flex; gap: 6px; align-items: center; font-size: .84rem; }
/* INFINITI subscription invoice (printed from the hall workspace) */
.sub-invoice { background: #fffdf7; color: #2b2410; padding: 26px 28px; font-family: 'Cairo', sans-serif; }
.sub-invoice .si-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #c9a227; padding-bottom: 14px; margin-bottom: 14px; }
.sub-invoice .si-brand b { font-size: 1.15rem; letter-spacing: .08em; }
.sub-invoice .si-brand small, .sub-invoice .si-meta small { display: block; color: #7a6a3a; font-size: .74rem; }
.sub-invoice .si-meta { text-align: end; }
.sub-invoice table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .84rem; }
.sub-invoice th, .sub-invoice td { border: 1px solid #e8dcb5; padding: 8px 10px; text-align: start; color: #2b2410; }
.sub-invoice th { background: #f7efd6; }
.sub-invoice .si-total td { font-weight: 800; }
.sub-invoice .si-stamp { display: inline-block; padding: 3px 10px; border: 2px solid currentColor; border-radius: 8px; font-weight: 800; font-size: .8rem; }
.sub-invoice .si-stamp.paid { color: #047857; } .sub-invoice .si-stamp.issued { color: #b45309; } .sub-invoice .si-stamp.void { color: #b91c1c; }
.sub-invoice .si-pay { white-space: pre-line; }
.sub-invoice .si-foot { margin-top: 16px; font-size: .72rem; color: #7a6a3a; display: flex; justify-content: space-between; gap: 12px; }
/* Team & permissions */
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; border-bottom: 1px solid rgba(212,175,55,.18); padding-bottom: 10px; }
.tab-btn { background: transparent; border: 1px solid rgba(255,255,255,.1); color: var(--text-sub); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.tab-btn:hover { border-color: rgba(212,175,55,.45); color: var(--text-main); }
.tab-btn.active { border-color: var(--gold-primary); color: var(--gold-primary); background: rgba(212,175,55,.08); }
.tab-btn:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.perm-matrix { min-width: 760px; }
.perm-matrix th, .perm-matrix td { text-align: center; padding: 8px 6px; font-size: .78rem; white-space: nowrap; }
.perm-matrix th:first-child, .perm-matrix td.perm-mod { text-align: start; position: sticky; inset-inline-start: 0; background: var(--bg-body); z-index: 1; }
.perm-matrix th input, .perm-matrix td input { accent-color: var(--gold-primary); width: 17px; height: 17px; cursor: pointer; vertical-align: middle; }
.perm-matrix input:disabled { cursor: default; }
.perm-matrix tr.perm-group td { text-align: start; color: var(--gold-primary); font-weight: 800; font-size: .74rem; letter-spacing: .02em; background: rgba(212,175,55,.06); }
.perm-matrix .perm-mod { font-weight: 700; }
.perm-matrix .col-all { color: var(--text-sub); }
.perm-na { color: rgba(148,163,184,.35); }
.perm-auto { box-shadow: inset 0 0 0 2px rgba(212,175,55,.45); border-radius: 8px; }
.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.money-row input { accent-color: var(--gold-primary); }
.perm-summary { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(212,175,55,.25); background: rgba(212,175,55,.04); font-size: .8rem; display: flex; flex-direction: column; gap: 6px; }
.perm-summary:empty { display: none; }
.perm-count b { color: var(--gold-primary); font-size: 1rem; }
.perm-summary p { margin: 0; color: var(--text-sub); }
.perm-warn { color: #f59e0b !important; }
.roles-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; margin-bottom: 16px; }
.role-card .ic-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ws-switch { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--text-sub); }
.ws-switch select { width: 100%; background: rgba(255,255,255,.04); color: var(--text-main); border: 1px solid rgba(212,175,55,.35); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: .78rem; }
@media (max-width: 720px) { .tab-btn { flex: 1; justify-content: center; } }
/* Notification centre */
.bell-wrap { position: relative; }
.bell-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(212,175,55,.35); background: rgba(212,175,55,.06); color: var(--gold-primary); cursor: pointer; font-size: 1.05rem; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: rgba(212,175,55,.14); }
.bell-btn:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.bell-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.bell-panel { position: fixed; top: 80px; left: 8px; width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; z-index: 900; padding: 10px; border-radius: 16px; border: 1px solid rgba(212,175,55,.35); box-shadow: 0 18px 50px rgba(0,0,0,.6); background: #0d1017; }
.nt-head .btn-sm { white-space: nowrap; width: auto; padding: 4px 10px; }
.nt-head, .nt-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 6px 10px; }
.nt-foot { padding: 10px 6px 4px; justify-content: center; border-top: 1px solid rgba(255,255,255,.06); }
.nt-list { display: flex; flex-direction: column; gap: 6px; }
.nt-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: start; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px; color: var(--text-main); font: inherit; cursor: pointer; }
.nt-item:hover { border-color: rgba(212,175,55,.4); }
.nt-item.unread { background: rgba(212,175,55,.07); border-color: rgba(212,175,55,.3); }
.nt-item.unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-primary); margin-inline-end: 6px; vertical-align: middle; }
.nt-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(212,175,55,.1); color: var(--gold-primary); }
.nt-item.sev-warning .nt-ic { background: rgba(245,158,11,.12); color: #f59e0b; }
.nt-item.sev-critical .nt-ic { background: rgba(225,29,72,.14); color: #fb7185; }
.nt-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nt-tx b { font-size: .82rem; }
.nt-tx span { font-size: .76rem; color: var(--text-sub); overflow-wrap: anywhere; }
.nt-tx small { font-size: .68rem; color: var(--text-sub); opacity: .8; }
.nt-empty { padding: 24px; text-align: center; color: var(--text-sub); font-size: .82rem; }
.nt-elsewhere { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 6px 0; }
.nt-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.nt-filters select { background: rgba(255,255,255,.04); color: var(--text-main); border: 1px solid rgba(212,175,55,.3); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .8rem; }
.nt-filters .check { display: flex; gap: 6px; align-items: center; font-size: .8rem; }
.nt-page .nt-item { padding: 12px 14px; }
.pref-table td, .pref-table th { text-align: center; }
.pref-table td:first-child, .pref-table th:first-child { text-align: start; }
.pref-table input { accent-color: var(--gold-primary); width: 17px; height: 17px; }
.menu-badge { margin-inline-start: auto; font-size: .64rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: rgba(212,175,55,.18); color: var(--gold-primary); }
.menu-badge.late { background: rgba(225,29,72,.2); color: #fb7185; }
/* Tasks */
.chip-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.1); margin: 0 4px; }
.task-row.overdue td:first-child { box-shadow: inset -3px 0 0 #e11d48; }
.muted-sm { font-size: .7rem; color: var(--text-sub); margin-top: 3px; }
.task-desc { font-size: .84rem; color: var(--text-sub); line-height: 1.8; white-space: pre-line; }
.task-history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; }
.task-history li { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); }
.task-history small { display: block; color: var(--text-sub); font-size: .68rem; margin-top: 3px; }
.task-note { margin-top: 4px; color: var(--text-main); white-space: pre-line; }
/* Client ratings */
.stars-view { letter-spacing: 1px; font-size: .9rem; font-family: Arial, sans-serif; }
.stars-view .on { color: var(--gold-primary); }
.stars-view .off { color: rgba(255,255,255,.18); }
.rating-item a { color: var(--gold-primary); font-weight: 700; }
.stat-value small { font-size: .8rem; color: var(--text-sub); }
.ratings-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin: 22px 0; }
.dist-row { display: grid; grid-template-columns: 54px 1fr 34px; align-items: center; gap: 10px; margin: 8px 0; font-size: .8rem; }
.dist-row i { color: var(--gold-primary); }
.dist-row .bar-track { margin: 0; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 18px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.trend-bar { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: var(--gold-gradient); }
.trend-col small { font-size: .62rem; color: var(--text-sub); }
.trend-avg { font-size: .62rem; color: var(--gold-primary); min-height: 12px; }
.rating-item { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); margin-bottom: 10px; }
.rating-item.low { border-color: rgba(225,29,72,.35); }
.ri-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; }
.ri-top small { color: var(--text-sub); }
.ri-aspects { font-size: .74rem; color: var(--text-sub); margin-top: 6px; line-height: 1.8; }
.ri-comment { margin: 8px 0 0; font-size: .84rem; white-space: pre-line; overflow-wrap: anywhere; }
.ri-follow { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nps-row { display: flex; gap: 6px; flex-wrap: wrap; }
.nps-cell input { position: absolute; opacity: 0; }
.nps-cell span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(212,175,55,.3); cursor: pointer; font-weight: 700; }
.nps-cell input:checked + span { background: var(--gold-gradient); color: #1a1405; }
.nps-cell input:focus-visible + span { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.feedback-prompt { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border: 1px solid rgba(212,175,55,.35); }
.feedback-prompt > div:first-child { display: flex; flex-direction: column; gap: 3px; font-size: .84rem; }
.feedback-prompt span { color: var(--text-sub); font-size: .78rem; }
.tg-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-top: 12px; border-radius: 14px; border: 1px solid rgba(56,189,248,.3); background: rgba(56,189,248,.05); }
.tg-box > i { font-size: 1.8rem; color: #38bdf8; }
.tg-box > div { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; }
.tg-box span { color: var(--text-sub); }
.tg-box .row-actions { justify-content: flex-start; gap: 10px; flex-wrap: wrap; align-items: center; }
.tg-box a.btn-gold-action { text-decoration: none; }
