
/* UNIVERSAL CYBERPUNK DARK SCROLLBAR */
::-webkit-scrollbar {
    width: 7px !important;
    height: 7px !important;
}
::-webkit-scrollbar-track {
    background: #09090b !important;
    border-radius: 999px !important;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.175) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.375) !important;
    box-shadow: none !important;
}
* {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.175) #09090b !important;
}
:root {
    --bg-page: #09090b;
    --bg-card: #111114;
    --bg-card-sub: #141418;
    --bg-input: #141418;
    --border-color: #222226;
    --border-hover: #2e2e34;
    --border: 1px solid #27272a !important;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-cyan: #a1a1aa;
    --accent-cyan-hover: #3f3f46;
    --accent-emerald: #10b981;
    --accent-gold: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --glow-cyan: rgba(255, 255, 255, 0.125);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    user-select: none;
}

#adminApp {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Growtopia Sprite Icon Utility */
.brand-gt-icon { width: 24px; height: 24px; image-rendering: pixelated; }
.tab-gt-icon { width: 18px; height: 18px; image-rendering: pixelated; }
.pill-gt-icon { width: 16px; height: 16px; image-rendering: pixelated; }
.btn-gt-icon { width: 18px; height: 18px; image-rendering: pixelated; }
.title-gt-icon { width: 18px; height: 18px; image-rendering: pixelated; }
.drop-gt-icon { width: 36px; height: 36px; image-rendering: pixelated; margin-bottom: 8px; }
.box-gt-icon { width: 24px; height: 24px; image-rendering: pixelated; }
.footer-gt-icon { width: 16px; height: 16px; image-rendering: pixelated; }
.seg-gt-icon { width: 16px; height: 16px; image-rendering: pixelated; }

/* HEADER */
#adminHeader {
    height: 54px;
    background: #0d121c;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-badge {
    background: linear-gradient(135deg, #3f3f46, #6366f1);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Nav Tabs */
.nav-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.nav-tab:hover {
    color: #fff;
    background: var(--bg-card-sub);
}

.nav-tab.active {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 12px var(--glow-cyan);
}

/* Header Status */
.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dot-green { background-color: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }
.dot-blue { background-color: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.dot-red { background-color: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* MAIN LAYOUT */
#adminMain {
    flex: 1;
    height: calc(100vh - 54px - 32px);
    overflow: hidden;
    position: relative;
}

.tab-pane {
    display: none;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
}

/* STUDIO LAYOUT (3 Columns: Sidebar, Browser, Inspector) */
.studio-layout {
    display: grid;
    grid-template-columns: 280px 1fr 440px;
    height: 100%;
    width: 100%;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
}

.studio-sidebar, .studio-browser, .studio-inspector {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    gap: 10px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.full-panel {
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 14px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-header-row .card-title {
    margin-bottom: 0;
}

.flex-grow {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Dropzone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 18px 12px;
    text-align: center;
    background: var(--bg-input);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.04);
}

.drop-main-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.drop-sub-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Local DAT List */
.local-dat-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.local-dat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card-sub);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.local-dat-item:hover {
    border-color: var(--border-color);
}

.dat-item-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 2px;
}

.dat-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dat-item-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* BROWSER CENTER STAGE */
.browser-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}

.source-segmented {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
}

