/* ==========================================================
   ROYALMC NETWORK // OFFICIAL BRIGHT LUXURY GAMING PORTAL
   Desktop: Modern Web Portal // Mobile: Native iOS/Android App UI
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=JetBrains+Mono:wght@400;700&family=Outfit:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-input: #ffffff;
    --bg-obsidian: #0f172a;

    --border-subtle: rgba(226, 232, 240, 0.9);
    --border-strong: #cbd5e1;
    --border-gold: rgba(217, 119, 6, 0.35);
    --border-gold-hover: rgba(217, 119, 6, 0.8);

    --gold-primary: #d97706;
    --gold-bright: #f59e0b;
    --gold-light: #fbbf24;
    --gold-tint: #fef3c7;
    --gold-glow: rgba(245, 158, 11, 0.22);
    --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 40%, #f59e0b 100%);

    --purple-royal: #7c3aed;
    --color-green: #16a34a;
    --color-green-bg: #dcfce7;
    --color-red: #dc2626;
    --color-red-bg: #fee2e2;
    --color-amber: #d97706;
    --color-amber-bg: #fef3c7;

    --text-main: #0f172a;
    --text-heading: #020617;
    --text-muted: #475569;
    --text-dim: #94a3b8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.1);
    --shadow-gold: 0 8px 25px rgba(217, 119, 6, 0.18);

    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Luxury Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-bright);
}

/* ================= BACKGROUND ATMOSPHERE ================= */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(at 15% 15%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
        radial-gradient(at 85% 25%, rgba(217, 119, 6, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(124, 58, 237, 0.02) 0px, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.glow-top {
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--gold-bright) 0%, transparent 70%);
}

.glow-bottom {
    bottom: -150px;
    right: 5%;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-announcement-bar {
    position: relative;
    z-index: 20;
    background: #0f172a;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    gap: 0.75rem;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.8);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: 0.7;
    }
}

.top-socials {
    display: flex;
    gap: 1.25rem;
}

.top-socials a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-socials a:hover {
    color: var(--gold-light);
}

/* ================= OFFICIAL NAVIGATION HEADER ================= */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

/* Server Brand */
.server-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
}

.brand-crest {
    width: 42px;
    height: 42px;
    background: var(--bg-obsidian);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.2rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.brand-crest.small {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.server-brand:hover .brand-crest {
    transform: rotate(-6deg) scale(1.06);
    border-color: var(--gold-bright);
}

.brand-details {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-heading);
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
}

/* Header Search Bar (Desktop) */
.header-search-wrap {
    flex: 1;
    max-width: 320px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    font-size: 0.85rem;
    pointer-events: none;
}

.header-search-wrap input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.5rem 2.5rem 0.5rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--text-main);
    transition: var(--transition);
}

.header-search-wrap input:focus {
    outline: none;
    background: var(--bg-card);
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.header-search-btn {
    position: absolute;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-obsidian);
    color: var(--gold-bright);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.header-search-btn:hover {
    background: var(--gold-primary);
    color: #ffffff;
    transform: scale(1.08);
}

/* Mobile Search Bar (Drawer) */
.mobile-search-bar {
    display: none;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    align-items: center;
}

.mobile-search-bar input {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-main);
}

.mobile-search-bar input:focus {
    outline: none;
    border-color: var(--gold-bright);
    background: var(--bg-card);
}

.mobile-search-bar button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-obsidian);
    color: var(--gold-bright);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.nav-btn i {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.nav-btn:hover {
    color: var(--text-heading);
    background: #f1f5f9;
}

.nav-btn:hover i {
    color: var(--gold-primary);
}

.nav-btn.active {
    color: var(--gold-primary);
    background: var(--gold-tint);
    border-color: rgba(217, 119, 6, 0.2);
    font-weight: 700;
}

.nav-btn.active i {
    color: var(--gold-primary);
}

.nav-btn.store-btn {
    color: var(--text-main);
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.nav-btn.store-btn:hover {
    background: var(--gold-bright);
    color: #ffffff;
    border-color: var(--gold-bright);
}

.nav-btn.store-btn:hover i {
    color: #ffffff;
}

/* Nav Right & Buttons */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    user-select: none;
}

.btn-sm {
    padding: 0.42rem 0.9rem;
    font-size: 0.8rem;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #ffffff;
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
    color: #ffffff;
}

.btn-obsidian {
    background: var(--bg-obsidian);
    color: #ffffff;
    border-color: rgba(15, 23, 42, 0.2);
}

.btn-obsidian:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--bg-card);
    border-color: var(--border-strong);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--gold-bright);
    color: var(--gold-primary);
}

/* ================= PAGE CONTAINER ================= */
.page-container {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.75rem 4rem;
    position: relative;
    z-index: 10;
}

