:root {
    --bg-main: #fff9ef;
    --bg-secondary: #fff1d9;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-soft: rgba(255, 255, 255, 0.74);
    --border-soft: rgba(255, 138, 61, 0.18);
    --text-main: #382434;
    --text-muted: #7a6672;
    --primary: #ff7f50;
    --primary-dark: #ff5d7a;
    --secondary: #7b6dff;
    --accent: #12c7b8;
    --success: #31c48d;
    --warning: #ffbf47;
    --danger: #ff5f7a;
    --shadow-main: 0 22px 60px rgba(241, 120, 76, 0.18);
    --shadow-float: 0 14px 30px rgba(123, 109, 255, 0.18);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 127, 80, 0.30), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(123, 109, 255, 0.24), transparent 20%),
        radial-gradient(circle at 80% 78%, rgba(18, 199, 184, 0.20), transparent 24%),
        linear-gradient(180deg, #fff8ef 0%, #fff3d6 46%, #ffe4e8 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(18px);
    z-index: -1;
    opacity: 0.8;
    animation: floatBlob 16s ease-in-out infinite;
}

body::before {
    width: 220px;
    height: 220px;
    top: 90px;
    left: -40px;
    background: rgba(255, 191, 71, 0.28);
}

body::after {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: 50px;
    background: rgba(123, 109, 255, 0.20);
    animation-delay: -6s;
}

h1, h2, h3, h4, h5 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    color: #402541;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

strong {
    color: #3f2040;
}

@supports (-webkit-touch-callout: none) {
    h1, h2, h3, h4, h5 {
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        letter-spacing: 0;
    }
}

p,
label,
span,
small,
.table td,
.table th,
.nav-link,
.btn {
    font-family: 'Nunito', sans-serif;
}

a {
    color: #7b4cff;
}

a:hover {
    color: #ff5d7a;
    text-decoration: none;
}

.page-shell {
    flex: 1 0 auto;
    padding: 34px 0 68px;
}

.top-navbar {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 30px rgba(255, 173, 111, 0.12);
}

.top-navbar .nav-link {
    color: #65495d !important;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
}

.top-navbar .nav-link:hover,
.top-navbar .nav-item.active .nav-link {
    color: #ff6b61 !important;
    transform: translateY(-1px);
}

.top-navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.18em;
}

.top-navbar .dropdown-menu {
    margin-top: 0.7rem;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(255, 184, 92, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(255, 111, 97, 0.16);
}

.top-navbar .dropdown-item {
    color: #65495d;
    font-weight: 700;
    border-radius: 14px;
    padding: 10px 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-navbar .dropdown-item:hover,
.top-navbar .dropdown-item:focus,
.top-navbar .dropdown-item.active {
    color: #ff6b61;
    background: rgba(255, 244, 235, 0.96);
    transform: translateX(2px);
}

.top-navbar .navbar-toggler {
    border: 1px solid rgba(123, 109, 255, 0.24);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 20px rgba(123, 109, 255, 0.10);
}

.top-navbar .navbar-toggler:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(123, 109, 255, 0.18);
}

.top-navbar .navbar-toggler-icon {
    width: 1.35rem;
    height: 1.35rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(91, 61, 93, 0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff8a3d, #ff4da1 55%, #7b6dff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 18px 30px rgba(255, 111, 97, 0.26);
    animation: pulseGlow 2.8s ease-in-out infinite;
}

.brand-mark strong {
    display: block;
    font-size: 1.1rem;
}

.brand-mark small {
    display: block;
    color: #86697d;
    font-size: 12px;
}

.user-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    flex: 0 0 auto;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.18), rgba(123, 109, 255, 0.18));
    border: 1px solid rgba(255, 127, 80, 0.20);
    box-shadow: 0 14px 30px rgba(123, 109, 255, 0.12);
    color: #6b3f77;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar--sm {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 0.9rem;
}

.user-avatar--xl {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    font-size: 2rem;
}

