/* =====================================================================
   METROVA OS – App-spezifische Styles
   ===================================================================== */
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0 4px 14px; }
.mt { margin-top: 12px; }
.btn-text { color: var(--pink-2); font-weight: 600; font-size: 15px; padding: 0 10px; height: 44px; }
.check { color: var(--pink-2); filter: drop-shadow(0 0 4px rgba(var(--a1), 0.7)); }
.unread-text { color: var(--text); font-weight: 600; }
.missed { color: var(--red); }
.select-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; color: transparent; transition: all 0.2s; }
.select-dot.on { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: var(--glow); }
.pick-hint { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 6px 4px; }
.sheet-sticky { position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(transparent, var(--surface-solid) 30%); }
.load-more { display: flex; justify-content: center; padding: 6px; }

/* ------------------------------------------------------------- Einstellungen */
.settings-profile { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.sp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sp-name { display: flex; align-items: center; gap: 5px; font-size: 19px; font-weight: 700; }
.sp-sub { font-size: 13px; color: var(--muted); }
.settings-foot { text-align: center; font-size: 11px; letter-spacing: 2px; color: var(--muted); padding: 10px 0 20px; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 22px; }
.ph-name { display: flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 750; }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wp-item { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2); }
.wp-item img, .wp-plus { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 16px; border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.wp-plus { display: grid; place-items: center; background: var(--surface-hi); color: var(--pink-2); border: 2px dashed var(--line); }
.wp-item.active img { border-color: var(--pink); box-shadow: var(--glow); transform: scale(1.03); }
.wp-item.active span { color: var(--pink-2); font-weight: 700; }
.theme-row { display: flex; gap: 14px; padding: 14px; justify-content: center; }
.theme-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.theme-prev { width: 86px; height: 150px; border-radius: 18px; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; transition: all 0.2s; }
.theme-prev.dark { background: linear-gradient(180deg, #2a0620, #050307); }
.theme-prev.light { background: linear-gradient(180deg, var(--pink-3), #f3edf2); }
.theme-prev i { height: 12px; border-radius: 6px; background: var(--grad); opacity: 0.8; }
.theme-prev i:nth-child(2) { width: 70%; opacity: 0.5; }
.theme-prev.light i { background: var(--magenta); }
.theme-opt.active .theme-prev { border-color: var(--pink); box-shadow: var(--glow); }
.theme-opt.active span { color: var(--pink-2); }
.security-hero, .about-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 10px 24px; }
.security-hero h3 { margin: 14px 0 6px; }
.security-hero p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.sec-icon, .about-logo { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: var(--on-accent); background: var(--grad); box-shadow: var(--glow); }
.about-logo { color: #fff; }
.about-hero h2 { margin: 14px 0 2px; }
.pin-dialog { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 16px 0; }
.pin-dots.inline .pin-dot { border-color: var(--text); }
.mini-pad { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.mini-pad .pad-key { height: 48px; }
.mini-pad .pad-key:disabled { visibility: hidden; }

/* ------------------------------------------------------------- Telefon */
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; padding-top: 6px; }
.fav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fav-name { font-weight: 600; font-size: 14px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-sub { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--pink-2); }
.fav-star { color: var(--gold); }
.call-sub { display: inline-flex; align-items: center; gap: 4px; }
.my-card { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; }
.mc-name { font-weight: 700; font-size: 17px; }
.contact-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 18px; text-align: center; }
.ch-name { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 750; margin-top: 8px; }
.ch-sub { color: var(--muted); font-size: 14px; }
.contact-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.c-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--pink-2); }
.c-action:active { background: rgba(var(--a1), 0.15); }
.form-avatar { display: flex; justify-content: center; padding: 6px 0 18px; }
.keypad { display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 4px; }
.kp-top { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.kp-display { font-size: 38px; font-weight: 400; letter-spacing: 1px; min-height: 46px; }
.kp-name { font-size: 14px; color: var(--pink-2); min-height: 18px; }
.kp-add { font-size: 14px; color: var(--pink-2); visibility: hidden; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 26px; margin-top: 18px; }
.kp-key { width: 78px; height: 78px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-hi); border: 1px solid var(--line-soft); transition: background 0.1s, transform 0.1s; }
.kp-key:active { background: rgba(var(--a1), 0.35); transform: scale(0.95); }
.kp-num { font-size: 32px; line-height: 1; }
.kp-sub { font-size: 9.5px; letter-spacing: 2px; color: var(--muted); min-height: 11px; margin-top: 2px; }
.kp-bottom { display: grid; grid-template-columns: repeat(3, 78px); gap: 26px; margin-top: 16px; align-items: center; justify-items: center; }
.kp-call { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 22px rgba(47, 224, 138, 0.55); transition: transform 0.12s; }
.kp-call:active { transform: scale(0.94); }
.kp-del { color: var(--muted); }

/* ------------------------------------------------------------- Nachrichten */
.conv-row { padding-left: 4px; padding-right: 4px; }
.conv-list .row + .row::before { left: 68px; }
.conv-list { margin: 0 -4px; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; }
.group-avatar { position: relative; flex: none; }
.group-avatar .avatar { position: absolute; border: 2px solid var(--app-bg); }
.group-avatar .avatar:first-child { left: 0; top: 0; }
.group-avatar .avatar:nth-child(2) { right: 0; bottom: 0; }
.thread-page .nav { grid-template-columns: 44px 1fr auto; }
.thread-head { display: flex; align-items: center; gap: 10px; text-align: left; max-width: 100%; }
.th-text { min-width: 0; }
.th-name { display: flex; align-items: center; gap: 4px; font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sub { font-size: 12px; color: var(--muted); }
.thread-page .page-body { padding: 0 10px 10px; }
.msg-list { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; }
.msg-day { align-self: center; margin: 14px 0 8px; padding: 4px 12px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-hi); }
.msg-system { align-self: center; text-align: center; margin: 8px 20px; font-size: 12.5px; color: var(--muted); }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; animation: msg-in 0.28s var(--ease); }
@keyframes msg-in { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av-spacer { width: 28px; flex: none; }
.msg-bubble { padding: 8px 12px 6px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line-soft); min-width: 64px; position: relative; }
.msg.mine .msg-bubble { background: linear-gradient(135deg, var(--pink-2), var(--magenta)); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(var(--a1), 0.3); border-bottom-right-radius: 6px; }
.msg.theirs .msg-bubble { border-bottom-left-radius: 6px; }
.msg.rich .msg-bubble { padding: 4px; }
.msg-sender { font-size: 12px; font-weight: 700; color: var(--pink-2); margin-bottom: 2px; }
.msg-text { font-size: 15px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.msg.rich .msg-text { padding: 4px 8px 0; }
.msg-text.deleted { display: flex; align-items: center; gap: 6px; font-style: italic; opacity: 0.7; }
.msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 10.5px; opacity: 0.7; margin-top: 2px; padding: 0 4px; }
.msg-tick.read { color: #fff; opacity: 1; filter: drop-shadow(0 0 3px #fff); }
.msg-media { max-width: 230px; max-height: 300px; border-radius: 16px; object-fit: cover; cursor: zoom-in; }
.msg-card { display: block; width: 230px; text-align: left; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, 0.25); }
.mc-media { width: 100%; height: 150px; object-fit: cover; }
.mc-body { padding: 8px 10px; }
.mc-title { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13.5px; }
.mc-sub { font-size: 12.5px; opacity: 0.8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-sub.price { font-weight: 700; color: var(--pink-3); opacity: 1; }
.msg.mine .mc-sub.price { color: #fff; }
.msg-money { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.mm-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); }
.mm-amount { font-size: 18px; font-weight: 800; }
.mm-sub, .mm-ref { font-size: 12px; opacity: 0.85; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); margin-top: 4px; }
.typing.on { display: inline-flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-2); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer-input { flex: 1; min-height: 40px; max-height: 110px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line-soft); background: var(--surface-hi); color: var(--text); outline: none; resize: none; line-height: 1.35; }
.composer-input:focus { border-color: var(--line); }
.composer-attach { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--pink-2); background: var(--surface-hi); }
.composer-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-hi); color: var(--muted); transition: all 0.2s; }
.composer-send.ready { background: var(--grad); color: var(--on-accent); box-shadow: var(--glow); transform: rotate(0deg) scale(1.05); }