.segment-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.segment-btn.active {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 7px 10px 7px 32px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-input:focus {
    border-color: var(--accent-cyan);
}

/* Category Filter Chips */
.category-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.cat-pill {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.cat-pill:hover {
    color: #fff;
    border-color: var(--border-hover);
}

.cat-pill.active {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    border-color: var(--accent-cyan);
}

/* Scroll Container for Items Grid (Never Collapses) */
.grid-scroll-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    align-content: start;
}

.item-card {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.item-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.item-card.selected {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.item-icon-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d111a;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.item-icon-box img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.item-name-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.item-id-tag {
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Browser Footer */
.browser-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border-color);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-indicator {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.page-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* RIGHT INSPECTOR / CONFIGURATOR */
.inspector-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card-sub);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.hero-icon-box {
    width: 48px;
    height: 48px;
    background: #090c12;
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-box img {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}

.hero-details {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-badges {
    display: flex;
    gap: 6px;
}

.badge-pill {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.id-badge { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.type-badge { background: rgba(255, 255, 255, 0.075); color: var(--accent-cyan); border: 1px solid rgba(255, 255, 255, 0.15); }

.preset-group {
    margin-bottom: 8px;
}

.inspector-form-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.field-row {
    display: flex;
    gap: 8px;
}

.field-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flex-2 { flex: 2; }

.field-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.input-field, .select-field, .textarea-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.input-field:focus, .select-field:focus, .textarea-field:focus {
    border-color: var(--accent-cyan);
}

.textarea-field {
    resize: none;
    font-family: var(--font-body);
}

.inspector-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 4px;
}

.check-box-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* PLAYERS TAB */
.players-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 100%;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
}

.panel-table {
    height: 100%;
    overflow: hidden;
}

.panel-detail {
    height: 100%;
    overflow: hidden;
}

.table-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.gt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.gt-table th, .gt-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.gt-table th {
    background: var(--bg-card-sub);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.gt-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card-sub);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
    overflow-y: auto;
}

.inv-cell {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
}

.inv-cell img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.inv-cell-qty {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
}

.inv-cell-name {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* SERVER GATEWAY TAB */
.gateway-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
}

.gateway-card {
    max-width: 600px;
    width: 100%;
    padding: 28px;
    text-align: center;
}

.gateway-gt-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    margin-bottom: 10px;
}

.gateway-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 6px;
}

.gateway-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.gateway-status-bar {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-mode {
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-mode.private { background: rgba(255, 255, 255, 0.075); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }
.badge-mode.official { background: rgba(255, 255, 255, 0.075); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }

.gateway-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.mode-box {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.mode-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-box-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.mode-box-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    flex: 1;
}

.gateway-tip {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-gold);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: left;
}

/* BUTTONS */
.btn {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary { background: var(--accent-cyan); color: #000; font-weight: 700; }
.btn-primary:hover { background: var(--accent-cyan-hover); box-shadow: 0 0 10px var(--glow-cyan); }

.btn-secondary { background: var(--bg-card-sub); border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-secondary:hover { background: #181818; border-color: #272727; }

.btn-accent { background: var(--accent-emerald); color: #000; font-weight: 700; }
.btn-accent:hover { background: #059669; }

.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }
.btn-outline:hover { color: #fff; border-color: var(--accent-cyan); }

.btn-block { width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; height: 30px; }
.btn-xs { padding: 2px 8px; font-size: 0.74rem; height: 24px; }
.btn-lg { padding: 8px 16px; font-size: 0.95rem; }

.btn-icon-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
}
.btn-icon-link:hover { color: #fff; }

/* FOOTER */
#adminFooter {
    height: 32px;
    background: #090c12;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.push-right { margin-left: auto; }

/* TOAST */
.toast {
    position: fixed;
    bottom: 44px;
    right: 20px;
    background: #111827;
    border: 1px solid var(--accent-cyan);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
}
.toast.hidden { display: none; }

.hidden-input { display: none; }
.loading-state { color: var(--text-muted); font-size: 0.82rem; padding: 14px; text-align: center; }
.status-indicator { font-size: 0.72rem; color: var(--accent-emerald); margin-top: 4px; }

/* 8-SLOT QUICK INVENTORY BAR */
.quickbar-section {
    margin-top: 10px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(34, 21, 11, 0.95) 0%, rgba(20, 12, 6, 0.98) 100%);
    border: 2px solid #5a3818;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.4);
}

.quickbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quickbar-title {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: #ffcc00;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 1px 1px 0 #000;
}

.quickbar-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
}

@media (max-width: 900px) {
    .quickbar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quick-slot {
    background: #181d24;
    border: 2px solid #3d2c1d;
    border-radius: 6px;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    min-height: 82px;
}

.quick-slot:hover {
    border-color: #f39c12;
    background: #202732;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.quick-slot.selected {
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
    background: #171717;
}

.quick-slot.empty-slot {
    border-style: dashed;
    border-color: #3a424e;
    opacity: 0.6;
}

.slot-num-badge {
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #ffd700;
    font-family: var(--font-heading);
    text-shadow: 1px 1px 0 #000;
}

.quick-slot img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    margin-top: 4px;
}

.quick-slot .slot-qty {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

.quick-slot .slot-name {
    font-size: 0.60rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

.quick-slot.wearing-active {
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.quick-slot-actions {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.slot-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    font-size: 0.55rem;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
}
.slot-action-btn:hover {
    background: #ffcc00;
    color: #000;
}


/* -------------------------------------------------------------
   LIVE VOICE CHAT STYLING
------------------------------------------------------------- */
.badge-vc-live {
    background: #10b981;
    color: #000;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 5px;
    letter-spacing: 0.5px;
    animation: pulse-live 1.8s infinite ease-in-out;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.voice-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 16px;
    height: 100%;
    padding: 16px;
    overflow: hidden;
}

.voice-controls-card, .voice-peers-card {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #121824;
    border: 1px solid #181818;
    border-radius: 8px;
    padding: 18px;
}

.vc-connection-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.status-disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-connecting {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-connected {
    background: rgba(255, 255, 255, 0.075);
    color: #34d399;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.vc-world-select-group {
    background: #0d121c;
    border: 1px solid #171717;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0 14px 0;
}

.vc-room-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.vc-world-icon {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
}

.vc-quick-worlds {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.vc-quick-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-chip {
    background: #151515;
    border: 1px solid #1e1e1e;
    color: #cbd5e1;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.15s ease;
}

.btn-chip:hover {
    background: #3f3f46;
    border: 1px solid #27272a !important;
    color: #fff;
}

.vc-action-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.vc-tile-btn {
    background: #151d2d;
    border: 1px solid #1b1b1b;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f1f5f9;
}

.vc-tile-btn:hover {
    background: #181818;
    border-color: #252525;
    transform: translateY(-1px);
}

.vc-tile-btn.active-muted {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.vc-tile-btn.active-deafened {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.vc-tile-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: background 0.2s ease;
}

.vc-tile-btn.active-muted .vc-tile-icon-wrap {
    background: #ef4444;
    color: #fff;
}

.vc-tile-btn.active-deafened .vc-tile-icon-wrap {
    background: #ef4444;
    color: #fff;
}

.vc-tile-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.vc-tile-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vc-meter-container {
    width: 100%;
    height: 12px;
    background: #0d121c;
    border-radius: 6px;
    border: 1px solid #171717;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.vc-meter-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #52525b 70%, #f59e0b 88%, #ef4444 100%);
    border-radius: 6px;
    transition: width 0.05s ease-out;
}

.vc-level-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 700;
}

.vc-mode-toggle {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.radio-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0d121c;
    border: 1px solid #171717;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.radio-tab:has(input:checked) {
    border-color: #3f3f46;
    background: #151515;
    color: #fff;
}

.vc-room-badge {
    background: #171717;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.vc-peer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 14px;
    flex-grow: 1;
    align-content: flex-start;
}

.vc-peer-card {
    background: #0d121c;
    border: 1px solid #171717;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
}

.vc-peer-card.is-self {
    border-color: #3f3f46;
    background: #101826;
}

.vc-peer-card.is-speaking {
    border-color: #10b981;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.vc-avatar-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.vc-avatar-img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.speaking-pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.vc-peer-card.is-speaking .speaking-pulse-ring {
    opacity: 1;
    animation: pulse-ring 1.2s infinite ease-out;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.3); opacity: 0; }
}

.vc-peer-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-peer-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.vc-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.tag-self { background: #27272a; color: #fff; }
.tag-muted { background: #dc2626; color: #fff; }
.tag-deaf { background: #991b1b; color: #fff; }
.tag-speaking { background: #059669; color: #fff; }
.tag-listening { background: #1f1f1f; color: #94a3b8; }

.vc-peer-volume {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-vol-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.vc-hud-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d121c;
    border: 1px dashed #1c1c1c;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.vc-tip-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

/* Floating Voice Dock (active across tabs) */
.floating-voice-dock {
    position: fixed;
    bottom: 38px;
    right: 20px;
    background: #141c2c;
    border: 1px solid #3f3f46;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slide-up 0.3s ease;
}

.floating-voice-dock.hidden {
    display: none !important;
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.dock-status-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #10b981;
}

.dock-status-ring.speaking {
    border-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dock-status-ring.muted {
    border-color: #ef4444;
}

.dock-gt-icon {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
}

.dock-info {
    display: flex;
    flex-direction: column;
}

.dock-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #fff;
}

.dock-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dock-actions {
    display: flex;
    gap: 6px;
}

.btn-dock-icon {
    background: #171717;
    border: 1px solid #1f1f1f;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-dock-icon:hover {
    background: #3f3f46;
    color: #fff;
    border: 1px solid #27272a !important;
}

.btn-dock-icon.dock-muted {
    background: #ef4444;
    border-color: #f87171;
    color: #fff;
}


.vc-perm-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #fca5a5;
    animation: fadeIn 0.3s ease;
}

.vc-perm-alert.hidden {
    display: none !important;
}

.vc-perm-alert-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: #ef4444;
    margin-bottom: 6px;
}


/* ==========================================================================
   GTPS CLOUD & CELESTIAL PS CYBERPUNK TEAL THEME
   ========================================================================== */
#gtpsApp {
    display: flex;
    height: 100vh;
    width: 100vw;
    background-color: #09090b;
    overflow: hidden;
    color: #f8fafc;
    font-family: var(--font-body);
}

/* LEFT SIDEBAR */
#gtpsSidebar {
    width: 250px;
    min-width: 250px;
    background: #0c0c0e;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#gtpsSidebar.collapsed {
    width: 68px;
    min-width: 68px;
}

#gtpsSidebar.collapsed .brand-info,
#gtpsSidebar.collapsed .group-title,
#gtpsSidebar.collapsed .menu-item span {
    display: none;
}

#gtpsSidebar.collapsed .menu-item {
    justify-content: center;
    padding: 10px 0;
}

.sidebar-brand-card {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.brand-avatar-box {
    width: 44px;
    height: 44px;
    background: #111114;
    border: 2px solid #a1a1aa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.125);
}

.brand-avatar-img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.brand-info {
    overflow: hidden;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.75rem;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.pulse-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.menu-group {
    margin-bottom: 14px;
}

.group-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2f2f2f;
    padding: 4px 10px 6px 10px;
    text-transform: uppercase;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    text-align: left;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.09);
    color: #a1a1aa;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #a1a1aa;
}

.menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* TOP NAVBAR */
#gtpsMainWrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#gtpsTopNav {
    height: 56px;
    background: #0c0c0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 90;
}

.topnav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn-back {
    width: 34px;
    height: 34px;
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn-back:hover {
    background: #111114;
    color: #fff;
}

.topnav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.cloud-icon {
    width: 22px;
    height: 22px;
    color: #a1a1aa;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-top-icon {
    width: 34px;
    height: 34px;
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 8px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-top-icon:hover {
    color: #a1a1aa;
    border-color: #a1a1aa;
}

.notif-wrapper {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.user-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3f3f46, #52525b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* MAIN CONTENT AREA */
#gtpsContentArea {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: radial-gradient(circle at 50% 0%, #111114 0%, #09090b 75%);
}

.gtps-home-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1400px;
    margin: 0 auto;
}

/* SPECIAL OFFER BANNER */
.banner-offer {
    background: linear-gradient(90deg, #111114 0%, #111114 100%);
    border: 1px solid rgba(255, 255, 255, 0.175);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.banner-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.4;
}

.banner-offer-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.offer-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fbbf24;
}

.offer-price-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.offer-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #f59e0b;
}

.btn-offer {
    margin-top: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3f3f46 0%, #52525b 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* DLS BANNER */
.banner-dls {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dls-icon-box {
    width: 36px;
    height: 36px;
    background: #111114;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dls-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #a1a1aa;
}

.dls-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* METRICS GRID */
.metrics-grid {
    display: grid;
    grid-template-columns: 280px 280px 1fr;
    gap: 16px;
}

@media (max-width: 1100px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gtps-card-wide {
        grid-column: span 2;
    }
}

.gtps-card {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gtps-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.badge-online {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #a1a1aa;
    color: #a1a1aa;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-circle-action {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-circle-action:hover {
    background: #111114;
    color: #fff;
}

.btn-diamond {
    color: #a1a1aa;
    border: 1px solid #27272a !important;
}

.status-metric-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.status-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.status-val-bold {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.color-cyan {
    color: #a1a1aa;
}

.status-sub-dim {
    font-size: 0.8rem;
    color: #2f2f2f;
}

.status-metric-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

.resource-meters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.meter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meter-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
}

.meter-bar-track {
    width: 100%;
    height: 6px;
    background: #09090b;
    border-radius: 3px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.fill-green {
    background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

/* CHART CARD */
.chart-card {
    padding: 20px;
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.chart-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.chart-time-select {
    background: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.chart-canvas-container {
    width: 100%;
    height: 260px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#memoryCanvasChart {
    width: 100%;
    height: 100%;
    display: block;
}

/* SETTINGS LAYOUT */
.settings-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-col {
    flex: 1;
}

/* ========================================================================= */
/*              CELESTIAL PS REAL HARDWARE & IN-GAME PREVIEW CSS              */
/* ========================================================================= */

.banner-celestial {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.175);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a1a1aa;
    margin-bottom: 8px;
}

.badge-dot-live {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.banner-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.banner-brand-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.server-status-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.server-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}

.cpu-threads-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a1a1aa;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.fill-orange { background: #f59e0b !important; }

/* IN-GAME SUMMARY STATS GRID */
.in-game-summary-card {
    padding: 18px 20px;
    margin-bottom: 20px;
}

.in-game-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.icon-green { background: rgba(255, 255, 255, 0.075); color: #34d399; border: 1px solid rgba(255, 255, 255, 0.15); }
.icon-cyan { background: rgba(255, 255, 255, 0.075); color: #a1a1aa; border: 1px solid rgba(255, 255, 255, 0.15); }
.icon-yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.stat-label { font-size: 0.78rem; color: #94a3b8; font-weight: 600; }
.stat-value { font-size: 1.35rem; font-weight: 800; margin: 2px 0; }
.stat-sub { font-size: 0.72rem; color: #2f2f2f; }

.color-green { color: #34d399; }
.color-yellow { color: #fbbf24; }
.color-purple { color: #c084fc; }

/* IN-GAME LOGIN CUSTOMIZER LAYOUT */
.ingame-login-customizer-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 20px;
}

.customizer-form-card {
    padding: 20px;
}

.preview-container-card {
    padding: 20px;
}

.preview-mode-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #a1a1aa;
    padding: 2px 8px;
    border-radius: 4px;
}

/* GROWTOPIA SCREEN MOCKUP */
.gt-game-screen-mock {
    position: relative;
    width: 100%;
    min-height: 440px;
    background: linear-gradient(180deg, #111114 0%, #111114 70%, #000000 100%);
    border: 2px solid #111114;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gt-console-overlay {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    opacity: 0.45;
    pointer-events: none;
    font-family: monospace;
    font-size: 0.74rem;
    line-height: 1.4;
}

.log-white { color: #cbd5e1; }
.log-green { color: #4ade80; }
.log-cyan { color: #a1a1aa; }
.log-yellow { color: #fde047; }

/* EXACT GROWTOPIA MODAL MATCHING USER SCREENSHOT */
.gt-modal-dialog {
    position: relative;
    z-index: 10;
    width: 88%;
    max-width: 440px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #27272a !important;
    box-shadow: 0 0 0 1px #111114, 0 12px 36px rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    padding: 24px 28px;
    text-align: center;
}

.gt-dialog-title {
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.3px;
}

.gt-dialog-notice {
    font-size: 0.82rem;
    color: #ef4444;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.35;
}

.gt-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gt-dialog-field {
    width: 100%;
    height: 42px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #a1a1aa;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    outline: none;
    box-sizing: border-box;
}

.gt-dialog-field::placeholder {
    color: #2f2f2f;
    font-weight: 500;
}

.gt-dialog-submit-btn {
    width: 100%;
    height: 44px;
    background: #00b4d8;
    border: none;
    border-radius: 6px;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 0 #0077b6, 0 6px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
    margin-top: 4px;
}

.gt-dialog-submit-btn:hover {
    background: #00c4ec;
}

.gt-dialog-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0077b6, 0 4px 8px rgba(0, 0, 0, 0.4);
}

.gt-dialog-guide {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: left;
    line-height: 1.35;
}

.gt-guide-title {
    color: #a1a1aa;
    font-weight: 700;
    margin-right: 4px;
}

/* BOTTOM TERRAIN */
.gt-terrain-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #5c3818;
    border-top: 3px solid #825227;
}

.gt-dirt-blocks {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(0, 0, 0, 0.15) 32px, rgba(0, 0, 0, 0.15) 34px);
}


/* ========================================================================= */
/*              GTPS CLOUD TARGET DASHBOARD STYLING                         */
/* ========================================================================= */

.gtps-cloud-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .gtps-cloud-overview-grid {
        grid-template-columns: 1fr;
    }
}

.gtps-cloud-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gtps-cloud-right-col {
    display: flex;
    flex-direction: column;
}

.gtps-cloud-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gtps-cloud-card:hover {
    border-color: rgba(255, 255, 255, 0.225);
}

.gtps-cloud-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gtps-cloud-card-header-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gtps-cloud-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.gtps-cloud-badge-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #4ade80;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #22c55e;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.gtps-cloud-badge-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #52525b;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.gtps-cloud-card-sub {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 500;
}

.gtps-cloud-square-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: #52525b;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gtps-cloud-square-btn:hover {
    background: #3f3f46;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.275);
}

.gtps-cloud-square-btn:active {
    transform: translateY(0);
}

.gtps-cloud-metrics-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 22px 26px;
}

.gtps-cloud-metrics-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.gtps-cloud-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 0 16px 0;
}

.gtps-cloud-metric-row {
    margin-bottom: 16px;
}

.gtps-cloud-metric-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gtps-cloud-metric-name {
    font-size: 0.92rem;
    color: #e2e8f0;
    font-weight: 500;
}

.gtps-cloud-metric-stat {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.gtps-cloud-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.gtps-cloud-progress-bar {
    height: 100%;
    background: #4ade80;
    border-radius: 9999px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Real-Time Host Performance Chart */
.gtps-cloud-chart-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 20px;
}
.gtps-cloud-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.chart-canvas-container {
    width: 100%;
    height: 120px;
    position: relative;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 4px 6px;
    box-sizing: border-box;
}


/* ==========================================================================
   GTPS CLOUD SHOP MANAGER STYLES (Screenshot 3, 4, 5 Replica)
   ========================================================================== */

.gtps-shop-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gtps-shop-banner {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 1.5px #111114, 0 6px 18px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 16px 22px;
}

.gtps-shop-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.gtps-shop-banner-title svg {
    color: #d4d4d8;
}

.gtps-shop-banner-sub {
    color: #d4d4d8;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Search & Category Filter Bar */
.gtps-shop-search-box {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 1.5px #111114;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gtps-shop-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    flex: 1;
}

.gtps-shop-search-box input::placeholder {
    color: #2f2f2f;
}

.gtps-shop-cat-select {
    background: #111114;
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

/* Shop Table Card */
.gtps-shop-table-card {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 2px #111114, 0 8px 24px rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    overflow: hidden;
}

.gtps-shop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.gtps-shop-table thead tr {
    background: #111114;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.gtps-shop-table th {
    padding: 13px 18px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    user-select: none;
}

.gtps-th-sort {
    cursor: pointer;
    transition: color 0.15s ease;
}

.gtps-th-sort:hover {
    color: #a1a1aa;
}

.gtps-shop-table tbody tr {
    background: #111114;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.gtps-shop-table tbody tr:nth-child(even) {
    background: #191919;
}

.gtps-shop-table tbody tr:hover {
    background: #111114;
}

.gtps-shop-table td {
    padding: 12px 18px;
    color: #e2e8f0;
    vertical-align: middle;
}

.shop-td-id {
    font-family: 'Consolas', monospace;
    font-weight: 700;
    color: #93c5fd;
    font-size: 0.86rem;
}

.shop-td-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-item-badge-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #166534;
    border: 1px solid #4ade80;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.shop-item-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-item-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.shop-item-badge-dot.badge-cyan {
    background: #a1a1aa;
    box-shadow: none !important;
}

.shop-item-badge-dot.badge-red {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.shop-item-name-text {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.92rem;
}

.shop-td-price {
    font-weight: 800;
    font-family: 'Consolas', monospace;
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-gem-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: #ef4444;
    clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
    box-shadow: 0 0 4px #f87171;
}

.currency-token-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #eab308;
    color: #713f12;
    font-weight: 900;
    font-size: 10px;
    box-shadow: 0 0 4px #facc15;
}

.currency-rpc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 14px;
    border-radius: 3px;
    background: #dc2626;
    border: 1px solid #fca5a5;
    color: #fff;
    font-weight: 900;
    font-size: 8px;
    letter-spacing: -0.5px;
}

.shop-td-items {
    text-align: center;
    font-weight: 800;
    color: #d4d4d8;
    font-family: 'Consolas', monospace;
}

.shop-btn-action {
    background: #1d1d1d;
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 3px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 0 #131313;
    transition: all 0.15s ease;
    line-height: 1;
}

.shop-btn-action:hover {
    background: #111114;
    color: #ffffff;
    border: 1px solid #27272a !important;
    transform: translateY(-1px);
}

/* Footer Pagination & Create Button */
.gtps-shop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.gtps-shop-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gtps-shop-btn-page {
    background: #1c1c1c;
    border: 1px solid #27272a !important;
    box-shadow: 0 3px 0 #121212;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gtps-shop-btn-page.active {
    background: #d4d4d8;
    color: #1b1b1b;
    border: 1px solid #27272a !important;
    box-shadow: none !important;
}

.gtps-shop-btn-page:not(:disabled):hover {
    transform: translateY(-1px);
}

.gtps-shop-btn-page:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gtps-shop-page-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.gtps-shop-btn-create {
    background: #d4d4d8;
    border: 1px solid #27272a !important;
    box-shadow: none !important;
    color: #1b1b1b;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gtps-shop-btn-create:hover {
    background: #a5f3fc;
    transform: translateY(-2px);
    box-shadow: none !important;
}

/* ==========================================================================
   SHOP MODAL DIALOG (Screenshots 4 & 5 Replica)
   ========================================================================== */

.gtps-shop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gtps-shop-modal-dialog {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 2px #121212, 0 16px 40px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    width: 100%;
    max-width: 530px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gtps-shop-modal-header {
    background: #202020;
    border-bottom: 2px solid rgba(255, 255, 255, 0.175);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gtps-shop-modal-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.gtps-shop-modal-close {
    background: #111114;
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-size: 1rem;
    font-weight: 900;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gtps-shop-modal-close:hover {
    background: #ef4444;
    border-color: #f87171;
    color: #ffffff;
}

.gtps-shop-modal-scroll {
    padding: 18px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gtps-shop-modal-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.gtps-shop-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gtps-shop-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #d4d4d8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gtps-shop-input,
.gtps-shop-select,
.gtps-shop-textarea {
    background: #111114;
    border: 1.5px solid #a1a1aa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    border-radius: 7px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.gtps-shop-input:focus,
.gtps-shop-select:focus,
.gtps-shop-textarea:focus {
    border-color: #67e8f9;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.175);
}

.gtps-shop-textarea {
    resize: vertical;
    min-height: 60px;
}

.gtps-shop-check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d4d4d8;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.gtps-shop-check-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #a1a1aa;
    cursor: pointer;
}

/* Give items dynamic rewards list */
.gtps-shop-rewards-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gtps-shop-reward-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gtps-shop-reward-select {
    flex: 1;
    background: #111114;
    border: 1.5px solid #a1a1aa;
    border-radius: 7px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    outline: none;
}

.gtps-shop-reward-count {
    width: 60px;
    background: #111114;
    border: 1.5px solid #a1a1aa;
    border-radius: 7px;
    padding: 8px 8px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.gtps-shop-btn-rm-item {
    background: #991b1b;
    border: 1.5px solid #f87171;
    box-shadow: 0 3px 0 #450a0a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.gtps-shop-btn-rm-item:hover {
    background: #b91c1c;
}

.gtps-shop-btn-add-item {
    align-self: flex-start;
    background: #a1a1aa;
    border: 1px solid #27272a !important;
    box-shadow: none !important;
    color: #1b1b1b;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 4px;
}

.gtps-shop-btn-add-item:hover {
    background: #d4d4d8;
}

.gtps-shop-btn-resource {
    background: #d4d4d8;
    border: 1px solid #27272a !important;
    box-shadow: none !important;
    color: #1b1b1b;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.gtps-shop-tex-hint {
    font-size: 0.78rem;
    color: #2f2f2f;
    font-family: 'Consolas', monospace;
}

.gtps-shop-modal-actions {
    background: #111114;
    border-top: 1.5px solid rgba(255, 255, 255, 0.125);
    padding: 14px 22px;
    display: flex;
    align-items: center;
}

.gtps-shop-btn-update {
    background: #22c55e;
    border: 2px solid #86efac;
    box-shadow: 0 4px 0 #15803d;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 9px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gtps-shop-btn-update:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.gtps-shop-btn-cancel {
    background: #1c1c1c;
    border: 1.5px solid #2f2f2f;
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.gtps-shop-btn-del {
    background: #991b1b;
    border: 1.5px solid #f87171;
    box-shadow: 0 3px 0 #450a0a;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
}


/* ==========================================================================
   GTPS CLOUD RESOURCE MANAGER STYLES (Images 1, 2, 3, 4 Replica)
   ========================================================================== */

.gtps-res-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gtps-res-banner {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 1.5px #111114, 0 6px 18px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 16px 22px;
}

.gtps-res-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.gtps-res-banner-title svg {
    color: #d4d4d8;
}

.gtps-res-banner-sub {
    color: #d4d4d8;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Controls Bar */
.gtps-res-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gtps-res-search-box {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 1.5px #111114;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.gtps-res-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    flex: 1;
}

.gtps-res-search-box input::placeholder {
    color: #2f2f2f;
}

.gtps-res-type-select {
    background: #111114;
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.gtps-res-btn-upload {
    background: #d4d4d8;
    border: 1px solid #27272a !important;
    box-shadow: none !important;
    color: #1b1b1b;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gtps-res-btn-upload:hover {
    background: #a5f3fc;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.gtps-res-btn-rehash {
    background: #232323;
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gtps-res-btn-rehash:hover {
    background: #2d2d2d;
    color: #ffffff;
}

/* Resources Table Card */
.gtps-res-table-card {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 2px #111114, 0 8px 24px rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    overflow: hidden;
}

.gtps-res-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.gtps-res-table thead tr {
    background: #111114;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.gtps-res-table th {
    padding: 13px 18px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    user-select: none;
}

.gtps-res-table tbody tr {
    background: #111114;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.gtps-res-table tbody tr:nth-child(even) {
    background: #191919;
}

.gtps-res-table tbody tr:hover {
    background: #111114;
}

.gtps-res-table td {
    padding: 11px 18px;
    color: #e2e8f0;
    vertical-align: middle;
}

.res-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.res-type-game { background: rgba(255, 255, 255, 0.09); border: 1px solid #4ade80; color: #86efac; }
.res-type-interface { background: rgba(255, 255, 255, 0.09); border: 1px solid #27272a !important; color: #d4d4d8; }
.res-type-audio { background: rgba(234, 179, 8, 0.18); border: 1px solid #facc15; color: #fde047; }
.res-type-gamedata { background: rgba(168, 85, 247, 0.18); border: 1px solid #c084fc; color: #e9d5ff; }

.res-hash-text {
    font-family: 'Consolas', monospace;
    color: #67e8f9;
    font-weight: 700;
    font-size: 0.84rem;
}

.res-path-text {
    font-family: 'Consolas', monospace;
    color: #e2e8f0;
    font-size: 0.86rem;
    word-break: break-all;
}

.res-btn-copy {
    background: #1d1d1d;
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.res-btn-copy:hover {
    background: #111114;
    color: #ffffff;
}

/* ==========================================================================
   UPLOAD RESOURCE MODAL (Screenshots 3 & 4 Replica)
   ========================================================================== */

.upload-res-dialog {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 2px #121212, 0 16px 40px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-res-header {
    background: #202020;
    border-bottom: 2px solid rgba(255, 255, 255, 0.175);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-res-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.upload-res-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-res-desc {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 600;
}

.upload-res-select,
.upload-res-file-input {
    background: #111114;
    border: 1.5px solid #a1a1aa;
    border-radius: 7px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.upload-res-actions {
    background: #111114;
    border-top: 1.5px solid rgba(255, 255, 255, 0.125);
    padding: 14px 22px;
    display: flex;
    justify-content: flex-end;
}

.upload-res-btn-submit {
    background: #2f2f2f;
    border: 2px solid #94a3b8;
    box-shadow: 0 4px 0 #1f1f1f;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 9px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.upload-res-btn-submit.ready {
    background: #22c55e;
    border-color: #86efac;
    box-shadow: 0 4px 0 #15803d;
}

.upload-res-btn-submit:not(:disabled):hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   RESOURCE PICKER MODAL (For Select Resource Button)
   ========================================================================== */

.picker-res-dialog {
    background: #111114;
    border: 1px solid #27272a !important;
    box-shadow: inset 0 0 0 2px #121212, 0 16px 40px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.picker-res-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.picker-res-item {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 6px;
    padding: 9px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.picker-res-item:hover {
    background: #111114;
    border: 1px solid #27272a !important;
    transform: translateX(3px);
}


/* Power Button States */
.gtps-cloud-badge-offline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #f87171;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid #ef4444;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.gtps-cloud-square-btn.power-off {
    background: #2a1215 !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.45) !important;
}

.gtps-cloud-square-btn.power-off svg {
    color: #f87171 !important;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

.gtps-shop-tex-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #27272a !important;
    color: #d4d4d8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* ==========================================================================
   ROLE MANAGER & MULTI-SELECT DROPDOWNS (Screenshots 1, 2, 3, 4 Replica)
   ========================================================================== */
.gtps-multiselect-container {
    position: relative;
    width: 100%;
}
.gtps-multiselect-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.gtps-multiselect-trigger:hover,
.gtps-multiselect-trigger:focus {
    border: 1px solid #27272a !important;
    background: #171717;
    outline: none;
}
.gtps-multiselect-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 250px;
    background: #0b1120;
    border: 1px solid #27272a !important;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}
.gtps-multiselect-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #171717;
}
.gtps-multiselect-search {
    flex: 1;
    background: #171717;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    color: #fff;
    font-size: 0.78rem;
    padding: 4px 8px;
}
.gtps-mini-btn {
    background: #171717;
    border: 1px solid #1f1f1f;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.gtps-mini-btn:hover {
    background: #a1a1aa;
    color: #1b1b1b;
}
.gtps-multiselect-list {
    overflow-y: auto;
    max-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gtps-multiselect-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #e2e8f0;
    transition: background 0.15s ease;
    user-select: none;
}
.gtps-multiselect-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.gtps-multiselect-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: #a1a1aa;
    width: 15px;
    height: 15px;
}
.gtps-role-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.075);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.gtps-flag-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-right: 4px;
    margin-bottom: 2px;
}


/* ========================================================================= */
/*              EVENTS MANAGER & UNIFIED CHART COMPONENT STYLES             */
/* ========================================================================= */

.btn-sidebar-fun-events:hover {
    background: #15803d !important;
    border-color: #86efac !important;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.225) !important;
    transform: translateY(-1px) !important;
}

.btn-time-pill {
    background: transparent;
    border: none;
    color: #9bdced;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-time-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-time-pill.active {
    background: #a1a1aa !important;
    color: #09090b !important;
    font-weight: 800 !important;
}

.btn-event-filter {
    background: #171717;
    border: 1.5px solid rgba(255, 255, 255, 0.125);
    color: #9bdced;
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-event-filter:hover {
    border: 1px solid #27272a !important;
    color: #ffffff;
}

.btn-event-filter.active {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #27272a !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.event-card {
    background: #111114;
    border: 2px solid #87b8cc;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    position: relative;
}

.event-card:hover {
    border: 1px solid #27272a !important;
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.event-card.event-active {
    border-color: #4ade80 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15) !important;
    background: linear-gradient(180deg, #111114 0%, #111114 100%) !important;
}

.event-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.event-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date-desc {
    font-size: 0.8rem;
    color: #d4d4d8;
    font-weight: 600;
    margin-top: 3px;
}

.event-world-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    letter-spacing: 0.5px;
    display: inline-block;
}

.event-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.event-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.event-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.event-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #141414;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: .25s;
    border-radius: 24px;
}

.event-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2.5px;
    background-color: #9bdced;
    transition: .25s;
    border-radius: 50%;
}

.event-switch input:checked + .event-slider {
    background-color: #16a34a;
    border-color: #4ade80;
}

.event-switch input:checked + .event-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.event-dots-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 900;
    transition: all 0.15s ease;
}

.event-dots-btn:hover {
    background: #111114;
    border: 1px solid #27272a !important;
}

.event-menu-dropdown {
    position: absolute;
    right: 20px;
    bottom: 56px;
    background: #0c0c0e;
    border: 1px solid #27272a !important;
    border-radius: 8px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 50;
    min-width: 170px;
}

.event-menu-item {
    background: transparent;
    border: none;
    color: #d1ecf6;
    padding: 7px 12px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.event-menu-item:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}


/* =====================================================================
   PURE BLACK & DARK CHARCOAL UNIFORM THEME (COMPLETE REDESIGN)
   ===================================================================== */
html, body {
    background-color: #09090b !important;
    color: #ffffff !important;
}

#gtpsApp {
    background: #09090b !important;
}

#gtpsSidebar {
    background: #0c0c0e !important;
    border-right: 1px solid #1c1c20 !important;
    box-shadow: none !important;
}

.sidebar-brand-card {
    background: #0c0c0e !important;
    border-bottom: 1px solid #1c1c20 !important;
}

#gtpsTopNav, .topnav {
    background: #0c0c0e !important;
    border-bottom: 1px solid #1c1c20 !important;
    box-shadow: none !important;
}

#gtpsContentArea, #gtpsMainWrapper, .main-content {
    background: #09090b !important;
}

/* Sidebar menu items */
.menu-item {
    color: #a1a1aa !important;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}
.menu-item:hover {
    color: #ffffff !important;
    background: #16161a !important;
}
.menu-item.active {
    color: #ffffff !important;
    background: #1c1c22 !important;
    font-weight: 700 !important;
}
.group-title {
    color: #71717a !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
}

/* ALL BOXES, CONTAINERS & CARDS IN PITCH BLACK */
.gtps-cloud-card, 
.card, 
.studio-card, 
.world-table-card, 
.role-card, 
.gtps-shop-table-card, 
.gtps-shop-banner,
.gtps-res-banner,
.gtps-res-table-card, 
.gtps-telemetry-box, 
.gtps-cloud-big-chart-card, 
.player-card, 
.player-database-container,
.metric-card, 
.events-config-card,
.table-container-card,
.gtps-card-box {
    background: #111114 !important;
    border: 1px solid #222226 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

/* MODALS & DIALOGS */
.gtps-shop-modal-dialog,
.upload-res-dialog,
.inventory-dialog,
#itemEffectModal > div,
#machineEditModal > div,
#machineModal > div,
#playerRoleModal > div,
#playerPasswordModal > div,
#playerBanModal > div,
#playerDeleteModal > div,
#invDeleteSlotModal > div,
#uploadResourceModalOverlay > div,
#shopActionModal > div,
#effectActionModal > div,
#playerChangeRoleModal > div {
    background: #111114 !important;
    border: 1px solid #27272a !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
}

/* SEARCH INPUTS - NO CYAN OUTLINE & 44PX LEFT PADDING TO PREVENT OVERLAP */
.gtps-wide-search-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}
.gtps-wide-search,
#effectSearchInput,
#machineSearchInput,
#shopSearchInput,
#shopDbSearchInput,
#playerSearchInput,
#worldSearchInput,
#resTableSearchInput,
#roleTableSearchInput {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #141418 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 11px 18px 11px 44px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease !important;
}
.gtps-wide-search:focus,
#effectSearchInput:focus,
#machineSearchInput:focus,
#shopSearchInput:focus,
#shopDbSearchInput:focus,
#playerSearchInput:focus,
#worldSearchInput:focus,
#resTableSearchInput:focus,
#roleTableSearchInput:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #3f3f46 !important;
    outline: none !important;
    box-shadow: none !important;
}
.gtps-wide-search::placeholder,
input::placeholder,
textarea::placeholder {
    color: #71717a !important;
    opacity: 1 !important;
}

/* GENERAL INPUT STYLING */
input[type="text"],
input[type="number"],
input[type="password"],
select {
    background: #141418 !important;
    border: 1px solid #27272a !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    outline: none !important;
}

/* TABLES (AUTHENTIC BLACK ROWS) */
.gtps-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    border-radius: 10px !important;
}
.gtps-uniform-table {
    width: 100% !important;
    border-collapse: collapse !important;
}
.gtps-uniform-table th,
.th-player-sort,
table thead th {
    background: #141418 !important;
    border-bottom: 1px solid #222226 !important;
    color: #a1a1aa !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 20px !important;
    user-select: none !important;
}
.gtps-uniform-table td,
table tbody td {
    padding: 14px 20px !important;
    font-size: 0.88rem !important;
    color: #ffffff !important;
    border-bottom: 1px solid #1c1c20 !important;
}
.gtps-uniform-table tbody tr:hover,
table tbody tr:hover {
    background: #18181d !important;
}

/* ACTION BUTTON [...] */
.btn-dot-action {
    background: #18181c !important;
    border: 1px solid #27272a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    width: 36px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}
.btn-dot-action:hover {
    background: #27272a !important;
    border-color: #3f3f46 !important;
}

/* PAGINATION CONTROLS */
.btn-pagination-gtps {
    background: #18181c !important;
    border: 1px solid #27272a !important;
    color: #71717a !important;
    padding: 7px 18px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.btn-pagination-gtps:hover:not(:disabled) {
    background: #27272a !important;
    color: #ffffff !important;
    border-color: #3f3f46 !important;
}
.btn-pagination-gtps.active {
    background: #1c1c22 !important;
    color: #ffffff !important;
    border-color: #27272a !important;
    font-weight: 700 !important;
}
.btn-pagination-gtps:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* CREATE BUTTONS IN DARK THEME */
.btn-create-shop,
.btn-create-effect {
    background: #18181c !important;
    border: 1px solid #27272a !important;
    color: #ffffff !important;
    padding: 9px 22px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.btn-create-shop:hover,
.btn-create-effect:hover {
    background: #27272a !important;
    border-color: #3f3f46 !important;
}

/* 10-COLUMN INVENTORY MODAL (AUTHENTIC BLACK SLOTS) */
#playerInventoryModal > div {
    background: #000000 !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95) !important;
}
#invGridContainer {
    background: #000000 !important;
}
.gtps-10col-slot {
    aspect-ratio: 1 / 1 !important;
    background: #000000 !important;
    border-radius: 6px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
.gtps-10col-slot:hover {
    transform: scale(1.05) !important;
    z-index: 10 !important;
}

/* ACTION DROPDOWN POPOVER MENU */
#playerActionDropdownMenu {
    background: #121215 !important;
    border: 1px solid #27272a !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85) !important;
}
.player-pop-action-btn:hover {
    background: #1e1e24 !important;
}

/* MOBILE RESPONSIVE ADAPTATIONS */
@media (max-width: 768px) {
    #gtpsApp {
        position: relative !important;
        overflow-x: hidden !important;
    }
    #gtpsSidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: -280px !important;
        width: 260px !important;
        min-width: 260px !important;
        height: 100vh !important;
        z-index: 999999 !important;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: #0c0c0e !important;
    }
    #gtpsSidebar.mobile-open {
        left: 0 !important;
        box-shadow: 6px 0 28px rgba(0, 0, 0, 0.85) !important;
    }
    #gtpsMainWrapper, .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 12px 10px !important;
    }
    .topnav {
        padding: 10px 14px !important;
    }
    .topnav-title span {
        font-size: 0.95rem !important;
    }
    .gtps-cloud-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .gtps-cloud-card,
    .card,
    .studio-card,
    .role-card,
    .world-table-card,
    .gtps-shop-table-card {
        padding: 14px 16px !important;
    }
    .gtps-shop-table,
    .players-table,
    .items-table,
    #machineTable,
    #itemEffectsTable {
        font-size: 0.78rem !important;
    }
    th, td {
        padding: 8px 10px !important;
    }
    .gtps-shop-modal-dialog,
    #itemEffectModal > div,
    #machineModal > div {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px auto !important;
        padding: 14px !important;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}
::-webkit-scrollbar-track {
    background: #0c0c0e !important;
}
::-webkit-scrollbar-thumb {
    background: #27272a !important;
    border-radius: 4px !important;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46 !important;
}


/* ULTRA-RESPONSIVE MOBILE VIEW (SMARTPHONE 320px - 640px) */
@media (max-width: 640px) {
    .gtps-table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    .gtps-uniform-table {
        min-width: 100% !important;
        width: 100% !important;
    }
    .gtps-uniform-table th,
    .gtps-uniform-table td {
        padding: 9px 8px !important;
    }
    .btn-dots-item,
    .btn-dots-res,
    .btn-dots-role {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 1.15rem !important;
        letter-spacing: 2px !important;
        padding: 4px 6px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        width: auto !important;
        height: auto !important;
    }
    .gtps-cloud-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .gtps-cloud-card {
        padding: 14px 16px !important;
    }
}


/* ============================================================================
   GROW HOST UNIFIED BARE 3-DOT ACTION BUTTONS (ZERO BOXES / BORDERS)
   ============================================================================ */
.btn-dot-action,
.btn-player-dots,
.btn-shop-dots,
.btn-machine-action,
.btn-dots-item,
.btn-dots-res,
.btn-dots-role,
.event-dots-btn,
.shop-btn-action,
.btn-blast-dots,
.btn-world-dots,
.btn-impworld-dots,
.btn-guild-dots,
.gh-dots-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: auto !important;
    min-width: 28px !important;
    height: auto !important;
    min-height: 24px !important;
    padding: 4px 10px !important;
    border-radius: 0 !important;
    color: #d4d4d8 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: color 0.15s ease, transform 0.12s ease !important;
}
.btn-dot-action:hover,
.btn-player-dots:hover,
.btn-shop-dots:hover,
.btn-machine-action:hover,
.btn-dots-item:hover,
.btn-dots-res:hover,
.btn-dots-role:hover,
.event-dots-btn:hover,
.shop-btn-action:hover,
.btn-blast-dots:hover,
.btn-world-dots:hover,
.btn-impworld-dots:hover,
.btn-guild-dots:hover,
.gh-dots-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
}

.gh-action-popover {
    display: none;
    position: fixed;
    z-index: 100050;
    background: #141417;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 6px;
    min-width: 185px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.88);
}
.gh-action-popover-item {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: #f4f4f5;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    display: block;
    transition: background 0.14s ease, color 0.14s ease;
}
.gh-action-popover-item:hover {
    background: #232329;
    color: #ffffff;
}
.gh-action-popover-item.danger {
    color: #f4f4f5;
}
.gh-action-popover-item.danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.gh-info-banner {
    background: #0f0f12;
    border: 1px solid #26262a;
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.gh-info-banner-icon {
    color: #eab308;
    flex-shrink: 0;
    margin-top: 2px;
}
.gh-info-banner-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}
.gh-info-banner-desc {
    font-size: 0.82rem;
    color: #a1a1aa;
    line-height: 1.45;
}
.gh-btn-outline {
    background: #141417;
    border: 1px solid #2e2e34;
    color: #f4f4f5;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.gh-btn-outline:hover {
    background: #1f1f24;
    border-color: #3f3f46;
}
.gh-btn-white {
    background: #f4f4f5;
    border: 1px solid #ffffff;
    color: #09090b;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}
.gh-btn-white:hover {
    background: #ffffff;
}
.gh-modal-field-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #f4f4f5;
    margin-bottom: 6px;
}
.gh-modal-input {
    width: 100%;
    box-sizing: border-box;
    background: #141417;
    border: 1px solid #2e2e34;
    border-radius: 8px;
    color: #ffffff;
    padding: 10px 13px;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.15s ease;
}
.gh-modal-input:focus {
    border-color: #71717a;
}
.gh-modal-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.gh-modal-help {
    font-size: 0.77rem;
    color: #71717a;
    margin-top: 6px;
    line-height: 1.4;
}
.gh-modal-check-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #141417;
    border: 1px solid #2e2e34;
    border-radius: 8px;
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease;
}
.gh-modal-check-row:hover {
    border-color: #3f3f46;
}
.gh-modal-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f4f4f5;
    cursor: pointer;
    margin: 0;
}
.gh-modal-check-row span {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f4f4f5;
}

/* =========================================================================
   GROW HOST — MINIMAL ADDONS & APK BUILDER UI
   ========================================================================= */
.gh-addons-minimal-wrap {
    max-width: 460px;
    margin: 8px 0;
}
.gh-apk-minimal-card {
    background: linear-gradient(180deg, #18181d 0%, #131317 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
}
.gh-apk-min-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.gh-apk-min-title {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.02em;
}
.gh-apk-min-icon-preview {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #1f1f26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.gh-apk-min-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gh-apk-min-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.5;
}
.gh-apk-min-list {
    background: #101014;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gh-apk-min-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #e4e4e7;
}
.gh-apk-min-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}
.gh-apk-min-status {
    display: none;
    background: #101014;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 0.79rem;
    color: #d4d4d8;
    flex-direction: column;
    gap: 7px;
}
.gh-apk-min-status.show {
    display: flex;
}
.gh-apk-min-bar {
    width: 100%;
    height: 5px;
    border-radius: 99px;
    background: #1f1f27;
    overflow: hidden;
}
.gh-apk-min-bar-fill {
    height: 100%;
    width: 0%;
    background: #fafafa;
    transition: width 0.3s ease;
}
.gh-apk-min-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.gh-apk-min-btn {
    width: 100%;
    height: 42px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}
.gh-apk-min-btn.primary {
    background: #f4f4f5;
    color: #111113;
    border: 1px solid #ffffff;
}
.gh-apk-min-btn.primary:hover {
    background: #ffffff;
}
.gh-apk-min-btn.secondary {
    background: #1d1d23;
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.13);
}
.gh-apk-min-btn.secondary:hover:not(:disabled) {
    background: #26262e;
    border-color: rgba(255, 255, 255, 0.22);
}
.gh-apk-min-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

/* Minimal Create APK Modal */
#apkBuilderModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(7, 7, 10, 0.8);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#apkBuilderModal.open {
    display: flex;
}
.gh-apk-modal-card {
    width: 100%;
    max-width: 420px;
    background: #16161b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7);
}
.gh-apk-modal-head {
    padding: 18px 20px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.gh-apk-modal-body {
    padding: 6px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gh-apk-file-box {
    background: #111115;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.gh-apk-file-box:hover {
    border-color: rgba(255, 255, 255, 0.25);
}
.gh-apk-modal-foot {
    padding: 12px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* =========================================================================
   GROW HOST — GCASH PAYMENT GATEWAY & LOCKED ADDONS
   ========================================================================= */
.gh-apk-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 99px;
}
.gh-apk-unlocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #22c55e;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 99px;
}
.gh-apk-price-box {
    background: #101015;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.gh-apk-price-val {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #007dfe;
    letter-spacing: -0.02em;
}
.gh-apk-price-sub {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 2px;
}
.gh-gcash-btn {
    background: linear-gradient(135deg, #007dfe 0%, #005ec4 100%) !important;
    color: #ffffff !important;
    border: 1px solid #389bff !important;
    box-shadow: 0 4px 16px rgba(0, 125, 254, 0.35);
    font-weight: 800 !important;
}
.gh-gcash-btn:hover {
    background: linear-gradient(135deg, #1a8eff 0%, #006ce0 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 125, 254, 0.5);
}
.gh-admin-addon-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    background: #14141a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
}
.gh-copy-pill {
    background: #1c1c24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gh-copy-pill:hover {
    background: #272733;
    color: #ffffff;
    border-color: #007dfe;
}

/* GCash Modals */
.gh-gcash-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gh-gcash-modal.open {
    display: flex;
}
.gh-gcash-modal-card {
    width: 100%;
    max-width: 480px;
    background: #15151b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.gh-gcash-modal-head {
    background: linear-gradient(135deg, #007dfe 0%, #004ea8 100%);
    padding: 18px 22px;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.gh-gcash-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gh-gcash-acc-box {
    background: #0e0e13;
    border: 1px solid rgba(0, 125, 254, 0.28);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gh-gcash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gh-gcash-step-list {
    background: #0f0f14;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.79rem;
    color: #a1a1aa;
    line-height: 1.45;
}
.gh-gcash-step-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.gh-gcash-step-num {
    background: #007dfe;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.68rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.gh-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.gh-orders-table th {
    text-align: left;
    padding: 8px 10px;
    color: #a1a1aa;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.gh-orders-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    vertical-align: middle;
}


/* ============================================================== */
/* GROW HOST MOBILE OPTIMIZATIONS (100% PARITY WITH PC)          */
/* ============================================================== */
#gtpsBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
#gtpsBackdrop.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (max-width: 1024px) {
    .btn-sidebar-close-mobile {
        display: flex !important;
    }
    #gtpsSidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: -300px !important;
        width: 280px !important;
        min-width: 280px !important;
        height: 100vh !important;
        z-index: 999999 !important;
        transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        background: #111114 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
    }
    #gtpsSidebar.mobile-open {
        left: 0 !important;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.9) !important;
    }
    #gtpsMainWrapper, .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 12px 10px !important;
    }
    #btnToggleSidebar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: #17171b !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
    }
}

/* SLEEK MOBILE BOTTOM NAVIGATION BAR */
.gh-mobile-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .gh-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        background: rgba(17, 17, 20, 0.95) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        z-index: 99990 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 4px !important;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.6) !important;
    }
    .gh-mobile-bottom-nav-item {
        background: transparent !important;
        border: none !important;
        color: #8e8e93 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        font-size: 0.64rem !important;
        font-weight: 700 !important;
        padding: 6px 4px !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        flex: 1 !important;
        max-width: 68px !important;
        user-select: none !important;
    }
    .gh-mobile-bottom-nav-item.active,
    .gh-mobile-bottom-nav-item:active {
        color: #ffffff !important;
    }
    .gh-mobile-bottom-nav-item.active svg {
        stroke: #ffffff !important;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) !important;
    }
    #gtpsMainWrapper, .main-content {
        padding-bottom: 78px !important;
    }

    /* Full-width responsive tables with smooth finger scrolling */
    .table-container,
    .gtps-table-responsive,
    .gtps-uniform-table-wrap,
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        border-radius: 10px !important;
    }

    /* Modal responsiveness */
    .modal-content,
    .gh-modal-dialog,
    .custom-modal-content,
    .gtps-shop-modal-dialog,
    #itemEffectModal > div,
    #machineModal > div,
    #roleModal > div,
    #createRoleModal > div,
    #apkCreateModal > div,
    #aiItemMakerModal > div {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 10px auto !important;
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }

    /* Form inputs prevent zoom on iOS */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Button touch targets */
    .btn, button, input[type="button"], input[type="submit"] {
        touch-action: manipulation;
    }
}


/* ========================================================================== */
/* 6.1" SMARTPHONE (360px - 430px / 5.7" - 6.5") ULTRA MOBILE RESPONSIVENESS  */
/* ========================================================================== */
@media (max-width: 640px) {
    /* 1. Global Tab Pane Layout & Spacing */
    .tab-pane {
        padding: 12px 10px 88px 10px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    #gtpsMainWrapper, .main-content {
        padding: 8px 8px 88px 8px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 2. Top Navigation Bar */
    #gtpsTopNav, .topnav {
        padding: 8px 10px !important;
        height: auto !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .topnav-title span {
        font-size: 0.88rem !important;
        max-width: 160px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 3. LUA SCRIPTING MANAGER (360px - 430px Responsive) */
    .lua-top-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding-bottom: 12px !important;
    }
    .lua-top-header > div:last-child {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    .lua-top-title {
        font-size: 1.15rem !important;
    }
    #luaHeaderStatusBadge {
        font-size: 0.68rem !important;
        padding: 3px 8px !important;
    }
    .lua-info-box {
        padding: 10px 12px !important;
        font-size: 0.78rem !important;
        gap: 8px !important;
    }
    .lua-search-input {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
    }
    .lua-table-card {
        border-radius: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .lua-table {
        min-width: 340px !important;
    }
    .lua-table thead th {
        padding: 8px 10px !important;
        font-size: 0.74rem !important;
    }
    .lua-table tbody td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }
    .lua-footer-bar {
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 12px !important;
    }
    .lua-footer-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .lua-footer-row .lua-btn-group {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .lua-btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .lua-btn {
        flex: 1 1 auto !important;
        text-align: center !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
        min-height: 38px !important;
    }

    /* 4. LUA VS CODE EDITOR MODAL (6.1" Phone Full Experience) */
    #luaEditorModalBox {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    #luaEditorModalBox > div:first-child {
        flex-wrap: wrap !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        height: auto !important;
        min-height: 48px !important;
    }
    #luaEditorModalTitle {
        display: none !important;
    }
    #luaEditorNameInput {
        max-width: 140px !important;
        font-size: 0.78rem !important;
        padding: 4px 6px !important;
    }
    #luaEditorTemplateSelect {
        max-width: 100px !important;
        font-size: 0.72rem !important;
        padding: 4px 6px !important;
    }
    #vscodeFindInput {
        max-width: 100px !important;
        font-size: 0.72rem !important;
    }
    #luaLineNumbersGutter {
        width: 32px !important;
        min-width: 32px !important;
        padding: 10px 4px 10px 0 !important;
        font-size: 0.72rem !important;
    }
    #luaEditorCodeArea {
        font-size: 0.8rem !important;
        padding: 10px 8px !important;
        line-height: 1.45 !important;
        min-height: calc(100vh - 160px) !important;
    }
    #luaEditorModalBox > div:last-child {
        flex-wrap: wrap !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        height: auto !important;
    }
    #luaEditorStats {
        display: none !important;
    }
    #luaCursorPos {
        font-size: 0.7rem !important;
    }

    /* 5. Item Manager, Role Manager & Effects Tables */
    .gtps-uniform-table th,
    .gtps-uniform-table td {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
    }
    .gtps-uniform-table-wrap,
    .table-responsive,
    .gtps-table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .btn-dots-item,
    .btn-dots-res,
    .btn-dots-role,
    .lua-action-dots {
        min-width: 36px !important;
        min-height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 6. Console & Logs (tabServer) */
    #consoleLogBox, #terminalPre, .console-box, pre {
        font-size: 0.72rem !important;
        padding: 8px 10px !important;
        max-height: 48vh !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 7. Metric Cards (tabHome) */
    .metrics-grid, .overview-grid, .gtps-cloud-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .metric-card, .gtps-cloud-card {
        padding: 12px 14px !important;
    }

    /* 8. Addons (APK Builder & AI Item Maker) */
    .addons-grid, .apk-builder-wrap {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* 9. Bottom Navigation Bar Calibration for 360px */
    .gh-mobile-bottom-nav {
        height: 56px !important;
        padding: 0 2px !important;
    }
    .gh-mobile-bottom-nav-item {
        font-size: 0.6rem !important;
        padding: 4px 2px !important;
        gap: 2px !important;
        max-width: 58px !important;
    }
    .gh-mobile-bottom-nav-item svg {
        width: 18px !important;
        height: 18px !important;
    }
}


/* ==========================================================================
   OBSIDIAN BLACK EDIT INVENTORY MODAL (Pixel-Matched Two-Column Structure)
   ========================================================================== */
#playerInventoryModal.gt-edit-inv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100120;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

#playerInventoryModal .gt-edit-inv-window {
    position: relative;
    width: 100%;
    max-width: 1120px;
    max-height: 92vh;
    max-height: 92dvh;
    background: linear-gradient(180deg, #16161a 0%, #101013 100%) !important;
    border: 1.5px solid #2e2e36 !important;
    border-radius: 12px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: visible;
    animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#playerInventoryModal .gt-edit-inv-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #27272f 0%, #1b1b21 100%) !important;
    border: 1.5px solid #3f3f46 !important;
    border-radius: 8px !important;
    color: #e4e4e7 !important;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

#playerInventoryModal .gt-edit-inv-close:hover {
    background: #2f2f39 !important;
    border-color: #71717a !important;
    color: #ffffff !important;
    transform: scale(1.04);
}

#playerInventoryModal .gt-edit-inv-header {
    padding: 18px 26px 14px;
    border-bottom: 1px solid #23232a;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

#playerInventoryModal .gt-edit-inv-title-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

#playerInventoryModal .gt-edit-inv-title-row svg {
    width: 22px;
    height: 22px;
    color: #fafafa;
    flex-shrink: 0;
}

