/* ═══════════════════════════════════════════════════════════════════════════
   🌆 STREETS & GAMES CSS v3.0
   Fullscreen game mode with integrated RPG, Casino, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   FULLSCREEN MODE
   ═══════════════════════════════════════════════════════════════════════════ */

body.game-fullscreen .nav {
    display: none !important;
}

body.game-fullscreen .header {
    display: none !important;
}

body.game-fullscreen .main {
    padding-top: 0;
    padding-bottom: 0;
}

body.game-fullscreen #page-streets {
    height: 100vh;
    padding-bottom: 0;
}

.nav.hidden {
    display: none !important;
}

.header.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STREETS HUB
   ═══════════════════════════════════════════════════════════════════════════ */

.streets-hub {
    padding: 16px;
}

.streets-header {
    text-align: center;
    padding: 24px 0;
}

.sh-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.sh-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
}

.sh-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Games Grid */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.game-card:active {
    transform: scale(0.98);
}

.game-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-card.disabled:active {
    transform: none;
}

.gc-icon {
    font-size: 32px;
    width: 48px;
    text-align: center;
}

.gc-info {
    flex: 1;
}

.gc-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.gc-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.gc-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.gc-badge.active {
    background: var(--accent);
    color: #000;
}

.gc-badge.soon {
    background: var(--bg);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

/* Streets Stats */
.streets-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
}

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

.ssi-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.ssi-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.ssi-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAME CONTAINER (Fullscreen Game UI)
   ═══════════════════════════════════════════════════════════════════════════ */

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.gh-back {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-back:active {
    background: var(--border);
}

.gh-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-icon {
    font-size: 20px;
}

.gh-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--game-color, var(--accent));
}