.page-view {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= HERO SHOWCASE ================= */
.royal-hero {
    text-align: center;
    padding: 2rem 1rem 3rem;
    position: relative;
}

.hero-crest-wrap {
    margin-bottom: 1.25rem;
    display: inline-block;
}

.hero-crest {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: #0f172a;
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--gold-bright);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25);
    animation: crestFloat 3.5s infinite ease-in-out;
}

@keyframes crestFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

/* IP Hero Action Box */
.ip-hero-container {
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.ip-card {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.ip-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.18);
}

.ip-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.ip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-green);
    background: var(--color-green-bg);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.ping-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-green);
    box-shadow: 0 0 6px var(--color-green);
}

.ip-text {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.5px;
}

.ip-right {
    display: flex;
    align-items: center;
}

.ip-copy-hint {
    background: #0f172a;
    color: var(--gold-bright);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.ip-card:hover .ip-copy-hint {
    background: var(--gold-primary);
    color: #ffffff;
}

/* Network Overview Stats */
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.stat-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-icon-wrap.gold {
    background: var(--gold-tint);
    color: var(--gold-primary);
}

.stat-icon-wrap.obsidian {
    background: #0f172a;
    color: var(--gold-bright);
}

.stat-icon-wrap.green {
    background: var(--color-green-bg);
    color: var(--color-green);
}

.stat-texts {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
}

.stat-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

/* ================= SECTION HEADINGS & BLOCKS ================= */
.section-block {
    margin-top: 3rem;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-tint);
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(217, 119, 6, 0.2);
    margin-bottom: 0.6rem;
}

.section-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.section-title-wrap p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ================= TOP 10 PLAYTIME LEADERBOARD ================= */
.podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 1.5rem;
    align-items: flex-end;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.podium-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.podium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Rank 1 Podium (Center Gold) */
.podium-card.rank-1 {
    border-color: var(--gold-bright);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 50%);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.2);
    transform: translateY(-12px);
}

.podium-card.rank-1:hover {
    transform: translateY(-18px);
}

/* Rank 2 Podium (Silver) */
.podium-card.rank-2 {
    border-color: var(--text-dim);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%);
}

/* Rank 3 Podium (Bronze) */
.podium-card.rank-3 {
    border-color: #d97706;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 50%);
}

.podium-badge-icon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.rank-1 .podium-badge-icon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.rank-2 .podium-badge-icon {
    background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.rank-3 .podium-badge-icon {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.podium-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
}

.rank-1 .podium-avatar-wrap {
    width: 84px;
    height: 84px;
}

.podium-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    background: #f1f5f9;
}

.rank-1 .podium-avatar-img {
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.podium-username {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.rank-1 .podium-username {
    font-size: 1.45rem;
}

.podium-rank-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.75rem;
    background: #f8fafc;
}

.podium-playtime-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    margin-top: 0.5rem;
}

.podium-playtime-val {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.rank-1 .podium-playtime-val {
    font-size: 1.35rem;
}

.podium-playtime-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-dim);
}

.podium-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Top Playtime Table Card */
.top-playtime-table-card {
    max-width: 960px;
    margin: 0 auto;
}

.card-header-bar {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.card-header-bar h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.refresh-pill:hover {
    text-decoration: underline;
}

.rank-pos-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================= GUILDS PAGE ================= */
.guilds-search-bar-wrap {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.search-input-wrapper input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.guilds-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.guild-row-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.guild-row-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.guild-row-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guild-tag-badge {
    background: #0f172a;
    color: var(--gold-bright);
    border: 1px solid var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.guild-info-main {
    display: flex;
    flex-direction: column;
}

.guild-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
}

.guild-leader-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.guild-leader-avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.guild-row-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guild-member-count-badge {
    background: #f1f5f9;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
}

/* ================= ROYAL TABLE & PUNISHMENTS ================= */
.punishments-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.punishment-filters {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab.active {
    background: #0f172a;
    color: #ffffff;
}

.punishment-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.punishment-search-wrap i {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.punishment-search-wrap input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.royal-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.royal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.royal-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.royal-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    vertical-align: middle;
}

.royal-table tr:hover td {
    background: #fafafa;
}

.badge-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    display: inline-block;
}

.badge-ban {
    background: var(--color-red-bg);
    color: var(--color-red);
}

.badge-mute {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-warn {
    background: var(--color-amber-bg);
    color: var(--color-amber);
}

.player-identity-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    cursor: pointer;
}

.player-identity-cell:hover span {
    color: var(--gold-primary);
}

.player-head-img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    min-width: 30px;
    height: 30px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--gold-bright);
    color: var(--gold-primary);
}

.page-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: var(--text-main);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================= DEDICATED PLAYER PROFILE PAGE ================= */
.profile-page-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-nav-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
}

.player-profile-dossier {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Profile Banner Card */
.player-banner-card {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.player-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gold-gradient);
}

