/* ============================================
   HavenCraft — Shared Page Styles
   ============================================ */

/* ── Page Header ──────────────────────────── */
.page-header {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header .subtitle {
    color: var(--text-secondary);
}

/* ── Text Content Block ───────────────────── */
.text-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.8;
}

.text-content h2 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.5rem;
}

.text-content h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.2rem;
}

/* ── Last Updated Badge ───────────────────── */
.last-updated {
    text-align: center;
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   STAFF PAGE STYLES
   ============================================ */
/* Staff Hero Header */
.page-header.staff-hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 12px;
    margin-bottom: 0;
    text-align: center;
}

.staff-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.staff-hero .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Staff Header Stats */
.staff-header-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.staff-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(17, 21, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.staff-section {
    padding: 16px 0 60px;
}

@media (max-width: 640px) {
    .page-header.staff-hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 10px;
    }

    .staff-hero h1 {
        font-size: 1.85rem;
    }

    .staff-section {
        padding: 12px 0 40px;
    }

    .staff-header-stats {
        gap: 10px;
        margin-top: 12px;
    }

    .staff-stat-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.staff-stat-pill i {
    color: var(--primary);
}

.staff-stat-pill:hover {
    border-color: rgba(0, 200, 150, 0.3);
    color: var(--text);
    transform: translateY(-2px);
}

/* Staff Sections */
.staff-category-section {
    margin-bottom: 60px;
}

.staff-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.staff-category-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--text);
}

.category-count {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    gap: 30px;
}

.staff-grid.staff-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .staff-grid.staff-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .staff-grid.staff-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.staff-card {
    background: linear-gradient(145deg, rgba(17, 21, 32, 0.8), rgba(17, 21, 32, 0.4));
    backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Role Glow Effects */
.staff-card.glow-role-owner:hover {
    border-color: rgba(255, 80, 80, 0.5);
    box-shadow: 0 10px 40px rgba(255, 80, 80, 0.15);
}

.staff-card.glow-role-sr-admin:hover,
.staff-card.glow-role-admin:hover {
    border-color: rgba(255, 138, 0, 0.5);
    box-shadow: 0 10px 40px rgba(255, 138, 0, 0.15);
}

.staff-card.glow-role-mod:hover {
    border-color: rgba(0, 200, 150, 0.5);
    box-shadow: 0 10px 40px rgba(0, 200, 150, 0.15);
}

.staff-card.glow-role-helper:hover {
    border-color: rgba(79, 140, 255, 0.5);
    box-shadow: 0 10px 40px rgba(79, 140, 255, 0.15);
}

.staff-card.glow-role-officer:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
}

.staff-skin-container {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.staff-skin-container canvas,
.staff-skin-container img {
    max-height: 180px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    image-rendering: pixelated;
}

.staff-card:hover .staff-skin-container canvas,
.staff-card:hover .staff-skin-container img {
    transform: scale(1.08) translateY(-4px);
}

.staff-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.staff-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.staff-role {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.platform-badge.java {
    background: rgba(255, 138, 0, 0.12);
    color: #ff9d33;
    border: 1px solid rgba(255, 138, 0, 0.25);
}

.platform-badge.bedrock {
    background: rgba(0, 200, 150, 0.12);
    color: #00c896;
    border: 1px solid rgba(0, 200, 150, 0.25);
}

.staff-social {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.staff-social i {
    color: #5865F2;
    /* Discord color */
    font-size: 1.1rem;
}

.role-owner {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.role-sr-admin {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.role-admin {
    background: rgba(255, 138, 0, 0.15);
    color: #ff8a00;
    border: 1px solid rgba(255, 138, 0, 0.3);
}

.role-mod {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.role-helper {
    background: rgba(79, 140, 255, 0.15);
    color: #4f8cff;
    border: 1px solid rgba(79, 140, 255, 0.3);
}

.role-officer {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Staff Modal */
.staff-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.staff-modal-overlay.show {
    display: flex;
}

.staff-modal.glass-panel {
    background: rgba(17, 21, 32, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.staff-modal .close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: auto;
}

.staff-modal .close-modal:hover {
    color: #fff;
    background: rgba(255, 80, 80, 0.9);
    border-color: #ff5050;
    transform: rotate(90deg) scale(1.05);
}

.staff-modal-skin-wrapper {
    width: 100%;
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.staff-skin-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    height: 200px;
}

.staff-skin-spinner i {
    font-size: 2.2rem;
    color: var(--primary);
}

.staff-modal-skin-wrapper canvas {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    max-height: 240px;
}

.staff-modal-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.staff-modal-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.staff-modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.staff-modal-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.staff-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.35);
    transition: all 0.3s ease;
}

.staff-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 200, 150, 0.5);
    color: #fff !important;
}

/* Staff Apply Section */
.staff-apply-section {
    padding: 20px 0 80px;
}

.staff-apply-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(17, 21, 32, 0.8));
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.staff-apply-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #5865F2;
    flex-shrink: 0;
}

.staff-apply-content {
    flex: 1;
}

.staff-apply-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.staff-apply-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.staff-apply-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    background: #5865F2;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
    transition: all 0.3s ease;
}

.staff-apply-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.5);
    color: #fff !important;
}