.user-avatar--card {
    width: 120px;
    height: 120px;
    border-radius: 32px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-editor-grid {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-avatar-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.leaderboard-player {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none !important;
}

.leaderboard-player__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-player__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.leaderboard-player__text strong {
    line-height: 1.15;
}

.leaderboard-player__text small {
    line-height: 1.1;
}

.leaderboard-player__badge {
    font-size: 0.72rem;
    padding: 0.34rem 0.72rem;
}

.leaderboard-player__institution {
    color: var(--text-muted);
    font-weight: 700;
}

.status-guide {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 127, 80, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 236, 0.88));
}

.status-guide__note {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-weight: 700;
}

.status-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.status-guide__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(123, 109, 255, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.status-guide__item strong {
    color: #4a2f4f;
    line-height: 1.3;
}

.status-guide__bonus {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 127, 80, 0.16);
    color: #6b4a58;
    font-size: 0.82rem;
    font-weight: 800;
}

.content-card--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 236, 0.82));
    border: 1px solid rgba(255, 127, 80, 0.14);
    box-shadow: none;
}

.status-bonus-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 127, 80, 0.14);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 20px rgba(255, 127, 80, 0.06);
}

.btn {
    border: none;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.btn-pill {
    border-radius: 999px;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #ff8a3d, #ff5d7a);
    color: #fff;
    box-shadow: 0 14px 24px rgba(255, 111, 97, 0.24);
}

.btn-outline-light {
    border: 2px solid rgba(123, 109, 255, 0.24);
    color: #714f7a;
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: linear-gradient(135deg, rgba(123, 109, 255, 0.12), rgba(18, 199, 184, 0.14));
    color: #4f3580;
    border-color: rgba(123, 109, 255, 0.34);
}

.hero-section {
    padding: 48px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.95;
    margin-bottom: 18px;
    color: #3b2543;
}

.hero-subtitle {
    max-width: 620px;
    color: #7a6672;
    font-size: 1.12rem;
}

.hero-actions {
    margin-top: 30px;
}

.hero-panel,
.content-card,
.dashboard-card,
.auth-card,
.feature-card,
.stat-panel,
.glass-card,
.arena-card,
.mini-stat,
.category-stat-card,
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(10px);
}

.glass-card,
.feature-card,
.mini-stat,
.category-stat-card,
.review-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.74));
}

.arena-card,
.content-card,
.dashboard-card,
.auth-card,
.feature-card,
.stat-panel {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

/* Bootstrap'in h-100 yardimci sinifi, dikey akista kullanilan kartlari gereksiz uzatip
   footer'i sayfanin ortasinda gibi gosterebiliyor. Kart bilesenlerinde yuksekligi
   icerige geri birakiyoruz; sayisal kutular kendi siniflariyla zaten dengeleniyor. */
.content-card.h-100,
.dashboard-card.h-100,
.feature-card.h-100,
.glass-card.h-100,
.review-card.h-100,
.category-stat-card.h-100,
.status-bonus-card.h-100,
.how-step.h-100 {
    height: auto !important;
}

.arena-card::before,
.content-card::before,
.dashboard-card::before,
.auth-card::before,
.feature-card::before,
.stat-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 52%);
    pointer-events: none;
}

.arena-card__label,
.section-badge,
.card-kicker,
.mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.16), rgba(123, 109, 255, 0.12));
    color: #7d4777;
    padding: 9px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 127, 80, 0.12);
}

.feature-card p,
.dashboard-card p,
.content-card p,
.stat-panel span,
.text-muted,
.table td,
.table th,
small {
    color: var(--text-muted) !important;
}

.feature-strip,
.hero-mini-stats {
    margin-right: 0;
    margin-left: 0;
}

.dashboard-card,
.feature-card,
.mini-stat,
.option-btn,
.category-option,
.review-card,
.score-row--current {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dashboard-card:hover,
.feature-card:hover,
.category-option:hover,
.option-btn:hover,
.review-card:hover,
.mini-stat:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 34px rgba(255, 118, 100, 0.18);
    border-color: rgba(255, 127, 80, 0.28);
}

.card-accent-primary {
    background: linear-gradient(145deg, rgba(255, 148, 89, 0.28), rgba(255,255,255,0.92) 50%, rgba(255, 93, 122, 0.16));
}

.card-accent-secondary {
    background: linear-gradient(145deg, rgba(18, 199, 184, 0.22), rgba(255,255,255,0.92) 52%, rgba(123, 109, 255, 0.18));
}

