/* ============================================
   빅틱단.GG - 통합 스타일시트 v1
   레이드 전광판 + 캐릭터 상세 페이지
   ============================================ */

:root {
    /* Base Dark Theme */
    --bg-color: #05050a;
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --neon-pink: #ff00ea;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Character Detail (Light Cards on dark bg) */
    --card-bg: #ffffff;
    --card-border: #e2e6ed;
    --text-primary: #1a1d26;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-green: #22c55e;
    --accent-teal: #14b8a6;
    --accent-yellow: #eab308;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --font-main: 'Noto Sans KR', 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: #fff;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
}

#pixi-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* =====================
   SIDEBAR
   ===================== */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 100;
    overflow: hidden;
}

.sidebar-top {
    margin-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-purple);
    color: #fff;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 11px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.global-search {
    margin-top: 1.2rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.global-search label {
    display: block;
    font-size: 0.6rem;
    color: #a0a0c0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-box {
    display: flex;
    height: 34px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    background: #000;
    border: 1px solid #333;
    border-right: none;
    padding: 0 10px;
    border-radius: 8px 0 0 8px;
    color: white;
    font-size: 0.8rem;
    outline: none;
    font-family: var(--font-main);
}

.search-box input:focus {
    border-color: var(--neon-blue);
}

.search-box button {
    background: var(--neon-blue);
    border: none;
    border-radius: 0 8px 8px 0;
    width: 38px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 0.85rem;
}

.search-box button:hover {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 2rem;
}

.nav-links li {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.2s;
    color: #a0a0c0;
}

.nav-links li:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-links li.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-top: auto;
    cursor: pointer;
    transition: 0.3s;
}

.user-profile:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 242, 255, 0.05);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: #151515;
    border-radius: 50%;
    border: 2px solid #333;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.username {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status {
    font-size: 0.65rem;
    color: var(--neon-blue);
    font-weight: 700;
}

/* =====================
   MAIN CONTENT AREA
   ===================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

/* View Panels (SPA-style switching) */
.view-panel {
    display: none;
    padding: 2rem;
    min-height: 100vh;
}

.view-panel.active {
    display: block;
}

/* =====================
   RAID VIEW
   ===================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-title {
    font-size: 2rem;
    font-weight: 950;
    margin-bottom: 0.3rem;
    background: linear-gradient(to right, #fff, #a0a0c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #a0a0c0;
}

.create-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.3);
}

/* Raid Cards Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.session-card {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.4rem;
    backdrop-filter: blur(10px);
    position: relative;
    transition: 0.3s;
}

.session-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 6px;
    background: #222;
    font-weight: 700;
    margin-right: 6px;
}

.hard-tag {
    color: #ff4747;
    border: 1px solid #ff4747;
}

.normal-tag {
    color: #00ff88;
    border: 1px solid #00ff88;
}

.session-game-title {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 900;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #555;
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state span {
    font-size: 0.8rem;
    color: #444;
}

/* =====================
   MODALS (shared)
   ===================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    place-items: center;
}

.modal.active {
    display: grid;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    min-width: 340px;
    max-width: 500px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    color: #a0a0c0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-main);
}

.input-group select:focus,
.input-group input:focus {
    border-color: var(--neon-blue);
}

.time-select-group {
    display: flex;
    gap: 8px;
}

.time-select-group select {
    flex: 1;
}

.modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.modal-btns button {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

.modal-close {
    background: #1e293b;
    border: 1px solid #333;
    color: white;
}

.modal-join {
    background: var(--neon-blue);
    border: none;
    color: #000;
}

.auth-warning {
    text-align: center;
    padding: 1rem;
    color: #ff8800;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

/* =====================
   CHARACTER VIEW
   ===================== */
#character-view {
    background: #eef1f6;
    position: relative;
}

#character-view .loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(238, 241, 246, 0.95);
    z-index: 9999;
    display: none;
    place-items: center;
}

#character-view .loading-overlay.active {
    display: grid;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.char-back-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.char-back-btn {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.2s;
}

.char-back-btn:hover {
    background: #f3f4f6;
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-purple);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    white-space: nowrap;
}

.refresh-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.refresh-icon {
    font-size: 16px;
}

/* MAIN LAYOUT */
.page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

/* PROFILE COLUMN (LEFT) */
.profile-column {
    width: 380px;
    min-width: 380px;
    position: sticky;
    top: 0;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
}

.profile-image {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, #1a1d26 0%, #2d1f4e 100%);
    background-size: cover;
    background-position: center top;
    position: relative;
}

