/* Global Variables & Design Tokens */
:root {
    --bg-dark: #0a0d14;
    --panel-bg: rgba(22, 28, 45, 0.45);
    --panel-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-pink: #ff477e;
    --accent-purple: #9d4edd;
    --accent-blue: #00b4d8;
    --accent-green: #38b000;
    --accent-gold: #ffb703;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glowing backgrounds */
.blur-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}
.spot-1 {
    width: 400px;
    height: 400px;
    background-color: var(--accent-pink);
    top: -50px;
    right: 5%;
}
.spot-2 {
    width: 500px;
    height: 500px;
    background-color: var(--accent-purple);
    bottom: -100px;
    left: 5%;
}

/* Main Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: rgba(13, 17, 30, 0.65);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--panel-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.brand-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text h1 {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 71, 126, 0.15), rgba(157, 78, 221, 0.15));
    border-left: 3px solid var(--accent-pink);
    padding-left: 1rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.status-indicator.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-title {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.status-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 2rem 3rem;
    min-height: 100vh;
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.header-search {
    position: relative;
    width: 320px;
}

.header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.header-search input:focus {
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(255, 71, 126, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.user-pill i {
    font-size: 1.3rem;
    color: var(--accent-pink);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 71, 126, 0.15) 0%, rgba(157, 78, 221, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    opacity: 0.3;
    pointer-events: none;
}

.banner-text h2 {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.banner-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.banner-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 176, 0, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(56, 176, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(56, 176, 0, 0.1);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.stat-icon.pink {
    background: rgba(255, 71, 126, 0.1);
    color: var(--accent-pink);
}
.stat-icon.purple {
    background: rgba(157, 78, 221, 0.1);
    color: var(--accent-purple);
}
.stat-icon.blue {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent-blue);
}

.stat-data h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Live Feed Panel */
.feed-box {
    padding: 1.8rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1rem;
}