.gh-balance {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.game-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CASINO GAMES
   ═══════════════════════════════════════════════════════════════════════════ */

.casino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.casino-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.casino-card:active {
    transform: scale(0.95);
    border-color: var(--accent);
}

.cc-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

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

.cc-desc {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Slots */
.slots-machine {
    text-align: center;
    padding: 24px;
}

.slots-reels {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.reel {
    width: 70px;
    height: 80px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.reel.spinning {
    animation: reel-spin 0.1s infinite;
}

@keyframes reel-spin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.slots-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bet-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bet-group label {
    color: var(--text-dim);
    font-size: 14px;
}

.bet-group input {
    width: 100px;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    text-align: center;
}

.spin-btn {
    width: 100%;
    max-width: 200px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dice */
.dice-machine {
    text-align: center;
    padding: 24px;
}

.dice-display {
    font-size: 80px;
    margin-bottom: 24px;
}

.dice-display.rolling {
    animation: dice-roll 0.1s infinite;
}

@keyframes dice-roll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.dice-buttons, .coin-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.dice-btn, .coin-btn {
    flex: 1;
    max-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.dice-btn.low, .coin-btn.tails {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
}

.dice-btn.high, .coin-btn.heads {
    background: var(--accent);
    color: #000;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG GAME - GANGSTA STYLE v2.0
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-game {
    --game-color: #22c55e;
    --glow-green: 0 0 20px rgba(34, 197, 94, 0.3);
    --glow-gold: 0 0 15px rgba(255, 215, 0, 0.3);
    --gradient-dark: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    --gradient-accent: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    background: var(--gradient-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAME HEADER - Sleek Bar
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-game .game-header {
    background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
    border-bottom: 1px solid #222;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 16px;
}

.rpg-game .gh-back {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #222 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 10px;
    color: #888;
    font-size: 20px;
    transition: all 0.2s;
}

.rpg-game .gh-back:active {
    background: #333;
    transform: scale(0.95);
}

.rpg-game .gh-title {
    gap: 10px;
}

.rpg-game .gh-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

.rpg-game .gh-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.rpg-game .gh-balance {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 8px 14px;
    border-radius: 25px;
    box-shadow: var(--glow-green), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATUS BAR - Cyberpunk Style
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-status-bar {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(10px);
}

.rpg-status-bar .rs-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpg-status-bar .rs-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px currentColor);
}

.rpg-status-bar .rs-bar {
    flex: 1;
    height: 10px;
    background: #111;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.rpg-status-bar .rs-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.rpg-status-bar .rs-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 4px 4px 0 0;
}

.rpg-status-bar .rs-fill.energy {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.rpg-status-bar .rs-text {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    min-width: 50px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.rpg-status-bar .rs-timer {
    font-size: 10px;
    font-weight: 500;
    color: #22c55e;
    min-width: 36px;
    text-align: right;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHARACTER CREATION - Street Style
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-create {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: var(--gradient-dark);
}

.rc-section {
    margin-bottom: 24px;
}

.rc-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.rc-reroll {
    padding: 6px 14px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #333;
    border-radius: 20px;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rc-reroll:hover {
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: var(--glow-green);
}

.rc-reroll:active {
    transform: scale(0.95);
}

.rc-input {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    border: 2px solid #222;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.rc-input::placeholder {
    color: #444;
    font-weight: 400;
}

.rc-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: var(--glow-green), inset 0 2px 4px rgba(0,0,0,0.3);
}

.rc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rc-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gradient-card);
    border: 2px solid #222;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rc-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.rc-option:hover {
    border-color: #333;
    transform: translateX(4px);
}

.rc-option.selected {
    border-color: #22c55e;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    box-shadow: var(--glow-green), inset 0 0 30px rgba(34, 197, 94, 0.05);
}

.rc-option.selected::after {
    content: '✓';
    position: absolute;
    right: 16px;
    font-size: 18px;
    color: #22c55e;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.rc-emoji {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.rc-info {
    flex: 1;
}

.rc-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.rc-desc {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.rc-option.selected .rc-name {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.rc-option.selected .rc-desc {
    color: #4ade80;
}

.rc-loading {
    text-align: center;
    padding: 30px;
    color: #444;
    font-size: 14px;
}

.rc-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.rc-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.rc-submit:not(:disabled):hover::before {
    left: 100%;
}

.rc-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.rc-submit:not(:disabled):active {
    transform: translateY(0);
}

.rc-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #333;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG CONTENT AREA - Modern Card UI
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: 
        radial-gradient(ellipse at top, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
}

/* Character Card - Main Profile Widget */
.rpg-char-card {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.rpg-char-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
}

.rcc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.rcc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.rcc-info {
    flex: 1;
}

.rcc-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.rcc-subtitle {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    margin-top: 2px;
}

.rcc-level {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* Stats Grid */
.rpg-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.rpg-stat-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #252525;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rsc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.rsc-icon.hp { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.rsc-icon.energy { background: linear-gradient(135deg, #eab308 0%, #a16207 100%); }
.rsc-icon.atk { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.rsc-icon.def { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.rsc-icon.seeds { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }
.rsc-icon.respect { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }

.rsc-content {
    flex: 1;
}

.rsc-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.rsc-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

/* Action Cards Grid */
.rpg-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.rpg-action-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #252525;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rpg-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.rpg-action-card:active {
    transform: scale(0.96);
}

.rpg-action-card:hover {
    border-color: var(--card-accent, #333);
    box-shadow: 0 0 20px rgba(var(--card-glow, 255,255,255), 0.1);
}

.rpg-action-card.accent-green { --card-accent: #22c55e; --card-glow: 34,197,94; }
.rpg-action-card.accent-orange { --card-accent: #f97316; --card-glow: 249,115,22; }
.rpg-action-card.accent-red { --card-accent: #ef4444; --card-glow: 239,68,68; }
.rpg-action-card.accent-blue { --card-accent: #3b82f6; --card-glow: 59,130,246; }
.rpg-action-card.accent-purple { --card-accent: #a855f7; --card-glow: 168,85,247; }
.rpg-action-card.accent-yellow { --card-accent: #eab308; --card-glow: 234,179,8; }

.rac-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--card-accent, #333) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
    box-shadow: 0 4px 15px rgba(var(--card-glow, 0,0,0), 0.3);
}

.rac-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rac-desc {
    font-size: 11px;
    color: #666;
}

.rpg-action-card:hover .rac-title {
    color: var(--card-accent, #fff);
}

/* Section Headers */
.rpg-section {
    margin-bottom: 16px;
}

.rpg-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
}

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

.rsh-title {
    font-size: 12px;
    font-weight: 800;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Info Cards */
.rpg-info-card {
    background: linear-gradient(145deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.ric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.ric-row:last-child {
    border-bottom: none;
}

.ric-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.ric-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.ric-value.green { color: #22c55e; }
.ric-value.gold { color: #ffd700; }
.ric-value.red { color: #ef4444; }

/* Mission/Item List */
.rpg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rpg-list-item {
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #252525;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.rpg-list-item:active {
    transform: scale(0.98);
}

.rpg-list-item:hover {
    border-color: #333;
}

.rli-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rli-content {
    flex: 1;
}

.rli-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rli-subtitle {
    font-size: 11px;
    color: #666;
}

.rli-meta {
    text-align: right;
}

.rli-reward {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
}

.rli-cost {
    font-size: 11px;
    color: #eab308;
    margin-top: 2px;
}

/* Progress Bar */
.rpg-progress {
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.rpg-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.rpg-progress-fill.green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.rpg-progress-fill.yellow { background: linear-gradient(90deg, #eab308, #facc15); }
.rpg-progress-fill.red { background: linear-gradient(90deg, #ef4444, #f87171); }
.rpg-progress-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* Big Action Button */
.rpg-big-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    margin-top: 8px;
}

.rpg-big-btn:active {
    transform: scale(0.98);
}

.rpg-big-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rpg-big-btn.secondary {
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    color: #fff;
    box-shadow: none;
    border: 1px solid #333;
}

.rpg-big-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Empty State */
.rpg-empty {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}

.rpg-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.rpg-empty-text {
    font-size: 14px;
}

/* Combat Log (kept for battles) */
.rpg-combat-log {
    background: linear-gradient(145deg, #0d0d0d 0%, #080808 100%);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 14px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.combat-line {
    padding: 4px 0;
    color: #888;
}

.combat-line.hit { color: #f97316; }
.combat-line.crit { color: #ef4444; font-weight: 700; }
.combat-line.miss { color: #555; }
.combat-line.heal { color: #22c55e; }
.combat-line.system { color: #a855f7; }
.combat-line.gold { color: #ffd700; }

/* Training Stats */
.rpg-train-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rpg-train-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #252525;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rpg-train-card:active {
    transform: scale(0.96);
}

.rpg-train-card:hover {
    border-color: var(--stat-color, #333);
}

.rtc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--stat-color, #333) 0%, rgba(0,0,0,0.5) 100%);
}

.rtc-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rtc-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--stat-color, #fff);
}

.rtc-bonus {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

/* Inventory Grid */
.rpg-inv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rpg-inv-slot {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #252525;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.rpg-inv-slot.equipped {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.rpg-inv-slot:active {
    transform: scale(0.95);
}

.ris-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.ris-name {
    font-size: 10px;
    color: #888;
    text-align: center;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ris-durability {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
}

.ris-durability-fill {
    height: 100%;
    border-radius: 2px;
    background: #22c55e;
}

/* Tabs */
.rpg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
}

.rpg-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid #252525;
    border-radius: 10px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.rpg-tab.active {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border-color: #22c55e;
    color: #000;
}

/* Legacy Terminal support (for combat) */
.rpg-terminal {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-radius: 12px;
    margin: 10px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.terminal-line { margin-bottom: 3px; color: #888; }
.terminal-line.dim { color: #555; }
.terminal-line.gold { color: #ffd700; }
.terminal-line.success { color: #22c55e; }
.terminal-line.error { color: #ef4444; }
.terminal-line.info { color: #3b82f6; }
.terminal-line.system { color: #a855f7; }

.terminal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: #111;
    border-top: 1px solid #1a1a1a;
}

.terminal-btn {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 14px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #ccc;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.terminal-btn.primary {
    background: var(--gradient-accent);
    border-color: #22c55e;
    color: #000;
}

.terminal-btn.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
}

.terminal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG NAVIGATION - Bottom Bar
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-nav {
    display: flex;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-top: 1px solid #1a1a1a;
    padding: 8px 12px 12px;
    gap: 8px;
}

.rpg-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.rpg-nav-btn:hover {
    color: #888;
}

.rpg-nav-btn.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.rpg-nav-btn .rn-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 0 transparent);
    transition: filter 0.2s;
}

.rpg-nav-btn.active .rn-icon {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

.rpg-nav-btn .rn-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG MISSIONS - Street Jobs Style
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-missions {
    padding: 8px 0;
}

.rm-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 2px solid #222;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.rm-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.rm-item:hover {
    border-color: #333;
    transform: translateX(4px);
}

.rm-item.tier-easy { border-left: 4px solid #22c55e; }
.rm-item.tier-normal { border-left: 4px solid #3b82f6; }
.rm-item.tier-hard { border-left: 4px solid #a855f7; }
.rm-item.tier-extreme { border-left: 4px solid #ef4444; }

.rmi-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.rmi-info {
    flex: 1;
}

.rmii-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rmii-reward {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

.rmii-energy {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.rmi-tier {
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rm-item.tier-easy .rmi-tier { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.rm-item.tier-normal .rmi-tier { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.rm-item.tier-hard .rmi-tier { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.rm-item.tier-extreme .rmi-tier { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* ═══════════════════════════════════════════════════════════════════════════
   RPG INVENTORY - Loot Style
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-inventory {
    padding: 8px 0;
}

.ri-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 2px solid #222;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.ri-item:hover {
    border-color: #333;
}

.ri-item.rarity-common { border-left: 4px solid #9ca3af; }
.ri-item.rarity-uncommon { border-left: 4px solid #22c55e; }
.ri-item.rarity-rare { border-left: 4px solid #3b82f6; }
.ri-item.rarity-epic { border-left: 4px solid #a855f7; }
.ri-item.rarity-legendary { 
    border-left: 4px solid #ffd700; 
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.rii-icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.rii-info {
    flex: 1;
}

.riii-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.riii-type {
    font-size: 11px;
    color: #666;
    text-transform: capitalize;
    margin-top: 2px;
}

.ri-item.rarity-legendary .riii-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rii-equipped {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rii-equip {
    padding: 8px 14px;
    background: linear-gradient(145deg, #222 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rii-equip:hover {
    border-color: #22c55e;
    color: #22c55e;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG TRAINING - Gym Style
   ═══════════════════════════════════════════════════════════════════════════ */

.rpg-training {
    padding: 8px 0;
}

.rt-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 2px solid #222;
    border-radius: 14px;
    margin-bottom: 10px;
}

.rtsi-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.rtsi-info {
    flex: 1;
}

.rtsii-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rtsii-value {
    font-size: 20px;
    font-weight: 800;
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.rtsi-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.rtsi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.rtsi-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.rt-info {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 16px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG LOADING & EMPTY STATES
   ═══════════════════════════════════════════════════════════════════════════ */

.rm-loading, .ri-loading {
    text-align: center;
    padding: 50px 20px;
    color: #444;
}

.rm-empty, .ri-empty, .rm-error, .ri-error {
    text-align: center;
    padding: 50px 20px;
    color: #555;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #222;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   RPG PVP - Arena Style
   ═══════════════════════════════════════════════════════════════════════════ */

.pvp-opponent {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 2px solid #222;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.pvp-opponent:hover {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.pvp-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pvp-info {
    flex: 1;
}

.pvp-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.pvp-level {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.pvp-fight-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    transition: all 0.2s;
}

.pvp-fight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RPG SERVICES - Hospital/Mechanic
   ═══════════════════════════════════════════════════════════════════════════ */

.service-card {
    padding: 20px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 2px solid #222;
    border-radius: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.service-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.service-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.service-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMING SOON BOX
   ═══════════════════════════════════════════════════════════════════════════ */

.coming-soon-box {
    text-align: center;
    padding: 60px 20px;
}

.csb-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: grayscale(0.5);
}

.csb-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.csb-desc {
    font-size: 14px;
    color: #666;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST CONTAINER (fallback for RPG)
   ═══════════════════════════════════════════════════════════════════════════ */

#rpg-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
