/* ============================================================
   assets/style.css
   EPTEC STYLE — FINAL SECURITY EDITION
   Ziel:
   - Browser-freundlich (kein Freeze)
   - CSP-safe
   - RTL-safe
   - Footer IMMER sichtbar
   - Keine aggressiven GPU-Effekte
   ============================================================ */

/* -------------------------------
   ROOT VARIABLES (STATIC ONLY)
-------------------------------- */
:root{
  --bg-main: #000;
  --bg-glass: rgba(255,255,255,0.14);
  --bg-glass-strong: rgba(255,255,255,0.92);
  --border-soft: rgba(255,255,255,0.22);
  --border-dark: rgba(0,0,0,0.35);

  --text-main: #111;
  --text-invert: #fff;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;

  --z-ui: 10;
  --z-modal: 1000;
  --z-overlay: 2000;
  --z-footer: 5;
}

/* -------------------------------
   RESET (SAFE, NO ANIMATION)
-------------------------------- */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow: hidden; /* wichtig: verhindert Scroll-Freeze */
  color: var(--text-main);
}

/* -------------------------------
   SCENE BASELINE
-------------------------------- */
.scene{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
}

.scene:not(.modal-hidden){
  display: flex;
}

/* -------------------------------
   MEADOW / START
-------------------------------- */
#meadow-view{
  justify-content: center;
  align-items: center;
}

/* -------------------------------
   LOGIN BOX
-------------------------------- */
.login-box{
  width: min(520px, 92vw);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);

  /* blur NUR leicht, sonst GPU-Freeze */
  backdrop-filter: blur(10px);
}

.login-box input{
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;

  border-radius: var(--radius-m);
  border: 1px solid var(--border-dark);
  background: var(--bg-glass-strong);
  color: var(--text-main);

  outline: none;
}

.login-box input:focus{
  border-color: #000;
}

.login-box button{
  padding: 10px 14px;
  font-size: 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-dark);
  background: var(--bg-glass-strong);
  cursor: pointer;
}

.login-box button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

/* -------------------------------
   SYSTEM MESSAGE
-------------------------------- */
.system-msg{
  display: none;
  padding: 10px;
  border-radius: var(--radius-m);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-dark);
  font-size: 14px;
}

.system-msg.show{
  display: block;
}

/* -------------------------------
   LANGUAGE SWITCHER (RTL SAFE)
-------------------------------- */
#language-switcher{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;

  direction: ltr; /* WICHTIG für RTL */
}

#lang-toggle{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.25);
  color: #fff;
  cursor: pointer;
}

#lang-rail{
  margin-top: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  max-height: 70vh;
  overflow-y: auto;
}

#lang-rail.open{
  display: flex;
}

#language-switcher.lang-open #lang-rail{
  display: flex;
}

.lang-item{
  width: 46px;
  height: 46px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.25);
  color: #fff;
  cursor: pointer;
}

/* -------------------------------
   TUNNEL / WHITEOUT
-------------------------------- */
#tunnel-view{
  justify-content: center;
  align-items: center;
}

.tunnel-hidden{
  display: none !important;
}

#eptec-white-flash{
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
}

.white-flash-active{
  opacity: 1;
}

/* -------------------------------
   DOORS
-------------------------------- */
#doors-view{
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.doors-wrapper{
  width: min(980px, 96vw);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.door-block{
  width: min(440px, 96vw);
  padding: 18px;
  border-radius: var(--radius-l);
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border-soft);
  color: #fff;
}

/* -------------------------------
   ROOMS
-------------------------------- */
#room1-view,
#room2-view{
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* -------------------------------
   MODALS (REGISTER / FORGOT / LEGAL)
-------------------------------- */
.modal{
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
}
.modal-card{
  max-height: 80vh;
  overflow-y: auto;
}

#r1-framework-list{
  max-height: 50vh;
  overflow-y: auto;
}

.modal-hidden{
  display: none !important;
}

/* -------------------------------
   FOOTER (KRITISCH!)
-------------------------------- */
#eptec-footer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-footer);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 10px 0;
  background: rgba(0,0,0,0.35);
}

#eptec-footer .footer-links{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 auto;
  text-align: center;
}

#eptec-footer a{
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

#eptec-footer a:hover{
  text-decoration: underline;
}

.pw-wrap{
  position: relative;
}

.pw-wrap .pw-toggle{
  min-width: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.2);
  color: #111;
  cursor: pointer;
}

.demo-fab{
  position: fixed;
  left: 14px;
  bottom: 64px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.72);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* -------------------------------
   RTL SUPPORT (ONLY DIRECTION)