@media (max-width: 768px) {
    .staff-apply-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }

    .staff-apply-content {
        margin-bottom: 6px;
    }
}

/* ============================================
   NEWS / UPDATES SECTION
   ============================================ */
.news-section {
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.news-card {
    background: var(--surface);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.news-badge-update {
    background: rgba(0, 200, 150, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 200, 150, 0.2);
}

.news-badge-event {
    background: rgba(255, 138, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(255, 138, 0, 0.2);
}

.news-badge-announcement {
    background: rgba(79, 140, 255, 0.12);
    color: #4f8cff;
    border: 1px solid rgba(79, 140, 255, 0.2);
}

.news-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.news-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   LIVE ACTIVITY FEED
   ============================================ */
.activity-feed-section {
    padding: 30px 0 10px;
}

.activity-ticker {
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
}

.activity-ticker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.activity-ticker-header .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

.activity-list {
    padding: 12px 20px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.4s ease both;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.activity-item-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-item-text strong {
    color: var(--text);
    font-weight: 700;
}

.activity-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   PROFILE PAGE — Enhanced
   ============================================ */
.profile-nav-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 24px) 20px 14px;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

@media (max-width: 640px) {
    .profile-nav-wrapper {
        padding: calc(var(--nav-height) + 16px) 12px 10px;
    }

    .profile-container {
        padding: 0 12px 60px;
    }
}

.profile-card {
    background: var(--surface);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease both;
}

.profile-header-info {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    image-rendering: pixelated;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.profile-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-voter {
    background: rgba(0, 200, 150, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 200, 150, 0.2);
}

.badge-veteran {
    background: rgba(255, 183, 0, 0.12);
    color: #FFB700;
    border: 1px solid rgba(255, 183, 0, 0.2);
}

.badge-pvp {
    background: rgba(255, 80, 80, 0.12);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.2);
}

.badge-rich {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.profile-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.profile-share-link {
    flex: 1;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-share-copy {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all var(--transition);
    white-space: nowrap;
}

.profile-share-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

.profile-kd-ratio {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

/* Profile Guest Login Enhancement */
.profile-login-card {
    max-width: 420px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    animation: fadeInUp 0.6s ease both;
}

.profile-login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.1), rgba(79, 140, 255, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.profile-login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.profile-login-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.profile-login-input-group {
    display: flex;
    gap: 10px;
}

.profile-login-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition);
}

.profile-login-input:focus {
    border-color: var(--primary);
}

.profile-login-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), #6ba0ff);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.profile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.3);
}

.profile-login-hint {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.profile-login-hint i {
    color: var(--primary);
    margin-right: 4px;
}

/* Profile Stats */
.stat-box {
    background: rgba(0, 200, 150, 0.05);
    border: 1px solid rgba(0, 200, 150, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.cooldowns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cooldown-card {
    background: rgba(255, 138, 0, 0.05);
    border: 1px solid rgba(255, 138, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cooldown-site {
    font-weight: 600;
    color: var(--text);
}

.cooldown-timer {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: bold;
}

.available-status {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}


/* ============================================
   GALLERY PAGE
   ============================================ */
.page-header.gallery-hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 12px;
    margin-bottom: 0;
    text-align: center;
}

.gallery-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.gallery-hero .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.gallery-section {
    padding: 16px 0 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
}

@media (max-width: 600px) {
    .page-header.gallery-hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 10px;
    }

    .gallery-hero h1 {
        font-size: 1.85rem;
    }

    .gallery-section {
        padding: 12px 0 40px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: rgba(30, 34, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

/* Shimmer placeholder before image loads */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.6s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Hide shimmer once image is loaded */
.gallery-item.img-loaded::before,
.gallery-item:has(img.loaded)::before {
    display: none;
}

.gallery-item img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-weight: 600;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* --- Gallery Skeleton & Modern Loading --- */
.gallery-skeleton-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .gallery-skeleton-card {
    background: rgba(30, 34, 48, 0.6);
    border-color: rgba(255, 255, 255, 0.04);
}

.gallery-skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.6s infinite ease-in-out;
}

[data-theme="dark"] .gallery-skeleton-card::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%);
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* --- Premium Load More Button --- */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.load-more-btn {
    padding: 12px 35px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(0, 200, 150, 0.08);
    border: 1px solid rgba(0, 200, 150, 0.2);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 200, 150, 0.25);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.load-more-btn i {
    transition: transform 0.6s ease;
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}

/* ============================================
   STORE TERMS & AGREEMENT CALLOUT (TERMS PAGE)
   ============================================ */
.store-terms-callout {
    margin: 36px 0;
    padding: 32px;
    background: linear-gradient(145deg, rgba(30, 34, 48, 0.85), rgba(17, 21, 32, 0.9));
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.store-terms-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.store-terms-callout-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.store-terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.3);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.store-terms-callout h2 {
    font-size: 1.6rem !important;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 10px 0 !important;
}

.store-terms-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.store-term-block {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.store-term-block:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.store-term-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem !important;
    color: var(--text) !important;
    margin: 0 0 8px 0 !important;
}

.store-term-block h3 i {
    color: var(--primary);
    font-size: 0.95rem;
}

.store-term-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.store-terms-sublist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-terms-sublist li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.store-terms-sublist li strong {
    color: var(--text);
}

.store-term-warning {
    background: rgba(255, 138, 0, 0.06);
    border: 1px solid rgba(255, 138, 0, 0.3);
}

.store-term-warning h3 {
    color: #ffaa33 !important;
}

.store-term-warning h3 i {
    color: #ffaa33;
}

.store-term-warning p strong {
    color: #ffaa33;
}

.store-term-agreement-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.12), rgba(0, 143, 107, 0.08));
    border: 1px solid rgba(0, 200, 150, 0.35);
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.store-term-agreement-card i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.store-term-agreement-card strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.store-term-agreement-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.store-team-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ==============================================================================
   HavenCraft — Dedicated Support Desk & Site-Wide Floating Live Chat Widget
   ============================================================================== */

/* --- 1. Site-Wide Floating Chat Widget --- */
.hvn-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 8px 28px rgba(0, 200, 150, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    will-change: transform;
    animation: bubbleBreathe 3s ease-in-out infinite;
}

@keyframes bubbleBreathe {
    0%, 100% { box-shadow: 0 8px 28px rgba(0, 200, 150, 0.4); }
    50% { box-shadow: 0 8px 36px rgba(0, 200, 150, 0.6), 0 0 60px rgba(0, 200, 150, 0.15); }
}

.hvn-chat-bubble:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 200, 150, 0.6);
}

.hvn-chat-bubble:active {
    transform: scale(0.95);
}

.hvn-chat-bubble i {
    font-size: 1.45rem;
    transition: transform 0.25s ease;
}

.hvn-chat-bubble.open i {
    transform: rotate(90deg);
}

/* Tooltip Pill next to bubble on desktop */
.hvn-chat-bubble-label {
    position: fixed;
    bottom: 34px;
    right: 90px;
    z-index: 9997;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
}

.hvn-chat-bubble-label span {
    color: var(--primary);
    margin-right: 4px;
}

/* Red unread notification badge */
.hvn-chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ff3b30;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
    animation: pulse 1.8s infinite;
}

/* Floating Chat Drawer Window */
.hvn-chat-drawer {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    z-index: 9999;
    background: var(--surface);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s;
}

.hvn-chat-drawer.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Drawer Header */
.hvn-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.hvn-drawer-agent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hvn-drawer-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.hvn-drawer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.hvn-drawer-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00e676;
    border: 2px solid var(--surface);
    box-shadow: 0 0 6px #00e676;
}

