/* ================================================
   Delta Script / Xenoscript — Theme Stylesheet
   Modern, Dark Mode Roblox Script Sharing Hub
   ================================================ */

:root {
    --bg-main:       #0f1923;
    --bg-card:       #1a2634;
    --bg-card-hover: #1e2c3c;
    --bg-input:      #0f1923;
    --border-color:  rgba(255, 255, 255, 0.08);
    --border-light:  rgba(255, 255, 255, 0.12);
    --text-white:    #ffffff;
    --text-muted:    #9ca3af;
    --text-dim:      #6b7280;
    --purple-main:   #7c3aed;
    --purple-hover:  #6d28d9;
    --purple-light:  #a855f7;
    --green-accent:  #22c55e;
    --green-hover:   #16a34a;
    --yellow-accent: #eab308;
    --red-accent:    #ef4444;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.35);
    --transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a1118; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* Layout Container */
.xs-container {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.xs-main { padding-top: 64px; min-height: calc(100vh - 64px); }

/* ================================================
   HEADER NAVIGATION
   ================================================ */

.xs-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 25, 35, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    height: 64px;
}

.xs-header-inner {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
.xs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.xs-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}
.xs-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Desktop Nav */
.xs-nav { display: none; }
@media (min-width: 820px) { .xs-nav { display: flex; } }

.xs-nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.xs-nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}
.xs-nav-list a:hover,
.xs-nav-list .current-menu-item a { color: #ffffff; }
.xs-nav-list .xs-nav-highlight {
    color: #c084fc;
    font-weight: 600;
}
.xs-nav-list .xs-nav-highlight:hover { color: #e9d5ff; }

/* Header Search Form */
.xs-header-search {
    display: none;
    flex: 1;
    max-width: 380px;
    margin-inline: 1rem;
}
@media (min-width: 820px) { .xs-header-search { display: flex; } }

.xs-search-wrap { position: relative; width: 100%; }
.xs-search-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    font-size: 13px;
}
.xs-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 16px 8px 38px;
    font-size: 0.875rem;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}
.xs-search-input::placeholder { color: var(--text-dim); }
.xs-search-input:focus { border-color: rgba(168, 85, 247, 0.6); }

