:root {
      --ink: #0a0a0a;
      --paper: #f0ebe2;
      --blood: #8b1a1a;
      --blood-bright: #c0392b;
      --ember: #d4872a;
      --fog: rgba(240,235,226,0.06);
      --border: rgba(240,235,226,0.12);
      --green-dark: #1a3d2a;
      --green-bright: #28a745;
    }

    /* ====== RESET + BAS ====== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    html, body { min-height: 100vh; }

    body {
      font-family: 'IM Fell English', Georgia, serif;
      background: #0d0b0a;
      color: #e8e0d0;
      background-image:
        radial-gradient(ellipse 100% 70% at 50% 0%,   rgba(60,15,10,0.55) 0%, transparent 60%),
        radial-gradient(ellipse 80%  50% at 50% 100%, rgba(20,5,5,0.4)    0%, transparent 55%);
    }

    /* Kornkorn-overlay */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      opacity: 0.035;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
      background-size: 200px;
    }

    /* ====== TOPBAR ====== */
    .topbar {
      background: linear-gradient(180deg, rgba(10,10,10,0.97), rgba(15,10,8,0.95));
      padding: 0 20px;
      border-bottom: 1px solid rgba(139,26,26,0.35);
      box-shadow: 0 1px 0 rgba(212,135,42,0.08), 0 4px 20px rgba(0,0,0,0.6);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      height: 52px;
      position: sticky;
      top: 0;
      z-index: 500;
    }

    .topbar::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212,135,42,0.4), transparent);
    }

    #openBlock {
      text-align: center;
      white-space: nowrap;
      line-height: 1.2;
    }
    .open-label {
      display: inline;
      font-size: 13px;
      color: rgba(232,224,208,0.55);
      letter-spacing: 0.5px;
      text-transform: uppercase;
      font-family: 'IM Fell English SC', serif;
    }
    .open-time {
      display: inline;
      font-size: 15px;
      color: #e8e0d0;
      margin-left: 6px;
    }
    @media (max-width: 520px) {
      #openBlock { white-space: normal; }
      .open-time { display: block; font-size: 13px; margin-top: 2px; }
    }
    @media (max-width: 380px) {
      #welcomeKorpenLogo { max-width: 200px; }
      .welcome-hotel-name { letter-spacing: 2px; font-size: 1.3rem; }
      .welcome-status-card { padding: 7px 12px; }
      .topbar { padding: 0 10px; gap: 6px; }
      .login-box { padding: 32px 22px 26px; }
    }

    .user-menu { justify-self: end; position: relative; }

    #loginBtn {
      background: transparent;
      color: #e8e0d0;
      border: 1px solid rgba(139,26,26,0.6);
      padding: 6px 16px;
      border-radius: 3px;
      cursor: pointer;
      font-family: 'IM Fell English SC', serif;
      font-size: 14px;
      letter-spacing: 0.5px;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }
    #loginBtn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(139,26,26,0.3), transparent);
      opacity: 0;
      transition: opacity 0.2s;
    }
    #loginBtn:hover { border-color: rgba(139,26,26,0.9); color: #fff; box-shadow: 0 0 12px rgba(139,26,26,0.3), inset 0 0 12px rgba(139,26,26,0.1); }
    #loginBtn:hover::before { opacity: 1; }

    #logoutBtn {
      background: transparent;
      color: #e8e0d0;
      border: 1px solid var(--border);
      padding: 5px 12px;
      border-radius: 3px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      font-family: 'IM Fell English SC', serif;
      transition: border-color 0.2s;
    }
    #logoutBtn:hover { border-color: rgba(232,224,208,0.3); }

    .status {
      font-family: 'IM Fell English SC', serif;
      font-size: 14px;
      letter-spacing: 0.3px;
      color: rgba(232,224,208,0.7);
    }
    .status .clickable { cursor: pointer; transition: color 0.15s; }
    .status .clickable:hover { color: #e8e0d0; }

    .user-menu .dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      background: rgba(12,8,6,0.97);
      min-width: 200px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(139,26,26,0.25);
      border-radius: 4px;
      overflow: hidden;
      z-index: 100;
      border: 1px solid rgba(139,26,26,0.2);
    }
    .user-menu .dropdown a {
      display: block;
      padding: 11px 16px;
      color: rgba(232,224,208,0.8);
      text-decoration: none;
      font-family: 'IM Fell English SC', serif;
      font-size: 14px;
      letter-spacing: 0.3px;
      border-bottom: 1px solid rgba(255,255,255,0.04);
      transition: background 0.15s, color 0.15s, padding-left 0.15s;
    }
    .user-menu .dropdown a:last-child { border-bottom: none; }
    .user-menu .dropdown a:hover { background: rgba(139,26,26,0.2); color: #fff; padding-left: 20px; }

    /* ====== LOGIN MODAL ====== */
    #loginModal {
      position: fixed;
      inset: 0;
      display: none;
      z-index: 20000;
    }
    #loginModal.active {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.85);
      backdrop-filter: blur(4px);
      animation: fadeInOverlay 0.3s ease;
    }
    @keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

    .login-box {
      background: linear-gradient(160deg, #110a08, #0d0907);
      border: 1px solid rgba(139,26,26,0.4);
      border-radius: 6px;
      padding: 40px 36px 32px;
      width: min(420px, 92vw);
      box-shadow: 0 0 0 1px rgba(212,135,42,0.06), 0 24px 80px rgba(0,0,0,0.9), inset 0 1px 0 rgba(212,135,42,0.08);
      animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }
    .login-box::before { content: ''; position: absolute; top: 0; left: 0; width: 80px; height: 80px; background: radial-gradient(circle at top left, rgba(139,26,26,0.18), transparent 70%); pointer-events: none; }
    .login-box::after { content: ''; position: absolute; bottom: 0; right: 0; width: 120px; height: 60px; background: radial-gradient(circle at bottom right, rgba(139,26,26,0.1), transparent 70%); pointer-events: none; }
    @keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

    .login-logo { text-align: center; margin-bottom: 28px; }
    .login-logo-img { max-width: 160px; width: 70%; height: auto; opacity: 0.9; filter: drop-shadow(0 0 16px rgba(139,26,26,0.5)); }
    .login-title { font-family: 'IM Fell English SC', serif; font-size: 22px; color: #e8e0d0; text-align: center; letter-spacing: 0.5px; margin-bottom: 6px; text-shadow: 0 0 20px rgba(139,26,26,0.4); }
    .login-subtitle { font-family: 'IM Fell English', serif; font-size: 13px; font-style: italic; color: rgba(232,224,208,0.4); text-align: center; margin-bottom: 28px; letter-spacing: 0.3px; }
    .login-field { margin-bottom: 16px; }
    .login-label { display: block; font-family: 'IM Fell English SC', serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(232,224,208,0.45); margin-bottom: 8px; }
    .login-input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(232,224,208,0.12); border-radius: 3px; padding: 12px 14px; color: #e8e0d0; font-family: 'IM Fell English', serif; font-size: 18px; letter-spacing: 4px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; -webkit-text-security: disc; appearance: none; }
    .login-input:focus { outline: none; border-color: rgba(139,26,26,0.6); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(139,26,26,0.12), 0 0 16px rgba(139,26,26,0.1); }
    .login-input::placeholder { color: rgba(232,224,208,0.2); letter-spacing: 2px; font-size: 14px; }
    #loginNameInput { -webkit-text-security: none; letter-spacing: 0.5px; font-size: 16px; }
    #loginNameInput::placeholder { letter-spacing: 0.5px; font-size: 15px; }
    .login-input.shake { animation: shake 0.35s ease; border-color: rgba(192,57,43,0.8); }
    @keyframes shake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-6px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} }
    .login-error { font-family: 'IM Fell English', serif; font-style: italic; font-size: 13px; color: #c0392b; text-align: center; min-height: 18px; margin-bottom: 14px; transition: opacity 0.2s; }
    .login-submit { width: 100%; background: linear-gradient(160deg, #6b1414, #8b1a1a); color: #f0ebe2; border: 1px solid rgba(192,57,43,0.5); border-radius: 3px; padding: 13px; font-family: 'IM Fell English SC', serif; font-size: 16px; letter-spacing: 1.5px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
    .login-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); transition: left 0.4s; }
    .login-submit:hover { background: linear-gradient(160deg, #7a1818, #9e1f1f); box-shadow: 0 0 20px rgba(139,26,26,0.4); }
    .login-submit:hover::before { left: 100%; }
    .login-submit:active { transform: scale(0.99); }
    .login-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: rgba(232,224,208,0.3); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 3px; transition: color 0.15s; line-height: 1; }
    .login-close:hover { color: rgba(232,224,208,0.7); }
    .login-hint { text-align: center; margin-top: 16px; font-family: 'IM Fell English', serif; font-style: italic; font-size: 12px; color: rgba(232,224,208,0.22); letter-spacing: 0.3px; }

    /* ====== KASSA LOCK SCREEN ====== */
    #kassaLockModal { position: fixed; inset: 0; display: none; z-index: 18000; background: rgba(0,0,0,0.92); backdrop-filter: blur(6px); align-items: center; justify-content: center; animation: fadeInOverlay 0.25s ease; }
    #kassaLockModal.active { display: flex; }
    .kassa-lock-box { background: linear-gradient(160deg, #110a08, #0d0907); border: 1px solid rgba(139,26,26,0.4); border-radius: 8px; padding: 36px 32px 28px; width: min(340px, 92vw); text-align: center; animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .kassa-lock-icon { color: rgba(232,224,208,0.25); margin-bottom: 14px; display: flex; justify-content: center; }
    .kassa-lock-label { font-family: 'IM Fell English SC', serif; letter-spacing: 1px; color: rgba(232,224,208,0.45); font-size: 13px; margin: 0 0 18px; }
    .kassa-lock-user-row { display: flex; justify-content: center; margin-bottom: 4px; }
    .kassa-lock-user-btn { background: rgba(139,26,26,0.12); border: 1px solid rgba(139,26,26,0.35); border-radius: 20px; padding: 7px 16px; font-family: 'IM Fell English SC', serif; font-size: 15px; color: #e8e0d0; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s; }
    .kassa-lock-user-btn:hover { background: rgba(139,26,26,0.22); border-color: rgba(139,26,26,0.55); }
    .kassa-lock-switch-list { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; }
    .lock-switch-user { background: rgba(255,255,255,0.04); border: 1px solid rgba(232,224,208,0.1); border-radius: 6px; padding: 8px 14px; font-family: 'IM Fell English SC', serif; font-size: 14px; color: rgba(232,224,208,0.75); cursor: pointer; text-align: left; transition: background .15s, color .15s; }
    .lock-switch-user:hover { background: rgba(139,26,26,0.18); color: #e8e0d0; border-color: rgba(139,26,26,0.4); }
    .lock-switch-user.active-user { background: rgba(139,26,26,0.18); border-color: rgba(139,26,26,0.5); color: #e8e0d0; }

    /* ====== SEKTIONER ====== */
    .section { background: rgba(10,8,6,0.75); border: 1px solid rgba(232,224,208,0.08); border-radius: 6px; padding: 14px; margin: 10px 0; text-align: left; backdrop-filter: blur(4px); }
    .section h4 { margin: 0 0 8px; font-size: 15px; font-family: 'IM Fell English SC', serif; }
    .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .muted { color: rgba(232,224,208,0.45); font-size: 12px; font-style: italic; }
    .tag { display: inline-block; padding: 4px 10px; border-radius: 2px; background: rgba(255,255,255,0.06); margin: 4px 6px 0 0; font-size: 12px; border: 1px solid rgba(255,255,255,0.08); }

    .disclosure { display: block; text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; padding: 10px 14px; color: rgba(232,224,208,0.85); cursor: pointer; width: 100%; font-family: 'IM Fell English SC', serif; font-size: 14px; letter-spacing: 0.3px; transition: background 0.15s, border-color 0.15s; box-sizing: border-box; }
    #adminSettings .disclosure, #statsContainer .disclosure { padding: 10px 14px; font-size: 14px; margin: 0; }
    .disclosure:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
    .disclosure + .content { display: none; padding: 12px 0 0; }

    .input { background: rgba(255,255,255,0.05); color: #e8e0d0; border: 1px solid rgba(232,224,208,0.12); border-radius: 4px; padding: 8px 10px; font-family: 'IM Fell English', serif; font-size: 15px; transition: border-color 0.15s; }
    .input:focus { outline: none; border-color: rgba(139,26,26,0.5); }

    .btn { background: rgba(255,255,255,0.07); color: #e8e0d0; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 8px 14px; cursor: pointer; font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.3px; transition: background 0.15s, border-color 0.15s; }
    .btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
    .btn-danger { background: rgba(139,26,26,0.25); border-color: rgba(139,26,26,0.4); }
    .btn-danger:hover { background: rgba(139,26,26,0.4); border-color: rgba(192,57,43,0.6); }
    .btn-primary { background: rgba(45,108,223,0.3); border-color: rgba(45,108,223,0.5); }
    .btn-primary:hover { background: rgba(45,108,223,0.45); }
    .btn-green { background: rgba(40,167,69,0.25); border-color: rgba(40,167,69,0.45); }
    .btn-green:hover { background: rgba(40,167,69,0.4); border-color: rgba(40,167,69,0.65); }

    .pill { display: inline-block; padding: 5px 11px; border-radius: 2px; background: rgba(255,255,255,0.06); color: #e8e0d0; font-size: 12px; border: 1px solid rgba(255,255,255,0.1); font-family: 'IM Fell English SC', serif; }
    .tiny { font-size: 11px; color: rgba(232,224,208,0.45); }
    .clickable { cursor: pointer; }

    /* ====== MENUS ====== */
    #hoursMenu, #queueMenu, #adminSettings {
      display: none;
      background: rgba(10,8,6,0.92);
      padding: 18px;
      text-align: center;
      border-bottom: 1px solid rgba(139,26,26,0.2);
      border-top: 1px solid rgba(139,26,26,0.1);
      max-width: 820px;
      margin: 16px auto;
      border-radius: 6px;
      border: 1px solid rgba(139,26,26,0.2);
      backdrop-filter: blur(8px);
    }
    #hoursMenu select, #hoursMenu input, #hoursMenu button,
    #queueMenu select, #queueMenu button,
    #adminSettings input, #adminSettings select, #adminSettings button, #adminSettings textarea {
      font-size: 15px; margin: 5px 0; padding: 8px;
      font-family: 'IM Fell English', serif;
    }
    #userSelect { font-family: monospace; }
    .admin-password { margin: 6px 0 10px; font-size: 12px; color: rgba(232,224,208,0.45); }
    .admin-password .label { margin-right: 6px; opacity: .8; }
    .admin-password .value { font-family: monospace; color: rgba(232,224,208,0.65); }

    /* Admin form helpers */
    #adminSettings > h3 { font-family: 'IM Fell English SC', serif; letter-spacing: 0.5px; color: #f0ebe2; margin-bottom: 12px; }
    .admin-label { display: block; font-family: 'IM Fell English SC', serif; font-size: 12px; color: rgba(232,224,208,0.5); letter-spacing: 0.5px; margin-bottom: 5px; }
    .admin-field { margin-bottom: 12px; }
    .admin-textarea { width: 100%; padding: 10px; background: rgba(255,255,255,0.04); color: #e8e0d0; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-family: 'IM Fell English', serif; font-size: 14px; resize: vertical; transition: border-color 0.15s; }
    .admin-textarea:focus { outline: none; border-color: rgba(139,26,26,0.5); }
    .admin-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 14px 0; }
    .section .content h4 { margin-top: 12px; margin-bottom: 6px; }
    .section .content h4:first-child { margin-top: 0; }

    /* ====== WELCOME LOADING OVERLAY ====== */
    #welcomeLoading {
      position: fixed;
      inset: 0;
      z-index: 9998;
      background: #0d0b0a;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 32px;
      pointer-events: none;
      transition: opacity 0.8s ease;
    }
    #welcomeLoading.wl-out { opacity: 0; }
    .wl-ember {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: radial-gradient(circle at 50% 60%, rgba(212,100,20,0.9) 0%, rgba(139,26,26,0.5) 45%, transparent 72%);
      box-shadow: 0 0 32px 12px rgba(180,60,20,0.3), 0 0 70px 20px rgba(139,26,26,0.15);
      animation: wl-flicker 1.8s ease-in-out infinite;
    }
    @keyframes wl-flicker {
      0%,100% { transform: scaleY(1) scaleX(1);    opacity: 0.75; }
      30%      { transform: scaleY(1.08) scaleX(0.95); opacity: 1;    }
      60%      { transform: scaleY(0.94) scaleX(1.04); opacity: 0.85; }
      80%      { transform: scaleY(1.04) scaleX(0.97); opacity: 0.95; }
    }
    .wl-text {
      font-family: 'IM Fell English SC', serif;
      font-size: 18px;
      letter-spacing: 3px;
      color: rgba(232,224,208,0.35);
      margin: 0;
      animation: wl-breathe 2.4s ease-in-out infinite;
    }
    @keyframes wl-breathe {
      0%,100% { opacity: 0.28; }
      50%      { opacity: 0.6;  }
    }

    /* ====== WELCOME ====== */
    #welcomeMessage {
      display: none;
      min-height: 100vh;
      flex-direction: column;
      align-items: center;
      position: relative;
    }
    #welcomeMessage::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent 0%, rgba(180,60,30,0.5) 35%, rgba(212,135,42,0.65) 50%, rgba(180,60,30,0.5) 65%, transparent 100%);
      pointer-events: none;
    }

    /* Ember canvas */
    #emberCanvas {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
    }

    .welcome-inner {
      width: min(560px, 92vw);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      position: relative;
      z-index: 2;
    }

    .welcome-hero { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px 20px 20px; text-align: center; position: relative; z-index: 2; }
    #welcomeKorpenLogo { max-width: 280px; width: 70%; height: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)) drop-shadow(0 0 20px rgba(139,26,26,0.28)); animation: wFadeUp 0.7s ease both; }
    .welcome-hotel-name { font-family: 'IM Fell English SC', serif; font-size: clamp(1.4rem, 4.5vw, 2.2rem); letter-spacing: 4px; color: #f0ebe2; margin: 0; text-shadow: 0 2px 16px rgba(139,26,26,0.35); line-height: 1.2; animation: wFadeUp 0.7s ease 0.1s both; transition: opacity 0.38s ease; }
    #welcomeMessage h1 { font-family: 'IM Fell English', serif; font-style: italic; font-weight: 400; font-size: clamp(1.05rem, 2.6vw, 1.3rem); line-height: 1.55; color: rgba(232,224,208,0.75); letter-spacing: 0.2px; margin: 0; animation: wFadeUp 0.7s ease 0.2s both; transition: opacity 0.38s ease; }
    .welcome-tagline { font-family: 'IM Fell English', serif; font-style: italic; font-size: clamp(0.82rem, 1.8vw, 0.95rem); color: rgba(232,224,208,0.38); letter-spacing: 0.3px; margin: 0; line-height: 1.5; animation: wFadeUp 0.7s ease 0.3s both; transition: opacity 0.38s ease; }

    .welcome-status-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; animation: wFadeUp 0.7s ease 0.2s both; }
    .welcome-status-card { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.1); border-radius: 40px; padding: 8px 18px; display: flex; align-items: center; gap: 9px; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
    .welcome-status-card.queue-live { background: rgba(92,184,92,0.1); border-color: rgba(92,184,92,0.28); box-shadow: 0 0 14px rgba(92,184,92,0.1); }
    .welcome-status-card.queue-dim  { background: rgba(200,70,50,0.06); border-color: rgba(200,70,50,0.18); }
    .welcome-status-label { font-family: 'IM Fell English SC', serif; font-size: 10px; letter-spacing: 1.6px; color: rgba(232,224,208,0.35); white-space: nowrap; }
    .welcome-status-value { font-family: 'IM Fell English SC', serif; font-size: 14px; letter-spacing: 0.3px; color: #e8e0d0; white-space: nowrap; }
    .welcome-status-value.is-closed { color: rgba(210,80,60,0.9); }
    .welcome-status-value.is-open   { color: rgba(150,210,130,0.9); }
    .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; position: relative; top: -1px; flex-shrink: 0; }
    .status-dot.live { background: #5cb85c; animation: pulse-dot 2.2s ease-out infinite; }
    .status-dot.dead { background: rgba(200,70,50,0.55); }
    @keyframes pulse-dot { 0%{box-shadow:0 0 0 0 rgba(92,184,92,0.5);} 70%{box-shadow:0 0 0 6px rgba(92,184,92,0);} 100%{box-shadow:0 0 0 0 rgba(92,184,92,0);} }

    #welcomeAdminBar { margin: -16px 0 20px; display: none; }
    #welcomeAdminBar span { cursor: pointer; font-size: 11px; color: rgba(232,224,208,0.22); font-style: italic; font-family: 'IM Fell English', serif; margin: 0 8px; transition: color 0.15s; }
    #welcomeAdminBar span:hover { color: rgba(232,224,208,0.5); }

    #welcomeInfoText { display: none; font-family: 'IM Fell English', serif; font-style: italic; font-size: 1em; color: rgba(232,224,208,0.62); line-height: 1.75; margin: 0 0 20px; text-align: center; }

    .welcome-divider { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,224,208,0.18), transparent); margin: 4px auto 16px; }
    .welcome-info-panel { width: 100%; max-width: 440px; margin: 0 auto 8px; animation: wFadeUp 0.7s ease 0.35s both; }
    #welcomeFaqContent { font-family: "IM Fell English", serif; font-size: 14px; line-height: 1.9; color: rgba(232,224,208,0.72); text-align: center; }
    #welcomeFaqContent strong { color: #d4a854; font-style: normal; }
    #welcomeFaqContent br + br { display: block; content: ""; margin-top: 6px; }

    .welcome-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; animation: wFadeUp 0.7s ease 0.45s both; }
    .social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 24px; border: 1px solid rgba(232,224,208,0.13); background: rgba(255,255,255,0.04); color: rgba(232,224,208,0.55); font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.4px; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; }
    .social-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(232,224,208,0.28); color: rgba(232,224,208,0.88); }
    .social-btn svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s; }
    .social-btn:hover svg { opacity: 1; }

    .welcome-staff-btn { display: block; margin: 12px auto 48px; background: transparent; border: none; color: rgba(232,224,208,0.22); font-family: 'IM Fell English', serif; font-style: italic; font-size: 13px; cursor: pointer; letter-spacing: 0.3px; padding: 6px 12px; transition: color 0.2s; }
    .welcome-staff-btn:hover { color: rgba(232,224,208,0.5); }

    /* ====== WELCOME LANDING – SEKTIONER ====== */
    .ws-arrow { font-size: 22px; color: rgba(232,224,208,0.18); margin-top: 8px; animation: ws-arrow-bounce 2.2s ease-in-out infinite; line-height: 1; }
    @keyframes ws-arrow-bounce { 0%,100%{ transform:translateY(0); opacity:0.18; } 50%{ transform:translateY(9px); opacity:0.42; } }

    /* Stor statusindikator (Idag-fliken) */
    .wt-status-big { text-align: center; padding: 24px 0 20px; }
    .wt-open-badge { display: block; font-family: 'IM Fell English SC', serif; font-size: clamp(2.8rem, 10vw, 4.5rem); letter-spacing: 3px; line-height: 1; margin-bottom: 10px; transition: color 0.4s, text-shadow 0.4s; }
    .wt-open-badge.is-open { color: rgba(100,210,130,0.95); text-shadow: 0 0 24px rgba(80,180,100,0.35); }
    .wt-open-badge.is-closed { color: rgba(200,80,60,0.75); text-shadow: 0 0 20px rgba(180,50,40,0.2); }
    .wt-hours-text { display: block; font-family: 'IM Fell English SC', serif; font-size: 15px; letter-spacing: 0.6px; color: rgba(232,224,208,0.45); margin-top: 4px; }

    /* Flikar på välkomstsidan */
    .ws-tabs { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; margin: 4px 0 16px; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
    .ws-tab { background: transparent; border: none; border-bottom: 2px solid transparent; padding: 10px 20px; color: rgba(232,224,208,0.42); font-family: 'IM Fell English SC', serif; font-size: 14px; letter-spacing: 0.8px; cursor: pointer; transition: color 0.15s, border-color 0.15s; margin-bottom: -1px; }
    .ws-tab:hover { color: rgba(232,224,208,0.78); }
    .ws-tab.active { color: #e8e0d0; border-bottom-color: rgba(212,135,42,0.8); }
    .ws-panel { width: 100%; min-height: 60px; }

    .ws-nav { width: 100%; position: sticky; top: 0; z-index: 100; background: rgba(10,8,6,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(139,26,26,0.18); display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 9px 16px; }
    .ws-nav-link { background: transparent; border: 1px solid transparent; border-radius: 20px; padding: 5px 14px; color: rgba(232,224,208,0.48); font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.6px; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
    .ws-nav-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(232,224,208,0.88); }

    .ws-body { max-width: 680px; width: 100%; margin: 0 auto; padding: 0 24px 32px; position: relative; z-index: 2; }

    .ws-section { padding: 52px 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; scroll-margin-top: 48px; }
    .ws-section:last-of-type { border-bottom: none; }

    .ws-heading { font-family: 'IM Fell English SC', serif; font-size: 10px; letter-spacing: 3.5px; color: rgba(212,135,42,0.6); text-transform: uppercase; margin: 0 0 28px; display: block; }

    /* Statuskort i ny layout */
    #ws-idag .welcome-status-row { margin-bottom: 0; }
    #ws-idag #welcomeAdminBar { margin: 16px 0 0; }

    /* Prislista i välkomstläget – mindre än storskärm */
    #wsPrices .ds-price-name { font-size: 1rem; }
    #wsPrices .ds-price-val  { font-size: 1.05rem; text-shadow: none; }
    #wsPrices .ds-price-row  { padding: 0.3em 0.5em; }
    #wsPrices .ds-prices     { gap: 0; }

    /* Info-panel – gästguide-känsla */
    #welcomeFaqContent {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 15px;
      font-style: normal;
      line-height: 1.85;
      color: rgba(232,224,208,0.78);
      text-align: left;
      max-width: 420px;
      margin: 0 auto;
    }
    #welcomeFaqContent strong { color: #d4a854; font-family: 'IM Fell English SC', serif; font-size: 11px; letter-spacing: 2px; display: block; margin: 18px 0 4px; }

    /* Priskort */
    .ws-prices { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
    .ws-price-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; padding: 20px 24px; text-align: center; min-width: 120px; transition: background 0.2s, border-color 0.2s; }
    .ws-price-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
    .ws-price-name { display: block; font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.4px; color: rgba(232,224,208,0.55); margin-bottom: 10px; }
    .ws-price-val { font-family: 'IM Fell English SC', serif; font-size: 30px; color: #d4a854; line-height: 1; }
    .ws-price-kr { font-size: 15px; color: rgba(212,168,84,0.65); margin-left: 3px; }

    /* FAQ accordion */
    .faq-item { border-bottom: 1px solid rgba(232,224,208,0.1); }
    .faq-item:last-child { border-bottom: none; }
    .faq-q { cursor: pointer; font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.5px; color: rgba(232,224,208,0.85); padding: 11px 4px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; user-select: none; }
    .faq-q::-webkit-details-marker { display: none; }
    .faq-q::after { content: '+'; font-size: 18px; font-family: serif; color: rgba(232,224,208,0.35); flex-shrink: 0; transition: transform 0.2s; }
    .faq-item[open] > .faq-q::after { content: '−'; }
    .faq-a { font-size: 14px; color: rgba(232,224,208,0.65); line-height: 1.75; padding: 2px 4px 13px; }

    /* FAQ-innehåll i ny layout */
    #ws-faq #welcomeFaqContent { text-align: left; max-width: 520px; margin: 0 auto; }
    /* Info-innehåll i ny layout */
    #ws-info #welcomeInfoText { display: block; }

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

    /* ====== OFFLINE BANNER ====== */
    #offlineBanner { display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(10,6,4,0.92); border: 1px solid rgba(200,70,50,0.35); border-radius: 20px; padding: 8px 20px; font-family: 'IM Fell English', serif; font-style: italic; font-size: 13px; color: rgba(232,224,208,0.55); z-index: 9998; white-space: nowrap; backdrop-filter: blur(6px); animation: wFadeUp 0.3s ease; }
    #offlineBanner.visible { display: block; }


    /* ====== MIN SIDA ====== */
    #profileContainer {
      display: none;
      max-width: 860px;
      margin: 32px auto;
      background: rgba(20,15,12,0.85);
      padding: 24px 28px 20px;
      border-radius: 10px;
      color: #e8e0d0;
      box-shadow: 0 8px 32px rgba(0,0,0,0.5);
      border: 1px solid rgba(232,224,208,0.08);
      backdrop-filter: blur(8px);
    }
    #profileContainer h2 { text-align: center; margin: 0 0 16px; font-family: 'IM Fell English SC', serif; letter-spacing: 0.5px; font-size: 22px; }

    .profile-columns { display: flex; flex-direction: column; }
    .profile-col-left, .profile-col-right { flex: 1; min-width: 0; }

    @media (min-width: 680px) {
      .profile-columns { flex-direction: row; align-items: flex-start; gap: 32px; }
      .profile-col-right > .profile-block:first-child { border-top: 1px solid rgba(232,224,208,0.07); }
    }

    .profile-block { padding: 10px 0; border-top: 1px solid rgba(232,224,208,0.07); }
    .profile-row { display: flex; align-items: baseline; gap: 12px; padding: 3px 0; }
    .profile-label { font-family: 'IM Fell English SC', serif; font-size: 11px; letter-spacing: 0.9px; color: rgba(232,224,208,0.4); text-transform: uppercase; min-width: 96px; flex-shrink: 0; }
    .profile-value { font-family: 'IM Fell English', serif; font-size: 15px; color: #e8e0d0; }
    .profile-task-desc { margin: 2px 0 0 108px; font-size: 13px; color: rgba(232,224,208,0.5); font-family: 'IM Fell English', serif; font-style: italic; line-height: 1.5; }
    .profile-ledig { margin: 0; padding: 14px 0; border-top: 1px solid rgba(232,224,208,0.07); font-family: 'IM Fell English SC', serif; font-size: 18px; color: rgba(232,224,208,0.85); letter-spacing: 0.5px; text-align: center; }
    .profile-theme-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(232,224,208,0.07); }
    #profileContainer.theme-default { background: rgba(20,15,12,0.85); }
    #profileContainer.theme-forest { background: linear-gradient(180deg, rgba(15,30,18,0.9), rgba(10,22,14,0.9)); border-color: rgba(50,120,60,0.2); }
    #profileContainer.theme-royal  { background: linear-gradient(180deg, rgba(25,15,40,0.9), rgba(18,10,30,0.9)); border-color: rgba(100,60,160,0.2); }

    /* ====== GLOBALA TEMAN ====== */
    /* Forest — gröna accenter */
    body.theme-forest .topbar { border-bottom-color: rgba(40,130,60,0.45); box-shadow: 0 1px 0 rgba(40,167,69,0.12), 0 4px 20px rgba(0,0,0,0.6); }
    body.theme-forest .btn:not(.btn-danger):not(.btn-green):not(#undoCartBtn) { border-color: rgba(40,167,69,0.28); }
    body.theme-forest .btn:not(.btn-danger):not(.btn-green):not(#undoCartBtn):hover { background: rgba(40,167,69,0.1); border-color: rgba(40,167,69,0.55); }
    body.theme-forest .modal { box-shadow: 0 8px 60px rgba(0,0,0,0.85), 0 0 30px rgba(20,90,40,0.25), inset 0 1px 0 rgba(40,167,69,0.1); }
    body.theme-forest .section { border-color: rgba(40,167,69,0.18); }

    /* Royal — lila accenter */
    body.theme-royal .topbar { border-bottom-color: rgba(130,70,210,0.5); box-shadow: 0 1px 0 rgba(150,90,240,0.14), 0 4px 20px rgba(0,0,0,0.6); }
    body.theme-royal .btn:not(.btn-danger):not(.btn-green):not(#undoCartBtn) { border-color: rgba(130,70,210,0.32); }
    body.theme-royal .btn:not(.btn-danger):not(.btn-green):not(#undoCartBtn):hover { background: rgba(130,70,210,0.12); border-color: rgba(150,90,240,0.6); }
    body.theme-royal .modal { box-shadow: 0 8px 60px rgba(0,0,0,0.85), 0 0 30px rgba(80,30,140,0.28), inset 0 1px 0 rgba(150,90,240,0.12); }
    body.theme-royal .section { border-color: rgba(130,70,210,0.2); }

    .theme-dots { display: flex; gap: 10px; align-items: center; }
    .theme-dot { width: 28px; height: 28px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.2); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.35); transition: border-color 0.2s, box-shadow 0.2s; }
    .theme-dot:focus { outline: 2px solid #999; outline-offset: 2px; }
    .theme-dot[data-theme="default"] { background: rgba(30,22,18,0.9); }
    .theme-dot[data-theme="forest"]  { background: linear-gradient(180deg, rgba(25,45,28,0.9), rgba(18,34,20,0.9)); }
    .theme-dot[data-theme="royal"]   { background: linear-gradient(180deg, rgba(40,25,60,0.9), rgba(28,15,45,0.9)); }
    .theme-dot.active { border-color: #e8e0d0; box-shadow: 0 0 0 3px rgba(232,224,208,0.18); }

    /* ====== KASSA ====== */
    #kassaContainer {
      display: none;
      max-width: 820px;
      margin: 0 auto;
      padding: 0 16px 20px;
    }
    #kassaContainer h1 {
      text-align: center;
      margin: 24px 0 16px;
      font-family: 'IM Fell English SC', serif;
      letter-spacing: 1px;
      font-size: 28px;
      color: #f0ebe2;
      text-shadow: 0 2px 12px rgba(139,26,26,0.3);
      position: relative;
    }
    #kbHelpBtn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; color: rgba(232,224,208,0.45); cursor: pointer; line-height: 1; padding: 0; font-family: serif; transition: background .15s, color .15s; }
    #kassaLockBtn { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; width: 22px; height: 22px; color: rgba(232,224,208,0.45); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
    #kassaLockBtn:hover { background: rgba(255,255,255,0.12); color: rgba(232,224,208,0.85); }
    #kbHelpBtn:hover { background: rgba(255,255,255,0.12); color: rgba(232,224,208,0.85); }
    #displayBtn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; width: 22px; height: 22px; color: rgba(232,224,208,0.45); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .2s; }
    #displayBtn:hover { background: rgba(255,255,255,0.12); color: rgba(232,224,208,0.85); }
    #displayBtn.active { background: rgba(80,180,80,0.15); border-color: rgba(80,180,80,0.5); color: #6f6; }
    #displayBtn.active:hover { background: rgba(80,180,80,0.25); }
    @keyframes displaySpin { to { transform: rotate(360deg); } }
    #displayBtn.loading { pointer-events: none; border-color: transparent; }
    #displayBtn.loading::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(232,224,208,0.1); border-top-color: rgba(232,224,208,0.75); animation: displaySpin 0.7s linear infinite; }
    #kbHelp { position: fixed; top: 60px; right: 16px; z-index: 9500; background: rgba(8,6,4,0.96); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 16px; display: flex; gap: 18px; box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(139,26,26,0.15); backdrop-filter: blur(6px); animation: slideUp 0.2s cubic-bezier(0.16,1,0.3,1); }
    #kbHelp[hidden] { display: none; }
    .kb-col { display: flex; flex-direction: column; gap: 0; min-width: 110px; }
    .kb-divider { width: 1px; background: rgba(255,255,255,0.07); margin: 2px 0; }
    .kb-section { font-family: 'IM Fell English SC', serif; font-size: 10px; letter-spacing: 1px; color: rgba(212,135,42,0.65); margin-bottom: 6px; }
    .kb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 3px 0; font-family: 'IM Fell English', serif; font-size: 12px; color: rgba(232,224,208,0.55); }
    .kb-row span { text-align: right; }
    kbd { display: inline-block; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; font-family: monospace; font-size: 10px; color: rgba(232,224,208,0.75); white-space: nowrap; }
    @media (hover: none) and (pointer: coarse) { #kbHelpBtn { display: none !important; } }
    @media (max-width: 400px) { #kbHelp { right: 8px; left: 8px; flex-direction: column; gap: 10px; } .kb-divider { width: auto; height: 1px; } }
    #closedMessage {
      display: none;
      color: #ff4444;
      text-align: center;
      font-size: 24px;
      font-weight: 700;
      margin: 16px 0;
      font-family: 'IM Fell English SC', serif;
    }

    .products {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 12px;
    }
    .products button {
      background: rgba(255,255,255,0.06);
      color: #e8e0d0;
      padding: 22px 26px;
      font-size: 18px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 8px;
      cursor: pointer;
      min-width: 200px;
      min-height: 64px;
      font-family: 'IM Fell English SC', serif;
      letter-spacing: 0.3px;
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
    }
    .products button:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
    .products button:active { transform: scale(0.98); }
    .products .btn-adult  { background: rgba(20,35,50,0.7); border-color: rgba(51,74,94,0.6); }
    .products .btn-adult:hover { background: rgba(25,45,65,0.8); }
    .products .btn-child  { background: rgba(20,40,28,0.7); border-color: rgba(50,80,60,0.6); }
    .products .btn-child:hover { background: rgba(25,50,35,0.8); }
    .products .btn-reentry{ background: rgba(35,25,50,0.7); border-color: rgba(85,60,110,0.6); }
    .products .btn-reentry:hover { background: rgba(45,30,65,0.8); }
    .products .btn-other  { background: rgba(40,35,25,0.7); border-color: rgba(80,70,50,0.6); }
    .products .btn-other:hover { background: rgba(50,44,30,0.8); }
    .products .btn-free   { opacity: 0.42; filter: grayscale(0.55); }
    .products .btn-free:hover { opacity: 0.65; filter: grayscale(0.3); }

    @media (min-width: 768px) {
      .products { gap: 14px; }
      .products button { padding: 26px 32px; font-size: 20px; min-width: 230px; min-height: 78px; }
    }
    @media (min-width: 1100px) {
      .products { gap: 18px; }
      .products button { padding: 32px 44px; font-size: 23px; min-width: 270px; min-height: 96px; border-radius: 10px; }
    }

    .cart-table { width: 100%; max-width: 820px; margin: 0 auto 20px; border-collapse: collapse; background: rgba(10,8,6,0.7); border: 1px solid rgba(255,255,255,0.07); border-radius: 6px; overflow: hidden; }
    .cart-table th, .cart-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; color: #e8e0d0; font-family: 'IM Fell English', serif; }
    .cart-table th { background: rgba(139,26,26,0.15); font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.3px; border-bottom: 1px solid rgba(139,26,26,0.25); }
    .cart-table tbody tr:last-child td { border-bottom: none; }
    .remove-btn { background: rgba(192,57,43,0.3); color: #e8e0d0; border: 1px solid rgba(192,57,43,0.4); padding: 5px 10px; cursor: pointer; border-radius: 4px; font-family: 'IM Fell English SC', serif; font-size: 12px; transition: background 0.15s; }
    .remove-btn:hover { background: rgba(192,57,43,0.55); }

    .qty-btn { background: rgba(255,255,255,0.06); color: #ddd; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; width: 28px; height: 28px; cursor: pointer; font-size: 16px; line-height: 1; transition: background 0.15s; }
    .qty-btn:hover { background: rgba(255,255,255,0.12); }
    .qty-btn:active { transform: scale(0.95); }

    #discountBtn { margin: 0 auto 10px; display: block; padding: 8px 16px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); cursor: pointer; background: rgba(255,255,255,0.06); color: #e8e0d0; font-family: 'IM Fell English SC', serif; font-size: 13px; letter-spacing: 0.3px; transition: background 0.15s; }
    #discountBtn:hover { background: rgba(255,255,255,0.1); }
    #discountBtn.applied { background: rgba(40,167,69,0.25); border-color: rgba(40,167,69,0.45); }

    #total { font-size: 22px; text-align: center; margin: 10px 0; font-family: 'IM Fell English SC', serif; letter-spacing: 0.3px; }
    #cartFooter {
      position: sticky;
      bottom: 0;
      z-index: 100;
      background: rgba(10, 8, 6, 0.97);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-top: 1px solid rgba(255,255,255,0.08);
      padding-top: 8px;
      margin: 0 -16px;
      padding-left: 16px;
      padding-right: 16px;
    }
    #checkout { display: block; margin: 10px auto 14px; padding: 14px 30px; font-size: 18px; background: rgba(40,167,69,0.3); color: #e8e0d0; border: 1px solid rgba(40,167,69,0.5); border-radius: 8px; cursor: pointer; font-family: 'IM Fell English SC', serif; letter-spacing: 0.5px; transition: background 0.15s, box-shadow 0.15s; }
    #checkout:hover { background: rgba(40,167,69,0.45); box-shadow: 0 0 16px rgba(40,167,69,0.2); }
    #checkout:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(20%); }

    /* ====== STAFF MESSAGE ====== */
    .staff-msg-section-wrap { margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; }
    .staff-msg-section-title { font-family: 'IM Fell English SC', serif; font-size: 12px; letter-spacing: 1.2px; color: rgba(232,224,208,0.45); text-transform: uppercase; margin: 0 0 8px; display: block; }
    .staff-msg-banner { background: rgba(212,135,42,0.07); border: 1px solid rgba(212,135,42,0.28); border-radius: 6px; padding: 12px 16px; }
    .staff-msg-label { display: block; font-family: 'IM Fell English SC', serif; font-size: 10px; letter-spacing: 1.8px; color: rgba(212,135,42,0.65); text-transform: uppercase; margin-bottom: 6px; }
    .staff-msg-text { margin: 0; font-family: 'IM Fell English', serif; font-size: 15px; color: #e8e0d0; line-height: 1.6; }
    .staff-msg-textarea { width: 100%; box-sizing: border-box; padding: 10px; background: rgba(255,255,255,0.04); color: #e8e0d0; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-family: 'IM Fell English', serif; font-size: 14px; resize: vertical; }
    .staff-replies-list { display: flex; flex-direction: column; gap: 6px; }
    .staff-reply-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; background: rgba(255,255,255,0.03); border-radius: 4px; border: 1px solid rgba(255,255,255,0.06); }
    .staff-reply-name { font-family: 'IM Fell English SC', serif; font-size: 13px; color: rgba(212,135,42,0.8); white-space: nowrap; }
    .staff-reply-time { font-size: 11px; color: rgba(232,224,208,0.3); white-space: nowrap; }
    .staff-reply-text { font-family: 'IM Fell English', serif; font-size: 14px; color: rgba(232,224,208,0.85); word-break: break-word; }

    /* ====== LOG ENTRIES ====== */
    #logEntries { display: none; }
    .log-entry { border-top: 1px solid rgba(255,255,255,0.06); padding: 8px 0; font-family: 'IM Fell English', serif; font-size: 14px; color: rgba(232,224,208,0.75); }

    /* ====== DAY SUMMARY MODAL ====== */
    .day-summary-section { margin-bottom: 16px; }
    .day-summary-section-title { font-family: 'IM Fell English SC', serif; font-size: 11px; letter-spacing: 1.6px; color: rgba(232,224,208,0.38); text-transform: uppercase; margin-bottom: 8px; }
    .day-summary-pills { display: flex; gap: 8px; flex-wrap: wrap; }
    .day-summary-pill { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 8px 14px; font-family: 'IM Fell English SC', serif; font-size: 13px; color: rgba(232,224,208,0.7); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 80px; }
    .day-summary-pill strong { font-size: 20px; color: #e8e0d0; font-family: 'IM Fell English SC', serif; }
    .day-summary-pill.highlight { border-color: rgba(212,135,42,0.4); background: rgba(212,135,42,0.07); }
    .day-summary-pill.highlight strong { color: #d4a854; }
    .day-summary-pill.positive { border-color: rgba(40,167,69,0.45); background: rgba(40,167,69,0.08); }
    .day-summary-pill.positive strong { color: rgba(100,210,120,0.95); }
    .day-summary-pill.negative { border-color: rgba(192,57,43,0.45); background: rgba(192,57,43,0.08); }
    .day-summary-pill.negative strong { color: rgba(220,100,80,0.95); }
    .day-summary-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 14px 0; }
    .day-summary-chart-wrap { overflow-x: auto; margin-top: 6px; color: rgba(212,135,42,0.75); }
    .day-summary-chart-wrap + .day-summary-chart-wrap { margin-top: 14px; color: rgba(92,184,92,0.75); }

    /* ====== MODAL ====== */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(3px); }
    .modal { background: linear-gradient(160deg, #110a08, #0d0907); border: 1px solid rgba(139,26,26,0.35); border-radius: 8px; padding: 20px; width: min(420px, 92vw); color: #e8e0d0; box-shadow: 0 12px 40px rgba(0,0,0,0.8); }
    .modal h3 { margin: 6px 0 12px; font-size: 18px; font-family: 'IM Fell English SC', serif; letter-spacing: 0.3px; }
    .modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

    /* ====== STATS ====== */
    #statsContainer { display: none; max-width: 820px; margin: 40px auto; }

    /* ====== LOG SUMMARY ====== */
    #logSummary { display: none; }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
    ::-webkit-scrollbar-thumb { background: rgba(139,26,26,0.4); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(139,26,26,0.6); }

    /* ====== FIELD VIEW ====== */
    .field-view { position: fixed; inset: 0; z-index: 10000; background: #000 radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,.06), transparent 60%); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
    .field-view::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,0.06), transparent 60%), radial-gradient(100% 60% at 20% 70%, rgba(255,255,255,0.04), transparent 60%), radial-gradient(100% 60% at 80% 60%, rgba(255,255,255,0.05), transparent 60%); opacity: .5; filter: blur(30px); pointer-events: none; }
    .field-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #333; background: #111; position: relative; z-index: 10; }
    .fv-user-menu { position: relative; }
    .fv-menu-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(139,26,26,0.3); border-radius: 8px; padding: 5px 14px; cursor: pointer; color: #e8e0d0; display: flex; flex-direction: column; align-items: center; position: relative; transition: background .15s, border-color .15s; }
    .fv-menu-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(212,135,42,0.35); }
    .fv-menu-btn-name { font-family: "IM Fell English SC", serif; font-size: 14px; letter-spacing: .3px; line-height: 1.3; }
    .fv-menu-btn-label { font-family: "IM Fell English", serif; font-style: italic; font-size: 10px; color: rgba(232,224,208,0.45); line-height: 1; }
    .fv-menu-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #111; border: 1px solid rgba(139,26,26,0.4); border-radius: 10px; min-width: 148px; z-index: 20; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.7); }
    .fv-menu-dropdown.open { display: block; }
    .fv-menu-dropdown a { display: block; padding: 10px 16px; color: rgba(232,224,208,.8); text-decoration: none; font-family: "IM Fell English SC", serif; font-size: 14px; letter-spacing: .2px; transition: background .12s, color .12s; }
    .fv-menu-dropdown a:hover { background: rgba(255,255,255,.06); color: #e8e0d0; }
    .fv-menu-dropdown a + a { border-top: 1px solid rgba(255,255,255,.05); }
    .field-title { font-family: "IM Fell English SC", serif; font-size: 28px; letter-spacing: .4px; color: #e53935; text-shadow: 0 0 12px rgba(229,57,53,.45), 2px 2px 0 rgba(0,0,0,.7); }
    .fv-clock { font-family: "IM Fell English SC", serif; font-size: 22px; letter-spacing: 2px; color: rgba(232,224,208,0.75); text-shadow: 0 0 10px rgba(212,135,42,0.2); position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
    @media (max-width: 540px) {
      .field-header { flex-wrap: wrap; }
      .fv-clock { position: static; transform: none; width: 100%; text-align: center; font-size: 18px; padding: 2px 0 0; order: 3; }
    }
    .fv-more-badge { max-width: 820px; margin: 8px auto 0; text-align: center; font-family: "IM Fell English", serif; font-style: italic; font-size: 13px; color: rgba(255,255,255,0.35); letter-spacing: 0.5px; }
    .fv-timer { font-family: monospace; font-size: 12px; color: rgba(255,255,255,0.4); margin-left: 6px; letter-spacing: 0.5px; transition: color 0.4s; }
    .fv-timer-over { color: #e53935; animation: fv-timer-pulse 2s ease-in-out infinite; }
    @keyframes fv-timer-pulse { 0%,100%{opacity:1;} 50%{opacity:0.55;} }
    .queue-warn-dot { display: inline-block; margin-left: 6px; background: #e53935; color: #fff; font-size: 10px; font-weight: 700; font-family: monospace; border-radius: 50%; width: 16px; height: 16px; line-height: 16px; text-align: center; vertical-align: middle; animation: fv-timer-pulse 1.5s ease-in-out infinite; cursor: pointer; }
    .field-content { flex: 1; overflow: auto; padding: 20px 16px 32px; position: relative; z-index: 1; }
    .ticket-list { max-width: 820px; margin: 0 auto; }
    .ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 0; background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .18s ease, box-shadow .28s ease, border-color .28s ease, opacity .28s ease; }
    .ticket-row:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.45); border-color: #333; }
    .ticket-row .meta { font-size: 13px; color: #bbb; }
    .ticket-row .who { font-family: "IM Fell English SC", serif; font-size: 22px; letter-spacing: .3px; line-height: 1.2; word-break: break-word; color: #f1eaea; text-shadow: 0 0 8px rgba(255,255,255,.06); }
    .ticket-row .nums { margin-top: 4px; white-space: nowrap; font-size: 14px; color: #ddd; }
    .ticket-row .nums .pill { margin-left: 6px; }
    .ticket-row.flash-green { background: rgba(60,180,100,.08); border-color: rgba(60,180,100,.35); box-shadow: 0 0 10px rgba(60,180,100,.25); animation: fieldPulse 6s ease-out 1; }
    @keyframes fieldPulse { 0%{box-shadow:0 0 0 12px rgba(60,180,100,0);} 12%{box-shadow:0 0 0 0 rgba(60,180,100,.25);} 100%{box-shadow:0 0 0 0 rgba(60,180,100,0);} }
    .ticket-row.slide-out { transform: translateY(20px); opacity: 0; }
    .reentry-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin: 8px auto; max-width: 820px; background: #131313; border: 1px solid #2a2a2a; border-radius: 8px; }
    .reentry-row .label { font-family: "IM Fell English SC", serif; letter-spacing: .3px; font-size: 18px; }

    /* ====== DISPLAY MODE ====== */
    .display-view { position: fixed; inset: 0; background: #0d0b0a; background-image: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(80,10,10,0.7) 0%, transparent 55%), radial-gradient(ellipse 100% 60% at 50% 100%, rgba(40,5,5,0.5) 0%, transparent 55%); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: pointer; overflow: hidden; }
    .display-view > div:first-child { position: relative; z-index: 0; }
    .display-view::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,0.06), transparent 60%), radial-gradient(100% 60% at 20% 70%, rgba(255,255,255,0.04), transparent 60%), radial-gradient(100% 60% at 80% 60%, rgba(255,255,255,0.05), transparent 60%); opacity: .5; filter: blur(30px); animation: fog-drift 50s linear infinite; pointer-events: none; }
    @keyframes fog-drift { 0%{transform:translate3d(-5%,-2%,0) scale(1.05);} 50%{transform:translate3d(6%,3%,0) scale(1.1);} 100%{transform:translate3d(-5%,-2%,0) scale(1.05);} }
    #displayQueue { font-family: "IM Fell English SC", serif; font-size: clamp(6rem, 16vw, 20rem); letter-spacing: .5px; line-height: 1; text-align: center; padding: 0 4vw; animation: flicker 6s infinite steps(60, end), glow 3.5s ease-in-out infinite; }
    .display-view.state-open #displayQueue { color: #eaffea; text-shadow: 0 0 1px #0a0, 0 0 12px rgba(0,255,140,.55), 0 0 26px rgba(0,180,100,.35), 2px 2px 0 rgba(0,0,0,.7); }
    .display-view.state-closed #displayQueue { color: #ffeaea; text-shadow: 0 0 1px #900, 0 0 12px rgba(255,60,60,.55), 0 0 26px rgba(180,0,0,.35), 2px 2px 0 rgba(0,0,0,.8); }
    .scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 4px); mix-blend-mode: overlay; pointer-events: none; animation: scan 12s linear infinite; opacity: .25; }
    #displayLabel { font-family: "IM Fell English SC", serif; font-size: clamp(1.5rem, 4vw, 3rem); letter-spacing: .5px; text-shadow: 0 2px 10px rgba(0,0,0,.55); margin-bottom: .6em; color: #ccc; animation: flickerLabel 6s infinite steps(60, end); }
    #displayHours { margin-top: 0.6em; font-family: "IM Fell English SC", serif; font-size: clamp(1.2rem, 3vw, 2.2rem); letter-spacing: .4px; color: #ccc; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
    .ds-panel { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; transition: opacity 0.7s ease, transform 0.7s ease; transform: scale(1); opacity: 1; }
    .ds-panel.ds-out { opacity: 0; transform: scale(1.03); }
    .ds-inner { width: 100%; padding: 0 6vw; }
    .ds-logo { width: clamp(60px, 9vw, 110px); height: auto; margin-bottom: 0.5em; opacity: 0.82; filter: drop-shadow(0 0 24px rgba(139,26,26,0.55)); }
    .ds-ornament { font-family: "IM Fell English SC", serif; font-size: clamp(0.9rem, 1.8vw, 1.5rem); color: rgba(212,135,42,0.55); letter-spacing: 0.7em; margin: 0.35em 0; }
    .ds-title { font-family: "IM Fell English SC", serif; font-size: clamp(1.8rem, 5vw, 4.5rem); letter-spacing: 0.6px; color: rgba(232,224,208,0.5); margin-bottom: 0.1em; }
    .ds-prices { display: flex; flex-direction: column; gap: clamp(0.4rem, 1.2vw, 1rem); max-width: 720px; margin: 0.6em auto 0; }
    .ds-price-row { display: flex; align-items: baseline; gap: 0.5em; padding: 0.25em 0.4em; border-bottom: 1px solid rgba(255,255,255,0.06); opacity: 0; animation: ds-row-in 0.45s ease forwards; }
    .ds-price-name { font-family: "IM Fell English SC", serif; font-size: clamp(1.3rem, 3.2vw, 2.8rem); color: rgba(232,224,208,0.9); white-space: nowrap; }
    .ds-price-dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,0.18); margin-bottom: 0.22em; }
    .ds-price-val { font-family: "IM Fell English SC", serif; font-size: clamp(1.5rem, 4vw, 3.6rem); color: rgba(212,175,55,0.95); text-shadow: 0 0 22px rgba(212,175,55,0.35); white-space: nowrap; }
    .ds-info-text { font-family: "IM Fell English SC", serif; font-size: clamp(1.8rem, 5.5vw, 6rem); color: #f0ebe2; letter-spacing: 0.5px; line-height: 1.25; text-shadow: 0 0 1px rgba(232,224,208,0.3), 0 0 18px rgba(139,26,26,0.4), 2px 2px 0 rgba(0,0,0,0.7); animation: flickerLabel 6s infinite steps(60,end); }
    .ds-image-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
    .ds-image-slide img { width: 100%; height: 100%; object-fit: contain; }
    @keyframes ds-row-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes flicker      { 0%,97%,100%{opacity:1;} 98%{opacity:.92;} 99%{opacity:.85;} }
    @keyframes glow         { 0%,100%{filter:drop-shadow(0 0 0 rgba(0,0,0,0));} 50%{filter:drop-shadow(0 0 6px rgba(0,0,0,.35));} }
    @keyframes scan         { 0%{background-position-y:0;} 100%{background-position-y:200px;} }
    @keyframes flickerLabel { 0%,97%,100%{opacity:1;} 98%{opacity:.96;} 99%{opacity:.92;} }

    /* page fade in */
    @keyframes pageFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    #welcomeMessage, #profileContainer, #kassaContainer, #adminSettings, #statsContainer { animation: pageFade 0.4s ease both; }
    /* ====== NOTISBADGE ====== */
    .msg-badge-dot { display:inline-block; width:7px; height:7px; background:#d4872a; border-radius:50%; margin-left:5px; vertical-align:middle; box-shadow:0 0 0 2px rgba(212,135,42,0.22); animation:badge-pulse 2.2s ease-in-out infinite; position:relative; top:-1px; }
    @keyframes badge-pulse { 0%,100%{opacity:1;box-shadow:0 0 0 2px rgba(212,135,42,0.22);} 50%{opacity:0.65;box-shadow:0 0 0 4px rgba(212,135,42,0.08);} }

    /* ====== RECENSION ====== */
    .review-view { position:fixed; inset:0; background:#0a0a0a; display:flex; align-items:center; justify-content:center; z-index:9999; padding:24px; animation:pageFade 0.5s ease both; }
    .review-inner { max-width:420px; width:100%; text-align:center; }
    .review-logo { width:120px; height:120px; object-fit:contain; margin-bottom:18px; opacity:0.85; }
    .review-title { font-family:'IM Fell English SC',serif; font-size:26px; color:#e8e0d0; margin:0 0 4px; letter-spacing:0.3px; }
    .review-subtitle { font-family:'IM Fell English',serif; font-size:14px; color:rgba(232,224,208,0.38); margin:0 0 28px; font-style:italic; }
    .review-stars { display:flex; justify-content:center; gap:8px; margin-bottom:8px; }
    .star-btn { background:none; border:none; font-size:48px; cursor:pointer; color:rgba(232,224,208,0.12); transition:color 0.1s, transform 0.08s; line-height:1; padding:4px 6px; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
    .star-btn.active { color:#d4872a; }
    .star-btn:active { transform:scale(0.9); }
    .review-rating-label { font-family:'IM Fell English',serif; font-size:17px; color:rgba(212,135,42,0.8); min-height:26px; margin-bottom:22px; font-style:italic; letter-spacing:0.3px; }
    .review-textarea { width:100%; box-sizing:border-box; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:6px; color:#e8e0d0; font-family:'IM Fell English',serif; font-size:15px; padding:12px; resize:vertical; margin-bottom:16px; min-height:72px; }
    .review-textarea:focus { outline:none; border-color:rgba(212,135,42,0.3); }
    .review-submit { width:100%; padding:15px; font-size:16px; letter-spacing:0.5px; }
    .review-submit:disabled { opacity:0.28; cursor:not-allowed; pointer-events:none; }
    .review-thanks-star { font-size:62px; color:#d4872a; display:block; margin-bottom:14px; animation:badge-pulse 2.2s ease-in-out infinite; }
    .welcome-reviews-wrap { text-align:center; padding:4px 0 10px; }
    .welcome-reviews-stars { font-size:24px; letter-spacing:3px; line-height:1; }
    .welcome-reviews-avg { font-family:'IM Fell English SC',serif; font-size:20px; color:#e8e0d0; margin-left:6px; vertical-align:middle; }
    .welcome-reviews-count { font-family:'IM Fell English',serif; font-size:12px; color:rgba(232,224,208,0.3); margin-top:3px; letter-spacing:0.5px; }
    .welcome-review-quote { font-family:'IM Fell English',serif; font-style:italic; font-size:13px; color:rgba(232,224,208,0.38); margin-top:8px; max-width:320px; margin-left:auto; margin-right:auto; line-height:1.5; }

    /* ====== ÅNGRA-TOAST ====== */
    #undoToast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(14px); background: rgba(16,12,10,0.97); border: 1px solid rgba(232,224,208,0.16); border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; font-family: 'IM Fell English SC', serif; font-size: 14px; color: rgba(232,224,208,0.82); z-index: 9500; opacity: 0; pointer-events: none; transition: opacity 0.22s, transform 0.22s; box-shadow: 0 4px 28px rgba(0,0,0,0.75); overflow: hidden; white-space: nowrap; }
    #undoToast.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
    #undoToastBtn { background: rgba(212,135,42,0.14); border: 1px solid rgba(212,135,42,0.45); border-radius: 6px; color: rgba(212,135,42,0.92); font-family: 'IM Fell English SC', serif; font-size: 13px; padding: 4px 14px; cursor: pointer; transition: background 0.15s; flex-shrink: 0; }
    #undoToastBtn:hover { background: rgba(212,135,42,0.28); }
    @keyframes undoBarShrink { from { width: 100%; } to { width: 0%; } }
    #undoToastBar { position: absolute; bottom: 0; left: 0; height: 2px; background: rgba(212,135,42,0.45); border-radius: 0 0 10px 10px; }

    /* ====== LOADING STATE ====== */
    @keyframes btnSpin { to { transform: translateY(-50%) rotate(360deg); } }
    .btn.loading { pointer-events: none; opacity: 0.6; padding-right: 30px; position: relative; }
    .btn.loading::after { content: ''; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(232,224,208,0.18); border-top-color: rgba(232,224,208,0.75); animation: btnSpin 0.7s linear infinite; }