﻿*, *::before, *::after {
    box-sizing: border-box;
}

:root {
  --primary: #1e88e5;
  --primary-light: #e3f2fd;
  --bg: #f5f7fb;
  --text: #1a237e;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* GLOBAL */
a,
.card a,
.content-area a,
.app-shell a {
    color: #444;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

a:hover,
.card a:hover,
.content-area a:hover,
.app-shell a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

a:visited {
    color: #444;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #e3f2fd, #f5f7fb);
  color: var(--text);
  overflow-x: hidden; /* Sicherheit gegen horizontales Scrollen */
}

.impersonate-round {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.35);
    padding: 8px 14px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    margin-right: 12px;
    font-size: 13px;
    white-space: nowrap;
}

.impersonate-round i {
    font-size: 18px;
    color: #ff6b6b;
}

.impersonate-round strong {
    color: #fff;
}

.impersonate-round small {
    opacity: 0.8;
    margin-left: 4px;
    font-size: 11px;
}

.impersonate-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.35);
    padding: 6px 12px;
    border-radius: 10px;
    margin-right: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    gap: 10px;
}

.impersonate-badge i {
    font-size: 20px;
    color: #ff6b6b;
}

.impersonate-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.imp-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffb3b3;
}

.imp-line {
    font-size: 12px;
    opacity: 0.9;
}

.imp-exit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 60, 60, 0.35);
    color: #fff;
    padding: 6px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.imp-exit:hover {
    background: rgba(255, 60, 60, 0.55);
}

.impersonate-logout-btn {
    background: rgba(255, 255, 255, 0.08);
    margin-left: 4px;
}

.impersonate-logout-btn i {
    font-size: 18px;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* UNIFIED BOX WIDTH â€“ Cards NICHT breiter als App-Shell */
.card,
.header-card,
.login-card {
  width: calc(100% - 24px); /* Abstand links/rechts */
  max-width: 100%;
  margin: 12px auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(12px);
}

/* NAVIGATION */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 9999;
}

.nav-bottom a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
}

.nav-bottom i {
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
}