-------------------------------- */
html[dir="rtl"] body{
  direction: rtl;
}

/* -------------------------------
   END OF FILE
-------------------------------- */
/* =========================================================
   EPTEC PATCH — START TITLE + CENTER LOGIN (RTL-safe)
   ========================================================= */

#meadow-view{
  display:flex !important;
  flex-direction:column;
  justify-content:center !important;
  align-items:center !important;
  gap:16px;
}

#eptec-title{
  text-align:center;
  margin:0 0 8px 0;
  max-width:min(92vw, 520px);
  word-break:break-word;
  line-height:1.15;
}

/* login box centered and stable width */
#meadow-view .login-box{
  width:min(92vw, 420px);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

/* RTL handling (Arabic) */
html[dir="rtl"] #eptec-title,
html[dir="rtl"] #meadow-view .login-box{
  text-align:right;
}
/* =========================================================
   EPTEC FINAL LAYOUT — TITLE / SUBTITLE / CLOCK + CENTERING
   - Stable order: Title -> Subtitle -> Clock -> Login
   - Title/Sub/Clock forced BLACK (your requirement)
   - RTL safe
   ========================================================= */

#meadow-view{
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 32px 24px;
}

/* Linke Spalte: Titel + Untertitel + Uhr */
#meadow-view .meadow-info{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex-shrink: 0;
  max-width: 320px;
}

#eptec-title{
  display: block;
  color: #000 !important;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: left;
  margin: 0 0 6px 0;
  line-height: 1.25;
  word-break: break-word;
  white-space: normal;
}

#eptec-subtitle{
  display: block;
  color: #000 !important;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: left;
  margin: 0 0 16px 0;
  line-height: 1.35;
  white-space: normal;
}

#system-clock{
  display: block;
  color: #000 !important;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  margin: 0;
  line-height: 1.3;
}

/* Rechte Spalte: Login-Box */
#meadow-view .login-box{
  width: min(440px, 92vw);
  max-width: 440px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-height: 90vh;
  overflow-y: auto;
}

/* Schmaler Viewport: wieder einspaltig */
@media (max-width: 700px) {
  #meadow-view{
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 16px;
  }
  #meadow-view .meadow-info{
    align-items: center;
    max-width: 92vw;
  }
  #eptec-title, #eptec-subtitle, #system-clock{
    text-align: center;
  }
  #meadow-view .login-box{
    width: min(420px, 92vw);
    max-width: 92vw;
    max-height: none;
  }
}

/* RTL: keep the header texts centered (your wish) */
html[dir="rtl"] #eptec-title,
html[dir="rtl"] #eptec-subtitle,
html[dir="rtl"] #system-clock{
  text-align: center;
}

/* ---------------------------------------------------------
   DEMO DARK MODE (Doors/Rooms)
   activated by: html.demo-dark
   --------------------------------------------------------- */
html.demo-dark #doors-view,
html.demo-dark #room1-view,
html.demo-dark #room2-view{
  background: #000 !important;
  color: #fff !important;
}
/* =========================================================
   EPTEC ROOMS — BACKGROUND IMAGES (Doors / Room1 / Room2)
   FIX 1: style.css liegt in /assets → Bilder in ./images/
   ========================================================= */

/* Doors */
#doors-view{
  background-image: url("./img/view_doors.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Room 1 */
#room1-view{
  background-image: url("./img/view_room1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Room 2 */
#room2-view{
  background-image: url("./img/view_room2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* DOORS variants */
html.room-doors--view_doors #doors-view{
  background-image: url("./img/view_doors.png");
}
html.room-doors--view_doors_tree #doors-view{
  background-image: url("./img/view_doors.png");
}

/* ROOM1 variants (optional) */
html.room-room1--view_room1 #room1-view{
  background-image: url("./img/view_room1.png");
}

/* ROOM2 variants */
html.room-room2--view_room2 #room2-view{
  background-image: url("./img/view_room2.png");
}


/* =========================================================
   EPTEC PATCH — FILL EMPTY UI (Register/Forgot) + ROOM VISUALS
   - Adds resilient defaults if JS does not set html scene classes
   - Keeps existing selectors intact
   ========================================================= */