.profile-overlay {
    padding: 20px 24px;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 29, 38, 0.95) 100%);
    margin-top: -100px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.class-level {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 4px;
}

.char-name {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #fff;
}

.item-level-row,
.combat-power-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 700;
}

.il-icon {
    font-size: 16px;
    opacity: 0.7;
}

.il-value {
    font-size: 26px;
    color: #fff;
}

.cp-icon {
    font-size: 14px;
}

.cp-value {
    font-size: 20px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-meta {
    padding: 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.meta-label {
    min-width: 44px;
    padding: 3px 8px;
    background: #f3f4f6;
    border-radius: var(--radius-xs);
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 11px;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Ranking */
.ranking-section {
    padding: 10px 24px 14px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rank-scope {
    padding: 2px 8px;
    background: #eef0f4;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.rank-val {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
}

/* Core Summary */
.core-summary {
    margin-top: 14px;
    padding: 16px;
}

.core-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.core-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.core-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 72px;
}

.core-node img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: #f9fafb;
}

.core-node .core-pts {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
    padding: 1px 5px;
    border-radius: 10px;
}

.core-node .core-name {
    font-size: 8px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.15;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* SPEC COLUMN (RIGHT) */
.spec-column {
    flex: 1;
    min-width: 0;
}

/* TABS */
.tab-bar {
    display: flex;
    gap: 4px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 5px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    margin-bottom: 14px;
    overflow-x: auto;
}

.tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-family: var(--font-main);
    white-space: nowrap;
}

.tab:hover {
    background: #f3f4f6;
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-purple);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* SECTION CARD */
.section-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.badge-yellow {
    background: var(--accent-yellow);
}

.badge-purple {
    background: var(--accent-purple);
}

.badge-red {
    background: var(--accent-red);
}

.badge-orange {
    background: var(--accent-orange);
}

.badge-blue {
    background: var(--accent-blue);
}

.badge-teal {
    background: var(--accent-teal);
}

.badge-green {
    background: var(--accent-green);
}

/* CONTENT ROW */
.content-row {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
}

.content-row .section-card {
    flex: 1;
    min-width: 0;
}

.content-row .section-card.half {
    flex: 1;
}

/* EQUIPMENT STYLES */
.equip-section,
.accessory-section {
    flex: 1;
}

.equip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: default;
    transition: background 0.15s;
}

.equip-item:hover {
    background: #faf9ff;
    margin: 0 -18px;
    padding: 8px 18px;
}

.equip-item:last-child {
    border-bottom: none;
}

.equip-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.equip-icon-wrap img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    border: 2px solid #d1d5db;
}

.equip-icon-wrap.grade-ancient img {
    border-color: #c4903a;
}

.equip-icon-wrap.grade-t4-ancient img {
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.equip-icon-wrap.grade-relic img {
    border-color: #ff6e00;
}

.equip-icon-wrap.grade-legend img {
    border-color: #f5a623;
}

.equip-icon-wrap.grade-hero img {
    border-color: #a855f7;
}

.equip-icon-wrap.grade-rare img {
    border-color: #3b82f6;
}

.equip-tier-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.2;
    z-index: 2;
}

.equip-details {
    flex: 1;
    min-width: 0;
}

.equip-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equip-name-text.grade-ancient-text {
    color: #c4903a;
}

.equip-name-text.grade-t4-ancient-text {
    color: #a855f7;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.2);
}

.equip-name-text.grade-relic-text {
    color: #ff6e00;
}

.equip-name-text.grade-legend-text {
    color: #f5a623;
}

.equip-name-text.grade-hero-text {
    color: #a855f7;
}

.equip-quality-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.equip-level-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Accessory specific */
.acc-effect-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.acc-effect {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.acc-effect .effect-icon {
    font-size: 10px;
    opacity: 0.5;
}

.acc-effect .effect-value {
    color: var(--accent-green);
    font-weight: 600;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stats-grid.combat {
    grid-template-columns: 1fr 1fr 1fr;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-item .stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item .stat-value.highlight {
    color: var(--accent-purple);
    font-size: 16px;
}

.stats-total {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: auto;
}

/* ENGRAVINGS */
.engraving-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.engraving-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.engraving-row img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

.engraving-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.engraving-level {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}

/* GEMS */
.gem-header {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.gem-group-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.gem-group-label span {
    font-weight: 700;
    color: var(--text-primary);
}

.gem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gem-node {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.15s;
}

.gem-node:hover {
    transform: scale(1.1);
}

.gem-node img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xs);
    border: 2px solid #d1d5db;
}

.gem-node.grade-ancient img {
    border-color: #c4903a;
}

.gem-node.grade-relic img {
    border-color: #ff6e00;
}

.gem-node.grade-legend img {
    border-color: #f5a623;
}

.gem-node.grade-hero img {
    border-color: #a855f7;
}

.gem-lv-tag {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--accent-purple);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid var(--card-bg);
}

/* GEM EFFECTS (Grid Layout) */
.gem-effects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.gem-effect-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.gem-effect-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.gem-effect-desc .effect-positive {
    color: var(--accent-green);
    font-weight: 600;
}

/* ARK PASSIVE */
.ark-passive-section {
    overflow: hidden;
}

.ark-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.ark-type-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.ark-type-badge.evo {
    background: #ef4444;
}

.ark-type-badge.enl {
    background: #3b82f6;
}

.ark-type-badge.leap {
    background: #22c55e;
}

.ark-points {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-purple);
    margin-right: 4px;
}