#playerInventoryModal .gt-edit-inv-title {
    margin: 0;
    font-size: 1.52rem;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

#playerInventoryModal .gt-edit-inv-sub {
    padding-left: 33px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.2;
}

#playerInventoryModal .gt-edit-inv-sub-name {
    color: #e4e4e7;
    font-weight: 700;
}

#playerInventoryModal .gt-edit-inv-sub-id {
    color: #71717a;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* Main two-column split */
#playerInventoryModal .gt-edit-inv-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 22px;
    padding: 18px 26px 14px;
    align-items: start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

/* Left pure obsidian backpack container with subtle zinc corner brackets */
#playerInventoryModal .gt-edit-inv-bag {
    position: relative;
    background: #09090b !important;
    border: 1.5px solid #24242b !important;
    border-radius: 8px;
    padding: 14px 18px 12px;
    box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.72);
    min-width: 0;
}

#playerInventoryModal .gt-bag-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    border-color: #71717a;
    border-style: solid;
    border-width: 0;
}
#playerInventoryModal .gt-bag-corner.tl { top: 4px; left: 4px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 2px; }
#playerInventoryModal .gt-bag-corner.tr { top: 4px; right: 4px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 2px; }
#playerInventoryModal .gt-bag-corner.bl { bottom: 4px; left: 4px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 2px; }
#playerInventoryModal .gt-bag-corner.br { bottom: 4px; right: 4px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 2px; }