.stat-panel {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-panel strong {
    font-size: 2.35rem;
    margin-top: 10px;
}

.auth-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 540px;
    animation: riseIn 0.7s ease;
}

.auth-link {
    color: var(--text-muted);
}

.form-control,
.custom-select,
select.form-control {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(255, 184, 92, 0.18);
    color: var(--text-main);
    border-radius: 18px;
    min-height: 58px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.55);
}

.form-control:focus,
select.form-control:focus {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(123, 109, 255, 0.5);
    color: var(--text-main);
    box-shadow: 0 0 0 0.2rem rgba(123, 109, 255, 0.16);
}

.form-group label {
    font-weight: 800;
    color: #6d4d65;
}

.setup-card h1,
.room-hero h1,
.result-shell h1 {
    font-size: 2.55rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.category-option {
    position: relative;
    padding: 14px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 184, 92, 0.18);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-weight: 800;
    color: #694f63;
}

.category-option.active {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.18), rgba(123, 109, 255, 0.12));
    border-color: rgba(123, 109, 255, 0.42);
    color: #5d3a74;
}

.category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.room-shell .content-card,
.game-shell .content-card {
    min-height: 100%;
}

.room-hero,
.game-card {
    animation: riseIn 0.65s ease;
}

.mini-stat {
    padding: 18px;
}

.mini-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1.2rem;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 127, 80, 0.18);
}

.score-row:last-child {
    border-bottom: none;
}

.score-row__link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.score-row__link:hover,
.score-row__link:focus {
    color: #ff5d7a;
    text-decoration: none;
}

.score-row--current {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.16), rgba(123, 109, 255, 0.08));
    border-radius: 18px;
    padding: 15px 16px;
}

.timer-chip {
    min-width: 148px;
    text-align: right;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,243,214,0.85));
    border: 1px solid rgba(255, 127, 80, 0.18);
    box-shadow: var(--shadow-float);
}

.timer-chip strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    color: #ff6a5c;
    animation: pulseNumber 1.2s ease-in-out infinite;
}

.quiz-progress {
    height: 14px;
    background: rgba(255, 183, 92, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.quiz-progress .progress-bar {
    background: linear-gradient(90deg, #ff8a3d, #ff5d7a 40%, #7b6dff 100%);
    border-radius: 999px;
    animation: shimmerBar 2.2s linear infinite;
}

.question-text {
    font-size: 1.7rem;
    line-height: 1.35;
    color: #3f2743;
}

.options-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.option-btn {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
    border: 2px solid rgba(255, 184, 92, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,246,236,0.92));
    color: var(--text-main);
    text-align: left;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(255, 176, 109, 0.10);
}

.option-btn strong {
    color: #ff6b61;
    margin-right: 6px;
}

.option-btn.active {
    border-color: rgba(123, 109, 255, 0.46);
    background: linear-gradient(135deg, rgba(123, 109, 255, 0.14), rgba(255,255,255,0.95));
}

.option-btn.correct {
    border-color: rgba(49, 196, 141, 0.56);
    background: linear-gradient(135deg, rgba(49, 196, 141, 0.16), rgba(255,255,255,0.95));
}

.option-btn.wrong {
    border-color: rgba(255, 95, 122, 0.44);
    background: linear-gradient(135deg, rgba(255, 95, 122, 0.16), rgba(255,255,255,0.95));
}

.answer-feedback {
    min-height: 90px;
}

.answer-feedback .alert {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(123, 109, 255, 0.10);
}

.question-loading-state {
    padding: 26px 22px;
    border-radius: 24px;
    border: 1px dashed rgba(123, 109, 255, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246, 242, 255, 0.92));
    text-align: center;
    box-shadow: 0 14px 28px rgba(123, 109, 255, 0.10);
}

.question-loading-state .global-loading-orbit {
    margin-bottom: 16px;
}

.question-loading-state strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.question-loading-state p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.winner-card,
.winner-highlight {
    background: linear-gradient(135deg, rgba(255, 195, 92, 0.30), rgba(255, 107, 97, 0.14), rgba(123, 109, 255, 0.14));
}

.winner-highlight {
    padding: 18px 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-float);
}