.profile-head-large {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
    border: 3px solid var(--gold-bright);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
    background: #f1f5f9;
}

.profile-info-block {
    flex: 1;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.profile-main-username {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--text-heading);
}

.profile-rank-pill {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid currentColor;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-tags-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
}

.profile-status-pill.online {
    background: var(--color-green-bg);
    color: var(--color-green);
}

.profile-status-pill.offline {
    background: #f1f5f9;
    color: var(--text-dim);
}

/* Stat Metrics Grid */
.profile-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.metric-card-val {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.metric-card-val.gold {
    color: var(--gold-primary);
    font-family: var(--font-mono);
}

.metric-card-val.green {
    color: var(--color-green);
}

.metric-card-val.purple {
    color: var(--purple-royal);
}

.metric-card-val.obsidian {
    color: var(--text-heading);
}

.metric-card-lbl {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* ================= GUILD MEMBERS MODAL ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
    transform: scale(1);
}


/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: none;
    font-weight: 600;
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(22, 163, 74, 0.1);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(220, 38, 38, 0.1);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--color-red-bg);
    color: var(--color-red);
}

.guild-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 2rem 1.5rem;
}

.guild-modal-top-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.guild-modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
}

.guild-modal-meta-row {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.guild-modal-controls {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.guild-modal-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.guild-modal-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.guild-modal-search input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem 0.45rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-main);
}

.guild-role-filters {
    display: flex;
    gap: 0.35rem;
}

.guild-role-chip {
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.guild-role-chip.active {
    background: #0f172a;
    color: #ffffff;
}

.guild-members-container {
    padding: 1.5rem 2rem 2rem;
}

.guild-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.member-roster-item {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.member-roster-item:hover {
    background: var(--bg-card);
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.member-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
}

.member-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    image-rendering: pixelated;
}

.member-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.member-online-dot.online {
    background: var(--color-green);
}

.member-online-dot.offline {
    background: var(--text-dim);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-heading);
}

.member-rank {
    font-size: 0.75rem;
    font-weight: 700;
}

.member-role-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.role-leader {
    background: var(--gold-tint);
    color: var(--gold-primary);
}

.role-officer {
    background: #e0e7ff;
    color: #4338ca;
}

.role-member {
    background: #f1f5f9;
    color: var(--text-muted);
}

/* ================= TOAST NOTIFICATION ================= */
.copy-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.copy-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.copy-toast i {
    color: var(--color-green);
    font-size: 1.1rem;
}

/* ================= OFFICIAL PRESTIGIOUS FOOTER ================= */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    position: relative;
    z-index: 20;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.75rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-heading);
}

.footer-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 1.5rem;
}

.footer-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.footer-server-pill:hover {
    border-color: var(--gold-bright);
    background: #fffbeb;
}

.footer-ip {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-heading);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-col.links a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-col.links a i {
    font-size: 0.7rem;
    color: var(--gold-primary);
}

.footer-col.links a:hover {
    color: var(--gold-primary);
    transform: translateX(3px);
}

.footer-links-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.footer-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
}

.discord-btn {
    background: #5865f2;
    color: #ffffff;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.store-btn {
    background: #0f172a;
    color: var(--gold-bright);
    border: 1px solid var(--gold-primary);
}

.store-btn:hover {
    background: var(--gold-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-subtle);
    background: #f8fafc;
    padding: 1.25rem 1.75rem;
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mojang-notice {
    font-size: 0.75rem;
}

/* ================= MOBILE NATIVE APP BOTTOM BAR ================= */
.mobile-app-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.app-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.app-tab-icon-wrap {
    width: 32px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.app-tab-btn:active {
    transform: scale(0.92);
}

.app-tab-btn.active {
    color: var(--gold-primary);
}

.app-tab-btn.active .app-tab-icon-wrap {
    background: var(--gold-tint);
    color: var(--gold-primary);
}

.app-tab-btn.store-tab {
    color: var(--text-main);
}

.app-tab-btn.store-tab .app-tab-icon-wrap {
    color: var(--gold-bright);
}

/* ================= SUPPORT CENTER & FORM SYSTEMS ================= */

/* Support Category Selection Cards */
.support-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.support-category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    user-select: none;
}

.support-category-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.support-category-card.active {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.14);
}

.support-cat-icon-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.support-cat-icon-ring.gold {
    background: var(--gold-tint);
    color: var(--gold-primary);
}

.support-cat-icon-ring.red {
    background: var(--color-red-bg);
    color: var(--color-red);
}

.support-cat-icon-ring.amber {
    background: var(--color-amber-bg);
    color: var(--color-amber);
}

.support-category-card.active .support-cat-icon-ring.gold {
    background: var(--gold-primary);
    color: #ffffff;
}