.hvn-drawer-title h4 {
    margin: 0;
    font-size: 0.98rem;
    font-family: var(--font-heading);
    color: var(--text);
}

.hvn-drawer-title span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    display: block;
}

.hvn-drawer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hvn-drawer-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.hvn-drawer-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Drawer Views Container */
.hvn-drawer-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

/* Quick Selectors in Drawer */
.hvn-widget-greeting {
    text-align: center;
    margin-bottom: 14px;
}

.hvn-widget-greeting h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.hvn-widget-greeting p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.hvn-widget-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.hvn-widget-tile {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hvn-widget-tile:hover, .hvn-widget-tile.selected {
    border-color: var(--primary);
    background: rgba(0, 200, 150, 0.08);
    transform: translateY(-2px);
}

.hvn-widget-tile i {
    font-size: 1.2rem;
    color: var(--primary);
}

.hvn-widget-tile span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text);
}

/* Tucked state: hidden while the homepage connect card is behind the bubble (set by components.js) */
.hvn-chat-bubble {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.hvn-chat-bubble.is-tucked,
.hvn-chat-bubble-label.is-tucked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hvn-chat-bubble.is-tucked {
    transform: translateY(24px) scale(0.6);
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .hvn-chat-bubble {
        animation: none;
        transition: opacity 0.2s ease, visibility 0.2s;
    }
    .hvn-chat-bubble.is-tucked {
        transform: none;
    }
}

/* Drawer Mobile View Bottom-Sheet */
@media (max-width: 640px) {
    .hvn-chat-bubble {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .hvn-chat-bubble-label {
        display: none !important;
    }
    .hvn-chat-drawer {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 85vh;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
    }
    .hvn-drawer-handle {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.25);
        margin: 8px auto 4px;
    }
}

/* --- 2. Dedicated Support Desk Page Styles (/support/) --- */
.support-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.support-sla-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.sla-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.sla-item strong {
    color: var(--text);
}

.sla-dot.online {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
}

.support-deflection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .support-deflection-grid {
        grid-template-columns: 1fr;
    }
}

.support-faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}

.support-faq-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.support-faq-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.support-faq-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Interactive Wizard Visual Selector */
.wizard-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .wizard-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wizard-category-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-category-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    user-select: none;
}

