        :root {
            --primary: #0088cc;
            --primary-text: #ffffff;
            --bg: #ffffff;
            --secondary-bg: #f4f4f5;
            --text: #000000;
            --hint: #707579;
            --link: #0088cc;
            
            --success: #34c759;
            --danger: #ff3b30;
            --warning: #ff9500;
            --info: #007aff;
            
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            min-height: 100vh;
            padding: 0;
            overflow-x: hidden;
            line-height: 1.5;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 16px;
            padding-bottom: 120px; /* Space for fixed button */
        }

        .debug-banner {
            background-color: #ff9800;
            color: white;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 16px;
            text-align: center;
            font-size: 14px;
        }

        .debug-banner strong {
            display: block;
            margin-bottom: 4px;
        }

        .header {
            text-align: center;
            margin-bottom: 20px;
            animation: fadeInDown 0.5s ease-out;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .header h1 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text);
        }

        .header p {
            font-size: 14px;
            color: var(--hint);
        }

        /* Tabs Navigation */
        .tabs-nav {
            display: flex;
            background: var(--secondary-bg);
            padding: 4px;
            border-radius: var(--radius-lg);
            margin-bottom: 16px;
        }

        .tab-item {
            flex: 1;
            padding: 10px;
            text-align: center;
            border-radius: var(--radius-md);
            font-size: 14px;
            font-weight: 600;
            color: var(--hint);
            cursor: pointer;
            transition: all 0.2s;
        }

        .tab-item.active {
            background: var(--bg);
            color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        /* Profile Screen */
        .screen {
            display: none;
        }

        .screen.active {
            display: block;
        }

        .profile-container {
            animation: fadeIn 0.3s ease-out;
        }

        .privacy-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .privacy-overlay.active {
            display: flex;
        }

        .privacy-banner {
            background: white;
            border-radius: 16px;
            padding: 24px;
            max-width: 400px;
            width: 100%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease-out;
        }

        .privacy-banner p {
            font-size: 15px;
            color: #333;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .privacy-banner a {
            color: #667eea;
            text-decoration: underline;
        }

        .privacy-banner .btn-privacy-accept {
            display: block;
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            background: #667eea;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .privacy-banner .btn-privacy-accept:hover {
            background: #5a6fd6;
        }

        .privacy-banner .btn-privacy-accept:disabled {
            opacity: 0.6;
        }

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

        .avatar-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 24px;
        }

        .avatar-preview-container {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--secondary-bg);
            margin-bottom: 12px;
            overflow: hidden;
            border: 2px solid var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .avatar-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar-placeholder {
            font-size: 40px;
            color: var(--hint);
        }

        .avatar-edit-badge {
            position: absolute;
            bottom: 0;
            right: 0;
            background: var(--primary);
            color: white;
            padding: 4px;
            border-radius: 50%;
            border: 2px solid var(--bg);
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--hint);
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            border: 1px solid #e0e0e0;
            background: var(--secondary-bg);
            font-size: 16px;
            transition: border-color 0.2s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--bg);
        }

        /* Safe areas for PWA */
        body {
            padding-top: env(safe-area-inset-top, 0);
            padding-bottom: env(safe-area-inset-bottom, 0);
            padding-left: env(safe-area-inset-left, 0);
            padding-right: env(safe-area-inset-right, 0);
        }

        .action-buttons-fixed {
            bottom: calc(16px + env(safe-area-inset-bottom, 0));
        }

        .bottom-sheet {
            padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
        }

        .error-message {
            color: var(--danger);
            font-size: 12px;
            margin-top: 4px;
            display: none;
        }

        /* Seat avatar mini */
        .seat-avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid white;
        }

        .seat.booked {
            background-color: var(--hint);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .date-selector {
            margin-bottom: 24px;
            background: var(--secondary-bg);
            padding: 16px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            animation: fadeIn 0.5s ease-out 0.1s both;
        }

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

        .date-selector label {
            display: block;
            margin-bottom: 12px;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--hint);
            text-align: center;
        }

        .date-input-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .date-selector input {
            flex: 1;
            padding: 12px;
            border: 1px solid rgba(0,0,0,0.05);
            border-radius: var(--radius-sm);
            background-color: var(--bg);
            color: var(--text);
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            outline: none;
            -webkit-appearance: none;
            transition: border-color 0.2s;
        }

        .date-selector input:focus {
            border-color: var(--primary);
        }

        .date-nav-btn {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            border: none;
            background-color: var(--primary);
            color: var(--primary-text);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        .date-nav-btn:active {
            transform: scale(0.95);
            opacity: 0.8;
        }

        .date-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .date-nav-btn svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .office-map {
            position: relative;
            width: 100%;
            height: 450px; /* Фиксированная высота для удобства зума */
            margin-bottom: 24px;
            background-color: var(--secondary-bg);
            border-radius: var(--radius-md);
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow-sm);
            animation: fadeIn 0.5s ease-out 0.2s both;
            overflow: hidden; /* Важно для зума */
            touch-action: none; /* Предотвращаем системный зум на iOS */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #map-container {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: grab;
        }

        #map-container:active {
            cursor: grabbing;
        }

        #map-content {
            position: relative;
            transform-origin: center center;
            will-change: transform;
            transition: transform 0.1s ease-out;
            display: inline-block; /* Чтобы размер соответствовал контенту */
        }

        .office-map img {
            display: block;
            max-width: none;
            max-height: none;
            user-select: none;
            -webkit-user-drag: none;
        }

        /* Кнопки зума */
        .zoom-controls {
            position: absolute;
            right: 12px;
            bottom: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 100;
        }

        .zoom-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: white;
            border: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text);
            font-size: 18px;
            font-weight: bold;
            -webkit-tap-highlight-color: transparent;
        }

        .zoom-btn:active {
            background: #f0f0f0;
            transform: scale(0.95);
        }

        .seat-button {
            position: absolute;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid #ffffff;
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            left: 0;
            top: 0;
            /* Используем CSS переменную для масштабирования обратного зуму */
            transform: translate(-50%, -50%) scale(var(--reverse-scale, 1));
            transform-origin: center center;
            transition: background 0.2s, box-shadow 0.2s, border 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 6px rgba(0,0,0,0.16);
            z-index: 10;
        }

        @media (max-width: 768px) {
            .seat-button {
                width: 28px;
                height: 28px;
                font-size: 9px;
                border-width: 1.5px;
            }
        }

        .seat-button:active {
            transform: translate(-50%, -50%) scale(calc(var(--reverse-scale, 1) * 0.9));
        }

        .seat-button.available {
            background: linear-gradient(135deg, #4caf50, #45a049);
        }

        .seat-button.booked, .seat-button.my-booking {
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 0;
        }

        .seat-button.booked {
            background: linear-gradient(135deg, #f44336, #d32f2f);
            opacity: 0.8;
        }

        .seat-button.my-booking {
            background: linear-gradient(135deg, #2196f3, #1976d2);
            border-color: #fff;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
        }

        .seat-button.blocked_by_user {
            background: linear-gradient(135deg, #d3d3d3, #b0b0b0);
            border-color: #ffffff;
            opacity: 0.7;
            cursor: pointer;
        }

        .seat-button.selected {
            background: linear-gradient(135deg, #ff9800, #f57c00);
            border-color: #fff;
            transform: translate(-50%, -50%) scale(calc(var(--reverse-scale, 1) * 1.2));
            z-index: 20;
            box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
        }


        .action-buttons-fixed {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 16px;
            background: var(--bg);
            box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
            display: flex;
            gap: 12px;
            z-index: 1000;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .btn-main {
            width: 100%;
            padding: 14px;
            border-radius: var(--radius-md);
            border: none;
            background: var(--primary);
            color: var(--primary-text);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-main:disabled {
            background: var(--hint);
            opacity: 0.5;
        }

        .btn-icon {
            flex: 1;
            max-width: 56px;
            padding: 14px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(0,0,0,0.05);
            background: var(--secondary-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .legend {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 12px;
            margin-bottom: 16px;
            justify-content: center;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }

        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 50%;
        }

        .legend-color.available {
            background: linear-gradient(135deg, #4caf50, #45a049);
        }

        .legend-color.booked {
            background: linear-gradient(135deg, #f44336, #d32f2f);
        }

        .legend-color.my-booking {
            background: linear-gradient(135deg, #2196f3, #1976d2);
        }

        .legend-color.selected {
            background: linear-gradient(135deg, #ff9800, #f57c00);
        }

        .action-buttons {
            display: flex;
            gap: 8px;
            flex-direction: column;
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }

        .btn-primary {
            background-color: var(--tg-theme-button-color, #2196F3);
            color: var(--tg-theme-button-text-color, #ffffff);
        }

        .btn-primary:hover {
            opacity: 0.9;
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-secondary {
            background-color: var(--tg-theme-secondary-bg-color, #f5f5f5);
            color: var(--tg-theme-text-color, #000000);
        }

        /* Bottom Sheet Styles */
        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg);
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
            box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
            z-index: 2000;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 20px;
            padding-bottom: calc(20px + env(safe-area-inset-bottom));
        }

        .bottom-sheet.active {
            transform: translateY(0);
        }

        .bottom-sheet-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.4);
            z-index: 1999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .bottom-sheet-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .bottom-sheet-handle {
            width: 40px;
            height: 4px;
            background: var(--secondary-bg);
            border-radius: 2px;
            margin: 0 auto 16px;
        }

        /* Баннер подтверждения поверх карты */
        .confirmation-banner {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(4px);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 150;
            border-left: 4px solid var(--success);
            animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: none; /* Скрыто по умолчанию */
        }

        .confirmation-banner.active {
            display: flex;
        }

        @keyframes slideInDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .confirmation-banner-text {
            flex: 1;
            margin-right: 12px;
        }

        .confirmation-banner-title {
            font-weight: 700;
            font-size: 14px;
            display: block;
            margin-bottom: 2px;
        }

        .confirmation-banner-desc {
            font-size: 12px;
            color: var(--hint);
        }

        .confirmation-banner-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .confirmation-banner-btn {
            background: var(--success);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }

        .confirmation-banner-btn.btn-danger {
            background: var(--danger);
        }

        .confirmation-banner-btn:active {
            transform: scale(0.95);
        }

        .sheet-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12px;
            text-align: center;
        }

        .sheet-info {
            background: var(--secondary-bg);
            padding: 16px;
            border-radius: var(--radius-md);
            margin-bottom: 20px;
        }

        .sheet-info-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .sheet-info-row:last-child {
            margin-bottom: 0;
        }

        .sheet-info-row#status-row {
            display: none;
        }

        .sheet-info-label {
            color: var(--hint);
            font-size: 14px;
        }

        .sheet-info-value {
            font-weight: 600;
            font-size: 14px;
        }

        .loading {
            text-align: center;
            padding: 40px;
            font-size: 16px;
            opacity: 0.7;
        }

        .error {
            background-color: #f44336;
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
            z-index: 2000;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 280px;
            max-width: 90%;
            animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .success {
            background-color: #4CAF50;
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
            z-index: 2000;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 280px;
            max-width: 90%;
            animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes toastIn {
            from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
            to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }

        .toast-out {
            animation: toastOut 0.3s ease forwards;
        }

        @keyframes toastOut {
            from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            to { opacity: 0; transform: translate(-50%, -60%) scale(0.9); }
        }

        @media (min-width: 768px) {
            .office-map {
                max-width: 800px;
                margin: 0 auto 20px;
            }

            .action-buttons {
                flex-direction: row;
                max-width: 400px;
                margin: 0 auto;
            }

            .btn {
                flex: 1;
            }
        }

        /* Admin Panel Styles */
        .admin-container {
            animation: fadeIn 0.3s ease-out;
        }

        .admin-sub-tab {
            flex: 1;
            padding: 10px;
            background: var(--secondary-bg);
            border: none;
            border-radius: var(--radius-md);
            font-size: 14px;
            font-weight: 600;
            color: var(--hint);
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .admin-sub-tab.active {
            background: var(--primary);
            color: white;
        }

        .admin-tab-content {
            display: none;
        }

        .admin-tab-content.active {
            display: block;
        }

        .filter-btn {
            padding: 8px 16px;
            background: var(--secondary-bg);
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            color: var(--hint);
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn.active {
            background: var(--primary);
            color: white;
        }

        .user-card {
            background: var(--bg);
            border: 1px solid #e0e0e0;
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .user-card.new-user {
            border-left: 4px solid var(--warning);
        }

        .user-card.admin-user {
            border-left: 4px solid var(--info);
        }

        .user-info {
            flex: 1;
        }

        .user-name {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .user-email {
            font-size: 14px;
            color: var(--hint);
        }

        .user-status {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            display: inline-block;
            margin-top: 4px;
        }

        .user-status.new {
            background: #fff3e0;
            color: #e65100;
        }

        .user-status.verified {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .user-status.admin {
            background: #e3f2fd;
            color: #1565c0;
        }

        .user-actions {
            display: flex;
            gap: 8px;
        }

        .user-actions button {
            padding: 8px 12px;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-approve {
            background: var(--success);
            color: white;
        }

        .btn-reject {
            background: var(--danger);
            color: white;
        }

        .btn-toggle-admin {
            background: var(--info);
            color: white;
        }

        .btn-change-office {
            background: var(--warning);
            color: white;
        }

        .office-select {
            min-width: 120px;
        }

        .stat-card {
            background: var(--bg);
            border: 1px solid #e0e0e0;
            border-radius: var(--radius-md);
            padding: 20px;
            text-align: center;
            margin-bottom: 16px;
        }

        .stat-value {
            font-size: 36px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 14px;
            color: var(--hint);
        }

        /* Map Editor Styles */
        .map-card {
            background: var(--bg);
            border: 1px solid #e0e0e0;
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .map-card.active {
            border-left: 4px solid var(--primary);
        }

        .map-card h4 {
            margin: 0;
            flex: 1;
        }

        .map-card-actions {
            display: flex;
            gap: 8px;
        }

        .map-card-actions button {
            padding: 8px 12px;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .map-card-actions button.btn-edit {
            background: var(--info);
            color: white;
        }

        .map-card-actions button.btn-delete {
            background: var(--danger);
            color: white;
        }

        .editor-marker {
            position: absolute;
            width: 32px;
            height: 32px;
            border: 3px solid white;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 11px;
            color: white;
        }

        .editor-marker.available {
            background-color: #4caf50;
        }

        .editor-marker.permanent {
            background-color: #ff9800;
        }

        .editor-marker.not_a_seat {
            background-color: #9e9e9e;
            width: 20px;
            height: 20px;
        }

        .seat-item {
            background: var(--secondary-bg);
            padding: 8px;
            border-radius: var(--radius-sm);
            text-align: center;
            font-size: 12px;
            position: relative;
        }

        .seat-item.available { border-left: 3px solid #4caf50; }
        .seat-item.permanent { border-left: 3px solid #ff9800; }
        .seat-item.not_a_seat { border-left: 3px solid #9e9e9e; }

        .seat-item-number {
            font-weight: bold;
            margin-bottom: 2px;
        }

        .seat-item-coords {
            font-size: 10px;
            color: var(--hint);
        }

        /* Create Map Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 3000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: var(--bg);
            padding: 24px;
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 400px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        }

        .modal-header {
            margin-bottom: 16px;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 18px;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 20px;
        }

        #session-expired-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 99999;
            justify-content: center;
            align-items: center;
        }
        #session-expired-modal.active {
            display: flex;
        }
        .session-expired-content {
            background: #fff;
            border-radius: 16px;
            padding: 32px;
            text-align: center;
            max-width: 340px;
            width: 90%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }
        .session-expired-content svg {
            margin-bottom: 16px;
        }
        .session-expired-content h2 {
            margin: 0 0 8px;
            font-size: 20px;
            color: #1a1a1a;
        }
        .session-expired-content p {
            margin: 0 0 24px;
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
        .session-expired-btn {
            display: inline-block;
            background: #2196F3;
            color: #fff;
            padding: 12px 32px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: background 0.2s;
        }
        .session-expired-btn:hover {
            background: #1976D2;
        }