/* Header Actions */
.xs-header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.xs-login-btn, .xs-user-btn {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.xs-login-btn:hover, .xs-user-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* User Dropdown Menu */
.xs-user-menu { position: relative; }
.xs-user-dropdown {
    position: absolute;
    right: 0; top: calc(100% + 10px);
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 200;
}
.xs-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.xs-dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.xs-dropdown-item-danger { color: #f87171; }
.xs-dropdown-item-danger:hover { color: var(--red-accent); }
.xs-dropdown-divider { border-top: 1px solid var(--border-color); }

/* Mobile Menu Button */
.xs-mobile-toggle {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding: 6px;
}
@media (min-width: 820px) { .xs-mobile-toggle { display: none; } }

.xs-mobile-menu {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    position: fixed;
    top: 64px; left: 0; right: 0;
    z-index: 99;
    padding: 1.25rem;
}
.xs-mobile-search { margin-bottom: 1rem; }
.xs-mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.xs-mobile-nav-list a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.xs-mobile-nav-list a:hover,
.xs-mobile-nav-list .current-menu-item a { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* ================================================
   HERO SECTION
   ================================================ */

.xs-hero {
    padding: 3.5rem 0 1.5rem;
    text-align: center;
}

.xs-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.xs-online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-accent);
}
.xs-online-dot-pulse {
    animation: xs-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes xs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}
.xs-online-text { font-size: 0.85rem; color: var(--green-accent); font-weight: 600; }

.xs-hero-title {
    font-size: clamp(1.85rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.xs-hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 2.25rem;
}

/* Hero Search Form */
.xs-hero-search {
    display: flex;
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.xs-hero-search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 14px 20px;
    font-size: 1rem;
    color: #fff;
    outline: none;
    font-family: inherit;
}
.xs-hero-search-input::placeholder { color: var(--text-dim); }
.xs-hero-search-input:focus { border-color: rgba(168, 85, 247, 0.5); }
.xs-hero-search-btn {
    background: var(--purple-main);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}
.xs-hero-search-btn:hover { background: var(--purple-hover); }

/* Features Grid */
.xs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin-inline: auto;
}
.xs-feature-card {
    background: rgba(26, 38, 52, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.xs-feature-card:hover { border-color: rgba(168, 85, 247, 0.3); transform: translateY(-2px); }
.xs-feature-icon {
    font-size: 1.75rem;
    color: #c084fc;
    margin-bottom: 0.75rem;
}
.xs-feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; color: #fff; }
.xs-feature-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* ================================================
   SCRIPTS SECTION & FILTERS
   ================================================ */

.xs-scripts-section { padding: 2.5rem 0 4rem; }

.xs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.xs-section-title { font-size: 1.6rem; font-weight: 700; color: #fff; }
.xs-section-count { font-size: 0.85rem; color: var(--text-dim); margin-top: 2px; }

.xs-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.xs-filter-form-wrap { display: flex; align-items: center; gap: 0.75rem; }

.xs-select-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.875rem;
    color: var(--text-muted);
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.xs-select-control:focus { border-color: rgba(168, 85, 247, 0.5); }

.xs-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-main);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}
.xs-upload-btn:hover { background: var(--purple-hover); transform: translateY(-1px); }

/* ================================================
   SCRIPTS GRID & CARD UI
   ================================================ */

.xs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.xs-card-item {
    height: 100%;
    transition: var(--transition);
}
.xs-card-item:hover { transform: translateY(-4px); }

.xs-card-anchor { display: flex; height: 100%; }

.xs-card-inner {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: var(--transition);
}
.xs-card-item:hover .xs-card-inner {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.xs-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0d151e;
}

.xs-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.xs-card-item:hover .xs-card-thumb-img { transform: scale(1.05); }

/* Floating Badges */
.xs-card-badge-wrap { position: absolute; z-index: 2; }
.xs-badge-tl { top: 10px; left: 10px; }
.xs-badge-tr { top: 10px; right: 10px; }
.xs-badge-bl { bottom: 10px; left: 10px; }
.xs-badge-br { bottom: 10px; right: 10px; }

.xs-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.xs-pill-dark   { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); color: #fff; }
.xs-pill-green  { background: var(--green-accent); color: #fff; font-weight: 700; }
.xs-pill-yellow { background: var(--yellow-accent); color: #000; font-weight: 700; }

.xs-card-info {
    padding: 1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.xs-card-game-title {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xs-card-script-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}
.xs-card-item:hover .xs-card-script-title { color: #c084fc; }

/* ================================================
   GAMES PAGE GRID
   ================================================ */

.xs-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.xs-game-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.xs-game-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.xs-game-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0d151e;
}
.xs-game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.xs-game-card:hover .xs-game-card-img { transform: scale(1.06); }
.xs-game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 38, 52, 0.95) 0%, transparent 60%);
}

.xs-game-card-content {
    padding: 1rem;
    position: relative;
}
.xs-game-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.xs-game-card-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================
   SINGLE SCRIPT DETAIL PAGE
   ================================================ */

.xs-single-main { padding-bottom: 5rem; }

.xs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 1.25rem 0 1.5rem;
}
.xs-breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.xs-breadcrumb a:hover { color: #c084fc; }
.xs-bc-sep { opacity: 0.4; }
.xs-bc-current { color: #fff; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.xs-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 960px) { .xs-single-layout { grid-template-columns: 1fr; } }

/* Header Card */
.xs-script-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.xs-header-card-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .xs-header-card-top { flex-direction: row; }
}

.xs-header-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0d151e;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .xs-header-thumb-wrap { width: 280px; }
}
.xs-header-thumb { width: 100%; height: 100%; object-fit: cover; }

.xs-thumb-keyless-tag, .xs-thumb-key-tag {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.xs-thumb-keyless-tag { background: var(--green-accent); color: #fff; }
.xs-thumb-key-tag     { background: var(--yellow-accent); color: #000; }

.xs-header-details { flex: 1; display: flex; flex-direction: column; }
.xs-single-script-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.xs-header-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.xs-meta-game { color: var(--text-muted); font-weight: 500; }
.xs-meta-dot { opacity: 0.4; }

.xs-header-stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}
.xs-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f1923;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.xs-stats-pill i { color: #a855f7; }

/* Author */
.xs-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.xs-author-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.25);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.xs-author-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.xs-verified-icon { color: #3b82f6; font-size: 13px; }

/* Interactive row */
.xs-interaction-row { display: flex; gap: 8px; margin-top: auto; }
.xs-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f1923;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.825rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.xs-pill-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.xs-pill-active-green { color: var(--green-accent) !important; border-color: var(--green-accent) !important; background: rgba(34, 197, 94, 0.1); }
.xs-pill-active-red   { color: var(--red-accent) !important; border-color: var(--red-accent) !important; background: rgba(239, 68, 68, 0.1); }

/* Card Action Footer */
.xs-header-card-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}
.xs-footer-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.xs-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.xs-action-dark { background: #0f1923; color: #fff; }
.xs-action-dark:hover { background: #14202d; }
.xs-action-purple { background: var(--purple-main); color: #fff; }
.xs-action-purple:hover { background: var(--purple-hover); }
.xs-action-green { background: var(--green-accent); color: #fff; }
.xs-action-green:hover { background: var(--green-hover); }

/* Section Box */
.xs-section-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.xs-box-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.xs-desc-text {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.75;
}

/* Features list */
.xs-features-container {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}
.xs-features-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.xs-features-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.xs-features-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.xs-bullet-plus {
    color: #c084fc;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

/* Code Box */
.xs-code-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.xs-code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f1923;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.xs-code-copy-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

.xs-code-container {
    background: #0d151e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    max-height: 280px;
    overflow: auto;
}
.xs-lua-pre {
    margin: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #4ade80;
    white-space: pre-wrap;
    word-break: break-all;
}

/* YouTube Video Wrapper */
.xs-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0d151e;
}
.xs-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Comments Box */
.xs-comment-input {
    width: 100%;
    background: #0f1923;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
}
.xs-comment-input:focus { border-color: rgba(168, 85, 247, 0.5); }
.xs-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* Sidebar Box */
.xs-sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.xs-sidebar-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.xs-detail-rows { display: flex; flex-direction: column; gap: 0.75rem; }
.xs-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
.xs-detail-label { color: var(--text-dim); }
.xs-detail-value { color: #fff; font-weight: 500; }

.xs-similar-list { display: flex; flex-direction: column; gap: 0.75rem; }
.xs-similar-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}
.xs-similar-item:hover { background: rgba(255, 255, 255, 0.04); }
.xs-similar-thumb-wrap {
    width: 76px; height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #0d151e;
    flex-shrink: 0;
}
.xs-similar-thumb { width: 100%; height: 100%; object-fit: cover; }
.xs-similar-meta { overflow: hidden; }
.xs-similar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.xs-similar-sub { font-size: 0.75rem; color: var(--text-dim); }

/* ================================================
   UPLOAD SCRIPT PAGE
   ================================================ */

.xs-upload-wrap {
    max-width: 780px;
    margin-inline: auto;
    padding: 2.5rem 0 4rem;
}

.xs-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}
.xs-upload-title { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 0.35rem; }
.xs-upload-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.xs-field-group { margin-bottom: 1.35rem; }
.xs-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}
.xs-label .required { color: var(--red-accent); }

.xs-input, .xs-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    font-size: 0.9rem;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}
.xs-input:focus, .xs-textarea:focus { border-color: rgba(168, 85, 247, 0.6); }
.xs-mono { font-family: 'Consolas', 'Courier New', monospace; }
.xs-code-area { min-height: 180px; font-size: 0.85rem; }

.xs-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .xs-field-row { grid-template-columns: 1fr; } }

/* File Input */
.xs-file-wrap { display: flex; align-items: center; gap: 1rem; }
.xs-file-input { display: none; }
.xs-file-label {
    display: inline-flex;
    align-items: center;
    background: #0f1923;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.xs-file-label:hover { color: #fff; border-color: rgba(168, 85, 247, 0.4); }
.xs-file-name { font-size: 0.825rem; color: var(--text-dim); }

/* Radio Group */
.xs-radio-group { display: flex; gap: 1.5rem; }
.xs-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
}
.xs-radio-label input[type=radio] { accent-color: var(--purple-main); width: 16px; height: 16px; }

.xs-form-footer { display: flex; justify-content: flex-end; padding-top: 0.5rem; }
.xs-submit-btn {
    display: inline-flex;
    align-items: center;
    background: var(--purple-main);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}
.xs-submit-btn:hover { background: var(--purple-hover); transform: translateY(-1px); }
.xs-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.xs-alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.xs-alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.xs-alert-error   { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

.xs-auth-gate { text-align: center; padding: 4rem 1rem; }
.xs-auth-gate-icon { margin-bottom: 1rem; }
.xs-auth-gate h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.xs-auth-gate p { color: var(--text-muted); }

/* ================================================
   FAQS ACCORDION
   ================================================ */

.xs-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.xs-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.xs-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    transition: var(--transition);
}
.xs-faq-question:hover { color: #c084fc; }
.xs-faq-icon { transition: transform 0.25s ease; color: var(--text-dim); }
.xs-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.7;
}

/* ================================================
   PAGINATION & EMPTY STATES
   ================================================ */

.xs-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3.5rem;
}
.xs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.xs-pagination .page-numbers:hover { background: var(--purple-main); color: #fff; border-color: var(--purple-main); }
.xs-pagination .current { background: var(--purple-main); color: #fff; border-color: var(--purple-main); font-weight: 700; }

.xs-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-muted);
}

/* ================================================
   FOOTER
   ================================================ */

/* =====================================================================
 * Delta Scripts Specification Footer
 * =================================================================== */
.xs-footer {
    background: #0b141e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0 0;
    margin-top: auto;
}
.xs-footer-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}
.xs-footer-spec-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.35fr;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 2.5rem;
}
@media (max-width: 960px) {
    .xs-footer-spec-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Left Column */
.xs-footer-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.xs-ninja-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 8px;
}
.xs-footer-spec-desc {
    color: #94a3b8;
    font-size: 0.885rem;
    line-height: 1.65;
    margin: 1rem 0 1.25rem;
    max-width: 380px;
}
.xs-footer-disclaimer-pill {
    display: inline-block;
    background: #152230;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

/* Center Column */
.xs-footer-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.xs-footer-center-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: 0.01em;
}
.xs-community-btns-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}
.xs-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.xs-btn-discord:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: #fff;
}
.xs-btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF0000;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.xs-btn-youtube:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: #fff;
}
.xs-social-circles-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.xs-social-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #152230;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.xs-social-circle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Right Column */
.xs-footer-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
@media (max-width: 960px) {
    .xs-footer-col-right {
        align-items: flex-start;
        text-align: left;
    }
}
.xs-footer-right-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.85rem;
}
.xs-footer-stats-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 28px;
    margin-bottom: 1.25rem;
}
@media (max-width: 960px) {
    .xs-footer-stats-row {
        justify-content: flex-start;
    }
}
.xs-footer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
@media (max-width: 960px) {
    .xs-footer-stat-item {
        align-items: flex-start;
    }
}
.xs-footer-stat-val {
    font-size: 1.55rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.xs-footer-stat-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    margin-top: 3px;
    text-transform: uppercase;
}
.xs-footer-contact-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
@media (max-width: 960px) {
    .xs-footer-contact-block {
        align-items: flex-start;
    }
}
.xs-footer-contact-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
}
.xs-footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.xs-footer-email-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Bottom Bar */
.xs-footer-spec-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 0 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .xs-footer-spec-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
.xs-footer-copyright {
    font-size: 0.82rem;
    color: #64748b;
}
.xs-footer-legal-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.xs-footer-legal-nav a {
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.xs-footer-legal-nav a:hover {
    color: #ffffff;
}

/* =====================================================================
 * "How to Use This Script" Coded Component
 * =================================================================== */
.xs-how-to-use-box {
    background: #1a2634;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem 2rem 2.25rem;
    margin-bottom: 2rem;
}
.xs-how-to-use-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.75rem 0;
    letter-spacing: -0.01em;
}
.xs-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 860px) {
    .xs-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
.xs-step-card {
    background: #101a24;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 2.25rem 1.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.xs-step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.xs-step-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbbf24, #f59e0b 60%, #d97706);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}
.xs-step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.85rem 0;
}
.xs-step-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
    max-width: 270px;
}
.xs-step-subtext {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-bottom: 1px dotted #64748b;
}