#playerInventoryModal .gt-edit-inv-bag-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding: 0 2px;
}

#playerInventoryModal .gt-edit-inv-bag-label {
    font-size: 0.94rem;
    font-weight: 800;
    color: #f4f4f5;
    letter-spacing: 0.01em;
}

#playerInventoryModal .gt-edit-inv-gems {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.94rem;
    font-weight: 800;
    color: #f7d065;
    font-family: 'JetBrains Mono', monospace;
}

/* 15-Column Scrollable Grid */
#playerInventoryModal .gt-edit-inv-grid {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 5px;
    max-height: 392px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5px 4px 5px 2px;
    scrollbar-width: thin;
    scrollbar-color: #32323c #09090b;
}

#playerInventoryModal .gt-edit-inv-grid::-webkit-scrollbar {
    width: 6px;
}
#playerInventoryModal .gt-edit-inv-grid::-webkit-scrollbar-track {
    background: #09090b;
    border-radius: 4px;
}
#playerInventoryModal .gt-edit-inv-grid::-webkit-scrollbar-thumb {
    background: #32323c;
    border-radius: 4px;
}

#playerInventoryModal .gt-inv-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #121216;
    border: 2px solid var(--slot-border, #2e2e36);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    touch-action: manipulation;
    transition: transform 0.07s ease, border-color 0.1s ease, box-shadow 0.1s ease;
}