.winner-highlight strong {
    display: block;
    font-size: 1.55rem;
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 184, 92, 0.16);
    padding: 18px 0 24px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.table-dark {
    background: transparent;
}

.table-dark td,
.table-dark th,
.table-dark thead th {
    border-color: rgba(255, 184, 92, 0.16);
    color: #6d5565;
}

.gap-12 {
    gap: 12px;
}

.form-feedback .alert {
    margin-bottom: 0;
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 19, 34, 0.46);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

.global-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loading-overlay-open {
    overflow: hidden;
}

.global-loading-card {
    width: min(100%, 430px);
    padding: 28px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,246,236,0.92));
    border: 1px solid rgba(255, 184, 92, 0.20);
    box-shadow: 0 24px 80px rgba(18, 13, 23, 0.24);
    text-align: center;
}

.global-loading-card strong {
    display: block;
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.global-loading-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.global-loading-orbit {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
}

.global-loading-orbit::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(123, 109, 255, 0.26);
    animation: globalLoadingSpin 8s linear infinite;
}

.global-loading-orbit span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 10px 18px rgba(123, 109, 255, 0.16);
    animation: globalLoadingOrbit 1.8s ease-in-out infinite;
}

.global-loading-orbit span:nth-child(1) {
    top: 0;
    left: 50%;
    margin-left: -8px;
    background: linear-gradient(135deg, #ff8a3d, #ff5d7a);
}

.global-loading-orbit span:nth-child(2) {
    right: 6px;
    bottom: 14px;
    background: linear-gradient(135deg, #7b6dff, #12c7b8);
    animation-delay: -0.6s;
}

.global-loading-orbit span:nth-child(3) {
    left: 6px;
    bottom: 14px;
    background: linear-gradient(135deg, #ffbf47, #ff8a3d);
    animation-delay: -1.2s;
}

.global-loading-bar {
    position: relative;
    height: 10px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 183, 92, 0.18);
}

.global-loading-bar span {
    position: absolute;
    inset: 0;
    width: 42%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a3d, #ff5d7a 50%, #7b6dff 100%);
    animation: globalLoadingSweep 1.6s ease-in-out infinite;
}

.preparation-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 184, 92, 0.18);
}

.preparation-status__pulse {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #31c48d;
    flex: 0 0 auto;
}

.preparation-status.is-active .preparation-status__pulse {
    background: #ff8a3d;
    animation: preparationPulse 1.35s ease-in-out infinite;
}

.preparation-status__pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 138, 61, 0.26);
    opacity: 0;
}

.preparation-status.is-active .preparation-status__pulse::after {
    animation: preparationRipple 1.35s ease-out infinite;
}

.preparation-status__text {
    display: inline-block;
}

.alert-info {
    background: rgba(123, 109, 255, 0.12);
    color: #5d3a74;
}

.alert-success {
    background: rgba(49, 196, 141, 0.16);
    color: #22684f;
}

.alert-danger {
    background: rgba(255, 95, 122, 0.16);
    color: #883045;
}

.alert-warning {
    background: rgba(255, 191, 71, 0.18);
    color: #7d5412;
}

@keyframes floatBlob {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-18px) translateX(12px) scale(1.06); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 18px 30px rgba(255, 111, 97, 0.26); }
    50% { transform: scale(1.06); box-shadow: 0 22px 38px rgba(123, 109, 255, 0.24); }
}

@keyframes pulseNumber {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes shimmerBar {
    0% { filter: saturate(1); }
    50% { filter: saturate(1.25); }
    100% { filter: saturate(1); }
}

@keyframes riseIn {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes globalLoadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes globalLoadingOrbit {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.18); }
}

@keyframes globalLoadingSweep {
    0% { transform: translateX(-115%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}

@keyframes preparationPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.26); }
    50% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(255, 138, 61, 0.06); }
}

@keyframes preparationRipple {
    0% { opacity: 0.5; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.35); }
}