.ark-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 14px;
}

.ark-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ark-col {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ark-col:not(:last-child) {
    border-right: 1px solid var(--card-border);
}

.ark-node-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ark-node-row img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

.ark-node-tier {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.ark-node-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* CARDS */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.card-node {
    width: 90px;
    text-align: center;
}

.card-node img {
    width: 72px;
    height: 90px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--card-border);
    object-fit: cover;
}

.card-node .card-awake {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 3px;
}

.card-node .card-awake .awake-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbbf24;
    border: 1.5px solid #d97706;
}

.card-node .card-awake .awake-dot.empty {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.card-node .card-char-name {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

.card-effect-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-left: auto;
}

/* SIBLINGS */
.siblings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.sibling-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    transition: all 0.15s;
    cursor: pointer;
}

.sibling-card:hover {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.03);
    transform: translateY(-1px);
}

.sibling-card.current {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
}

.sibling-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.sibling-info {
    flex: 1;
}

.sibling-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.sibling-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.sibling-ilvl {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-purple);
}

/* =====================
   ABILITY STONE (어빌리티 스톤)
   ===================== */
.ability-stone-section {
    overflow: hidden;
}

.stone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.stone-info {
    flex: 1;
}

.stone-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.stone-stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stone-stat-value {
    color: var(--accent-green);
    font-weight: 700;
}

.stone-engravings {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stone-engraving-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stone-eng-name {
    min-width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.stone-engraving-row.negative .stone-eng-name {
    color: #ef4444;
}

.stone-engraving-row.high .stone-eng-name {
    color: var(--accent-purple);
}

.stone-eng-dots {
    display: flex;
    gap: 3px;
    flex: 1;
}

.stone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    transition: all 0.15s;
}

.stone-dot.filled {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

.stone-engraving-row.negative .stone-dot.filled {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.stone-engraving-row.high .stone-dot.filled {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 4px rgba(124, 58, 237, 0.3);
}

.stone-eng-lv {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 32px;
    text-align: right;
}

.stone-engraving-row.negative .stone-eng-lv {
    color: #ef4444;
}

.stone-engraving-row.high .stone-eng-lv {
    color: var(--accent-purple);
}

/* =====================
   BOJU (보주)
   ===================== */
.boju-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.boju-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.boju-info-text {
    flex: 1;
}

.boju-effect {
    padding: 10px;
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
}

.boju-effect-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 6px;
}

.boju-effect-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.boju-rakn {
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 600;
}

.boju-rakn strong {
    color: var(--accent-orange);
    font-size: 14px;
}

/* =====================
   BRACELET (팔찌 개선)
   ===================== */
.bracelet-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bracelet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.bracelet-info-text {
    flex: 1;
}

.bracelet-pct {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-green);
    padding: 2px 8px;
    border-radius: 999px;
}

.bracelet-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bracelet-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: #f9fafb;
    border-radius: var(--radius-xs);
}

.bracelet-stat-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bracelet-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-purple);
}

.bracelet-special {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 500;
    padding: 4px 0;
    line-height: 1.4;
}

.bracelet-passive {
    margin-top: 6px;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--radius-xs);
}

/* GEM EFFECTS CARD (젬 효과 합산 / 박스형 디자인) */
.gem-effect-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.gem-effect-row:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.gem-agg-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
}

.gem-agg-lv {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-purple);
}

.gem-effect-icon-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.gem-effect-icon-wrap img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--card-border);
}

.gem-effect-body {
    flex: 1;
    min-width: 0;
}

.gem-effect-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.gem-effect-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.gem-effect-detail .effect-positive {
    color: var(--accent-green);
    font-weight: 700;
}