#playerInventoryModal .gt-inv-slot.empty-slot {
    background: #0d0d10;
    border-color: #202027;
}

#playerInventoryModal .gt-inv-slot:hover {
    filter: brightness(1.16);
    transform: translateY(-1px);
    z-index: 2;
}

#playerInventoryModal .gt-inv-slot.empty-slot:hover::before {
    content: "+";
    font-size: 14px;
    font-weight: 800;
    color: #a1a1aa;
    opacity: 0.9;
}

#playerInventoryModal .gt-inv-slot.selected {
    border-color: #facc15 !important;
    box-shadow: 0 0 0 2px #facc15, 0 0 12px rgba(250, 204, 21, 0.48) !important;
    z-index: 4;
}

#playerInventoryModal .gt-inv-slot.dirty::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 5px #4ade80;
    pointer-events: none;
}

#playerInventoryModal .gt-inv-slot img {
    width: 82%;
    height: 82%;
    image-rendering: pixelated;
    object-fit: contain;
    pointer-events: none;
}

#playerInventoryModal .gt-inv-qty {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 10px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-family: 'Inter', system-ui, sans-serif;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 1px 2px #000;
    pointer-events: none;
}

#playerInventoryModal .gt-edit-inv-bag-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 2px 2px 0;
    font-size: 0.78rem;
    color: #a1a1aa;
    font-weight: 600;
}