#doors-view{
  background-image: url("./img/view_doors.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#room1-view{
  background-image: url("./img/view_room1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#room2-view{
  background-image: url("./img/view_room2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Modal helpers (Register / Forgot) */
.modal .login-box{
  max-width: 560px;
}

.modal-title{
  margin: 0 0 10px 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.pip-frame{
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 8px 0 12px 0;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
}

.pip-msg{
  margin: 0;
  padding: 4px 0;
}

.modal-actions{
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.modal-actions button{
  flex: 1;
}


/* --- EPTEC Footer Product Description + Warnings (Room 2) --- */
.footer-product{padding:10px 16px;border-top:1px solid rgba(255,255,255,0.10);font-size:12px;line-height:1.35}
.footer-product-desc{opacity:0.9;margin-bottom:6px}
.footer-product-warn{opacity:0.85}
.r2-top-notice{margin:8px 0 10px 0;padding:10px 12px;border:1px solid rgba(255,255,255,0.18);border-radius:10px;background:rgba(0,0,0,0.25);font-size:12px;line-height:1.35}
.r2-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}

/* -------------------------------
   LEGAL MODAL (Footer links)
   - Placeholder/content appears in a white rectangle (Contractboy-like)
   - Close button stays below the content box
-------------------------------- */
#legal-screen .modal-card{
  width: min(860px, 92vw);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

#legal-title{
  margin: 0 0 10px 0;
  color: #111;
}

#legal-body{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 10px;
  padding: 12px;
  color: #111;
  min-height: 180px;
  max-height: 52vh;
  overflow-y: auto;
}

#legal-screen .modal-actions{
  margin-top: 10px;
  justify-content: flex-end;
}

/* -------------------------------
   REGISTER + FORGOT (white rectangle, high readability)
-------------------------------- */
#register-screen .modal-card,
#forgot-screen .modal-card{
  width: min(860px, 92vw);
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  color: #111;
}

#register-screen h2,
#forgot-screen h2{
  margin: 0 0 12px 0;
  color: #111;
}

#register-screen input,
#forgot-screen input{
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.24);
}

#register-screen input::placeholder,
#forgot-screen input::placeholder{
  color: rgba(0,0,0,0.55);
}

#register-screen .field-hint,
#forgot-screen .field-hint{
  font-size: 12px;
  line-height: 1.25;
  color: rgba(0,0,0,0.72);
  margin: -6px 2px 2px 2px;
}

#register-screen .modal-actions,
#forgot-screen .modal-actions{
  justify-content: flex-end;
}

#register-screen .modal-actions button,
#forgot-screen .modal-actions button{
  flex: 0 0 auto;
}

/* -------------------------------
   ROOM/FEATURE MODALS — HIGH CONTRAST FIX
   (Evidence / Slot / Download / Close etc.)
-------------------------------- */
.modal{
  --txt: #f5f8ff;
  --line-soft: rgba(255,255,255,0.38);
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.5);
}

.modal .modal-card{
  width: min(960px, 94vw);
  background: rgba(12, 18, 28, 0.94);
  border: 1px solid rgba(255,255,255,0.34);
  color: #f5f8ff;
  box-shadow: 0 20px 55px rgba(0,0,0,0.58);
}

.modal .modal-card h2,
.modal .modal-card h3,
.modal .modal-card p,
.modal .modal-card label,
.modal .modal-card th,
.modal .modal-card td,
.modal .modal-card span,
.modal .modal-card div{
  color: #f5f8ff;
}

.modal .modal-card .system-msg{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.34);
  color: #f5f8ff;
}

.modal .modal-card input,
.modal .modal-card select,
.modal .modal-card textarea{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.34);
  color: #fff;
}

.modal .modal-card input::placeholder,
.modal .modal-card textarea::placeholder{
  color: rgba(255,255,255,0.82);
}

.modal .modal-card button,
.modal .modal-card .eptec-btn,
#r2-evidence-grid button{
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.56);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

.modal .modal-card button:hover,
.modal .modal-card .eptec-btn:hover,
#r2-evidence-grid button:hover{
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.75);
}

/* ============================================================
   EPTEC Master Matrix – Chat & Webcam Styles
   ============================================================ */

/* Webcam-Grid: auto-skaliert 1-4 Creator */
.eptec-webcam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 12px 0;
  max-height: 280px;
  overflow: hidden;
}
.eptec-webcam-grid .webcam-slot {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.eptec-webcam-grid .webcam-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eptec-webcam-grid .webcam-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Chat-Panel: 2-Rechteck-Layout */
.eptec-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10,12,20,0.85);
  max-height: 480px;
}