.wizard-category-card:hover {
    border-color: rgba(0, 200, 150, 0.5);
    background: var(--surface-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wizard-category-card.active {
    border-color: var(--primary);
    background: rgba(0, 200, 150, 0.12);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.28);
}

.wizard-category-card i {
    font-size: 1.85rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.wizard-category-card:hover i {
    transform: scale(1.1);
}

.wizard-category-card strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.wizard-category-card span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ─────────────────────────────────────────────────────────────
   Support & Contact Form Controls (Dark Glassmorphic UI)
   ───────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(17, 21, 32, 0.85);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 200, 150, 0.25);
    background: rgba(22, 27, 42, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}

.form-group select {
    cursor: pointer;
}

.form-submit-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 22px rgba(0, 200, 150, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 150, 0.5);
    color: #ffffff;
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lookup-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    font-family: var(--font-body);
    text-decoration: none;
}

.lookup-toggle-btn:hover {
    background: rgba(0, 200, 150, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.2);
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   Ticket Chat Room Styles (Modern Messenger Aesthetics)
   ───────────────────────────────────────────────────────────── */
.ticket-chat-card {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ticket-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.ticket-agent-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticket-agent-avatar-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.ticket-agent-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 14px rgba(0, 200, 150, 0.35);
}

.ticket-agent-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e676;
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px #00e676;
}

.ticket-title-area h3 {
    font-size: 1.3rem;
    margin: 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-meta-subtitle {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-badge {
    background: rgba(0, 200, 150, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 200, 150, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ticket-badge.closed {
    background: rgba(255, 75, 75, 0.15);
    color: #ff5252;
    border-color: rgba(255, 75, 75, 0.3);
}

.ticket-messages-box {
    height: 520px;
    min-height: 440px;
    overflow-y: auto;
    padding: 18px 16px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    scroll-behavior: smooth;
}

/* Slim Custom Emerald Scrollbar */
.ticket-messages-box::-webkit-scrollbar {
    width: 6px;
}
.ticket-messages-box::-webkit-scrollbar-track {
    background: transparent;
}
.ticket-messages-box::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 150, 0.25);
    border-radius: 99px;
}
.ticket-messages-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.chat-msg {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    position: relative;
    word-break: break-word;
    animation: fadeInUp 0.25s ease;
}

.chat-msg.player {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 200, 150, 0.22);
}

.chat-msg.staff {
    align-self: flex-start;
    background: var(--surface-hover);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.msg-system-pill,
.chat-msg.system {
    align-self: center !important;
    margin: 10px auto !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    max-width: 90% !important;
    width: fit-content !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    animation: fadeIn 0.25s ease !important;
}

.msg-system-pill i,
.chat-msg.system i {
    font-size: 0.85rem !important;
    color: #f87171 !important;
    opacity: 0.9 !important;
}

.chat-sender {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.chat-sender.staff-label {
    color: var(--primary);
}

.chat-msg.player .chat-sender {
    color: rgba(255, 255, 255, 0.92);
}

.chat-time {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 6px;
    text-align: right;
}

.ticket-input-area {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.ticket-input-area:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.2);
}

.ticket-input-area textarea {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.98rem;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    outline: none;
    line-height: 1.4;
}

.ticket-send-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.3);
    flex-shrink: 0;
}

.ticket-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 200, 150, 0.45);
}

/* --- Attachment Staging & Upload UI --- */
.ticket-attachment-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(0, 200, 150, 0.08);
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: 12px;
    animation: fadeIn 0.2s ease;
}

.attach-thumb-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.attach-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attach-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ff5252;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: background 0.15s, transform 0.15s;
}

.attach-remove-btn:hover {
    background: #ff5252;
    color: #fff;
    transform: scale(1.1);
}

.attach-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attach-filename {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attach-filesize {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ticket-attach-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ticket-attach-btn:hover,
.ticket-attach-btn:active {
    background: rgba(0, 200, 150, 0.15);
    border-color: rgba(0, 200, 150, 0.35);
    color: #ffffff;
    transform: scale(1.04);
}

.ticket-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Custom Discord Emoji & Media Previews */
.chat-custom-emoji {
    width: 24px;
    height: 24px;
    vertical-align: -5px;
    display: inline-block;
    object-fit: contain;
    margin: 0 2px;
}

.chat-media-attachment {
    display: block;
    max-width: 100%;
    max-height: 240px;
    border-radius: 10px;
    margin-top: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.chat-media-attachment:hover {
    transform: scale(1.02);
}

/* Custom Glassmorphism Close Ticket Confirmation Modal */
.hvn-custom-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hvn-custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hvn-custom-modal-box {
    background: linear-gradient(145deg, rgba(22, 28, 44, 0.96), rgba(14, 18, 30, 0.98));
    border: 1px solid rgba(255, 82, 82, 0.3);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 82, 82, 0.15);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hvn-custom-modal-overlay.active .hvn-custom-modal-box {
    transform: scale(1) translateY(0);
}

.hvn-modal-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    box-shadow: 0 0 24px rgba(255, 82, 82, 0.25);
    animation: pulse 2s infinite;
}

.hvn-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
}

.hvn-modal-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.hvn-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hvn-modal-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.hvn-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.hvn-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hvn-modal-btn-confirm {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 82, 82, 0.35);
}

.hvn-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 82, 82, 0.5);
}