/* Right Inspector Column */
#playerInventoryModal .gt-edit-inv-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 2px;
    min-width: 0;
}

#playerInventoryModal .gt-inv-side-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

#playerInventoryModal .gt-inv-side-thumb {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #09090b;
    border: 2px solid #52525b;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

#playerInventoryModal .gt-inv-side-thumb img {
    width: 34px;
    height: 34px;
    image-rendering: pixelated;
    object-fit: contain;
}

#playerInventoryModal .gt-inv-side-thumb-qty {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 10px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

#playerInventoryModal .gt-inv-side-meta {
    min-width: 0;
    flex: 1;
}

#playerInventoryModal .gt-inv-side-name {
    font-size: 1.04rem;
    font-weight: 800;
    color: #fafafa;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#playerInventoryModal .gt-inv-side-id {
    font-size: 0.82rem;
    font-weight: 600;
    color: #71717a;
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

#playerInventoryModal .gt-inv-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

#playerInventoryModal .gt-inv-field-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #a1a1aa;
    text-transform: uppercase;
}

/* Custom CHANGE ITEM Dropdown Trigger */
#playerInventoryModal .gt-inv-picker-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #18181d !important;
    border: 1.5px solid #32323c !important;
    border-radius: 7px;
    padding: 8px 12px;
    color: #fafafa !important;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

#playerInventoryModal .gt-inv-picker-btn:hover {
    background: #202028 !important;
    border-color: #52525b !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

#playerInventoryModal .gt-inv-picker-mini {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: #09090b;
    border: 1.5px solid #52525b;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#playerInventoryModal .gt-inv-picker-mini img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    object-fit: contain;
}

#playerInventoryModal .gt-inv-picker-name {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#playerInventoryModal .gt-inv-picker-id {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a1a1aa;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Floating Searchable Item Picker Dropdown */
#playerInventoryModal .gt-inv-picker-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #0d0d10 !important;
    border: 1.5px solid #3f3f46 !important;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.92);
    overflow: hidden;
}

#playerInventoryModal .gt-inv-picker-menu.open {
    display: block;
}

#playerInventoryModal .gt-inv-picker-search-wrap {
    padding: 8px;
    border-bottom: 1px solid #23232a;
    background: #121216;
}

#playerInventoryModal .gt-inv-picker-search {
    width: 100%;
    box-sizing: border-box;
    background: #09090b !important;
    border: 1px solid #32323c !important;
    border-radius: 6px;
    padding: 8px 10px;
    color: #fafafa !important;
    font-size: 0.85rem !important;
    outline: none;
}

#playerInventoryModal .gt-inv-picker-search:focus {
    border-color: #71717a !important;
}

#playerInventoryModal .gt-inv-picker-search::placeholder {
    color: #71717a;
}

#playerInventoryModal .gt-inv-picker-list {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #32323c #0d0d10;
}

#playerInventoryModal .gt-inv-picker-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fafafa !important;
    cursor: pointer;
    text-align: left;
    font-size: 0.84rem;
}

#playerInventoryModal .gt-inv-picker-opt:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

#playerInventoryModal .gt-inv-picker-opt img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    object-fit: contain;
    flex-shrink: 0;
}

#playerInventoryModal .gt-inv-picker-opt-name {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#playerInventoryModal .gt-inv-picker-opt-id {
    color: #71717a;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Quantity Input */
#playerInventoryModal .gt-inv-qty-input {
    width: 100%;
    box-sizing: border-box;
    background: #0d0d10 !important;
    border: 1.5px solid #32323c !important;
    border-radius: 7px;
    padding: 9px 12px;
    color: #fafafa !important;
    font-size: 0.96rem !important;
    font-weight: 700;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

#playerInventoryModal .gt-inv-qty-input:focus {
    border-color: #71717a !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

#playerInventoryModal .gt-inv-qty-hint {
    font-size: 0.78rem;
    color: #71717a;
    margin-top: -2px;
}

/* Remove Item Red Button */
#playerInventoryModal .gt-inv-remove-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
    border: 1px solid #ef4444 !important;
    border-radius: 7px;
    padding: 10px 14px;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
    transition: filter 0.12s ease, transform 0.08s ease;
}

#playerInventoryModal .gt-inv-remove-btn:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#playerInventoryModal .gt-inv-remove-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: grayscale(0.45);
}

/* Changes Status Row */
#playerInventoryModal .gt-inv-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: #71717a;
    font-weight: 600;
    min-height: 20px;
}

#playerInventoryModal .gt-inv-status-row.has-changes {
    color: #fde047;
    font-weight: 700;
}

#playerInventoryModal .gt-inv-reset-link {
    background: none !important;
    border: none !important;
    color: #d4d4d8 !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* Bottom Footer Buttons */
#playerInventoryModal .gt-edit-inv-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 26px 16px;
    border-top: 1px solid #202027;
    flex-shrink: 0;
}

#playerInventoryModal .gt-inv-btn-cancel {
    background: #1e1e24 !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 7px;
    padding: 9px 22px;
    color: #e4e4e7 !important;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

#playerInventoryModal .gt-inv-btn-cancel:hover {
    background: #27272f !important;
    border-color: #52525b !important;
    color: #ffffff !important;
}

#playerInventoryModal .gt-inv-btn-save {
    background: #18181d !important;
    border: 1px solid #27272f !important;
    border-radius: 7px;
    padding: 9px 22px;
    color: #52525b !important;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: not-allowed;
    transition: all 0.14s ease;
}

#playerInventoryModal .gt-inv-btn-save.active {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #4ade80 !important;
    color: #ffffff !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.38);
}

#playerInventoryModal .gt-inv-btn-save.active:hover {
    filter: brightness(1.08);
}

/* Responsive Edit Inventory for Tablets & Small Mobile Phones (360px - 430px) */
@media (max-width: 960px) {
    #playerInventoryModal .gt-edit-inv-body {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 16px;
    }
    #playerInventoryModal .gt-edit-inv-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        max-height: 260px;
    }
    #playerInventoryModal .gt-edit-inv-header,
    #playerInventoryModal .gt-edit-inv-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    #playerInventoryModal.gt-edit-inv-overlay {
        padding: 8px !important;
        align-items: center !important;
    }
    #playerInventoryModal .gt-edit-inv-window {
        max-height: 94dvh !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    #playerInventoryModal .gt-edit-inv-close {
        top: 10px !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
    }
    #playerInventoryModal .gt-edit-inv-header {
        padding: 12px 50px 10px 14px !important;
    }
    #playerInventoryModal .gt-edit-inv-title {
        font-size: 1.14rem !important;
    }
    #playerInventoryModal .gt-edit-inv-sub {
        padding-left: 31px !important;
        font-size: 0.78rem !important;
    }
    #playerInventoryModal .gt-edit-inv-body {
        padding: 10px 12px 12px !important;
        gap: 12px !important;
    }
    #playerInventoryModal .gt-edit-inv-bag {
        padding: 10px 10px 9px !important;
    }
    #playerInventoryModal .gt-edit-inv-bag-head {
        margin-bottom: 8px !important;
    }
    #playerInventoryModal .gt-edit-inv-bag-label,
    #playerInventoryModal .gt-edit-inv-gems {
        font-size: 0.84rem !important;
    }
    #playerInventoryModal .gt-edit-inv-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        gap: 4px !important;
        max-height: 225px !important;
    }
    #playerInventoryModal .gt-edit-inv-bag-foot {
        font-size: 0.72rem !important;
        margin-top: 8px !important;
    }
    #playerInventoryModal .gt-edit-inv-side {
        gap: 11px !important;
    }
    #playerInventoryModal .gt-inv-side-thumb {
        width: 42px !important;
        height: 42px !important;
    }
    #playerInventoryModal .gt-inv-side-thumb img {
        width: 28px !important;
        height: 28px !important;
    }
    #playerInventoryModal .gt-inv-side-name {
        font-size: 0.94rem !important;
    }
    #playerInventoryModal .gt-inv-picker-list {
        max-height: 175px !important;
    }
    #playerInventoryModal .gt-edit-inv-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    #playerInventoryModal .gt-inv-btn-cancel,
    #playerInventoryModal .gt-inv-btn-save {
        flex: 1 1 0 !important;
        padding: 10px 12px !important;
        font-size: 0.86rem !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    #playerInventoryModal .gt-edit-inv-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        max-height: 215px !important;
        gap: 4px !important;
    }
    #playerInventoryModal .gt-inv-qty {
        font-size: 9px !important;
    }
    #playerInventoryModal .gt-inv-picker-btn {
        padding: 7px 10px !important;
    }
    #playerInventoryModal .gt-inv-picker-name {
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   FULL 17-TAB SMALL-SCREEN MOBILE FIT (360px - 430px / ALL SIDEBAR PAGES)
   ========================================================================== */
body.mobile-drawer-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