body.admin-page {
    background: linear-gradient(160deg, #1a1d24 0%, #252a33 45%, #1e2229 100%);
    min-height: 100vh;
}

.admin-nav {
    background: rgba(12, 14, 18, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}

.admin-nav::-webkit-scrollbar {
    height: 4px;
}

.admin-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.admin-nav a {
    flex: 0 0 auto;
    min-width: 72px;
    max-width: 96px;
    padding: 8px 10px 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.admin-nav a i {
    color: inherit;
}

.admin-nav a:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav a.active {
    color: #fff;
    background: rgba(0, 150, 255, 0.25);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-toolbar h2,
.admin-toolbar h3 {
    margin: 0;
}

.admin-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-subtabs a {
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s, color 0.2s;
}

.admin-subtabs a:hover {
    background: var(--primary-light);
}

.admin-subtabs a.active {
    background: var(--primary);
    color: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
}

.admin-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(0, 150, 255, 0.04);
}

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-badge--published,
.admin-badge--yes {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.admin-badge--draft,
.admin-badge--no {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
}

.admin-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    margin-bottom: 8px;
}

.admin-list li:last-child {
    margin-bottom: 0;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.admin-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.admin-system-grid > div {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    font-size: 14px;
}

body.admin-page .card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.admin-page .card h2,
body.admin-page .card h3 {
    margin-top: 0;
}

.admin-card {
    /* alias for settings card emphasis */
}

.admin-stat-box {
    flex: 1 1 calc(33% - 12px);
    min-width: 120px;
    background: rgba(255,255,255,0.75);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.admin-stat-box i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 6px;
}

.admin-stat-box strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.admin-stat-box span {
    font-size: 14px;
    opacity: 0.8;
}

.system-info div {
    margin: 6px 0;
    font-size: 14px;
}

.quick-links {
    display: contents;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s;
}

.quick-links a:hover {
    background: var(--primary-light);
}

.quick-links i {
    font-size: 18px;
    color: var(--primary);
}

/* HEADER CARD */
.header-card {
  border: 1px solid rgba(0, 150, 255, 0.15);
}

/* HEADER: volle Breite */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 150, 255, 0.15);
    z-index: 9998;
    padding: 10px 0;
}

/* HEADER-INHALT: zentriert */
.header-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

/* Abstand fÃ¼r fixen Header + Bottom-Nav */
.content-area {
    padding-top: 80px;
    padding-bottom: 90px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Header-Icon-Buttons (blaues Theme auf hellem Header) */
.admin-btn,
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(30, 136, 229, 0.12);
    border: 1px solid rgba(30, 136, 229, 0.2);
    backdrop-filter: blur(12px);
    color: var(--primary);
    font-size: 20px;
    text-decoration: none;
    transition: 0.25s ease;
    flex-shrink: 0;
}

.admin-btn:hover,
.nav-icon-btn:hover {
    background: rgba(30, 136, 229, 0.22);
    transform: translateY(-2px);
}

.flash-banner {
    margin-bottom: 12px;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
}

.flash-reward {
    background: #e8f5e9;
    color: #2e7d32;
}

.flash-error {
    background: #ffe0e0;
    color: #b30000;
}

@media (max-width: 480px) {
    .header-bar {
        padding: 6px 0;
    }

    .header-inner {
        gap: 8px;
        padding: 0 8px;
    }

    .mini-logo {
        font-size: 13px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        display: none;
    }

    .impersonate-round .impersonate-label {
        display: none;
    }

    .admin-btn,
    .nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 12px;
    }

    .content-area {
        padding-top: 64px;
    }
}

.profile-tab i {
    margin-right: 6px;
    font-size: 16px;
}

/* LOGO */
.app-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mini-logo {
  background: linear-gradient(135deg, #0094FF, #00D4FF);
  color: white;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 14px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 150, 255, 0.25);
}

.logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(90deg, #0094FF, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  margin: 0;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: #7BD9FF;
}

/* AVATAR GRID */
.avatar-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar-option {
  display: inline-block;
  border-radius: 16px;
  padding: 6px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avatar-option img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.avatar-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.avatar-option input:checked + img {
  outline: 3px solid var(--primary);
}

/* FOOTER MINI */
.footer-mini {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #444;
  padding: 8px 0 6px 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 9998;
}

.footer-mini-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.footer-mini-links a {
  color: #444;
  font-size: 13px;
  text-decoration: none;
  padding: 2px 4px;
}

.footer-mini-links a:hover {
  text-decoration: underline;
}

.footer-mini-analytics {
  font-size: 11px;
  opacity: 0.8;
}

/* LOGIN / REGISTER / PROFILE */
.profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-tab {
    padding: 8px 6px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    background: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.profile-tab i {
    font-size: 16px;
    opacity: 0.8;
}

.profile-tab.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.profile-tab.active i {
    opacity: 1;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s;
}

.tab-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 520px) {
    .profile-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .profile-tab {
        flex: 1 1 0;
        padding: 8px 14px;
        font-size: 15px;
        gap: 8px;
    }
}

.input-group textarea {
    width: 90%;
    margin: 0 auto;
    display: block;

    min-height: 90px;
    resize: vertical;

    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;

    border-radius: 12px; /* exakt wie Inputs */
    border: 1px solid #ddd;

    background: #fff;
    color: #000;

    outline: none;
    transition: border 0.2s;
}

.input-group textarea:focus {
    border-color: var(--primary);
}
.char-counter {
    font-size: 13px;
    text-align: right;
    margin-top: 4px;
    color: #666;
}

.char-counter.limit {
    color: #d32f2f;
    font-weight: 600;
}

.login-icon {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 10px;
}

.login-sub {
  color: #666;
  margin-bottom: 20px;
}

.input-group {
  text-align: left;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
  display: block;
}

.input-group input,
.input-group select {
  width: 90%;
  margin: 0 auto;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4aa3ff, #1e90ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1e88e5;
}

.input-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 20px 0;
  font-size: 14px;
  color: #444;
}

.input-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.login-links {
  margin-top: 20px;
  font-size: 14px;
}

.login-links a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  margin: 4px 0;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-error {
  background: #ffe0e0;
  color: #b30000;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.login-info {
  background: #e0ffe0;
  color: #006600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* UNIVERSAL PAGE WRAPPER */
.page-wrapper {
    padding-bottom: 120px;
}

/* COOKIECONSENT */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 99999;
    display: none;
}

.cookie-box {
    max-width: 480px;
    margin: 0 auto;
}

.cookie-category {
    margin: 12px 0;
    font-size: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.marketing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* iPhone Fix */
    background: rgba(255,255,255,0.96);
    display: none;
    z-index: 9999999; /* Ã¼ber ALLEM */
}

.marketing-box {
    max-width: 420px;
    margin: 120px auto 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.85);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(12px);
}

/* ===========================
   GLÃœCKSRAD â€“ SVG VERSION
   =========================== */

.wheel-card {
    position: relative;
    text-align: center;
}

/* Coins */
.wheel-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.coins-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 13px;
}

.coins-value {
    font-weight: 700;
}

/* SVG Wrapper */
.wheel-svg-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: 50% 50%;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.1, 1);
}