/* Language Selection View inside Support Widget */
.hvn-lang-select-box {
    text-align: center;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

.hvn-lang-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 16px;
}

.hvn-lang-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hvn-lang-card:hover {
    border-color: var(--primary);
    background: rgba(0, 200, 150, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lang-flag-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.lang-flag-badge.bn-badge {
    background: rgba(0, 200, 150, 0.15);
    border: 2px solid var(--primary);
    color: var(--primary);
}

.lang-flag-badge.en-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.hvn-lang-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.hvn-lang-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Modern Language Header Bar */
.lang-toggle-bar {
    display: inline-flex;
    background: rgba(17, 21, 32, 0.85);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.lang-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lang-toggle-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 200, 150, 0.35);
}

.lang-toggle-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* 5-Category Support Grid */
.wizard-5col-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

@media (max-width: 860px) and (min-width: 601px) {
    .wizard-5col-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .wizard-5col-grid .wizard-category-card:last-child {
        grid-column: 2 / span 1;
    }
}

@media (max-width: 600px) {
    .wizard-5col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .wizard-5col-grid .wizard-category-card:last-child:nth-child(odd) {
        grid-column: span 2;
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
}

.wizard-category-card {
    background: linear-gradient(145deg, rgba(24, 30, 48, 0.85), rgba(15, 20, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 22px 10px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    user-select: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.wizard-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-category-card:hover {
    border-color: rgba(0, 200, 150, 0.45);
    background: linear-gradient(145deg, rgba(32, 40, 62, 0.9), rgba(20, 26, 42, 0.98));
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 200, 150, 0.18);
}

.wizard-category-card:hover::before {
    opacity: 1;
}

.wizard-category-card.active {
    border-color: var(--primary);
    background: rgba(0, 200, 150, 0.14);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.28);
}

.wizard-cat-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 200, 150, 0.05));
    border: 1px solid rgba(0, 200, 150, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.wizard-cat-icon-badge i {
    font-size: 1.45rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.wizard-category-card:hover .wizard-cat-icon-badge {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.28), rgba(0, 200, 150, 0.1));
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(0, 200, 150, 0.25);
}

.wizard-category-card strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    white-space: normal;
    word-break: normal;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wizard-category-card span {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Step 2: Sub-options Grid */
.wizard-suboptions-wrap {
    margin-bottom: 20px;
    animation: fadeIn 0.25s ease;
}

.wizard-suboption-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .wizard-suboption-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-suboption-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wizard-suboption-card:hover {
    border-color: var(--primary);
    background: rgba(0, 200, 150, 0.08);
    transform: translateY(-2px);
}

.wizard-suboption-card.active {
    border-color: var(--primary);
    background: rgba(0, 200, 150, 0.14);
    box-shadow: 0 0 16px rgba(0, 200, 150, 0.2);
}

.wizard-suboption-card i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.wizard-suboption-card strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.wizard-suboption-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Step Navigation Bar */
.wizard-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.wizard-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.wizard-back-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--primary);
}

.wizard-topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.3);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}


.hvn-chat-drawer .wizard-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hvn-chat-drawer .wizard-step-header-copy {
    text-align: left;
    min-width: 0;
}

.hvn-chat-drawer .wizard-step-header-copy h3 {
    font-size: 0.96rem;
    margin: 0;
    color: var(--text);
}

.hvn-chat-drawer .wizard-step-header-copy p {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
}

.hvn-chat-drawer .composer-category-section {
    margin-bottom: 12px;
}

.hvn-chat-drawer .composer-section-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hvn-chat-drawer .composer-cat-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hvn-chat-drawer .composer-cat-pill {
    min-height: 38px;
    padding: 6px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
    transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hvn-chat-drawer .composer-cat-pill:last-child:nth-child(odd) {
    grid-column: span 2;
}

.hvn-chat-drawer .composer-cat-pill i {
    color: var(--primary);
    font-size: 0.82rem;
}

.hvn-chat-drawer .composer-cat-pill.active {
    background: rgba(0, 200, 150, 0.12);
    border-color: var(--primary);
    color: var(--text);
}

.hvn-chat-drawer .support-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.hvn-chat-drawer .support-inline-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 0.78rem;
}

.hvn-chat-drawer .composer-widget-footer {
    text-align: center;
    margin-top: 12px;
}

.hvn-chat-drawer .composer-widget-footer a {
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hvn-chat-drawer .composer-widget-footer a:hover {
    color: var(--primary);
}

.hvn-chat-drawer .lang-toggle-bar {
    padding: 2px;
    gap: 2px;
}

.hvn-chat-drawer .lang-toggle-btn {
    padding: 4px 10px;
    font-size: 0.76rem;
}

.hvn-chat-drawer .form-group {
    margin-bottom: 0;
}

.hvn-chat-drawer .form-group label {
    font-size: 0.80rem;
    margin-bottom: 4px;
}

.hvn-chat-drawer .form-group input,
.hvn-chat-drawer .form-group textarea,
.hvn-chat-drawer .form-group select {
    padding: 8px 12px;
    font-size: 0.84rem;
}

.hvn-chat-drawer .form-group textarea {
    min-height: 68px;
}

.hvn-chat-drawer .hvn-custom-select {
    position: relative;
    width: 100%;
}

.hvn-chat-drawer .hvn-select-trigger {
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    outline: none;
}

.hvn-chat-drawer .hvn-custom-select.open .hvn-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 200, 150, 0.14);
}