@media (max-width: 1024px) {
    html, body, #gtpsApp {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Slide-out Mobile Sidebar Drawer: pinned header + smooth full-height scroll */
    #gtpsSidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 274px !important;
        min-width: 274px !important;
        max-width: 84vw !important;
        overflow: hidden !important;
        z-index: 100060 !important;
        background: #121215 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
        transform: translateX(-108%) !important;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: none !important;
    }
    #gtpsSidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.88) !important;
    }
    #gtpsSidebar .sidebar-brand-card {
        flex-shrink: 0 !important;
        padding: 13px 14px !important;
    }
    #gtpsSidebar #panelServerSwitcherWrap {
        flex-shrink: 0 !important;
    }
    #gtpsSidebar .sidebar-scroll {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 10px 10px 44px 10px !important;
    }
    #gtpsSidebar .menu-item {
        min-height: 40px !important;
        padding: 9px 12px !important;
        font-size: 0.87rem !important;
        touch-action: manipulation !important;
    }
    #gtpsBackdrop {
        z-index: 100050 !important;
    }

    /* Main Shell: zero outer padding squeeze, single clean scroll area */
    #gtpsMainWrapper, .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    #gtpsTopNav {
        flex-shrink: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #gtpsContentArea {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 12px 84px 12px !important;
    }
    .tab-pane {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 768px) {
    /* Mobile Bottom Bar: safe-area aware, crisp dark obsidian */
    .gh-mobile-bottom-nav {
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 0 4px env(safe-area-inset-bottom, 0px) 4px !important;
        background: rgba(14, 14, 17, 0.96) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 100020 !important;
    }
    #gtpsContentArea {
        padding: 10px 10px calc(76px + env(safe-area-inset-bottom, 0px)) 10px !important;
    }

    /* Prevent iOS zoom without breaking layout width */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Compact Top Bar on Small Screens */
    #gtpsTopNav, .topnav {
        padding: 0 10px !important;
        height: 54px !important;
        min-height: 54px !important;
        gap: 6px !important;
    }
    #gtpsTopNav .topnav-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        gap: 8px !important;
        overflow: hidden !important;
    }
    #gtpsTopNav .topnav-title {
        min-width: 0 !important;
        gap: 7px !important;
        overflow: hidden !important;
    }
    #gtpsTopNav .topnav-title > div {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }
    #panelTopbarTitle {
        font-size: 0.86rem !important;
        max-width: 132px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    #gtpsTopNav .topnav-right {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    #gtpsTopNav .topnav-right a[href="/#my-servers"] {
        height: 30px !important;
        padding: 0 9px !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }
    #btnToggleSidebar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        flex-shrink: 0 !important;
    }

    /* ALL MODALS: guaranteed viewport fit on small phones */
    #shopModalOverlay > div,
    #roleModalOverlay > div,
    #editRoleModal > div,
    #uploadResourceModalOverlay > div,
    #resourcePickerModalOverlay > div,
    #itemInspectEditModal > div,
    #itemSubModalSettings > div,
    #itemSubModalSeed > div,
    #itemSubModalCustom > div,
    #itemSubModalOther > div,
    #selectItemTextureModal > div,
    #playerRoleModal > div,
    #playerPasswordModal > div,
    #playerBanModal > div,
    #playerDeleteModal > div,
    #playerRenameModal > div,
    #itemEffectModal > div,
    #machineEditModal > div,
    #apkBuilderModal > div,
    #gcashPaymentModal > div,
    #gcashAdminSettingsModal > div,
    #gcashAdminOrdersModal > div,
    #pinWorldModal > div,
    #fullServerResetModal > div,
    #globalActionConfirmModal > div,
    #eventRestartModal > div,
    #lqEditorModal > div,
    #titlePlayersModalOverlay > div,
    #titleManagerModalOverlay > div,
    #luaSettingsModal > div,
    #luaRenameModal > div {
        width: 94vw !important;
        max-width: 94vw !important;
        max-height: 90dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    /* All Action Popover Menus stay readable and crisp on touch */
    #playerActionDropdownMenu,
    #roleActionDropdownMenu,
    #shopActionDropdownMenu,
    #itemActionDropdownMenu,
    #resActionDropdownMenu,
    #effectActionDropdownMenu,
    #machineActionDropdownMenu,
    #worldActionDropdownMenu,
    #impWorldActionDropdownMenu,
    #guildActionDropdownMenu,
    #pinWorldActionMenu,
    #anticheatActionMenu,
    #luaRowActionDropdown,
    #lqActionDropdownMenu,
    #titleActionDropdown,
    #blastActionMenu,
    #templateActionDropdownMenu {
        max-width: calc(100vw - 20px) !important;
        z-index: 100110 !important;
    }
}

@media (max-width: 640px) {
    /* 1. Home */
    #tabHome .gtps-cloud-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    #tabHome .gtps-cloud-card,
    #tabHome .gtps-cloud-big-chart-card {
        padding: 14px 12px !important;
    }
    #tabHome #serverUsageCanvasChart {
        max-width: 100% !important;
    }

    /* 2. Console & Logs */
    #tabServer > div {
        gap: 10px !important;
    }
    #tabServer > div > div {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    #tabServer #consoleFilterSelect {
        font-size: 0.82rem !important;
    }
    #tabServer > div > div:nth-child(3) > div:first-child {
        min-width: 0 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    #btnConsoleSettings,
    #btnConsoleAutoScroll {
        flex: 1 1 0 !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }
    #consoleGatewayBadges {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    #consoleLogViewport {
        height: 300px !important;
        padding: 10px 12px !important;
        font-size: 0.74rem !important;
        word-break: break-word !important;
    }
    #formConsoleCommand {
        padding: 10px 12px !important;
        gap: 6px !important;
    }
    #formConsoleCommand span {
        font-size: 0.72rem !important;
    }
    #consoleCmdInput {
        min-width: 0 !important;
        font-size: 0.84rem !important;
    }

    /* 3. Dupe Radar */
    #tabAntiCheat > div > div:nth-child(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    #tabAntiCheat > div > div:nth-child(2) > div {
        padding: 11px 12px !important;
    }
    #tabAntiCheat #leaderboardSearchInput {
        width: 100% !important;
    }
    #tabAntiCheat table {
        min-width: 580px !important;
        font-size: 0.76rem !important;
    }

    /* 4. Addons (APK Builder + GCash) */
    #tabAddons .gh-addons-minimal-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    #tabAddons .gh-admin-addon-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }
    #tabAddons .gh-apk-minimal-card {
        padding: 16px 14px !important;
    }
    #tabAddons .gh-apk-price-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    #tabAddons .gh-apk-price-box > div:last-child {
        text-align: left !important;
    }
    #tabAddons .gh-apk-min-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    #tabAddons .gh-apk-min-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 5. Events */
    #tabEvents .events-manager-layout {
        gap: 12px !important;
    }
    #tabEvents .gtps-cloud-card {
        padding: 14px 12px !important;
    }
    #tabEvents .events-cards-grid,
    #gridEventsYear,
    #gridEventsMonth {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    #tabEvents #eventSearchInput {
        max-width: 100% !important;
        width: 100% !important;
    }
    #tabEvents .btn-event-filter {
        font-size: 0.74rem !important;
        padding: 6px 10px !important;
    }

    /* 6. Guild & Event Manager */
    #tabGuildManager > div > div:first-child {
        padding: 14px 12px !important;
    }
    #tabGuildManager .gm-subtabs-nav {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #tabGuildManager .gm-subtab-btn {
        font-size: 0.76rem !important;
        padding: 7px 11px !important;
        flex-shrink: 0 !important;
    }
    #tabGuildManager #gmTabEvent > div {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #tabGuildManager #gmTabEvent > div > div {
        padding: 14px 12px !important;
    }
    #tabGuildManager #gmTabEvent [style*="1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
    }
    #tabGuildManager #cardMilestonesSection,
    #tabGuildManager #cardPersonalLbSection,
    #tabGuildManager #cardGuildLbSection {
        padding: 14px 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #tabGuildManager #clashPersonalTiersContainer,
    #tabGuildManager #clashPersonalLbContainer,
    #tabGuildManager #clashGuildLbContainer {
        overflow-x: auto !important;
        padding-right: 0 !important;
    }
    #tabGuildManager .clash-tier-row,
    #tabGuildManager .clash-lb-row,
    #tabGuildManager #cardMilestonesSection > div:nth-child(2),
    #tabGuildManager #cardPersonalLbSection > div:nth-child(2),
    #tabGuildManager #cardGuildLbSection > div:nth-child(2) {
        min-width: 490px !important;
        gap: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    #tabGuildManager #gmTabGuilds > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #tabGuildManager #guildSearchInput {
        width: 100% !important;
        flex: 1 1 130px !important;
        min-width: 0 !important;
    }
    #tabGuildManager .gtps-res-table {
        min-width: 540px !important;
        font-size: 0.76rem !important;
    }

    /* 7. Player Database */
    #tabPlayers .gtps-players-container {
        gap: 10px !important;
    }
    #tabPlayers .gtps-players-container > div:nth-child(3) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }
    #tabPlayers table {
        min-width: 440px !important;
    }
    #tabPlayers th,
    #tabPlayers td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }
    #tabPlayers .gtps-players-container > div:last-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* 8. World Manager */
    #tabWorlds .gtps-res-container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #tabWorlds .gtps-res-banner {
        padding: 14px 12px !important;
    }
    #tabWorlds .gtps-res-search-box {
        max-width: 100% !important;
        width: 100% !important;
    }
    #tabWorlds #worldImportTargetInput {
        width: 100% !important;
        max-width: 100% !important;
    }
    #tabWorlds .gtps-res-table-card {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }
    #tabWorlds .gtps-res-table {
        min-width: 560px !important;
        font-size: 0.76rem !important;
    }
    #tabWorlds .gtps-res-table th,
    #tabWorlds .gtps-res-table td {
        padding: 9px 8px !important;
        white-space: nowrap !important;
    }

    /* 9. Pinned Worlds */
    #tabPinnedWorlds > div > div {
        padding: 12px !important;
    }
    #tabPinnedWorlds table {
        min-width: 520px !important;
        font-size: 0.76rem !important;
    }

    /* 10. Shop Manager */
    #tabShopManager .shop-curr-filter-btn {
        padding: 6px 9px !important;
        font-size: 0.74rem !important;
    }
    #tabShopManager .gtps-uniform-table {
        min-width: 480px !important;
    }
    #tabShopManager .gtps-uniform-table th,
    #tabShopManager .gtps-uniform-table td {
        padding: 10px 8px !important;
        font-size: 0.76rem !important;
    }
    #tabShopManager #btnOpenCreateShopModal {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* 11. Resource Manager */
    #tabResourceManager > div > div:nth-child(2) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }
    #tabResourceManager table {
        min-width: 500px !important;
    }
    #tabResourceManager th,
    #tabResourceManager td {
        padding: 10px 8px !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
    }
    #tabResourceManager #btnOpenUploadRes {
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
    }

    /* 12. Item Manager */
    #tabStudio #datDropZone {
        padding: 12px !important;
    }
    #tabStudio .gtps-uniform-table th,
    #tabStudio .gtps-uniform-table td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }

    /* 13. Item Effects */
    #tabItemEffects .gh-info-banner {
        padding: 12px !important;
    }
    #tabItemEffects .gtps-uniform-table {
        min-width: 660px !important;
    }
    #tabItemEffects .gtps-uniform-table th,
    #tabItemEffects .gtps-uniform-table td {
        padding: 10px 8px !important;
        font-size: 0.75rem !important;
    }
    #tabItemEffects #btnOpenCreateEffectModal {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 14. Machine Capacities */
    #tabMachines .gh-info-banner {
        padding: 12px !important;
    }
    #tabMachines .gtps-uniform-table th,
    #tabMachines .gtps-uniform-table td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }
    #tabMachines #btnAddCustomMachine {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 15. Lua Scripting */
    #tabLuaScripts {
        padding: 0 !important;
    }

    /* 16. Role Manager */
    #tabRoleManager .gh-info-banner {
        padding: 12px !important;
    }
    #tabRoleManager .gtps-uniform-table {
        min-width: 460px !important;
    }
    #tabRoleManager .gtps-uniform-table th,
    #tabRoleManager .gtps-uniform-table td {
        padding: 10px 8px !important;
        font-size: 0.76rem !important;
    }
    #tabRoleManager #btnOpenCreateRoleModal {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 17. Server Settings */
    #tabServerVisibility > div > div {
        padding: 16px 13px !important;
    }
    #tabServerVisibility #srvCfgWorldMenuSong {
        min-width: 0 !important;
        width: 100% !important;
    }
    #tabServerVisibility #btnOpenFullServerReset,
    #tabServerVisibility #btnSaveServerConfig {
        flex: 1 1 0 !important;
        text-align: center !important;
        padding: 10px 12px !important;
    }
}