/* WP Admin Bar Spacing */
.admin-bar .xs-header { top: 32px; }
.admin-bar .xs-main   { padding-top: calc(64px + 32px); }
@media (max-width: 782px) {
    .admin-bar .xs-header { top: 46px; }
    .admin-bar .xs-main   { padding-top: calc(64px + 46px); }
}

/* =====================================================================
 * Header Auth Buttons & User Profile
 * =================================================================== */
.xs-auth-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xs-header-signin-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.xs-header-signin-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.xs-header-signup-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
    transition: var(--transition);
}
.xs-header-signup-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.xs-header-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.xs-header-upload-btn:hover {
    background: #7c3aed;
    color: #fff;
}
.xs-user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.xs-user-profile-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.xs-user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}
.xs-user-chevron {
    font-size: 10px;
    color: var(--text-dim);
}
.xs-dropdown-user-header {
    padding: 10px 14px 6px;
    display: flex;
    flex-direction: column;
}
.xs-dropdown-username {
    font-size: 0.9rem;
    color: #fff;
}
.xs-dropdown-user-email {
    font-size: 0.775rem;
    color: var(--text-dim);
    margin-top: 2px;
}
.xs-badge-counter {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    margin-left: auto;
}

/* =====================================================================
 * Auth Pages (Login & Register)
 * =================================================================== */
