/* ============================================
   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 Header Stats */
.staff-header-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.staff-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    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.88rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.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-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);
}

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-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
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 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);
}

/* 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);
}

.chat-msg.system {
    align-self: center;
    max-width: 85%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    border: 1px solid var(--border);
}

.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-5col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.hvn-chat-drawer .wizard-5col-grid .wizard-category-card {
    padding: 12px 8px 10px;
    gap: 5px;
    border-radius: var(--radius-md);
}

.hvn-chat-drawer .wizard-5col-grid .wizard-cat-icon-badge {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 10px;
}

.hvn-chat-drawer .wizard-5col-grid .wizard-cat-icon-badge i {
    font-size: 1.1rem;
}

.hvn-chat-drawer .wizard-5col-grid .wizard-category-card strong {
    font-size: 0.80rem;
}

.hvn-chat-drawer .wizard-5col-grid .wizard-category-card span {
    font-size: 0.68rem;
    line-height: 1.25;
}

.hvn-chat-drawer .wizard-5col-grid .wizard-category-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

.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 .wizard-suboption-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

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

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

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

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

#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;
}