.support-category-card.active .support-cat-icon-ring.red {
    background: var(--color-red);
    color: #ffffff;
}

.support-category-card.active .support-cat-icon-ring.amber {
    background: var(--color-amber);
    color: #ffffff;
}

.support-cat-info {
    flex: 1;
    min-width: 0;
}

.support-cat-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1px;
}

.support-cat-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.support-cat-arrow {
    color: var(--text-dim);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.support-category-card.active .support-cat-arrow {
    color: var(--gold-primary);
}

/* Form Input with Icon Prefix */
.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    font-size: 0.88rem;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1;
}

.form-input.has-icon {
    padding-left: 2.65rem;
}

.form-input-wrap:focus-within .form-input-icon {
    color: var(--gold-primary);
}

.support-tabs-wrapper {
    display: none;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.support-tabs {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    gap: 0.35rem;
}

.support-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    user-select: none;
}

.support-tab-btn i {
    font-size: 0.95rem;
    transition: var(--transition);
}

.support-tab-btn:hover {
    color: var(--text-heading);
    background: #f1f5f9;
}

.support-tab-btn.active {
    background: var(--bg-obsidian);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.18);
}

.support-tab-btn.active i {
    color: var(--gold-bright);
}

.support-card-container {
    max-width: 720px;
    margin: 0 auto;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.support-card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.support-card-icon.gold {
    background: var(--gold-tint);
    color: var(--gold-primary);
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.support-card-icon.red {
    background: var(--color-red-bg);
    color: var(--color-red);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.support-card-icon.amber {
    background: var(--color-amber-bg);
    color: var(--color-amber);
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.support-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.support-card-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.support-card-title h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.3px;
}

.support-card-title p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.support-info-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.5;
}

.support-info-alert i {
    font-size: 1.1rem;
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

.support-info-alert.red {
    background: #fef2f2;
    border-left-color: var(--color-red);
    color: #991b1b;
}

.support-info-alert.red i {
    color: var(--color-red);
}

.support-info-alert.amber {
    background: #fffbeb;
    border-left-color: var(--color-amber);
    color: #92400e;
}

.support-info-alert.amber i {
    color: var(--color-amber);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
    text-align: left;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.form-label i {
    color: var(--gold-primary);
    font-size: 0.85rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    background: var(--bg-card);
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
    font-size: 0.88rem;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 1px;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.form-status {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.25s ease-out;
}

.form-status.success {
    display: flex;
    background: var(--color-green-bg);
    color: var(--color-green);
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.form-status.error {
    display: flex;
    background: var(--color-red-bg);
    color: var(--color-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* ================= RESPONSIVE MOBILE APP ADAPTATION ================= */
@media (max-width: 992px) {
    .hero-stats-row {
        grid-template-columns: 1fr;
    }

    .podium-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .podium-card.rank-1 {
        order: -1;
        transform: none;
    }

    .profile-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* Mobile App Look & Feel */
    body {
        padding-bottom: 70px;
    }

    .top-announcement-bar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .header-search-wrap {
        display: none;
    }

    .mobile-search-bar {
        display: flex;
    }

    .mobile-app-bottom-bar {
        display: flex;
    }

    .nav-wrapper {
        padding: 0.65rem 1.15rem;
    }

    .page-container {
        padding: 0.85rem 0.65rem 6.5rem;
    }

    .royal-hero {
        padding: 1.25rem 0.5rem 2rem;
    }

    .hero-crest {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .hero-headline {
        font-size: 1.85rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .ip-card {
        padding: 0.85rem 1.15rem;
    }

    .ip-text {
        font-size: 1.15rem;
    }

    .ip-copy-hint {
        padding: 0.45rem 0.75rem;
        font-size: 0.7rem;
    }

    .section-title-wrap h2 {
        font-size: 1.55rem;
    }

    .player-banner-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 1.15rem;
    }

    .profile-name-row,
    .profile-tags-row {
        justify-content: center;
    }

    .profile-main-username {
        font-size: 1.75rem;
    }

    .profile-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem 0.65rem;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    }

    .metric-card-val {
        font-size: 1.35rem;
    }

    .guild-row-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1rem;
    }

    .guild-row-right {
        width: 100%;
        justify-content: space-between;
    }

    .guild-members-grid {
        grid-template-columns: 1fr;
    }

    .copy-toast {
        bottom: 80px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }

    .support-category-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .support-category-card {
        padding: 0.95rem 1rem;
        gap: 0.75rem;
    }

    .support-cat-icon-ring {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .support-cat-info h4 {
        font-size: 0.88rem;
    }

    .support-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 0.25rem;
        border-radius: var(--radius-md);
    }

    .support-tab-btn {
        flex: 1;
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
        white-space: nowrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .support-card {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .main-footer {
        padding-bottom: 60px;
    }
}
