/* ============================================================
   Apple-style Dark Theme · высокая контрастность, чистый минимализм
   ============================================================ */

   :root {
    /* Apple dark mode palette (iOS 15+) */
    --bg-primary:    #000000;      /* чистый чёрный фон */
    --bg-secondary:  #1c1c1e;      /* карточки, поверхность */
    --bg-tertiary:   #2c2c2e;      /* hover, акценты */
    --bg-quaternary: #3a3a3c;      /* границы, разделители */
  
    --text-primary:  #ffffff;      /* основной текст */
    --text-secondary:#ebebf5;      /* второстепенный текст */
    --text-tertiary: #ffffff;      /* подписи, плейсхолдеры */
  
    --accent:        #0a84ff;      /* системный синий */
    --accent-pressed:#0063ce;
    --success:       #30d158;      /* зелёный */
    --warning:       #ff9f0a;      /* оранжевый */
    --danger:        #ff453a;      /* красный */
  
    --border-light:  rgba(84, 84, 88, 0.65);
    --border-heavy:  rgba(84, 84, 88, 0.85);
    --separator:     rgba(84, 84, 88, 0.3);
  
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg:     0 8px 28px rgba(0, 0, 0, 0.6);
  
    --radius-xs:     6px;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     18px;
    --radius-xl:     24px;
  
    --topbar-h:      64px;
    --tabbar-h:      68px;
    --safe-bottom:   env(safe-area-inset-bottom, 0px);
    --safe-top:      env(safe-area-inset-top, 0px);
  }
  
  /* ===== база ============================================== */
  *, *::before, *::after { box-sizing: border-box; }
  
  html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    background: var(--bg-primary);
    overflow-x: hidden;
  }
  
  body.tg-web-app {
    background: var(--tg-theme-bg-color, var(--bg-primary));
    color: var(--tg-theme-text-color, var(--text-primary));
  }
  
  ::selection {
    background: var(--accent);
    color: white;
  }
  
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--bg-quaternary);
    border-radius: var(--radius-xl);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.1s ease;
  }
  
  [hidden] {
    display: none !important;
  }
  
  h1, h2, h3, h4 {
    margin: 0 0 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1rem; }
  
  p {
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
  }
  
  small, .small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
  }
  
  /* ===== формы ============================================ */
  input, select, textarea {
    font: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    transition: border 0.15s, box-shadow 0.15s;
  }
  
  input::placeholder, textarea::placeholder {
    color: var(--text-tertiary);
  }
  
  input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
    background: var(--bg-tertiary);
  }
  
  input[type="checkbox"], input[type="radio"] {
    width: auto;
    accent-color: var(--accent);
  }
  
  label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.2px;
  }
  
  .field {
    margin-bottom: 1rem;
  }
  
  .row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .row > * {
    flex: 1 1 0;
    min-width: 0;
  }
  
  /* ===== топбар =========================================== */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(0.75rem + var(--safe-top)) 1rem 0.75rem;
    height: calc(var(--topbar-h) + var(--safe-top));
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--separator);
  }
  
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
  }
  
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--accent);
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .meta .name {
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .meta .role {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: capitalize;
  }
  
  .balance {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--success);
    padding: 0.25rem 0.75rem;
    background: rgba(48, 209, 88, 0.15);
    border: 0.5px solid rgba(48, 209, 88, 0.3);
    border-radius: 40px;
    white-space: nowrap;
  }
  
  .icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-light);
    transition: background 0.15s;
  }
  
  .icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
  }
  
  .icon-btn:active {
    transform: scale(0.96);
  }
  
  /* ===== боковое меню ===================================== */
  .drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: flex-end;
    animation: fade-in 0.2s ease;
  }
  
  .drawer-inner {
    background: var(--bg-secondary);
    width: min(80%, 300px);
    padding: calc(1.5rem + var(--safe-top)) 1rem calc(1rem + var(--safe-bottom));
    border-left: 0.5px solid var(--separator);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    animation: slide-in 0.25s cubic-bezier(0.2, 0.9, 0.4, 1);
    overflow-y: auto;
  }
  
  .drawer a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: background 0.1s;
  }
  
  .drawer a:hover {
    background: var(--bg-tertiary);
  }
  
  .drawer a:active {
    background: var(--bg-quaternary);
  }
  
  @keyframes slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* ===== основной контент ================================= */
  .view {
    padding: 1rem 1rem calc(var(--tabbar-h) + var(--safe-bottom) + 1rem);
    max-width: 800px;
    margin: 0 auto;
    animation: fade-in 0.2s ease;
  }
  
  /* ===== карточки ========================================= */
  .card {
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
  }
  
  .card.interactive {
    cursor: pointer;
  }
  
  .card.interactive:hover {
    border-color: var(--border-heavy);
    background: var(--bg-tertiary);
  }
  
  .card.interactive:active {
    transform: scale(0.99);
  }
  
  .card h3 {
    margin-bottom: 0.5rem;
  }
  
  /* ===== кнопки =========================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.15s, transform 0.05s;
    white-space: nowrap;
  }
  
  .btn:hover {
    background: var(--accent-pressed);
  }
  
  .btn:active {
    transform: scale(0.97);
  }
  
  .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
  
  .btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 0.5px solid var(--border-light);
  }
  
  .btn.secondary:hover {
    background: var(--bg-quaternary);
  }
  
  .btn.ghost {
    background: transparent;
    color: var(--text-secondary);
  }
  
  .btn.ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
  }
  
  .btn.danger {
    background: var(--danger);
  }
  
  .btn.danger:hover {
    background: #dc2626;
  }
  
  .btn.success {
    background: var(--success);
  }
  
  .btn.success:hover {
    background: #0e9f6e;
  }
  
  .btn.warning {
    background: var(--warning);
  }
  
  .btn.warning:hover {
    background: #e67e22;
  }
  
  .btn.block {
    width: 100%;
  }
  
  .btn.sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }
  
  .btn.lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
  }
  
  .link-btn:hover {
    color: var(--accent-pressed);
    text-decoration: underline;
  }
  
  /* ===== главная кнопка-герой ============================= */
  .hero-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-pressed));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    transition: transform 0.08s, filter 0.15s;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.75rem;
  }
  
  .hero-btn:hover {
    filter: brightness(1.05);
  }
  
  .hero-btn:active {
    transform: scale(0.98);
  }
  
  .hero-btn .ico {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
  
  .hero-btn .txt {
    flex: 1;
  }
  
  .hero-btn .txt small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    display: block;
  }
  
  .hero-btn::after {
    content: "→";
    opacity: 0.7;
    font-size: 1.2rem;
    transition: transform 0.15s;
  }
  
  .hero-btn:hover::after {
    transform: translateX(4px);
  }
  
  .hero-btn.green {
    background: linear-gradient(135deg, var(--success), #0e9f6e);
  }
  
  .hero-btn.amber {
    background: linear-gradient(135deg, var(--warning), #e67e22);
  }
  
  /* ===== вкладки ========================================== */
  .tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border-light);
  }
  
  .tabs button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.1s;
  }
  
  .tabs button.active {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
  }
  
  .tabs button:not(.active):hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
  }
  
  /* ===== списки =========================================== */
  .list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* ===== сетка мест ======================================= */
  .grid-seats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
  }
  
  .seat {
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.1s;
  }
  
  .seat .num {
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  .seat .price {
    font-size: 0.7rem;
    color: var(--text-tertiary);
  }
  
  .seat.free {
    border-color: rgba(48, 209, 88, 0.6);
    background: rgba(48, 209, 88, 0.08);
  }
  
  .seat.free:hover {
    background: rgba(48, 209, 88, 0.15);
  }
  
  .seat.booked {
    border-color: rgba(255, 159, 10, 0.6);
    background: rgba(255, 159, 10, 0.08);
    cursor: not-allowed;
  }
  
  .seat.busy {
    border-color: rgba(255, 69, 58, 0.6);
    background: rgba(255, 69, 58, 0.08);
    cursor: not-allowed;
  }
  
  .seat.selected {
    border-color: var(--accent);
    background: rgba(10, 132, 255, 0.15);
  }
  
  .seat input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.25rem;
    font-size: 0.7rem;
    text-align: center;
  }
  
  /* ===== чат ============================================== */
  .chat-box {
    display: flex;
    flex-direction: column;
    height: 60vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-light);
    overflow: hidden;
  }
  
  .chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .msg {
    max-width: 80%;
    padding: 0.6rem 1rem;
    border-radius: 18px;
    background: var(--bg-tertiary);
    border: 0.5px solid var(--border-light);
    font-size: 0.875rem;
    word-break: break-word;
  }
  
  .msg.mine {
    align-self: flex-end;
    background: var(--accent);
    border: none;
    color: white;
  }
  
  .msg .time {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
  }
  
  .msg.mine .time {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 0.5px solid var(--separator);
    background: var(--bg-secondary);
  }
  
  /* ===== статистика ======================================= */
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .stat {
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
  }
  
  .stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
  }
  
  .stat .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.25rem;
    line-height: 1.2;
  }
  
  /* ===== чипсы ============================================ */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    border: 0.5px solid var(--border-light);
    border-radius: 40px;
    padding: 0.2rem 0.6rem;
    color: var(--text-secondary);
  }
  
  .chip.success {
    background: rgba(48, 209, 88, 0.15);
    color: #6ee7b7;
    border-color: rgba(48, 209, 88, 0.3);
  }
  
  .chip.warn {
    background: rgba(255, 159, 10, 0.15);
    color: #fcd34d;
    border-color: rgba(255, 159, 10, 0.3);
  }
  
  .chip.danger {
    background: rgba(255, 69, 58, 0.15);
    color: #fca5a5;
    border-color: rgba(255, 69, 58, 0.3);
  }
  
  .chip.info {
    background: rgba(10, 132, 255, 0.15);
    color: #a5b4fc;
    border-color: rgba(10, 132, 255, 0.3);
  }
  
  /* ===== тост ============================================= */
  .toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 1rem);
    transform: translateX(-50%) translateY(0.5rem);
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 0.5px solid var(--border-heavy);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    z-index: 120;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    pointer-events: none;
    box-shadow: var(--shadow-md);
  }
  
  .toast:not([hidden]) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  .toast.error {
    background: var(--danger);
    color: white;
    border-color: transparent;
  }
  
  .toast.success {
    background: var(--success);
    color: white;
    border-color: transparent;
  }
  
  /* ===== модалка ========================================== */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.15s ease;
  }
  
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
  }
  
  .modal-box {
    position: relative;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-heavy);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.2s ease;
  }
  
  @keyframes modal-in {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* ===== вспомогательное ================================== */
  .loader {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .hint {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    margin-top: 0.25rem;
  }
  
  .switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
  }
  
  .error {
    color: #fca5a5;
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
  
  .empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-tertiary);
  }
  
  .empty .em {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
  }
  
  /* автодополнение */
  .datalist-wrap {
    position: relative;
  }
  
  .suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-heavy);
    border-radius: var(--radius-md);
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 15;
    box-shadow: var(--shadow-md);
  }
  
  .suggest div {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 0.5px solid var(--separator);
    transition: background 0.1s;
  }
  
  .suggest div:last-child {
    border-bottom: none;
  }
  
  .suggest div:hover {
    background: var(--bg-tertiary);
  }
  
  /* ===== нижний таббар ==================================== */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-top: 0.5px solid var(--separator);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }
  
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.1s;
  }
  
  .tabbar a .ic {
    font-size: 1.4rem;
  }
  
  .tabbar a.active {
    color: var(--accent);
  }
  
  .tabbar a:active {
    transform: scale(0.95);
  }
  
  /* ===== экран загрузки =================================== */
  .boot-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
  }
  
  .boot-screen[hidden] {
    display: none !important;
  }
  
  .boot-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
  }
  
  .boot-loader {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  
  /* ===== утилиты ========================================== */
  .flex {
    display: flex;
  }
  
  .flex-col {
    display: flex;
    flex-direction: column;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .gap-4 { gap: 0.25rem; }
  .gap-6 { gap: 0.375rem; }
  .gap-8 { gap: 0.5rem; }
  .gap-10 { gap: 0.625rem; }
  .gap-12 { gap: 0.75rem; }
  
  .mt-4 { margin-top: 0.25rem; }
  .mt-8 { margin-top: 0.5rem; }
  .mt-12 { margin-top: 0.75rem; }
  .mt-16 { margin-top: 1rem; }
  
  .mb-4 { margin-bottom: 0.25rem; }
  .mb-8 { margin-bottom: 0.5rem; }
  .mb-12 { margin-bottom: 0.75rem; }
  .mb-16 { margin-bottom: 1rem; }
  
  .text-center { text-align: center; }
  .text-muted  { color: var(--text-tertiary); }
  .text-dim    { color: var(--text-secondary); }
  .text-danger { color: var(--danger); }
  .text-success{ color: var(--success); }
  
  .grow {
    flex-grow: 1;
  }
  
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1.25rem 0 0.75rem;
  }
  
  .section-head h3 {
    margin: 0;
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  
  /* ===== адаптивность ===================================== */
  @media (max-width: 640px) {
    .grid-seats {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .hero-btn {
      padding: 0.75rem 1rem;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
    }
  }
  /* ===== Дополнительные утилитарные классы ===== */
.mt-6 { margin-top: 0.375rem !important; }
.mb-6 { margin-bottom: 0.375rem !important; }
.my-8 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-12 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.m-0 { margin: 0 !important; }

.py-6 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.p-12 { padding: 0.75rem !important; }

.gap-6 { gap: 0.375rem !important; }
.gap-10 { gap: 0.625rem !important; }

.text-xl { font-size: 1.2rem !important; }
.text-sm { font-size: 0.8rem !important; }
.text-xs { font-size: 0.7rem !important; }
.text-13 { font-size: 13px !important; }

.fw-600 { font-weight: 600 !important; }

/* Для совместимости со старыми именами переменных */
.text-primary { color: var(--accent) !important; }
.text-muted { color: var(--text-tertiary) !important; }
.text-success { color: var(--success) !important; }.small { color: var(--text-tertiary) \!important; }

/* Принудительно белый текст на всех кнопках */
.btn,
.btn.success,
.btn.secondary,
.btn.primary,
.btn.danger,
.btn.warning {
  color: #ffffff !important;
}

/* === ПРИНУДИТЕЛЬНО БЕЛЫЙ ТЕКСТ ДЛЯ ВСЕХ КНОПОК === */
.btn,
.btn * {
  color: #ffffff !important;
}

/* === БЕЛЫЙ ТЕКСТ ДЛЯ НОМЕРОВ ЗАКАЗОВ === */
strong,
.card strong,
#order-number,
.order-number {
  color: #ffffff !important;
}

/* === БЕЛЫЙ ТЕКСТ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ КРОМЕ СПЕЦИАЛЬНЫХ === */
body, .view, .card, .btn, .btn *, .text-muted, .small, strong, b, .grow, .row, .field, [class*="muted"], [class*="text-"]:not(.text-success):not(.text-danger):not(.text-accent) {
  color: #ffffff !important;
}