.hvn-chat-drawer .hvn-select-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.hvn-chat-drawer .hvn-select-value i {
    color: var(--primary);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.hvn-chat-drawer .hvn-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hvn-chat-drawer .hvn-select-arrow {
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: transform 180ms ease, color 180ms ease;
}

.hvn-chat-drawer .hvn-custom-select.open .hvn-select-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.hvn-chat-drawer .hvn-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 90;
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 5px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.hvn-chat-drawer .hvn-custom-select.open .hvn-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hvn-chat-drawer .hvn-select-option {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.80rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
}

.hvn-chat-drawer .hvn-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.hvn-chat-drawer .hvn-select-option.selected {
    background: rgba(0, 200, 150, 0.12);
    border-color: rgba(0, 200, 150, 0.28);
    color: var(--text);
    font-weight: 600;
}

.hvn-chat-drawer .hvn-select-opt-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.hvn-chat-drawer .hvn-select-opt-main i {
    color: var(--primary);
    font-size: 0.80rem;
    flex-shrink: 0;
}

.hvn-chat-drawer .hvn-select-check {
    color: var(--primary);
    font-size: 0.72rem;
    opacity: 0;
}

.hvn-chat-drawer .hvn-select-option.selected .hvn-select-check {
    opacity: 1;
}

#hvnWidgetReplyInput {
    resize: none !important;
    overflow-y: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#hvnWidgetReplyInput::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
}

/* ==========================================================================
   Voice Message Player & Interactive Waveform (Widget & Sitewide Support)
   ========================================================================== */
.chat-msg.has-voice {
    min-width: 250px;
    padding: 10px 14px;
}

/* Media Message — Clean, Borderless & Frameless (Matching Admin ticket) */
.chat-msg.has-media {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    padding: 2px 2px !important;
}

.chat-msg.has-media .chat-sender {
    margin-bottom: 6px !important;
    padding: 0 2px !important;
}

.chat-msg.has-media .chat-time {
    margin-top: 4px !important;
    padding: 0 2px !important;
    color: var(--text-muted) !important;
}

.voice-message-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px;
    min-width: 220px;
    max-width: 320px;
    user-select: none;
}

.voice-player-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #051310;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(0, 200, 150, 0.4);
}

.chat-msg.player .voice-player-btn {
    background: #ffffff;
    color: #008761;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.voice-player-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.voice-player-btn:active {
    transform: scale(0.96);
}

.voice-player-waveform {
    display: flex;
    align-items: center;
    gap: 2.5px;
    flex: 1;
    height: 28px;
    padding: 0 4px;
}

.wp-bar {
    width: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    transition: height 0.15s ease, background-color 0.2s ease;
}

.chat-msg.staff .wp-bar {
    background: rgba(0, 200, 150, 0.45);
}

.chat-msg.player .wp-bar {
    background: rgba(255, 255, 255, 0.65);
}

.voice-message-player.is-playing .wp-bar {
    background: var(--primary);
    animation: voiceBarPulse 0.75s ease-in-out infinite alternate;
}

.chat-msg.player .voice-message-player.is-playing .wp-bar {
    background: #ffffff;
    animation: voiceBarPulse 0.75s ease-in-out infinite alternate;
}

@keyframes voiceBarPulse {
    0% { transform: scaleY(0.4); opacity: 0.6; }
    100% { transform: scaleY(1.15); opacity: 1; }
}

.voice-player-time {
    font-size: 0.76rem;
    font-family: monospace;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.chat-msg.player .voice-player-time {
    color: rgba(255, 255, 255, 0.9);
}

.chat-msg.staff .voice-player-time {
    color: var(--primary);
}

/* ==========================================================================
   Chat Media Card (Attached Screenshots / Images — Completely Borderless)
   ========================================================================== */
.chat-media-card {
    display: block;
    position: relative;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    cursor: pointer;
    border: none !important;
    line-height: 0;
    transition: all 0.2s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.chat-media-card:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.chat-media-img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    border: none !important;
}

.chat-media-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #ffffff;
    font-size: 1.4rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.chat-media-card:hover .chat-media-hover-overlay {
    opacity: 1;
}

.chat-img-caption {
    padding: 6px 4px 2px 4px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

/* ==========================================================================
   Fullscreen Lightbox Modal for Screenshots
   ========================================================================== */
.chat-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.chat-lightbox-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.chat-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-lightbox-modal.show .chat-lightbox-img {
    transform: scale(1);
}

.chat-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chat-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

/* ============================================
   RULES PAGE STYLES (Unslopped & Crafted)
   ============================================ */
/* Rules Hero Header */
.page-header.rules-hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 12px;
    margin-bottom: 0;
    text-align: center;
}

.rules-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}

.rules-hero .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 680px;
}