@media (max-width: 991.98px) {
    .top-navbar .navbar-collapse {
        display: none;
        width: 100%;
        margin-top: 14px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 184, 92, 0.20);
        box-shadow: 0 18px 34px rgba(255, 111, 97, 0.12);
    }

    .top-navbar .navbar-collapse.show {
        display: block;
    }

    .top-navbar .navbar-nav {
        gap: 8px;
        align-items: stretch !important;
    }

    .top-navbar .nav-item,
    .top-navbar .btn {
        width: 100%;
    }

    .top-navbar .nav-link,
    .top-navbar .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border-radius: 16px;
    }

    .top-navbar .nav-link {
        background: rgba(255, 248, 239, 0.88);
    }

    .top-navbar .dropdown-menu {
        min-width: 100%;
        margin-top: 8px;
        padding: 8px;
        box-shadow: none;
    }

    .top-navbar .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    .top-navbar .ml-lg-2 {
        margin-left: 0 !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .options-wrap {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .profile-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .page-shell {
        padding-top: 20px;
    }

    .content-card,
    .dashboard-card,
    .auth-card,
    .feature-card,
    .stat-panel,
    .arena-card {
        padding: 20px;
        border-radius: 22px;
    }

    .setup-card h1,
    .room-hero h1,
    .result-shell h1 {
        font-size: 2rem;
    }

    .timer-chip {
        text-align: left;
        margin-top: 16px;
    }

    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 30px rgba(255, 111, 97, 0.18);
    background: rgba(255,255,255,0.85);
    padding: 4px;
}

.btn.is-loading {
    opacity: 0.8;
    cursor: wait;
    transform: none !important;
    box-shadow: none !important;
}

.form-feedback .alert {
    animation: fadeInUp 0.25s ease;
}

.quick-play-card {
    padding: 30px;
}

.quick-play-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.quick-play-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.how-step {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,246,236,0.88));
    border: 1px solid rgba(255, 138, 61, 0.18);
    border-radius: 22px;
    padding: 20px;
    min-height: 100%;
    box-shadow: 0 14px 26px rgba(255, 176, 109, 0.10);
}

.how-step strong {
    display: block;
    margin-bottom: 8px;
}

.room-invite-box {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,241,217,0.84));
    border: 1px solid rgba(255, 138, 61, 0.18);
}

.room-role-text {
    color: #7b6dff !important;
    font-weight: 800;
}

.option-btn {
    touch-action: manipulation;
}

.option-btn.is-pending,
.option-btn:disabled {
    opacity: 0.96;
    cursor: not-allowed;
}

.option-btn.is-pending {
    box-shadow: 0 0 0 4px rgba(123, 109, 255, 0.10), 0 10px 20px rgba(255, 176, 109, 0.10);
}

.review-card--correct {
    border-color: rgba(49, 196, 141, 0.35);
    background: linear-gradient(180deg, rgba(232,255,245,0.92), rgba(255,255,255,0.82));
}

.review-card--wrong {
    border-color: rgba(255, 95, 122, 0.35);
    background: linear-gradient(180deg, rgba(255,239,243,0.92), rgba(255,255,255,0.82));
}

.review-card--blank {
    border-color: rgba(255, 191, 71, 0.35);
    background: linear-gradient(180deg, rgba(255,249,232,0.92), rgba(255,255,255,0.82));
}

.review-card--wrong strong,
.review-card--wrong p {
    color: #8a3348;
}

.review-card--correct strong,
.review-card--correct p {
    color: #20634b;
}

.review-card--blank strong,
.review-card--blank p {
    color: #725520;
}

@media (max-width: 991.98px) {
    .quick-play-card {
        margin-top: 16px;
    }
}

.question-text,
.game-shell .question-text,
.game-shell #questionText {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
}

.game-shell .option-btn,
.game-shell .answer-feedback,
.game-shell .mini-pill,
.game-shell .timer-chip strong {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
}

@supports (-webkit-touch-callout: none) {
    .game-shell .question-text,
    .game-shell #questionText,
    .game-shell .option-btn,
    .game-shell .mini-pill,
    .game-shell .answer-feedback,
    .game-shell .timer-chip strong {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        letter-spacing: 0;
    }
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 138, 61, 0.18);
    color: #6c4a6f;
    font-weight: 700;
}

.site-footer__links a:hover {
    color: #ff5d7a;
    transform: translateY(-1px);
}