/* Pointer oben */
.wheel-pointer-svg {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #ff4b6a;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* Icon auÃŸen am Rand */
.wheel-icon {
    fill: #fff;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

/* Zahl daneben */
.wheel-amount {
    fill: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

/* Highlight Gewinner-Segment */
.winning-segment {
    filter: brightness(1.6) drop-shadow(0 0 10px rgba(255,255,255,1));
    transition: filter 0.3s ease;
}

/* Historie */
.history-wrapper {
    margin-top: 18px;
    text-align: left;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
    font-size: 13px;
    color: #333;
}

.history-list li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pw-strength {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.pw-weak {
    color: #d32f2f;
}

.pw-medium {
    color: #f9a825;
}

.pw-strong {
    color: #2e7d32;
}

/* Wrapper fÃ¼r Passwortfeld */
.pw-wrapper {
    position: relative;
    width: 90%;          /* wie deine normalen Inputs */
    margin: 0 auto;      /* zentriert wie die anderen Inputs */
}

/* Passwortfeld selbst */
.pw-wrapper input {
    width: 100%;         /* 100% innerhalb des Wrappers = 90% gesamt */
    padding: 12px 42px 12px 14px; /* rechts Platz fÃ¼r Auge */
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

/* Auge rechts im Input */
.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
    user-select: none;
}

.pw-toggle:hover {
    opacity: 1;
}
/* Community / Chat layout */
.community-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-main {
    flex: 1;
    min-width: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h2,
.section-head h3 {
    margin: 0;
}

.hub-welcome {
    margin-bottom: 16px;
}

.hub-greeting {
    margin: 4px 0 0;
    font-size: 15px;
    color: #555;
}

.hub-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hub-stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
}

.hub-stat strong {
    display: block;
    font-size: 20px;
    color: var(--primary);
}

.hub-stat span {
    font-size: 12px;
    color: #666;
}

a.hub-stat-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s ease, transform 0.15s ease;
}

a.hub-stat-link:hover,
a.hub-stat-link:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


.hub-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.hub-link i {
    font-size: 20px;
    color: var(--primary);
}

.hub-link-title {
    display: block;
}

.hub-link-preview {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

.news-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-feed-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.news-feed-meta {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.community-sidebar {
    min-width: 0;
}

.member-list-card h3 {
    margin: 0 0 12px;
}

.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text);
}

.member-list-row span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-dot {
    font-size: 8px;
    color: #2e7d32;
    flex-shrink: 0;
}

.member-list-more {
    display: block;
    margin-top: 12px;
    font-size: 13px;
}

.member-list-empty {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.member-directory {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.member-card:last-child {
    border-bottom: none;
}

.member-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text);
}

.member-card-body {
    flex: 1;
    min-width: 0;
}

.member-card-user {
    display: block;
}

.member-card-interests {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.member-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(30, 136, 229, 0.1);
    color: var(--primary);
    text-decoration: none;
}

.member-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.member-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.member-search-form .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 10px 16px;
    white-space: nowrap;
}

.member-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.member-profile-user {
    margin: 4px 0 0;
    color: #666;
}

.meta-line {
    margin: 4px 0 0;
    font-size: 13px;
    color: #888;
}

/* Member avatars â€“ fixed-size wrapper + img constraints */
.member-avatar-wrap {
    display: inline-flex;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    line-height: 0;
}

.member-avatar-wrap-sm {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.member-avatar-wrap-lg {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
}

.member-avatar-wrap img,
.members-page img.member-avatar,
.members-page .member-avatar-wrap img,
.member-list img.member-avatar,
.member-list .member-avatar-wrap img,
.member-profile-card img.member-avatar,
img.member-avatar.member-avatar-sm,
img.member-avatar.chat-msg-avatar,
img.member-avatar.pm-avatar,
img.member-avatar.message-avatar {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 0;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.member-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

img.member-avatar.member-avatar-lg,
.profile-avatar-preview {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
}


/* Private messages â€“ 40px avatars (inbox, thread, search) */
.inbox-list,
.pm-search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inbox-row,
.pm-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.inbox-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pm-msg-content {
    flex: 1;
    min-width: 0;
}

.inbox-list .member-avatar-wrap.pm-avatar,
.inbox-list .member-avatar-wrap-sm,
.pm-thread .member-avatar-wrap.message-avatar,
.pm-thread .member-avatar-wrap.pm-avatar,
.pm-search-results .member-avatar-wrap.pm-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-shrink: 0;
}

.inbox-list img.member-avatar.pm-avatar,
.pm-thread img.member-avatar.message-avatar,
.pm-search-results img.member-avatar.pm-avatar {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

.inbox-list .member-avatar-wrap img,
.pm-thread .member-avatar-wrap img,
.pm-search-results .member-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.pm-search {
    position: relative;
    margin-bottom: 16px;
}

.pm-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    margin-top: 4px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 240px;
    overflow-y: auto;
}

.pm-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
}

.pm-search-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.pm-search-user {
    font-size: 13px;
    color: #666;
}
/* MHNP adblock overlay */
html.adblock-locked {
    overflow: hidden;
}

html.adblock-locked body {
    overflow: hidden;
}

.adblock-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 52, 96, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.adblock-modal {
    width: 100%;
    max-width: 420px;
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    background: #ffffff;
    color: #0f3460;
    text-align: center;
    box-shadow: 0 12px 40px rgba(15, 52, 96, 0.35);
}

.adblock-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #1e40af;
}

.adblock-modal p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: #334155;
}

