/* Wiederverwendbare Bausteine im Stil der Homepage (helle Panels, blaue Rahmen, Gold, Cinzel) */

/* Kopfzeile: blaue Leiste mit goldener Kante (wie das Menü unter dem Slider der Homepage) */
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 62px; flex: none; position: relative; z-index: 2;
  background: var(--blue-grad); border-bottom: 3px solid var(--gold); box-shadow: 0 5px 18px rgba(0, 0, 0, .22); color: #fff; }
.topbar-t { flex: 1; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(26, 117, 255, .35); background: var(--surf); box-shadow: 0 3px 8px rgba(0, 0, 0, .15); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex: none; transition: transform .12s; color: var(--blue-dark); }
.topbar .icon-btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; box-shadow: none; }
.icon-btn.back { font-size: 2rem; line-height: 1; padding-bottom: 4px; } [dir="rtl"] .icon-btn.back span { display: inline-block; transform: scaleX(-1); }
.icon-btn.ghost { visibility: hidden; }
.icon-btn:hover { transform: translateY(-1px); } .icon-btn:active { transform: scale(.94); }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 5px 0 10px; border-radius: 999px; border: 2px solid var(--gold); background: var(--surf); box-shadow: 0 3px 8px rgba(0, 0, 0, .15); font-weight: 800; font-size: 1rem; color: #6b4b05; }
.coin-chip::after { content: "+"; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 1.1rem; line-height: 1; font-weight: 900; }
.wallets { display: inline-flex; gap: 6px; }
.badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--danger); color: #fff; font: 800 .72rem/17px var(--font); text-align: center; font-style: normal; border: 2px solid #fff; animation: badge-pop .4s cubic-bezier(.3, 1.6, .5, 1); } .badge.hide { display: none; }
@keyframes badge-pop { from { transform: scale(0); } }