/* Rules Header Meta (Quiet, non-pill meta row) */
.rules-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(17, 20, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.rules-header-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.rules-header-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Main Section */
.rules-section {
    padding: 16px 0 64px;
}

/* Category Sections */
.rules-category-section {
    margin-bottom: 32px;
}

.rules-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rules-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.rules-category-title i {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rules-category-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* 2-Column Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.rule-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.rule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.rule-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rule-icon {
    font-size: 0.95rem;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.rule-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

/* Semantic Severity Indicator (Quiet dot + text) */
.rule-severity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-severity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rule-severity.sev-critical .rule-severity-dot {
    background: #ef4444;
}

.rule-severity.sev-warning .rule-severity-dot {
    background: #f59e0b;
}

.rule-severity.sev-info .rule-severity-dot {
    background: #3b82f6;
}

.rule-severity.sev-standard .rule-severity-dot {
    background: #10b981;
}

.rule-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Punishment Ladder */
.rules-ladder-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 36px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ladder-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.ladder-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.ladder-title h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.ladder-title p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ladder-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ladder-step {
    background: rgba(11, 13, 20, 0.55);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ladder-step:hover {
    border-color: var(--border-strong);
    background: rgba(16, 20, 32, 0.75);
}

.ladder-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ladder-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.ladder-step-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ladder-step.step-1 .ladder-step-icon { color: #f59e0b; }
.ladder-step.step-2 .ladder-step-icon { color: #3b82f6; }
.ladder-step.step-3 .ladder-step-icon { color: #f97316; }
.ladder-step.step-4 .ladder-step-icon { color: #ef4444; }

.ladder-step-action {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.ladder-step-duration {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.ladder-step-desc {
    font-size: 0.80rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Common Sense & Discretion Callout */
.rules-common-sense-box {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rules-common-sense-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rules-common-sense-body h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.rules-common-sense-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.rules-common-sense-body p:last-child {
    margin-bottom: 0;
}

/* Rules Appeal CTA Card */
.rules-appeal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.rules-appeal-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rules-appeal-content {
    flex: 1;
}

.rules-appeal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.rules-appeal-content p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.rules-appeal-btn {
    padding: 9px 20px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    background: #5865F2;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.16s ease;
    border: none;
}

.rules-appeal-btn:hover {
    background: #4752C4;
}

/* Responsive */
@media (max-width: 900px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
    .ladder-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-header.rules-hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 10px;
    }

    .rules-hero h1 {
        font-size: 1.85rem;
    }

    .rules-section {
        padding: 12px 0 40px;
    }

    .rules-header-meta {
        font-size: 0.76rem;
        gap: 8px;
    }

    .ladder-steps-grid {
        grid-template-columns: 1fr;
    }

    .ladder-header {
        flex-direction: column;
        gap: 12px;
    }

    .rules-appeal-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .rules-appeal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ABOUT PAGE STYLES (Clean, Left-Aligned & Crafted)
   ============================================ */
/* About Hero Header */
.page-header.about-hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 12px;
    margin-bottom: 0;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}

.about-hero .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 680px;
}

.about-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(17, 20, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.about-header-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.about-header-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* About Main Section */
.about-section {
    padding: 16px 0 64px;
}

/* Story Card */
.about-story-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: left;
}

.about-story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-story-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.about-story-title i {
    color: var(--primary);
    font-size: 1.05rem;
}

.about-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.about-story-body p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin: 0 0 16px 0;
    text-align: left;
}

.about-story-body p:last-child {
    margin-bottom: 0;
}

/* Milestones Grid */
.about-milestones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.about-milestone-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-milestone-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.about-milestone-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.about-milestone-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.about-milestone-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Values Grid (Aligned like Rules Cards) */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.about-value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    transition: background-color 0.16s ease, border-color 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-value-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.about-value-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.about-value-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-value-icon {
    font-size: 0.95rem;
    color: var(--primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.about-value-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
}

.about-value-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

/* About CTA Card */
.about-cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: left;
}

.about-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-cta-content {
    flex: 1;
}

.about-cta-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.about-cta-content p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.about-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.about-cta-btn {
    padding: 9px 20px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.16s ease;
    border: none;
    text-decoration: none;
}

.about-cta-btn.btn-discord {
    background: #5865F2;
    color: #fff !important;
}

.about-cta-btn.btn-discord:hover {
    background: #4752C4;
}

/* Responsive */
@media (max-width: 900px) {
    .about-milestones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header.about-hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 10px;
    }

    .about-hero h1 {
        font-size: 1.85rem;
    }

    .about-section {
        padding: 12px 0 40px;
    }

    .about-story-card {
        padding: 20px 18px;
    }

    .about-milestones-grid {
        grid-template-columns: 1fr;
    }

    .about-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .about-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .about-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   TERMS OF SERVICE PAGE STYLES (Clean & Crafted)
   ============================================ */
/* Terms Hero Header */
.page-header.terms-hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 12px;
    margin-bottom: 0;
    text-align: center;
}

.terms-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}

.terms-hero .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 680px;
}

.terms-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(17, 20, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.terms-header-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.terms-header-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Main Section */
.terms-section {
    padding: 16px 0 64px;
}

/* Category Sections */
.terms-category-section {
    margin-bottom: 32px;
}

.terms-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.terms-category-title i {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.terms-category-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Grid & Cards */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.term-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    text-align: left;
}

.term-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.term-card.term-warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, var(--surface) 100%);
}

.term-card.term-warning:hover {
    border-color: rgba(245, 158, 11, 0.45);
}

.term-card.term-highlight {
    border-color: rgba(0, 200, 150, 0.28);
    background: linear-gradient(180deg, rgba(0, 200, 150, 0.04) 0%, var(--surface) 100%);
}

.term-card.term-highlight:hover {
    border-color: rgba(0, 200, 150, 0.45);
}

.term-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.term-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.term-icon {
    font-size: 0.95rem;
    color: var(--text-secondary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.term-card.term-warning .term-icon {
    color: #f59e0b;
}

.term-card.term-highlight .term-icon {
    color: var(--primary);
}

.term-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
}

.term-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.term-tag.tag-warning {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.term-tag.tag-highlight {
    color: var(--primary);
    border-color: rgba(0, 200, 150, 0.3);
    background: rgba(0, 200, 150, 0.08);
}

.term-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.58;
    margin: 0;
    text-align: left;
}

.term-card p strong {
    color: var(--text);
    font-weight: 600;
}

.term-card p a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.term-card p a:hover {
    color: #fff;
}

/* Store Callout Banner within Category 2 */
.terms-store-banner {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), rgba(17, 21, 32, 0.75));
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.terms-store-banner i {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.terms-store-banner-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.terms-store-banner-text strong {
    color: var(--text);
}

/* Terms CTA Card */
.terms-cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: left;
    margin-top: 12px;
    margin-bottom: 24px;
}

.terms-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.terms-cta-content {
    flex: 1;
}

.terms-cta-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.terms-cta-content p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.terms-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.terms-cta-btn {
    padding: 9px 20px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.16s ease;
    border: none;
    text-decoration: none;
}

.terms-cta-btn.btn-discord {
    background: #5865F2;
    color: #fff !important;
}

.terms-cta-btn.btn-discord:hover {
    background: #4752C4;
}

.terms-cta-btn.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text) !important;
    border: 1px solid var(--border);
}

.terms-cta-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.terms-last-updated {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 8px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .terms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header.terms-hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 10px;
    }

    .terms-hero h1 {
        font-size: 1.85rem;
    }

    .terms-section {
        padding: 12px 0 40px;
    }

    .terms-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .terms-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .terms-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRIVACY POLICY PAGE STYLES (Clean & Crafted)
   ============================================ */
/* Privacy Hero Header */
.page-header.privacy-hero {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 12px;
    margin-bottom: 0;
    text-align: center;
}

.privacy-hero h1 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}

.privacy-hero .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 680px;
}

.privacy-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(17, 20, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.privacy-header-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.privacy-header-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Main Section */
.privacy-section {
    padding: 16px 0 64px;
}

/* Category Sections */
.privacy-category-section {
    margin-bottom: 32px;
}

.privacy-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.privacy-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.privacy-category-title i {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.privacy-category-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Grid & Cards */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.privacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    text-align: left;
}

.privacy-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.privacy-card.privacy-highlight {
    border-color: rgba(0, 200, 150, 0.28);
    background: linear-gradient(180deg, rgba(0, 200, 150, 0.04) 0%, var(--surface) 100%);
}

.privacy-card.privacy-highlight:hover {
    border-color: rgba(0, 200, 150, 0.45);
}

.privacy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.privacy-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.privacy-icon {
    font-size: 0.95rem;
    color: var(--text-secondary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.privacy-card.privacy-highlight .privacy-icon {
    color: var(--primary);
}

.privacy-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
}

.privacy-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.privacy-tag.tag-highlight {
    color: var(--primary);
    border-color: rgba(0, 200, 150, 0.3);
    background: rgba(0, 200, 150, 0.08);
}

.privacy-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.58;
    margin: 0;
    text-align: left;
}

.privacy-card p strong {
    color: var(--text);
    font-weight: 600;
}

.privacy-card p a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-card p a:hover {
    color: #fff;
}

/* Privacy CTA Card */
.privacy-cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: left;
    margin-top: 12px;
    margin-bottom: 24px;
}

.privacy-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.privacy-cta-content {
    flex: 1;
}

.privacy-cta-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}

.privacy-cta-content p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.privacy-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.privacy-cta-btn {
    padding: 9px 20px;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.16s ease;
    border: none;
    text-decoration: none;
}

.privacy-cta-btn.btn-discord {
    background: #5865F2;
    color: #fff !important;
}

.privacy-cta-btn.btn-discord:hover {
    background: #4752C4;
}

.privacy-cta-btn.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text) !important;
    border: 1px solid var(--border);
}

.privacy-cta-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.privacy-last-updated {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 8px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header.privacy-hero {
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 10px;
    }

    .privacy-hero h1 {
        font-size: 1.85rem;
    }

    .privacy-section {
        padding: 12px 0 40px;
    }

    .privacy-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .privacy-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .privacy-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