/* Oberes Rechteck: Creator-Namen */
.eptec-creator-presence-panel {
  background: rgba(20,30,50,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  min-height: 42px;
  max-height: 90px;
  overflow-y: auto;
}
.eptec-creator-presence-panel .panel-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
}
.creator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.creator-list .creator-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(40,80,140,0.55);
  border: 1px solid rgba(100,160,255,0.3);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 12px;
  color: rgba(200,220,255,0.9);
}
.creator-chip .cam-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
}
.creator-chip .cam-dot.off {
  background: rgba(255,255,255,0.25);
}
.creator-list .no-creators {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* Unteres Rechteck: Chat-Nachrichten */
.eptec-chat-messages-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.messages-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  min-height: 120px;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chat-message {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(230,235,245,0.9);
  word-break: break-word;
}
.chat-message .msg-sender {
  font-weight: 600;
  margin-right: 5px;
}
.chat-message.role-creator .msg-sender {
  color: rgba(100,170,255,0.95);
}
.chat-message.role-user .msg-sender {
  color: rgba(180,200,230,0.75);
}
.chat-message .msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  margin-left: 6px;
}
.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,18,28,0.9);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 6px 10px;
  color: rgba(230,235,245,0.9);
  font-size: 13px;
  outline: none;
}
.chat-input:focus {
  border-color: rgba(100,160,255,0.5);
}
.chat-send-btn {
  background: rgba(40,80,160,0.7);
  border: 1px solid rgba(100,160,255,0.35);
  border-radius: 5px;
  padding: 6px 14px;
  color: rgba(200,220,255,0.9);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.chat-send-btn:hover {
  background: rgba(60,110,200,0.8);
}

/* Download-Info Bar */
.eptec-download-info {
  padding: 5px 12px;
  background: rgba(20,30,50,0.7);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 11px;
  color: rgba(180,200,230,0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}
.eptec-download-info .dl-count {
  font-weight: 700;
  color: rgba(100,200,150,0.9);
}

/* === Subscription Status Panel + Cancellation UI === */
.eptec-sub-panel {
  padding: 8px 14px;
  background: rgba(15,25,45,0.75);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.sub-phase-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(60,110,200,0.6);
}
.sub-phase-badge[data-phase="MINIMUM_TERM_ACTIVE"] { background: rgba(180,120,0,0.7); }
.sub-phase-badge[data-phase="ROLLING_ACTIVE"]       { background: rgba(30,140,80,0.7); }
.sub-phase-badge[data-phase="CANCELLATION_PENDING"] { background: rgba(160,50,50,0.7); }
.sub-phase-badge[data-phase="TERMINATED"]           { background: rgba(60,60,60,0.7); }
.sub-phase-notice {
  color: rgba(200,210,230,0.75);
  font-size: 11px;
  flex: 1;
}
.cancel-sub-btn {
  padding: 4px 12px;
  background: rgba(180,40,40,0.7);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.cancel-sub-btn:hover { background: rgba(200,50,50,0.9); }

/* === Membership Badge === */
.eptec-membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(30,40,60,0.6);
  border-radius: 12px;
  font-size: 11px;
  color: rgba(200,220,255,0.8);
  margin: 4px 0;
}
.eptec-membership-badge .loyalty-icon {
  font-size: 14px;
}
.loyalty-new      { color: rgba(150,160,180,0.8); }
.loyalty-silver   { color: rgba(192,192,200,0.95); }
.loyalty-gold     { color: rgba(220,180,50,0.95); }
.loyalty-platinum { color: rgba(180,220,255,0.95); }
.loyalty-diamond  { color: rgba(140,220,255,1); }

/* Membership-Badge im Chat neben Username */
.chat-message .member-badge {
  display: inline-block;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(50,70,100,0.5);
  margin-left: 4px;
  vertical-align: middle;
}

/* === Checkout Modal (§312j BGB) === */
.checkout-card {
  max-width: 560px;
  width: 100%;
  padding: 30px 36px;
}
.checkout-price-summary {
  background: rgba(20,30,55,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 15px;
  color: rgba(200,220,255,0.9);
  font-weight: 600;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkout-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(190,205,230,0.9);
  cursor: pointer;
  line-height: 1.5;
}
.checkout-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: rgba(60,110,200,0.9);
  cursor: pointer;
}
.checkout-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.checkout-confirm-btn {
  padding: 10px 22px;
  background: rgba(60,110,200,0.85);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-confirm-btn:hover { background: rgba(70,130,230,0.95); }
.btn-secondary {
  padding: 10px 18px;
  background: rgba(40,50,70,0.6);
  color: rgba(180,200,230,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.error-msg {
  color: rgba(230,80,80,0.9);
  font-size: 12px;
}