.adblock-modal p + p {
    margin-top: 0.75rem;
}

.adblock-modal-hint {
    font-size: 0.9rem;
    color: #64748b;
}

.adblock-modal strong {
    color: #1e40af;
}

.adblock-recheck-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.adblock-recheck-btn:hover,
.adblock-recheck-btn:focus-visible {
    background: #1d4ed8;
    outline: none;
}

.adblock-recheck-btn:active {
    transform: scale(0.98);
}

.adblock-recheck-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

@media (max-width: 480px) {
    .adblock-modal {
        padding: 1.5rem 1.125rem;
        border-radius: 12px;
    }

    .adblock-modal h2 {
        font-size: 1.2rem;
    }

    .adblock-modal p {
        font-size: 0.95rem;
    }

    .adblock-recheck-btn {
        width: 100%;
        padding: 0.875rem 1rem;
    }
}



/* Admin user management */
.admin-users-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.users-per-page-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.users-per-page-form label,
.admin-users-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 0 0 100%;
}

.admin-users-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .admin-users-filters {
        flex-direction: row;
        align-items: flex-end;
    }
}

.admin-users-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.admin-users-search-input,
.admin-users-select,
.admin-users-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(30, 64, 175, 0.2);
    background: #fff;
}

.admin-users-status {
    margin: 0;
    font-size: 13px;
    opacity: 0.75;
}

.admin-users-empty {
    margin: 12px 0;
    opacity: 0.8;
}

#adminUsersList.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.user-list {
    margin-top: 15px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid rgba(30, 64, 175, 0.08);
}

.user-row:hover,
.user-row:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.user-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-role {
    font-size: 13px;
    opacity: 0.7;
    flex-shrink: 0;
}

.user-arrow i {
    font-size: 20px;
    opacity: 0.5;
}

.admin-user-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-user-modal.is-open {
    display: flex;
}

.admin-user-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.admin-user-modal__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.admin-user-modal__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.admin-user-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.admin-user-modal__close:hover,
.admin-user-modal__close:focus {
    background: rgba(0, 0, 0, 0.14);
    outline: none;
}

.admin-user-modal__close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.admin-user-modal .modal-inner {
    padding: 20px;
    padding-top: 52px;
}

.admin-user-modal .modal-inner__title {
    margin: 0 36px 0 0;
    font-size: 1.25rem;
}

.admin-user-modal .modal-inner__divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-user-modal .modal-inner label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.admin-user-modal .modal-inner input,
.admin-user-modal .modal-inner select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

.admin-user-modal .modal-actions {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.admin-user-modal a.btn-secondary,
.admin-user-modal a.btn-danger {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}

.admin-user-modal a.btn-secondary {
    background: #444;
    color: #fff;
}

.admin-user-modal a.btn-danger {
    background: #dc2626;
    color: #fff;
}

@media (max-width: 480px) {
    .admin-user-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .admin-user-modal__dialog {
        max-height: calc(100dvh - 24px);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .admin-user-modal .modal-actions {
        flex-direction: column;
    }

    .admin-user-modal .btn-modal-action {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
    }
}
.nav-bottom a.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-bottom a.nav-item.active i {
  color: var(--primary);
}

@media (max-width: 380px) {
  .nav-bottom a {
    font-size: 10px;
  }

  .nav-bottom i {
    font-size: 20px;
  }
}

/* ayeT rewarded video / offerwall */
.ayet-video-host {
    display: none;
    min-height: 0;
}

.ayet-offerwall-overlay {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
}

.ayet-offerwall-overlay.is-open {
    display: flex;
}

.ayet-offerwall-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: min(90dvh, 720px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.ayet-offerwall-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ayet-offerwall-frame {
    width: 100%;
    height: 100%;
    border: 0;
}