.consent-check {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 184, 92, 0.18);
}

.consent-check__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-check__label input {
    margin-top: 4px;
    transform: scale(1.15);
}

.consent-check__label span {
    display: block;
    color: var(--text-main);
}

.consent-check__label strong {
    display: block;
    margin-bottom: 2px;
}

.consent-check__label small {
    display: block;
    color: var(--text-muted);
}

.legal-note {
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,246,236,0.84));
    border: 1px solid rgba(255, 138, 61, 0.18);
}

.legal-document__hero {
    max-width: 900px;
}

.legal-document__grid {
    display: grid;
    gap: 18px;
}

.legal-document__section p:last-child {
    margin-bottom: 0;
}

.player-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    line-height: 1.15;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-name--big {
    font-size: 1.18em;
}

.player-name--bold {
    font-weight: 900;
    letter-spacing: 0.02em;
}

.player-name--frame {
    padding: 0.28em 0.72em;
    border: 1px solid rgba(var(--player-frame-rgb, 255, 127, 80), 0.34);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--player-frame-rgb, 255, 127, 80), 0.16));
    box-shadow: 0 10px 18px rgba(var(--player-frame-rgb, 255, 127, 80), 0.14);
}

.player-name--frame-badge {
    border-radius: 999px;
}

.player-name--frame-card {
    padding: 0.34em 0.82em;
    border-radius: 18px;
}

.player-name--frame-stamp {
    padding: 0.34em 0.82em;
    border-radius: 12px;
    border-style: dashed;
    box-shadow:
        0 0 0 2px rgba(var(--player-frame-rgb, 255, 127, 80), 0.14),
        0 12px 22px rgba(var(--player-frame-rgb, 255, 127, 80), 0.16);
}

.player-name--preview {
    font-size: 1.55rem;
}

.leaderboard-player__name {
    color: inherit;
}

.score-row strong .player-name + .room-role-text,
.score-row strong .player-name + small {
    margin-left: 8px;
}

.name-style-preview-box {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 127, 80, 0.2);
    background:
        radial-gradient(circle at top right, rgba(123, 109, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(255, 255, 255, 0.92));
    box-shadow: 0 18px 34px rgba(255, 127, 80, 0.12);
}

.name-style-preview-text {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px dashed rgba(123, 109, 255, 0.24);
    text-align: center;
}

.name-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.cosmetic-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 127, 80, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 236, 0.88));
    box-shadow: 0 12px 24px rgba(255, 127, 80, 0.08);
}

.cosmetic-item strong {
    display: block;
    margin-bottom: 8px;
}

.cosmetic-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.cosmetic-item--owned {
    border-color: rgba(49, 196, 141, 0.28);
    background: linear-gradient(180deg, rgba(245, 255, 250, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow: 0 14px 30px rgba(49, 196, 141, 0.10);
}

.name-style-toggles {
    display: grid;
    gap: 12px;
}

.name-style-custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.name-style-custom-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 127, 80, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.name-style-color-input {
    width: 100%;
    height: 58px;
    padding: 6px;
    border: 2px solid rgba(255, 184, 92, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.name-style-color-input:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.name-style-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.name-style-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 12px;
}

.name-style-color-input::-moz-color-swatch {
    border: none;
    border-radius: 12px;
}

.name-style-help {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.5;
}

.name-style-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 127, 80, 0.18);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.name-style-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(123, 109, 255, 0.3);
    box-shadow: 0 12px 22px rgba(123, 109, 255, 0.10);
}

.name-style-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ff6b61;
}

.name-style-toggle span {
    font-weight: 700;
    color: #4b3048;
}

.name-style-toggle.is-locked {
    opacity: 0.62;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.55);
}

.name-style-toggle.is-locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 127, 80, 0.18);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-badge--hero {
    font-size: 0.88rem;
}

.status-badge--step {
    color: #5a355f;
    background: linear-gradient(135deg, rgba(255, 222, 173, 0.95), rgba(255, 153, 153, 0.88));
    border-color: rgba(184, 91, 103, 0.24);
}