/* Knöpfe wie auf der Homepage: blau, rund, Cinzel */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 26px; border-radius: 30px; border: 2px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  background: var(--blue-grad); color: #fff; box-shadow: 0 6px 16px rgba(26, 117, 255, .4); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 117, 255, .5); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--blue-dark); border-color: var(--gold); box-shadow: none; }
.btn.ghost:hover { background: var(--gold); color: #fff; }
.btn.gold { background: var(--gold-grad); color: #3b2a04; box-shadow: 0 6px 16px rgba(184, 134, 11, .45); }
.btn.danger { background: linear-gradient(135deg, #ef5a4f, #b5241c); color: #fff; box-shadow: 0 6px 16px rgba(214, 58, 50, .4); }
.btn.big { min-height: 56px; font-size: 1.1rem; width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.is-busy { position: relative; color: transparent; } .btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; border-color: #fff transparent; animation: spin .7s linear infinite; }
.btn.ghost.is-busy::after { border-color: var(--blue) transparent; }
.link { background: none; border: 0; color: var(--blue-dark); text-decoration: underline; padding: 8px; font-size: .95rem; font-weight: 700; }

.stars { display: inline-flex; gap: 2px; } .star { color: #cdbb94; font-size: 1.1rem; } .star.on { color: #f2b705; text-shadow: 0 1px 0 #8a5d03, 0 0 6px rgba(255, 200, 0, .5); }
.stars.big .star { font-size: 2.3rem; } .stars.tiny .star { font-size: .8rem; line-height: 1; }
.stars.anim .star.on { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; } .stars.anim .star.on:nth-child(2) { animation-delay: .15s; } .stars.anim .star.on:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surf3); font-size: .78rem; font-weight: 700; } .chip.ok { background: #d4f0de; color: #17643c; }

.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(26, 117, 255, .18); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 36px 16px; text-align: center; }
.empty-ic, .big-ic { font-size: 3rem; }
.notice { min-height: 100%; max-width: 440px; margin: 0 auto; }

/* Panels wie auf der Homepage */
.card { background: rgba(253, 246, 231, .95); border: var(--frame); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-big); }
.sect { display: flex; flex-direction: column; gap: 10px; }
.sect-t { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; color: var(--gold); border-bottom: 3px solid var(--gold); padding-bottom: 6px; margin-top: 4px; }
.sep { height: 1px; background: var(--line); margin: 6px 0; }

.field { display: flex; flex-direction: column; gap: 6px; } .field-l { font-weight: 700; font-size: .9rem; color: #3c3326; } .field-h { font-size: .8rem; }
.input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 2px solid #d6c39c; background: #fff; color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26, 117, 255, .18); }
.input.select { appearance: none; padding-inline-end: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .input.select { background-position: 20px 21px, 14px 21px; }
.form { display: flex; flex-direction: column; gap: 14px; } .form-msg { min-height: 1.2em; color: var(--danger); font-size: .92rem; font-weight: 700; } .form-msg.ok { color: var(--mint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; } .check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--blue); }

.tabs { display: flex; gap: 6px; padding: 0 12px 8px; flex: none; overflow-x: auto; }
.tab { flex: 1; min-height: 44px; padding: 0 14px; border-radius: 30px; border: 2px solid var(--gold); background: transparent; font-family: var(--font-display); font-weight: 700; white-space: nowrap; color: var(--blue-dark); }
.tab.on { background: var(--blue-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(26, 117, 255, .35); }
.auth-card .tabs { padding: 0 0 16px; }

/* Listen-Zeilen */
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 62px; border-radius: 14px; background: var(--surf); border: 2px solid rgba(26, 117, 255, .3); box-shadow: 0 3px 10px rgba(0, 0, 0, .08); width: 100%; text-align: start; position: relative; }
button.row { cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; } button.row:hover { border-color: var(--blue); transform: translateX(3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.row-t { flex: 1; display: flex; flex-direction: column; min-width: 0; } .row-t b, .row-t small { overflow: hidden; text-overflow: ellipsis; }
.row.off .avatar { opacity: .55; filter: grayscale(.5); } .row.new { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184, 134, 11, .25); }
.row.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.row.switch .knob { width: 54px; height: 30px; border-radius: 15px; background: #cbbb98; position: relative; flex: none; transition: background .15s; }
.row.switch .knob::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.row.switch input:checked ~ .knob { background: var(--blue); } .row.switch input:checked ~ .knob::after { transform: translateX(24px); } [dir="rtl"] .row.switch input:checked ~ .knob::after { transform: translateX(-24px); }
.row.switch input:focus-visible ~ .knob { outline: 3px solid var(--blue); outline-offset: 2px; }
.row.slider { flex-wrap: wrap; } .row.slider input { width: 100%; accent-color: var(--blue); height: 28px; }
.plain-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .plain-list li { display: flex; justify-content: space-between; }
.kvs { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; } .kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Avatar */
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffffff, #dfe9ff); flex: none; border: 3px solid var(--blue); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); overflow: visible; }
.avatar .av-in { font-size: 1em; line-height: 1; } .avatar .ic-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.sz-xs { width: 26px; height: 26px; font-size: 14px; border-width: 2px; } .avatar.sz-s { width: 36px; height: 36px; font-size: 20px; border-width: 2px; } .avatar.sz-m { width: 48px; height: 48px; font-size: 27px; }
.avatar.sz-l { width: 70px; height: 70px; font-size: 40px; } .avatar.sz-xl { width: 100px; height: 100px; font-size: 58px; }
.avatar .dot { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: #9a8f7c; } .avatar .dot.on { background: #2fbf6a; }
.avatar.frame-frame_silber { border-color: #9fb0b8; box-shadow: 0 0 0 2px #cfd8dc; } .avatar.frame-frame_gold { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 200, 0, .6); }
.avatar.frame-frame_feuer { border-color: #ff7a2f; box-shadow: 0 0 12px #ff5a1fcc; } .avatar.frame-frame_regenbogen { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(red, yellow, lime, cyan, blue, magenta, red) border-box; }

/* Fenster: wie die Popups der Homepage (blauer Rahmen, blaue Titelleiste) */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; } .modal-back.out { opacity: 0; transition: opacity .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; max-height: calc(100% - 24px); overflow-y: auto; background: var(--surf); border: 5px solid var(--blue); border-radius: 20px; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 14px; animation: rise .22s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes rise { from { transform: translateY(18px) scale(.96); opacity: 0; } }
.modal.sheet { align-self: flex-end; max-width: 580px; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: calc(22px + var(--safe-b)); } .modal-back:has(.sheet) { align-items: flex-end; padding: 0; }
.modal-t { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-align: center; color: var(--blue-dark); padding-bottom: 8px; border-bottom: 3px solid var(--gold); }
.modal-btns { display: flex; flex-direction: column; gap: 10px; }
.modal-btns .btn { width: 100%; }

.toast { max-width: 460px; padding: 11px 18px; border-radius: 14px; background: var(--surf); color: var(--text); border: 3px solid var(--blue); box-shadow: var(--shadow-big); font-weight: 700; animation: rise .2s; pointer-events: auto; text-align: center; }
.toast.ok { border-color: var(--mint); } .toast.bad { border-color: var(--danger); color: #8a1d17; } .toast.coin { border-color: var(--gold); color: #6b4b05; } .toast.out { opacity: 0; transition: opacity .2s; }

.code-box { font: 800 2rem/1 ui-monospace, monospace; letter-spacing: .25em; padding: 14px; margin: 12px 0 6px; border-radius: 14px; background: #fff; border: 3px dashed var(--gold); color: var(--blue-dark); cursor: pointer; }
.coins-gain { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold); }
.days { display: flex; justify-content: center; gap: 6px; margin: 12px 0; } .day { width: 36px; height: 36px; border-radius: 50%; background: var(--surf3); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; color: var(--muted); } .day.on { background: var(--blue-grad); color: #fff; } .day.now { box-shadow: 0 0 0 3px var(--gold); transform: scale(1.14); }
.wait { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.radar { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--blue); position: relative; } .radar::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--blue); animation: ping 1.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.result { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } .result-ic { font-size: 4.2rem; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.vs { display: flex; align-items: center; gap: 14px; margin: 6px 0; }
.meter { display: inline-flex; gap: 3px; } .meter i { width: 14px; height: 10px; border-radius: 3px; background: #dccba6; } .meter i.on { background: var(--danger); }

/* Niedrige Fenster (Handy quer): Fenster kompakter, Knöpfe nebeneinander, Knöpfe immer sichtbar */
.modal-btns { position: sticky; bottom: -22px; background: linear-gradient(transparent, var(--surf) 18%); padding-top: 10px; margin-bottom: -4px; }
@media (max-height: 480px) {
  .modal { padding: 12px 16px; gap: 8px; max-width: 520px; }
  .modal-btns { flex-direction: row-reverse; bottom: -12px; }
  .modal-btns .btn { min-height: 44px; }
  .result-ic { font-size: 2.6rem; } .result { gap: 3px; } .result h2 { font-size: 1.2rem; }
  .stars.big .star { font-size: 1.7rem; } .coins-gain { font-size: 1.2rem; }
  .lvl-badge { width: 46px; height: 46px; font-size: 1.3rem; } .lvl-sheet { gap: 8px; } .big-ic { font-size: 2.2rem; }
  .modal.sheet { padding-bottom: calc(12px + var(--safe-b)); } .shop-pv.big { margin: 0; transform: none; min-height: 70px; }
  .topbar { min-height: 50px; padding-block: 4px; }
}