.panel-header h3 {
    font-family: var(--font-outfit);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-header h3 i {
    color: var(--accent-pink);
}

.badge {
    background: rgba(255, 71, 126, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 71, 126, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.feed-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
}

.feed-item-detail {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.feed-item-detail img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

.trade-text {
    font-size: 0.95rem;
}
.trade-text strong {
    color: var(--accent-blue);
}

.trade-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Tab Management */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Filters for GTS */
.filter-bar {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input, .filter-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    min-width: 180px;
}
.filter-group select option {
    background: #111422;
    color: var(--text-primary);
}

/* Checkbox design */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    padding-left: 30px;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* GTS Grid */
.gts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gts-card {
    padding: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
}
.gts-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
}

/* Showdown Tier badging */
.badge-ou { background: rgba(255, 71, 126, 0.15); color: var(--accent-pink); border: 1px solid rgba(255, 71, 126, 0.3); }
.badge-uu { background: rgba(157, 78, 221, 0.15); color: var(--accent-purple); border: 1px solid rgba(157, 78, 221, 0.3); }
.badge-ru { background: rgba(0, 180, 216, 0.15); color: var(--accent-blue); border: 1px solid rgba(0, 180, 216, 0.3); }
.badge-nu { background: rgba(255, 183, 3, 0.15); color: var(--accent-gold); border: 1px solid rgba(255, 183, 3, 0.3); }
.badge-lc { background: rgba(56, 176, 0, 0.15); color: var(--accent-green); border: 1px solid rgba(56, 176, 0, 0.3); }
.badge-uber { background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink)); color: #fff; }

.pkmn-brief {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.sprite-container {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkmn-animated-sprite {
    height: 72px;
    width: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.item-overlay-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.pkmn-info h4 {
    font-family: var(--font-outfit);
    font-size: 1.2rem;
    font-weight: 700;
}
.pkmn-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pkmn-owner {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}
.pkmn-owner strong {
    color: var(--text-primary);
}

.wanted-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wanted-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.2rem;
}
.wanted-value {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-inspect {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.btn-inspect:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

/* Info Banner WT */
.info-banner {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.banner-info-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
}

.wt-metrics {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.metric-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--accent-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.metric-num {
    font-family: var(--font-outfit);
    font-size: 2.2rem;
    font-weight: 800;
}
.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.wt-text-metrics {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.wt-text-metrics strong {
    color: var(--text-primary);
}

/* Integration Layout */
.integration-layout {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 2rem;
    align-items: start;
}

.integration-guide {
    padding: 2rem;
}

.integration-guide h3 {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.steps-list {
    margin-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.steps-list code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: monospace;
}

.tip-box {
    margin-top: 1.8rem;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    display: flex;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}
.tip-box i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.integration-code {
    padding: 1.5rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}
.btn-copy:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

.integration-code pre {
    max-height: 480px;
    overflow: auto;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    border-radius: 12px;
    color: #a7a9be;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 600px;
    max-width: 90%;
    padding: 2.2rem;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.modal-close:hover {
    color: var(--accent-pink);
}

/* Detailed summary screen styles */
.modal-title-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-title-panel img {
    height: 96px;
    width: 96px;
    object-fit: contain;
}

.modal-pkmn-title h2 {
    font-family: var(--font-outfit);
    font-size: 1.6rem;
    font-weight: 700;
}
.modal-pkmn-title span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-detail-item {
    font-size: 0.9rem;
    line-height: 1.4;
}
.modal-detail-item strong {
    color: var(--text-secondary);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Stats progress bars */
.modal-stats-panel {
    border-top: 1px solid var(--panel-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.modal-stats-panel h3 {
    font-family: var(--font-outfit);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.stat-bar-row {
    display: grid;
    grid-template-columns: 100px 30px 1fr 30px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.stat-bar-label {
    font-weight: 600;
}
.stat-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    border-radius: 4px;
}

/* Moves list in modal */
.modal-moves-panel {
    border-top: 1px solid var(--panel-border);
    padding-top: 1rem;
}
.modal-moves-panel h3 {
    font-family: var(--font-outfit);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
.modal-moves-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}
.modal-move-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}
.move-pp {
    color: var(--text-secondary);
}

/* Animations */
@keyframes slideIn {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
        align-items: center;
    }
    .brand-text, .nav-item span, .server-status {
        display: none;
    }
    .nav-item {
        padding: 0.85rem;
        justify-content: center;
        width: 50px;
    }
    .main-content {
        margin-left: 80px;
        padding: 1.5rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .integration-layout {
        grid-template-columns: 1fr;
    }
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 400px;
    max-width: 90%;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease-out;
}

.btn-login {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    color: white;
    padding: 0.85rem;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.3);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.5);
}

.login-error-msg {
    margin-top: 1rem;
    background: rgba(255, 71, 126, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 71, 126, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

/* WT Admin Layout */
.wt-admin-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .wt-admin-layout {
        grid-template-columns: 1fr;
    }
}

.wt-pool-scroll {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
}

.wt-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.wt-table th, .wt-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--panel-border);
    font-size: 0.9rem;
}

.wt-table th {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-outfit);
    font-weight: 600;
    color: var(--text-secondary);
}

.wt-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.btn-delete-wt {
    background: rgba(255, 71, 126, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 71, 126, 0.3);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.btn-delete-wt:hover {
    background: var(--accent-pink);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.3);
}

/* =============================================
   GTS TABLE STYLES
   ============================================= */
.gts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.gts-table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 2;
}

.gts-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gts-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.gts-table td {
    padding: 0.6rem;
    vertical-align: middle;
    color: var(--text-primary);
    white-space: nowrap;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); font-size: 0.8rem; }

/* Pokemon cell with sprite */
.gts-pokemon-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.gts-sprite {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Level badge */
.level-badge {
    background: rgba(124, 77, 255, 0.15);
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

/* Moves cell */
.gts-moves-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 180px;
}

.gts-move-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: 'Inter', monospace;
}

/* IV cell */
.gts-iv-cell {
    display: flex;
    align-items: center;
    gap: 1px;
    font-family: 'Inter', monospace;
    font-size: 0.78rem;
}

.iv-cell {
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

.iv-max { color: #38b000; }
.iv-zero { color: #ff477e; }
.iv-normal { color: var(--text-secondary); }
.iv-sep { color: rgba(255,255,255,0.15); font-size: 0.7rem; margin: 0 1px; }

.iv-perfect {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(255, 183, 3, 0.05));
    color: var(--accent-gold);
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 183, 3, 0.25);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

/* EV cell */
.gts-ev-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 140px;
}

.ev-tag {
    background: rgba(0, 180, 216, 0.1);
    color: #00b4d8;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(0, 180, 216, 0.15);
}

/* HA badge */
.ha-badge {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(255, 183, 3, 0.08));
    color: var(--accent-gold);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 183, 3, 0.25);
    margin-left: 4px;
    vertical-align: middle;
}

/* Item cell */
.gts-cell-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.gts-item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Wanted cell */
.gts-wanted-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.gts-wanted-sprite {
    width: 32px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Tier pills */
.tier-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tier-ou { background: rgba(56, 176, 0, 0.15); color: #38b000; border: 1px solid rgba(56, 176, 0, 0.2); }
.tier-uber { background: rgba(255, 71, 126, 0.15); color: var(--accent-pink); border: 1px solid rgba(255, 71, 126, 0.2); }
.tier-uu { background: rgba(0, 180, 216, 0.15); color: #00b4d8; border: 1px solid rgba(0, 180, 216, 0.2); }
.tier-ru { background: rgba(255, 183, 3, 0.15); color: var(--accent-gold); border: 1px solid rgba(255, 183, 3, 0.2); }
.tier-nu { background: rgba(124, 77, 255, 0.15); color: var(--accent-purple); border: 1px solid rgba(124, 77, 255, 0.2); }
.tier-pu { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.1); }
.tier-lc { background: rgba(0, 230, 118, 0.12); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.2); }

/* Action buttons */
.gts-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.gts-actions button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.gts-actions button:hover {
    background: rgba(124, 77, 255, 0.15);
    color: var(--accent-purple);
    border-color: rgba(124, 77, 255, 0.3);
}

.gts-actions .btn-delete-gts:hover {
    background: rgba(255, 71, 126, 0.15);
    color: var(--accent-pink);
    border-color: rgba(255, 71, 126, 0.3);
}

/* Table container scrollable */
#gts-offers-grid {
    overflow-x: auto;
}