.gem-effect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.gem-effect-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.gem-tag-dmg {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.gem-tag-cd {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.gem-tag-other {
    background: rgba(107, 114, 128, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.gem-effect-option {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
    margin-top: 3px;
}

/* GEM SUMMARY (보석 합산 효과) */
.gem-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-sm);
}

.gem-summary-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    white-space: nowrap;
}

.gem-summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* GEM NODE TYPE INDICATOR */
.gem-node.gem-dmg .gem-lv-tag {
    background: #ef4444;
}

.gem-node.gem-cd .gem-lv-tag {
    background: #3b82f6;
}

/* =====================
   CORE NODE COLORS (질서/혼돈)
   ===================== */
.core-node.core-order img {
    border-color: #c4903a;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.core-node.core-chaos img {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.core-node.core-order .core-pts {
    color: #c4903a;
    background: rgba(196, 144, 58, 0.1);
}

.core-node.core-chaos .core-pts {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.core-node.core-evo img {
    border-color: #ef4444;
}

.core-node.core-enl img {
    border-color: #3b82f6;
}

.core-node.core-leap img {
    border-color: #22c55e;
}

.core-node.core-evo .core-pts {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.core-node.core-enl .core-pts {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.core-node.core-leap .core-pts {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* TOOLTIP */
.game-tooltip {
    position: fixed;
    z-index: 10000;
    background: #1a1d26;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 16px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    border: 1px solid #374151;
    display: none;
}

.game-tooltip.active {
    opacity: 1;
    display: block;
}

.tooltip-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #374151;
}

.tooltip-icon {
    width: 44px;
    height: 44px;
    background-size: cover;
    border-radius: var(--radius-xs);
    border: 2px solid #555;
    flex-shrink: 0;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 700;
}

.tooltip-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.tooltip-body {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.6;
}

.tooltip-body .level-text {
    display: block;
    margin-bottom: 6px;
    color: #fbbf24;
    font-weight: 600;
}

.tooltip-body .effect-text {
    display: block;
    margin-top: 8px;
    color: #a78bfa;
    font-weight: 500;
}

/* QUALITY COLORS */
.quality-100 {
    background: #f59e0b;
}

.quality-90 {
    background: #ef4444;
}

.quality-70 {
    background: #a855f7;
}

.quality-30 {
    background: #3b82f6;
}

.quality-0 {
    background: #22c55e;
}

/* Grade Colors (used in raid modals) */
.grade-ancient {
    background: linear-gradient(135deg, #3d3325 0%, #d59e33 100%) !important;
}

.grade-relic {
    background: linear-gradient(135deg, #341a02 0%, #a83e06 100%) !important;
}

.grade-legend {
    background: linear-gradient(135deg, #2b1f06 0%, #d49400 100%) !important;
}

.grade-hero {
    background: linear-gradient(135deg, #1b0c36 0%, #8138f5 100%) !important;
}

.grade-rare {
    background: linear-gradient(135deg, #0b1a36 0%, #1e78ff 100%) !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-wrapper {
        flex-direction: column;
    }

    .profile-column {
        width: 100%;
        min-width: unset;
        position: static;
    }

    .ark-columns {
        grid-template-columns: 1fr;
    }

    .ark-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .content-row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 200px;
        min-width: 200px;
        padding: 1rem;
    }

    .page-wrapper {
        padding: 0 8px;
        margin: 12px auto;
    }

    .stats-grid.combat {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================
   EQUIPMENT & GRADE STYLES (KLOA Style)
   ===================== */
.equip-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    /* 기본 테두리 */
}

.equip-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    z-index: 10;
}

/* KLOA 장비 뒷배경 + 테두리 등급 색상 
   (기존 .grade-ancient 덮어쓰기 위해 !important 사용) */
.grade-advanced.equip-icon-wrap {
    background: linear-gradient(135deg, #1c2718, #2a3a23) !important;
    border-color: #55b232 !important;
}

.grade-rare.equip-icon-wrap {
    background: linear-gradient(135deg, #182234, #1f2e46) !important;
    border-color: #0077ff !important;
}

.grade-hero.equip-icon-wrap {
    background: linear-gradient(135deg, #27142b, #3c1e42) !important;
    border-color: #b018e6 !important;
}

.grade-legend.equip-icon-wrap {
    background: linear-gradient(135deg, #2a1f10, #3e2e17) !important;
    border-color: #fca700 !important;
}

.grade-relic.equip-icon-wrap {
    background: linear-gradient(135deg, #2e1713, #46221d) !important;
    border-color: #ff3b00 !important;
}

.grade-ancient.equip-icon-wrap {
    background: linear-gradient(135deg, #2b251f, #3d342b) !important;
    border-color: #e3c180 !important;
}

/* 에스더 / T4 계승 특수 보라/주황 */
.grade-t4-ancient {
    background: linear-gradient(135deg, #1f1430, #2d184a) !important;
    border-color: #a164ff !important;
}

/* 텍스트 색상 우선순위 */
.grade-advanced-text {
    color: #55b232 !important;
    font-weight: 700;
}

.grade-rare-text {
    color: #4b9fff !important;
    font-weight: 700;
}

.grade-hero-text {
    color: #d06bff !important;
    font-weight: 700;
}

.grade-legend-text {
    color: #fca700 !important;
    font-weight: 700;
}

.grade-relic-text {
    color: #ff5e33 !important;
    font-weight: 700;
}

.grade-ancient-text {
    color: #e3c180 !important;
    font-weight: 700;
}

.grade-t4-ancient-text {
    color: #ba8cff !important;
    font-weight: 700;
}

/* 제련(강화) 수치 뱃지 */
.equip-reinforce {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #0d0d12;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 품질 게이지 바 */
.quality-bar-wrap {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.quality-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.quality-number {
    font-size: 12px;
    font-weight: 900;
    width: 24px;
    text-align: center;
}

/* 장신구 연마 배지 */
.polish-tag {
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(186, 140, 255, 0.6);
}

/* T4 등급 뱃지 (좌측 위 상단 고정 & 덮어쓰기) */
.equip-tier-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =====================
   RANKING VIEW STYLES (KLOA Deluxe)
   ===================== */
.ranking-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.ranking-filters select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 100px;
}

.power-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.power-slider-wrap input[type="number"] {
    width: 65px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--neon-blue);
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px;
    font-family: var(--font-main);
}

.slider-container {
    width: 180px;
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    width: 100%;
    accent-color: var(--neon-blue);
    cursor: pointer;
}

/* Podium Enhanced */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0 60px;
}

.podium-item {
    background: #fff;
    border-radius: var(--radius);
    width: 320px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.podium-image-bg {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center top;
    background-color: #0f172a;
    position: relative;
    transition: transform 0.3s;
}

.podium-image-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #fff);
}

.podium-content {
    padding: 10px 20px 25px;
    background: #fff;
    flex: 1;
    position: relative;
    z-index: 5;
}

.podium-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.podium-item:hover .podium-image-bg {
    transform: scale(1.05);
}

.podium-item.first {
    height: 460px;
    order: 2;
    border: 3px solid #fbbf24;
}

.first .podium-image-bg {
    height: 280px;
}

.podium-item.second {
    height: 400px;
    order: 1;
    border: 1px solid #94a3b8;
}

.podium-item.third {
    height: 360px;
    order: 3;
    border: 1px solid #b45309;
}

.podium-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.podium-item.first .podium-rank {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.podium-item.second .podium-rank {
    background: linear-gradient(135deg, #94a3b8, #475569);
}

.podium-item.third .podium-rank {
    background: linear-gradient(135deg, #b45309, #78350f);
}

.podium-char-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-top: 10px;
}

.podium-class-server {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.podium-level {
    font-size: 2rem;
    font-weight: 950;
    color: var(--accent-purple);
}

.podium-power {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ff4d4f;
}

/* Table Deluxe Rows */
.ranking-table th {
    background: #f8fafc;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 2px solid #eff2f5;
    white-space: nowrap;
}

.ranking-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eff2f5;
}

.ranking-table tr:hover {
    background: #f1f5f9;
    cursor: pointer;
}

.col-rank {
    width: 70px;
    text-align: center !important;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.col-rank.top-rank {
    color: var(--accent-purple);
}

.col-char {
    font-weight: 850;
    font-size: 16px;
    color: var(--text-primary);
}

.col-level {
    font-weight: 900;
    color: var(--accent-purple);
    font-size: 15px;
}

.col-power {
    font-weight: 900;
    color: #ff4d4f;
    font-size: 15px;
}

.col-gear,
.col-ark {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gear-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    border: 1px solid #e2e6ed;
}

.gear-badge.trans {
    color: #d97706;
    border-left: 3px solid #fbbf24;
}

.gear-badge.elixir {
    color: #2563eb;
    border-left: 3px solid #60a5fa;
}

.gear-badge.adv {
    color: #059669;
    border-left: 3px solid #34d399;
}

.ark-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 12px;
}

.ranking-more-box {
    display: flex;
    justify-content: center;
    padding: 20px 0 80px;
    background: #fff;
}

#btn-rank-more {
    padding: 14px 60px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

#btn-rank-more:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

.ranking-inline-loading {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}