@media (max-width: 400px) {
    #panelTopbarTitle {
        max-width: 98px !important;
        font-size: 0.8rem !important;
    }
    #gtpsTopNav .topnav-right a[href="/#my-servers"] {
        padding: 0 7px !important;
        font-size: 0.68rem !important;
    }
    .gh-mobile-bottom-nav-item {
        font-size: 0.56rem !important;
        padding: 4px 1px !important;
    }
}

/* =========================================================================
   SERVER TEMPLATES TAB & MODALS (SOFT OBSIDIAN BLACK + FULL MOBILE FIT)
   ========================================================================= */
#tabServerTemplates .gh-tpl-wrap {
    width: 100%;
    max-width: 1220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}
#tabServerTemplates .gh-tpl-banner {
    background: #141418;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
#tabServerTemplates .gh-tpl-banner-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
#tabServerTemplates .gh-tpl-banner-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}
#tabServerTemplates .gh-tpl-banner-desc {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #a1a1aa;
}
#tabServerTemplates .gh-tpl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
#tabServerTemplates .gh-tpl-search-box {
    flex: 1 1 240px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #121215;
    border: 1px solid #27272a;
    border-radius: 9px;
    padding: 0 12px;
    height: 38px;
}
#tabServerTemplates .gh-tpl-search-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #f4f4f5;
    font-size: 0.84rem;
}
#tabServerTemplates .gh-tpl-btn-subtle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    background: #18181b;
    border: 1px solid #27272a;
    color: #d4d4d8;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
#tabServerTemplates .gh-tpl-btn-subtle:hover {
    background: #222228;
    border-color: #3f3f46;
    color: #ffffff;
}
#tabServerTemplates .gh-tpl-table-card {
    background: #141418;
    border: 1px solid #27272a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
#tabServerTemplates .gh-tpl-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#tabServerTemplates .gh-tpl-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
#tabServerTemplates .gh-tpl-table thead th {
    background: #111114;
    color: #a1a1aa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid #27272a;
    user-select: none;
    white-space: nowrap;
}
#tabServerTemplates .gh-tpl-table thead th.sortable {
    cursor: pointer;
}
#tabServerTemplates .gh-tpl-table thead th.sortable:hover {
    color: #ffffff;
}
#tabServerTemplates .gh-tpl-sort-ic {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-left: 3px;
}
#tabServerTemplates .gh-tpl-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(39, 39, 42, 0.75);
    color: #e4e4e7;
    font-size: 0.85rem;
    vertical-align: middle;
}
#tabServerTemplates .gh-tpl-table tbody tr:last-child td {
    border-bottom: none;
}
#tabServerTemplates .gh-tpl-table tbody tr.gh-tpl-row:hover {
    background: rgba(255, 255, 255, 0.03);
}
#tabServerTemplates .gh-tpl-fname {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.88rem;
    word-break: break-word;
}
#tabServerTemplates .gh-tpl-subbadges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
.gh-tpl-mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #222228;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.gh-tpl-mini-stat {
    font-size: 0.72rem;
    color: #a1a1aa;
    font-weight: 600;
    white-space: nowrap;
}
#tabServerTemplates .gh-tpl-date-cell,
#tabServerTemplates .gh-tpl-size-cell {
    color: #d4d4d8;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#tabServerTemplates .gh-tpl-dots-btn {
    width: 34px;
    height: 30px;
    border-radius: 7px;
    background: #1c1c22;
    border: 1px solid #33333b;
    color: #f4f4f5;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
#tabServerTemplates .gh-tpl-dots-btn:hover {
    background: #27272f;
    border-color: #52525b;
    color: #ffffff;
}
#tabServerTemplates .gh-tpl-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#tabServerTemplates .gh-tpl-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
#tabServerTemplates .gh-tpl-page-info {
    font-size: 0.78rem;
    color: #71717a;
}
#tabServerTemplates .gh-tpl-pager {
    display: flex;
    align-items: center;
    gap: 8px;
}
#tabServerTemplates .gh-tpl-page-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #18181b;
    border: 1px solid #27272a;
    color: #d4d4d8;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
#tabServerTemplates .gh-tpl-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
#tabServerTemplates .gh-tpl-page-btn:not(:disabled):hover {
    background: #27272a;
    color: #ffffff;
}
#tabServerTemplates .gh-tpl-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.gh-tpl-btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: #1e1e24;
    border: 1px solid #3f3f46;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.gh-tpl-btn-upload:hover {
    background: #27272f;
    border-color: #71717a;
}
.gh-tpl-btn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border-radius: 9px;
    background: #22c55e;
    border: 1px solid #16a34a;
    color: #052e16;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.gh-tpl-btn-create:hover:not(:disabled) {
    background: #4ade80;
}
.gh-tpl-btn-create:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.gh-tpl-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 15px;
    border-radius: 8px;
    background: #18181b;
    border: 1px solid #27272a;
    color: #d4d4d8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.gh-tpl-btn-cancel:hover:not(:disabled) {
    background: #27272a;
    color: #ffffff;
}

/* Modals */
.gh-tpl-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100060;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
}
.gh-tpl-modal-box {
    width: 100%;
    background: #111114;
    border: 1px solid #27272a;
    border-radius: 14px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.88);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}
.gh-tpl-modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid #222226;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: #0d0d10;
}
.gh-tpl-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}
.gh-tpl-modal-sub {
    font-size: 0.77rem;
    color: #a1a1aa;
    margin-top: 3px;
}
.gh-tpl-modal-close {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.gh-tpl-modal-close:hover {
    color: #ffffff;
}
.gh-tpl-modal-body {
    padding: 18px 20px;
}
.gh-tpl-modal-foot {
    padding: 14px 20px;
    border-top: 1px solid #222226;
    background: #0d0d10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.gh-tpl-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d4d4d8;
    margin-bottom: 6px;
}
.gh-tpl-input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    background: #09090b;
    border: 1px solid #27272a;
    color: #ffffff;
    font-size: 0.86rem;
    outline: none;
}
.gh-tpl-input:focus {
    border-color: #52525b;
}
.gh-tpl-prog-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #27272a;
    overflow: hidden;
}
.gh-tpl-prog-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.gh-tpl-format-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #18181b;
    border: 1px solid #3f3f46;
    color: #4ade80;
    font-size: 0.7rem;
    font-weight: 800;
}
.gh-tpl-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.gh-tpl-stat-box {
    background: #16161b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 10px 10px;
    text-align: center;
}
.gh-tpl-stat-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.gh-tpl-stat-lbl {
    font-size: 0.7rem;
    color: #a1a1aa;
    margin-top: 2px;
}
.gh-tpl-subtabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #27272a;
    padding-bottom: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.gh-tpl-subtab {
    padding: 6px 12px;
    border-radius: 8px;
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.gh-tpl-subtab.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #09090b;
}
.gh-tpl-section-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a1a1aa;
    margin-bottom: 8px;
}
.gh-tpl-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.gh-tpl-check-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #16161b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.gh-tpl-check-card input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #22c55e;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.gh-tpl-check-card strong {
    display: block;
    font-size: 0.82rem;
    color: #f4f4f5;
}
.gh-tpl-check-card small {
    display: block;
    font-size: 0.72rem;
    color: #71717a;
    margin-top: 2px;
}
.gh-tpl-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #16161b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.gh-tpl-check-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #22c55e;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.gh-tpl-preview-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #27272a;
    border-radius: 10px;
}
.gh-tpl-preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 440px;
    font-size: 0.8rem;
}
.gh-tpl-preview-table th {
    background: #0d0d10;
    color: #a1a1aa;
    text-align: left;
    padding: 9px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    border-bottom: 1px solid #27272a;
}
.gh-tpl-preview-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(39, 39, 42, 0.7);
    color: #e4e4e7;
}
.gh-tpl-world-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gh-tpl-world-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #16161b;
    border: 1px solid #27272a;
    color: #e4e4e7;
    font-size: 0.76rem;
}
.gh-tpl-world-chip small {
    color: #a1a1aa;
    font-size: 0.7rem;
}
.gh-tpl-scripts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 2px;
}
.gh-tpl-script-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: #16161b;
    border: 1px solid #27272a;
    border-radius: 9px;
}
.gh-tpl-sc-name {
    font-weight: 700;
    color: #f4f4f5;
    font-size: 0.81rem;
    word-break: break-all;
}
.gh-tpl-sc-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.gh-tpl-sc-pill.active {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
}
.gh-tpl-sc-pill.disabled {
    background: rgba(113, 113, 122, 0.18);
    border: 1px solid #3f3f46;
    color: #a1a1aa;
}
.gh-tpl-sc-pill.protected {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}
.gh-tpl-mini-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    background: #222228;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}
.gh-tpl-mini-act-btn:hover {
    background: #2e2e36;
    color: #ffffff;
}
.gh-tpl-mini-act-btn.primary {
    background: #22c55e;
    border-color: #16a34a;
    color: #052e16;
}
.gh-tpl-mini-act-btn.primary:hover {
    background: #4ade80;
}

/* Minimal Gate Bar & Sleek Compact Apply Modal */
.gh-tpl-gate-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fde68a;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.gh-tpl-gate-bar.compact {
    padding: 8px 12px;
    font-size: 0.77rem;
}
.gh-tpl-gate-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.gh-tpl-gate-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
    flex-shrink: 0;
}
.gh-tpl-gate-btn {
    height: 28px;
    padding: 0 11px;
    border-radius: 7px;
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.gh-tpl-gate-btn:hover:not(:disabled) {
    background: #f87171;
}
.gh-tpl-gate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.gh-tpl-summary-line {
    font-size: 0.76rem;
    color: #a1a1aa;
    background: #16161b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 8px 11px;
    margin-bottom: 12px;
    line-height: 1.45;
}
.gh-tpl-seg-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 3px;
    background: #0c0c0f;
    border: 1px solid #27272a;
    border-radius: 9px;
    margin-bottom: 14px;
}
.gh-tpl-seg-btn {
    height: 30px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.gh-tpl-seg-btn.active {
    background: #222228;
    color: #ffffff;
}
.gh-tpl-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.gh-tpl-opt-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 9px;
    border-radius: 8px;
    background: #16161b;
    border: 1px solid #27272a;
    cursor: pointer;
    user-select: none;
    min-width: 0;
}
.gh-tpl-opt-pill:hover {
    border-color: #3f3f46;
}
.gh-tpl-opt-pill input[type="checkbox"] {
    accent-color: #22c55e;
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
}
.gh-tpl-opt-pill span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f4f4f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gh-tpl-opt-pill em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.69rem;
    color: #71717a;
    font-variant-numeric: tabular-nums;
}
.gh-tpl-divider {
    height: 1px;
    background: #222226;
    margin: 13px 0;
}
.gh-tpl-slim-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #d4d4d8;
    cursor: pointer;
    user-select: none;
}
.gh-tpl-slim-toggle input[type="checkbox"] {
    accent-color: #22c55e;
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
}
.gh-tpl-slim-toggle small {
    color: #71717a;
    font-size: 0.73rem;
}
.gh-tpl-inspect-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.gh-tpl-ins-pill {
    height: 28px;
    padding: 0 11px;
    border-radius: 7px;
    background: #16161b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}
.gh-tpl-ins-pill.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #09090b;
}

@media (max-width: 520px) {
    .gh-tpl-pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    #tabServerTemplates .gh-tpl-banner {
        padding: 14px 13px !important;
    }
    #tabServerTemplates .gh-tpl-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    #tabServerTemplates .gh-tpl-search-box {
        max-width: 100% !important;
    }
    #tabServerTemplates .gh-tpl-table {
        min-width: 460px !important;
    }
    #tabServerTemplates .gh-tpl-table thead th,
    #tabServerTemplates .gh-tpl-table tbody td {
        padding: 11px 10px !important;
        font-size: 0.78rem !important;
    }
    #tabServerTemplates .gh-tpl-footer-top {
        flex-direction: column;
        align-items: stretch;
    }
    #tabServerTemplates .gh-tpl-pager {
        justify-content: flex-end;
    }
    #tabServerTemplates .gh-tpl-footer-actions {
        width: 100%;
    }
    #tabServerTemplates .gh-tpl-footer-actions button {
        flex: 1 1 0;
        padding: 0 10px !important;
        font-size: 0.79rem !important;
    }
    .gh-tpl-modal-backdrop {
        padding: 8px !important;
    }
    .gh-tpl-modal-head,
    .gh-tpl-modal-body,
    .gh-tpl-modal-foot {
        padding: 12px 13px !important;
    }
    .gh-tpl-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .gh-tpl-check-grid {
        grid-template-columns: 1fr !important;
    }
    .gh-tpl-modal-foot button {
        flex: 1 1 0;
    }
}