.status-badge--professor {
    color: #7a2f16;
    background: linear-gradient(135deg, rgba(255, 210, 92, 0.94), rgba(255, 143, 72, 0.88));
    border-color: rgba(199, 103, 39, 0.24);
}

.status-badge--docent {
    color: #4a337f;
    background: linear-gradient(135deg, rgba(197, 186, 255, 0.94), rgba(137, 119, 255, 0.86));
    border-color: rgba(93, 72, 209, 0.24);
}

.status-badge--doctor {
    color: #0f6b65;
    background: linear-gradient(135deg, rgba(167, 249, 238, 0.96), rgba(48, 201, 188, 0.82));
    border-color: rgba(21, 150, 140, 0.24);
}

.status-badge--student {
    color: #4f5b13;
    background: linear-gradient(135deg, rgba(226, 245, 139, 0.96), rgba(177, 206, 65, 0.84));
    border-color: rgba(116, 143, 26, 0.24);
}

.status-badge--rookie {
    color: #6a3f56;
    background: linear-gradient(135deg, rgba(255, 225, 233, 0.96), rgba(255, 184, 199, 0.84));
    border-color: rgba(217, 110, 146, 0.22);
}

.status-metric {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 127, 80, 0.16);
    color: #5a3a5f;
    font-weight: 700;
}

.whatsapp-hero-card {
    background:
        radial-gradient(circle at top right, rgba(37, 211, 102, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 127, 80, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 255, 247, 0.92));
}

.whatsapp-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.whatsapp-metric-card {
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(37, 211, 102, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 255, 248, 0.9));
    box-shadow: 0 14px 24px rgba(37, 211, 102, 0.08);
}

.whatsapp-metric-card small {
    display: block;
    margin-bottom: 8px;
    color: #5e6e62;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.whatsapp-metric-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    color: #1c5f3f;
}

.whatsapp-panel-card {
    overflow: hidden;
}

.whatsapp-selection-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px dashed rgba(37, 211, 102, 0.24);
    background: linear-gradient(180deg, rgba(250, 255, 251, 0.96), rgba(244, 255, 248, 0.9));
}