.xs-auth-main {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}
.xs-auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.xs-auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.xs-auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.xs-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.xs-auth-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.xs-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}
.xs-auth-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.xs-google-auth-wrap {
    margin-bottom: 1.25rem;
}
.xs-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1f2937;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.xs-google-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.xs-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.xs-auth-divider::before,
.xs-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.xs-auth-divider span {
    padding: 0 12px;
}
.xs-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.xs-field-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    font-size: 0.9rem;
    pointer-events: none;
}
.xs-input-padded {
    padding-left: 42px !important;
    padding-right: 42px !important;
}
.xs-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.xs-toggle-pass:hover {
    color: #fff;
}
.xs-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.xs-auth-link {
    color: #c084fc;
    transition: var(--transition);
}
.xs-auth-link:hover {
    color: #fff;
    text-decoration: underline;
}
.xs-remember-row {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}
.xs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}
.xs-auth-submit-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    transition: var(--transition);
}
.xs-auth-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.xs-auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.xs-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.xs-auth-highlight-link {
    color: #c084fc;
    font-weight: 600;
    margin-left: 4px;
}
.xs-auth-highlight-link:hover {
    text-decoration: underline;
}

/* =====================================================================
 * Author Profile Page (/author/{name}/)
 * =================================================================== */
.xs-author-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.xs-author-profile-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}
.xs-author-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    flex-shrink: 0;
}
.xs-author-identity {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.xs-author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.xs-author-main-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.xs-author-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.xs-author-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
}
.xs-role-admin {
    background: rgba(124, 58, 237, 0.2);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.4);
}
.xs-role-dev {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.xs-author-bio {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
}
.xs-author-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}
@media (max-width: 840px) {
    .xs-author-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .xs-author-metrics-grid {
        grid-template-columns: 1fr;
    }
}
.xs-author-metric-card {
    background: rgba(15, 25, 35, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.xs-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.xs-metric-purple { background: rgba(124, 58, 237, 0.15); color: #a855f7; }
.xs-metric-blue   { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.xs-metric-green  { background: rgba(34, 197, 94, 0.15);  color: #22c55e; }
.xs-metric-orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.xs-metric-data {
    display: flex;
    flex-direction: column;
}
.xs-metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.xs-metric-lbl {
    font-size: 0.775rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* =====================================================================
 * Game Archive Hero (/game/{slug}/)
 * =================================================================== */
.xs-game-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .xs-game-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
.xs-game-hero-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.xs-game-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}
.xs-game-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.xs-game-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.xs-game-breadcrumb a {
    color: var(--text-muted);
}
.xs-game-breadcrumb a:hover {
    color: #fff;
}
.xs-breadcrumb-active {
    color: #c084fc;
    font-weight: 600;
}
.xs-game-hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}
.xs-game-hero-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 580px;
}
.xs-game-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.xs-badge-pill {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}
.xs-badge-verified {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

/* =====================================================================
 * Rich Description & Content Typography
 * =================================================================== */
.xs-desc-text p {
    margin-bottom: 1rem;
    line-height: 1.75;
}
.xs-desc-text p:last-child {
    margin-bottom: 0;
}
.xs-desc-text h2, .xs-desc-text h3 {
    color: #fff;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}
.xs-desc-text h2 { font-size: 1.15rem; }
.xs-desc-text h3 { font-size: 1.05rem; }
.xs-desc-text ul, .xs-desc-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.xs-desc-text li {
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}
.xs-desc-text strong, .xs-desc-text b {
    color: #fff;
    font-weight: 700;
}
.xs-desc-text a {
    color: #c084fc;
    text-decoration: underline;
}
.xs-desc-text a:hover {
    color: #fff;
}