.whatsapp-config-note {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(123, 109, 255, 0.16);
    background: linear-gradient(135deg, rgba(248, 245, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.whatsapp-config-note p {
    margin-top: 10px;
    color: var(--text-muted);
    line-height: 1.7;
}

.whatsapp-table-tools {
    width: min(100%, 320px);
}

.whatsapp-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.whatsapp-bulk-actions.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.whatsapp-data-table td,
.whatsapp-data-table th {
    vertical-align: middle;
}

.whatsapp-phone-badge,
.whatsapp-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
}

.whatsapp-phone-badge--ready {
    color: #135f2d;
    background: linear-gradient(135deg, rgba(182, 248, 208, 0.96), rgba(109, 226, 155, 0.84));
    border: 1px solid rgba(33, 153, 80, 0.22);
}

.whatsapp-phone-badge--missing {
    color: #7a3241;
    background: linear-gradient(135deg, rgba(255, 228, 235, 0.98), rgba(255, 194, 208, 0.88));
    border: 1px solid rgba(207, 92, 125, 0.2);
}

.whatsapp-status-pill--success {
    color: #135f2d;
    background: linear-gradient(135deg, rgba(182, 248, 208, 0.96), rgba(109, 226, 155, 0.84));
    border: 1px solid rgba(33, 153, 80, 0.22);
}

.whatsapp-status-pill--info {
    color: #33458a;
    background: linear-gradient(135deg, rgba(225, 234, 255, 0.96), rgba(182, 202, 255, 0.84));
    border: 1px solid rgba(88, 120, 214, 0.2);
}

.whatsapp-status-pill--warning {
    color: #765119;
    background: linear-gradient(135deg, rgba(255, 238, 191, 0.98), rgba(255, 205, 102, 0.88));
    border: 1px solid rgba(186, 131, 33, 0.2);
}

.whatsapp-status-pill--danger {
    color: #7a3241;
    background: linear-gradient(135deg, rgba(255, 228, 235, 0.98), rgba(255, 194, 208, 0.88));
    border: 1px solid rgba(207, 92, 125, 0.2);
}

.whatsapp-campaign-list {
    display: grid;
    gap: 14px;
}

.whatsapp-campaign-item {
    display: block;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(37, 211, 102, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 255, 248, 0.9));
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 14px 24px rgba(37, 211, 102, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.whatsapp-campaign-item:hover,
.whatsapp-campaign-item:focus {
    transform: translateY(-2px);
    border-color: rgba(37, 211, 102, 0.28);
    box-shadow: 0 18px 32px rgba(37, 211, 102, 0.1);
    color: inherit;
}

.whatsapp-campaign-item--active {
    border-color: rgba(123, 109, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(244, 241, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.whatsapp-campaign-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.whatsapp-template-preview {
    white-space: pre-wrap;
    font-family: 'Nunito', sans-serif;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(123, 109, 255, 0.22);
    color: #4e3c58;
    line-height: 1.7;
}

.status-bonus-preview {
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 127, 80, 0.18);
    background:
        radial-gradient(circle at top right, rgba(123, 109, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 236, 0.9));
    box-shadow: 0 14px 30px rgba(255, 127, 80, 0.08);
}

.status-bonus-preview__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.status-bonus-preview__badge {
    flex: 0 0 auto;
}

.status-bonus-preview p {
    line-height: 1.7;
}

.nav-link--with-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link--attention {
    color: #ff5d7a !important;
}

.nav-link--attention .nav-count-pill {
    animation: pulseGlow 2s ease-in-out infinite;
}

.nav-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 7px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a3d, #ff5d7a);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(255, 111, 97, 0.2);
}

.min-w-0 {
    min-width: 0;
}

.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversation-item {
    display: block;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 127, 80, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 236, 0.88));
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(255, 127, 80, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.conversation-item:hover,
.conversation-item:focus {
    transform: translateY(-1px);
    border-color: rgba(123, 109, 255, 0.28);
    box-shadow: 0 14px 28px rgba(123, 109, 255, 0.1);
    color: inherit;
}

.conversation-item--active {
    border-color: rgba(123, 109, 255, 0.34);
    background: linear-gradient(135deg, rgba(123, 109, 255, 0.12), rgba(255, 255, 255, 0.96));
}

.conversation-item__preview {
    color: var(--text-muted);
    line-height: 1.5;
}

.message-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 360px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 4px;
}

.message-row {
    display: flex;
}

.message-row--mine {
    justify-content: flex-end;
}

.message-row--other {
    justify-content: flex-start;
}

.message-bubble {
    width: min(100%, 540px);
    padding: 14px 16px;
    border-radius: 22px;
    box-shadow: 0 12px 24px rgba(123, 109, 255, 0.08);
}

.message-bubble--mine {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.96), rgba(255, 93, 122, 0.9));
    color: #fff;
    border-bottom-right-radius: 8px;
}

.message-bubble--other {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-main);
    border: 1px solid rgba(255, 127, 80, 0.14);
    border-bottom-left-radius: 8px;
}

.message-bubble__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.message-bubble--mine .message-bubble__meta,
.message-bubble--mine .message-bubble__body {
    color: #fff;
}

.message-bubble__body {
    line-height: 1.7;
    word-break: break-word;
}

.message-composer {
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 127, 80, 0.18);
}

.message-empty-state {
    padding: 24px 22px;
    border-radius: 22px;
    border: 1px dashed rgba(123, 109, 255, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 255, 0.88));
    color: var(--text-muted);
    line-height: 1.7;
}

.message-empty-state--large {
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 767.98px) {
    .whatsapp-hero-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-selection-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-table-tools {
        width: 100%;
    }

    .whatsapp-bulk-actions {
        flex-direction: column;
    }

    .profile-editor-grid {
        grid-template-columns: 1fr;
    }

    .name-style-preview-box {
        padding: 18px;
    }

    .name-style-preview-text {
        padding: 16px;
    }

    .player-name--preview {
        font-size: 1.3rem;
    }

    .message-thread {
        min-height: 280px;
        max-height: none;
    }

    .message-bubble {
        width: 100%;
    }

    .status-bonus-preview__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .site-footer__links {
        gap: 10px;
    }

    .site-footer__links a {
        width: 100%;
        justify-content: center;
    }
}
