:root {
    --bg-base: #0a0e1a;
    --bg-navbar: #0f1420;
    --bg-card: #121829;
    --bg-input: #0a0e1a;
    --bg-panel: rgba(18, 24, 41, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);

    --accent: #a82030;
    /* Crimson red matching the screenshot */
    --accent-hover: #c2293c;
    --accent-secondary: #00f0ff;

    --text-primary: #ffffff;
    --text-secondary: #9095a6;
    --success: #2f9e44;
    --error: #e03131;
    --transition-speed: 0.25s;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* Header Navbar */
header.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    height: 80px;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-shop-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: none;
}

.nav-shop-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(168, 32, 48, 0.4);
}

.brand-name {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

.brand-name span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu > li:not(:last-of-type)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.18);
    margin-left: 2px;
    margin-right: 2px;
    font-size: 12px;
    pointer-events: none;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    color: var(--text-primary);
    position: relative;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 6px;
    right: 6px;
    height: 3px;
    background: var(--accent);
}

/* Category Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-btn .dropdown-arrow {
    font-size: 10px;
    color: var(--accent);
    transition: transform var(--transition-speed) ease;
}

.nav-item-dropdown:hover .nav-dropdown-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    z-index: 1050;
}

.nav-dropdown-menu {
    background: rgba(15, 20, 32, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px;
    min-width: 170px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(168, 32, 48, 0.2);
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: navDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-dropdown:hover .nav-dropdown-content {
    display: block;
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 9px 14px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: rgba(168, 32, 48, 0.2);
    color: #ffffff;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

.nav-btn.btn-cta {
    background: var(--accent);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 6px;
    font-size: 12px;
}

.nav-btn.btn-cta:hover {
    background: var(--accent-hover);
}

/* Social Icons Styling */
.nav-socials {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    margin-right: auto; /* Push the nav-menu to the right side of the navbar */
    align-items: center;
}

.social-icon-btn {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    color: var(--text-primary);
    transform: scale(1.15);
}

/* User dropdown & Pill Badge */
.user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.user-dropdown-badge {
    background: linear-gradient(135deg, var(--accent), #7a121e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(168, 32, 48, 0.4);
    transition: all var(--transition-speed) ease;
    user-select: none;
}

.user-dropdown-badge::after {
    content: '▼';
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 6px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.user-dropdown:hover .user-dropdown-badge {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 18px rgba(168, 32, 48, 0.7);
}

.user-dropdown:hover .user-dropdown-badge::after {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: rgba(18, 24, 41, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 140px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: dropdownFade 0.2s ease-out;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}

.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    white-space: nowrap;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
}

.dropdown-item:hover {
    background: rgba(168, 32, 48, 0.2);
    color: #ffffff;
}

.dropdown-item#logoutBtn:hover {
    background: rgba(224, 49, 49, 0.15);
    color: #ff6b6b;
}

/* Main Container */
.main-wrapper {
    flex: 1;
    width: 100%;
}

/* Views Logic */
.portal-view {
    display: none;
    animation: fadeEffect 0.3s ease-out forwards;
    scroll-margin-top: 100px;
}

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

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: #0f1015; /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none; /* Make video unclickable to avoid interfering with buttons */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(15, 16, 21, 0.5) 0%,
            rgba(15, 16, 21, 0.9) 85%,
            var(--bg-base) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-title span {
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Base Buttons */
.btn {
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Home Body Content (Standard & Minimal) */
.home-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

/* Server Live Info Card */
.server-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
    text-align: center;
    margin-top: -120px;
    /* Overlap with hero */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

.info-value {
    font-size: 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.online {
    color: var(--success);
}

.status-badge.online .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-badge.offline {
    color: var(--error);
}

.status-badge.offline .status-dot {
    background: var(--error);
}

/* Sleek Accordion Setup Guide */
.setup-guide-section {
    margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.setup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    gap: 25px;
    transition: all var(--transition-speed);
}

.setup-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.setup-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.setup-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.setup-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.dl-button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed);
}

.dl-button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Sleek Form styling */
.form-view-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

#tab-dashboard .form-view-container {
    padding-top: 0;
    margin-top: 0;
}

.minimal-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: none;
}

#dash-view-stats .minimal-panel {
    background: transparent;
    border: none;
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-speed);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(168, 32, 48, 0.15);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239095a6' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) 50%;
    padding-right: 45px;
    cursor: pointer;
}

select.form-input option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.alert-box {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 25px;
    display: none;
    line-height: 1.5;
}

.alert-error {
    background: rgba(224, 49, 49, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(224, 49, 49, 0.2);
}

.alert-success {
    background: rgba(47, 158, 68, 0.1);
    color: #51cf66;
    border: 1px solid rgba(47, 158, 68, 0.2);
}

/* Register Grid Skin Options */
.skin-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
    overflow-y: auto;
    padding-right: 5px;
    flex: 1;
    align-content: start;
}

.skin-grid::-webkit-scrollbar {
    width: 6px;
}

.skin-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

.skin-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.skin-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skin-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.skin-card.active {
    background: rgba(168, 32, 48, 0.05);
    border-color: var(--accent);
}

.gender-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 20px;
}

.gender-badge.male {
    background: rgba(0, 150, 255, 0.1);
    color: #33bfff;
}

.gender-badge.female {
    background: rgba(255, 0, 150, 0.1);
    color: #ff33b3;
}

.skin-icon {
    font-size: 28px;
    margin-bottom: 8px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.skin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.skin-desc {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* User Dashboard Panel Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-meta h3 {
    font-size: 22px;
    font-weight: 800;
}

.profile-meta p {
    color: var(--text-secondary);
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.money {
    color: var(--success);
}

.stat-icon.health {
    color: var(--error);
}

.stat-icon.stamina {
    color: #f59f00;
}

.stat-icon.admin {
    color: #862e9c;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
}

.stat-value.money {
    color: var(--success);
}

.location-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.location-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.location-coords {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--accent-secondary);
}

.dashboard-skin-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.active-skin-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.active-skin-avatar {
    font-size: 64px;
    margin-bottom: 15px;
}

.active-skin-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.active-skin-id {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Dashboard Inner Tabs navigation */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
    background: var(--bg-panel);
    border-radius: 12px 12px 0 0;
    padding: 15px 15px 0 15px;
}

.dashboard-tabs .nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-bottom: 3px solid transparent;
}

.dashboard-tabs .nav-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.05);
}

.dashboard-tabs .nav-btn.active {
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    border-bottom-color: #00f0ff;
}

.dashboard-tabs .nav-btn.active::after {
    display: none;
}

/* Success Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    /* Semi-transparent overlay */
    display: none;
    /* Toggle via display instead of opacity transition */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.success-modal-card {
    background: #1e293b;
    /* Solid background, no glass transparency */
    border: 1px solid #475569;
    /* Solid border */
    max-width: 480px;
    width: 90%;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    /* Removed transitions and scale animation for zero lag */
}

.success-badge {
    width: 50px;
    height: 50px;
    background: rgba(47, 158, 68, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.success-modal-card h2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.success-modal-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.summary-list {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

/* Alert Modal */
.alert-modal-card {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    padding: 40px;
    text-align: center;
}

.alert-modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.alert-modal-card h3 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: #fff;
}

.alert-modal-card p {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.alert-modal-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.alert-modal-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.alert-modal-btn:active {
    transform: translateY(0);
}

/* Shop Item Tooltip */
.shop-tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.98); /* Slightly darker Slate bg */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Subtle white border, no cyan glow */
    border-radius: 8px;
    padding: 16px; /* Increased padding */
    width: 440px; /* Larger width */
    max-width: 500px; /* Larger width */
    min-width: 400px; /* Larger width */
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.5); /* Strong drop shadow instead of cyan glow */
}

.shop-tooltip-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-tooltip-icon {
    font-size: 32px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-tooltip-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-tooltip-header h4 {
    font-size: 18px; /* Was 13px */
    font-weight: 700;
    color: #00f0ff;
    margin: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.shop-tooltip p {
    font-size: 14px; /* Was 12px */
    color: rgba(226, 232, 240, 0.9);
    margin: 0 0 10px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.shop-tooltip-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px; /* Was 11px */
    gap: 8px;
}

.tooltip-label {
    color: rgba(203, 213, 225, 0.9);
    font-weight: 500;
    flex-shrink: 0;
}

.tooltip-value {
    color: #fff;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Character Level Badge */
.char-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f5a623 0%, #f7c94b 50%, #e8902a 100%);
    color: #1a0e00;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 80, 0.6);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    animation: lvBadgePulse 2.5s ease-in-out infinite;
}

.char-level-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-20deg);
    pointer-events: none;
}

@keyframes lvBadgePulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(245, 166, 35, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(247, 201, 75, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
    }
}

/* Remember Me Checkbox */
.remember-me-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 4px;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.remember-me-checkbox {
    display: none;
}

.remember-me-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-speed);
    position: relative;
}

.remember-me-checkbox:checked+.remember-me-custom {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(168, 32, 48, 0.35);
}

.remember-me-checkbox:checked+.remember-me-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.remember-me-label:hover .remember-me-custom {
    border-color: var(--accent);
}

.remember-me-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.remember-me-label:hover .remember-me-text {
    color: var(--text-primary);
}

/* Footer styling */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-navbar);
}

/* Dashboard New Layout */
.dashboard-new-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 15px;
    margin-top: 10px;
    align-items: stretch;
}

.dash-left-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    background: #1e222d !important; /* ปรับพื้นหลังแผงทั้งหมดให้สว่างขึ้นเป็นสีเทาเข้มมีระดับ */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09) !important; /* ปรับขอบของแผงให้สว่างเห็นชัดเจนขึ้น */
}

.dash-right-panel {
    display: flex;
    flex-direction: column;
    background: #1e222d !important; /* ปรับพื้นหลังแผงช่องเก็บของทั้งหมดให้สว่างขึ้นเช่นเดียวกัน */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

/* Dashboard Inventory Grid */
.dash-inventory-grid {
    display: grid;
    grid-template-columns: repeat(11, 52px);
    grid-template-rows: repeat(8, 52px);
    gap: 0;
    background: rgba(0, 0, 0, 0.45); /* ปรับพื้นหลังตารางให้ตัดกับช่องสว่างได้ชัดขึ้น */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 15px;
    width: fit-content;
    margin: 0 auto;
    max-height: 550px;
    overflow: hidden;
    position: relative;
}

.dash-inventory-slot {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.6rem;
    transition: all 0.1s ease;
    box-sizing: border-box;
}

.dash-inventory-slot:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.01);
}

.dash-inventory-slot .slot-num {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
}

.dash-inventory-slot .item-icon {
    font-size: 1.8rem;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-inventory-slot .item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dash-inventory-slot .item-count {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 4px;
    border-radius: 3px;
}

.dash-inventory-slot.occupied {
    background: rgba(255, 255, 255, 0.09); /* ช่องที่มีของจะสว่างเด่นกว่าเล็กน้อย */
    border-color: rgba(255, 255, 255, 0.18);
}

.dash-inventory-slot.occupied:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--accent); /* เรืองแสงแดงเมื่อชี้ไอเทม */
    box-shadow: 0 0 12px rgba(168, 32, 48, 0.35);
}

.dash-inventory-slot.locked {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px dashed rgba(255, 255, 255, 0.06) !important;
    cursor: not-allowed !important;
    pointer-events: none; /* ป้องกันการคลิกหรือลากวางไอเทมในช่องที่ยังไม่ปลดล็อก */
}

.dash-inventory-slot.locked:hover {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.dash-inventory-slot.locked .lock-icon {
    font-size: 1.4rem;
    color: #e03131; /* กุญแจแดงเหมือนในเกม */
    opacity: 0.7;
    filter: drop-shadow(0 0 3px rgba(224, 49, 49, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Grid Item Overlay Style for Multi-slot Inventory */
.grid-item {
    background: rgba(10, 14, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    user-select: none;
    padding: 4px;
    box-sizing: border-box;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.grid-item.active {
    border-color: #bc39fa;
    background: rgba(188, 57, 250, 0.08);
    box-shadow: 0 0 10px rgba(188, 57, 250, 0.15);
}

.grid-item.equipped {
    border-color: rgba(0, 255, 135, 0.45);
    background: rgba(0, 255, 135, 0.03);
}

.grid-item .slot-num {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.grid-item .item-icon {
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.grid-item .item-icon img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.grid-item .item-count {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 4px;
    border-radius: 3px;
    pointer-events: none;
}

.grid-item.rotated .item-icon img {
    transform: rotate(90deg);
}

/* Register 2 Columns Layout */
.register-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    align-items: stretch;
}

.register-column-left {
    display: flex;
    flex-direction: column;
}

.register-column-right {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

#tab-register .minimal-panel {
    max-width: 1050px;
}

/* Responsive elements */
@media (max-width: 900px) {
    header.navbar {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .server-bar {
        grid-template-columns: 1fr;
        margin-top: -60px;
        padding: 20px;
        gap: 15px;
    }

    .info-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }

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

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

    .register-columns-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #tab-register .minimal-panel {
        padding: 30px 20px;
    }
}

/* Left Side Panel Character Status Styles - In-game inventory match */
.dash-left-panel .profile-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
}

.dash-left-panel .profile-avatar {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.25));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dash-left-panel .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ==========================================
   SHOP SYSTEM STYLES
   ========================================== */

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.shop-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 15px;
    aspect-ratio: 1 / 1;
    justify-content: space-between;
    box-sizing: border-box;
}

.shop-item-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.1);
}

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

.shop-item-card.disabled:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.shop-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
}

.shop-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-item-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.shop-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    min-height: 36px;
}

.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
}

.shop-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.shop-item-stock {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.shop-item-stock.low-stock {
    color: #ffa94d;
    background: rgba(255, 169, 77, 0.1);
}

.shop-item-stock.out-of-stock {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* ==========================================
   SHOPPING CART DESIGN (24/7 Supermarket)
   ========================================== */

.shop-supermarket-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2332 0%, #0f1720 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* Hide main navbar when shop is active - REMOVED */

body:has(#tab-shop.active) header.navbar {
    display: flex !important;
}

/* Dashboard and Shop background same style */
#tab-dashboard,
#tab-shop {
    background: var(--bg-panel);
    min-height: calc(100vh - 80px);
    padding-top: 0;
}

.shop-main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    height: calc(100vh - 180px);
    max-height: 800px;
}

.shop-products-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 20px;
}

.shop-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.shop-cat-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-cat-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: #00f0ff;
}

.shop-cat-btn.active {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    color: #00f0ff;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 20px;
}

.shop-products-grid::-webkit-scrollbar {
    width: 6px;
}

.shop-products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.shop-products-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

.shop-products-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

.shop-product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 12px 12px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    height: 210px;
    box-sizing: border-box;
}

.shop-product-card:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(2px);
    z-index: 100;
}

.shop-product-price {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #00f0ff;
}

.shop-product-icon {
    width: 64px;
    height: 64px;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.shop-product-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.shop-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-top: 6px;
}

.shop-product-stock {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.shop-product-stock.low {
    color: #ffa94d;
}

.shop-product-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    width: max-content;
    max-width: 200px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    font-weight: normal;
    line-height: 1.4;
}

.shop-product-stock.out {
    color: #ff6b6b;
}

.shop-cart-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
    overflow: hidden;
}

.shop-cart-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.shop-cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.shop-cart-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 15px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.shop-cart-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-cart-item-img {
    background: rgba(0, 0, 0, 0.35);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.shop-cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-cart-item-count-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 8px;
    margin-left: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-cart-item-info {
    flex: 1;
}

.shop-cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.shop-cart-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.shop-cart-item-controls {
    display: flex;
    gap: 4px;
}

.shop-cart-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.shop-cart-btn.remove {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
}

.shop-cart-btn.remove:hover {
    background: rgba(255, 59, 48, 0.3);
}

.shop-cart-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.shop-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.shop-cart-total-price {
    font-size: 32px;
    font-weight: 800;
    color: #00f0ff;
}

/* Cart Total Rows */
.shop-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-checkout-btn {
    width: 100%;
    padding: 16px;
    border: none;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.4);
}

.shop-checkout-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Shop Wallet Bar */
.shop-wallet-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.shop-wallet-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-wallet-item.cash {
    background: rgba(0, 255, 135, 0.05);
    border-color: rgba(0, 255, 135, 0.15);
}

.shop-wallet-item.credit {
    background: rgba(188, 57, 250, 0.05);
    border-color: rgba(188, 57, 250, 0.15);
}

.wallet-icon {
    font-size: 24px;
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.wallet-value {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.shop-wallet-item.cash .wallet-value {
    color: #00ff87;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.25);
}

.shop-wallet-item.credit .wallet-value {
    color: #e0a3ff;
    text-shadow: 0 0 10px rgba(188, 57, 250, 0.25);
}

/* Price Type Colors */
.price-cash {
    color: #00ff87 !important;
}

.price-credit {
    color: #e0a3ff !important;
}

.shop-product-price.price-credit {
    background: rgba(188, 57, 250, 0.3);
    color: #e0a3ff;
}

.shop-product-price.price-cash {
    background: rgba(0, 255, 135, 0.3);
    color: #00ff87;
}

/* Cart Total Rows */
.shop-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.shop-cart-total-row .shop-cart-total-price {
    font-size: 24px;
    font-weight: 800;
}

.shop-cart-total-row .price-cash {
    color: #00ff87;
}

.shop-cart-total-row .price-credit {
    color: #e0a3ff;
}

.dash-left-panel .profile-avatar:hover {
    border-color: var(--accent-secondary);
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.dash-left-panel .profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-left-panel .profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.dash-left-panel .profile-job {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* status-box styling */
.dash-left-panel .status-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-left-panel .status-box-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.dash-left-panel .status-box-val {
    font-size: 1.4rem;
    font-weight: 700;
}

.dash-left-panel .money-box .status-box-val {
    color: #00ff87;
    /* matching in-game success color */
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.25);
}

.dash-left-panel .wanted-stars {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* vitals container */
.dash-left-panel .vitals-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    flex: 1;
    justify-content: space-evenly;
}

.dash-left-panel .vital-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.dash-left-panel .vital-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.dash-left-panel .vital-label span:last-child {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-secondary);
    font-weight: 600;
}

.dash-left-panel .vital-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
}

.dash-left-panel .food-bg {
    background: rgba(255, 221, 89, 0.08) !important;
}

.dash-left-panel .drink-bg {
    background: rgba(52, 231, 228, 0.08) !important;
}

.dash-left-panel .vital-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.dash-left-panel .health-fill {
    background: linear-gradient(90deg, #22c55e, #10b981);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.dash-left-panel .stamina-fill {
    background: linear-gradient(90deg, #ff9f43, #ff5252);
    box-shadow: 0 0 8px rgba(255, 159, 67, 0.3);
}

.dash-left-panel .armor-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.dash-left-panel .food-fill {
    background: linear-gradient(90deg, #fb923c, #f97316);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
}

.dash-left-panel .drink-fill {
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* EXP Progress Bar */
.exp-container {
    background: rgba(255, 200, 60, 0.05);
    border: 1px solid rgba(255, 200, 60, 0.2);
    border-left: 3px solid #ffc83c;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exp-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 200, 60, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 200, 60, 0.15);
}

.exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc83c, #ffaa00);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 200, 60, 0.5);
}

.spawn-points-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.spawn-opt-btn {
    text-align: left;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: none !important;
}

.spawn-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.spawn-opt-btn.active {
    background: rgba(168, 32, 48, 0.2) !important;
    border-color: var(--accent) !important;
    font-weight: 700;
}

/* ==========================================================================
   WEB MARKET REDESIGN STYLES
   ========================================================================= */

/* Modern 3-Tab Slider/Switcher */
.market-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.market-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.market-tab-btn.active {
    background: var(--accent); /* Crimson red accent */
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 32, 48, 0.3);
}

.market-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.market-refresh-btn:active {
    transform: translateY(0);
}

/* Merchant Info Banner */
.merchant-info-banner {
    padding: 20px;
    background: rgba(255, 200, 60, 0.02);
    border: 1px solid rgba(255, 200, 60, 0.12);
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-shadow: 0 4px 20px rgba(255, 200, 60, 0.05);
}

/* Manager Panels */
.market-sell-panel {
    flex: 1;
    background: rgba(18, 24, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.market-mylistings-panel {
    flex: 2;
    background: rgba(18, 24, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.market-panel-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.market-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.market-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.market-input {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-speed);
}

.market-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(168, 32, 48, 0.25);
    background: rgba(10, 15, 30, 0.85);
}

.market-submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(168, 32, 48, 0.3);
}

.market-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 32, 48, 0.45);
}

.market-submit-btn:active {
    transform: translateY(1px);
}

.market-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Listings Rows */
.market-listing-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 13px;
    transition: all var(--transition-speed);
}

.market-listing-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.market-listing-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.market-listing-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.market-listing-remove-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* ==========================================================================
   MERCHANT SYSTEM REDESIGN STYLES
   ========================================================================= */

.merchant-profile-card {
    flex: 1;
    background: #111625;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    max-width: 320px;
    height: 595px;
    align-self: flex-start;
}

.merchant-profile-image-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    flex: 1;
    background: #080b13;
    overflow: hidden;
}

#webMarketNPCImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.merchant-profile-card:hover #webMarketNPCImage {
    transform: scale(1.05);
}

.merchant-profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #111625, transparent);
}

.merchant-profile-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.merchant-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(168, 32, 48, 0.3);
}

.merchant-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.merchant-subtitle {
    font-size: 10px;
    color: var(--accent-secondary);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.merchant-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.merchant-info-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffc83c;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
}

.merchant-description {
    font-size: 13px;
    color: #b3b9c9;
    line-height: 1.6;
    font-style: italic;
}

/* Right side cards layout */
.merchant-item-card {
    background: rgba(18, 24, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-speed);
    height: 290px;
    position: relative;
}

.merchant-item-card:hover {
    border-color: rgba(255, 200, 60, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
}

.merchant-item-card.empty {
    opacity: 0.6;
    background: rgba(15, 20, 35, 0.5);
    border-color: rgba(255, 255, 255, 0.03);
}

.merchant-item-card.empty:hover {
    border-color: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.merchant-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.merchant-item-name-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.merchant-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merchant-item-price-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 255, 135, 0.3);
    color: #00ff87;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}

.merchant-item-card.empty .merchant-item-price-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.merchant-item-icon-container {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.merchant-item-icon-container img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-speed);
}

.merchant-item-card:hover .merchant-item-icon-container img {
    transform: scale(1.08);
}

.merchant-item-body {
    flex-grow: 1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merchant-item-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.merchant-item-qty {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-has {
    color: #00f0ff;
    font-weight: 700;
}

.qty-empty {
    color: #ef4444;
    font-weight: 500;
}

.merchant-sell-btn {
    width: 100%;
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
}

.merchant-sell-btn.active {
    background: linear-gradient(135deg, #ffc83c 0%, #ffa500 100%);
    color: #111827;
    box-shadow: 0 4px 12px rgba(255, 200, 60, 0.25);
}

.merchant-sell-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 200, 60, 0.4);
}

.merchant-sell-btn.active:active {
    transform: translateY(1px);
}

.merchant-sell-btn.disabled {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
}

/* ==========================================================================
   Equipped Slots Panel (Left Edge Sidebar) Styles
   ========================================================================== */
.equipped-slots-panel {
    position: absolute;
    left: -55px;
    top: 95px;
    width: 96px;
    background: #1e222d !important; /* ปรับเป็นสีเดียวกันกับแผงหลัก */
    border: 1px solid rgba(255, 255, 255, 0.09) !important; /* ปรับขอบให้สว่างและคมชัดเท่ากัน */
    border-right: none !important;
    border-radius: 20px 0 0 20px;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 99;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipped-circle-slot {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipped-circle-slot:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

.equipped-circle-slot.active {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
    background: rgba(16, 185, 129, 0.02);
}

.equipped-circle-slot .slot-placeholder {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    transition: all 0.3s ease;
}

.equipped-circle-slot:hover .slot-placeholder {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.equipped-circle-slot .slot-item-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.3s ease;
}

.equipped-circle-slot:hover .slot-item-img {
    transform: scale(1.05);
}

/* Tooltip / Details on hover */
.equipped-circle-slot .equipped-item-details {
    display: none;
    position: absolute;
    left: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    flex-direction: column;
    gap: 4px;
    animation: tooltipFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.equipped-circle-slot:hover .equipped-item-details {
    display: flex;
}

.equipped-item-details .slot-title {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.equipped-item-details .slot-item-name {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* Responsive constraints */
@media (max-width: 1250px) {
    .equipped-slots-panel {
        left: -39px;
        width: 80px;
        padding: 16px 6px;
    }
    .equipped-circle-slot {
        width: 58px;
        height: 58px;
    }
    .equipped-circle-slot .equipped-item-details {
        left: 75px;
    }
}

/* Register Lore Options */
.lore-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.lore-container {
    display: flex;
    flex-direction: column;
    gap: 10px;

/* ==========================================
   Roadmap Timeline & Card Styles
   ========================================== */
/* Smooth Hardware-Accelerated Tab & Card Animations */
.portal-view.active {
    animation: portalTabFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

@keyframes portalTabFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy YouTube Embed & Thumbnail Fast Loading */
.lazy-youtube {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.lazy-youtube img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lazy-youtube:hover img {
    transform: scale(1.05);
}

.lazy-youtube .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lazy-youtube:hover .play-btn-overlay {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.6);
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 25px;
}

.roadmap-card {
    display: flex;
    flex-direction: row;
    background: rgba(18, 26, 43, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.roadmap-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.15);
}

.roadmap-card-image {
    width: 320px;
    min-width: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-card-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.roadmap-month-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 0.5px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
}

.roadmap-status-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.roadmap-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.roadmap-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .roadmap-card {
        flex-direction: column;
    }
    .roadmap-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}
}

.lore-card {
    background: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    text-shadow: none !important;
}

.lore-card:hover {
    background: rgba(0, 0, 0, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.lore-card.active {
    background: rgba(0, 0, 0, 0.85) !important;
    border-color: #00ff87 !important;
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.3) !important;
}

.lore-card::before {
    content: "";
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    transition: all var(--transition-speed);
    align-items: center;
    justify-content: center;
}

.lore-card.active::before {
    content: "✓";
    color: #00ff87;
    border-color: #00ff87;
    background: rgba(0, 255, 135, 0.15);
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 0 8px rgba(0, 255, 135, 0.3);
}

.lore-card-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.lore-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffd43b !important;
    margin-bottom: 4px;
    text-shadow: none !important;
}

.lore-card-desc {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
    text-shadow: none !important;
}

/* ==========================================
   TOP RANK LEADERBOARD STYLES (MINIMAL CARD REDESIGN)
   ========================================== */
#tab-rank {
    padding: 20px 0;
}

/* ตารางจัดอันดับโทนสีเทาสบายตา (เข้มนอก สว่างใน) */
#tab-rank {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    padding: 20px 0;
    margin-top: 20px;
}

#tab-rank .minimal-panel {
    background: #2d323f !important; /* ปรับสว่างขึ้นอีกเล็กน้อยเป็นสีเทาเข้มมีมิติ */
    border: 1px solid #3c4250 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border-radius: 12px;
    max-width: 100% !important;
}

#tab-rank .form-header h2 {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#tab-rank .form-header p {
    color: #cbd5e1 !important;
    font-size: 1.1rem;
}

/* คอนเทนเนอร์หุ้มตารางด้านใน (สีเทากลาง) */
.rank-table-wrapper {
    overflow-x: auto;
    background: #484f60;
    border-radius: 8px;
    border: 1px solid #5c6579;
}

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

.rank-light-table th {
    background-color: #2b527a; /* แถวหัวข้อเป็นสีฟ้าอมน้ำเงินพรีเมียมตามสั่ง */
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 2px solid #5c6579;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease;
}

.rank-light-table th[data-sort]:hover {
    background-color: #386c9d;
}

.rank-light-table th:last-child {
    border-right: none;
}

.rank-light-row {
    border-bottom: 1px solid #5c6579;
    transition: background-color 0.2s ease;
}

/* สลับแถวด้วยเทากลาง */
.rank-light-row:nth-child(odd) {
    background-color: #484f60;
}

.rank-light-row:nth-child(even) {
    background-color: #535b6e;
}

.rank-light-row:hover {
    background-color: #5e687d !important;
}

/* ปรับสีพื้นหลังแถว 1-3 ให้อ่อนลงเล็กน้อย ละมุนตา ไม่ซีดจาง และไม่เข้มหนักเกินไป (โทนพาสเทลลงตัว) */
.rank-light-row-1st {
    background-color: #783c41 !important; /* สีแดงพาสเทลนุ่มนวลอ่อนลง */
}
.rank-light-row-1st:hover {
    background-color: #884449 !important;
}

.rank-light-row-2nd {
    background-color: #2b5a38 !important; /* สีเขียวพาสเทลนุ่มนวลอ่อนลง */
}
.rank-light-row-2nd:hover {
    background-color: #326841 !important;
}

.rank-light-row-3rd {
    background-color: #51366c !important; /* สีม่วงพาสเทลนุ่มนวลอ่อนลง */
}
.rank-light-row-3rd:hover {
    background-color: #5d3e7c !important;
}

.rank-light-row td {
    padding: 12px 18px;
    vertical-align: middle;
    color: #ffffff;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-light-row td:last-child {
    border-right: none;
}

/* ลำดับตัวหนาคลีนๆ: 1st, 2nd, ... */
.rank-light-num {
    font-weight: 800;
    color: #f1f3f5;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
}

.rank-light-num-1 {
    color: #ffd43b !important; /* สีทองสำหรับที่ 1 */
}

/* โปรไฟล์ผู้เล่น */
.rank-light-player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-light-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #5c6579;
    background: #393f4e;
}

.rank-light-avatar-fallback {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #5c6579;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5c6579;
    text-transform: uppercase;
}

.rank-light-name {
    font-weight: 700;
    color: #ffffff;
}

/* เลเวลสีฟ้าตามคำสั่ง */
.rank-light-level {
    font-weight: 700;
    color: #339af0;
}

/* แท็กป้ายอาชีพ */
.rank-light-job-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #1971c2; /* สีน้ำเงิน */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(25, 113, 194, 0.2);
}

/* กรณีไม่มีอาชีพหรืออาชีพทั่วไป */
.rank-light-job-badge-none {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #d97706; /* สีส้มอมน้ำตาล */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

/* แท็กป้ายตำแหน่งหน่วยงาน (Faction Badge) */
.rank-light-faction-badge-police {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: #dc2626; /* สีแดงตำรวจ */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.rank-light-faction-badge-ems {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: #059669; /* สีเขียวหมอ */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.rank-light-faction-badge-mechanic {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: #eab308; /* สีเหลืองช่าง */
    color: #111827;
    box-shadow: 0 2px 4px rgba(234, 179, 8, 0.3);
}

.rank-light-faction-badge-citizen {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: #4b5563; /* สีเทาประชาชน */
    color: #f3f4f6;
    box-shadow: 0 2px 4px rgba(75, 85, 99, 0.2);
}

/* Badge สำหรับตำแหน่งแก๊ง */
.rank-light-faction-badge-gang-leader {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.35), rgba(245, 101, 101, 0.3));
    border: 1px solid rgba(255, 153, 0, 0.65);
    color: #ffb84d;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.rank-light-faction-badge-gang-officer {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #c084fc;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.rank-light-faction-badge-gang-member {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(185, 28, 28, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.rank-light-faction-badge-gang-prospect {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: rgba(56, 178, 172, 0.2);
    border: 1px solid rgba(56, 178, 172, 0.5);
    color: #4fd1c5;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.2);
}

/* คอลัมน์แก๊ง (Logo + Tag) */
.rank-light-gang-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.rank-light-gang-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.rank-light-gang-logo-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.rank-light-gang-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.rank-light-no-gang {
    display: inline-block;
    color: #718096;
    font-weight: 600;
    font-size: 1.1rem;
    padding-left: 8px;
}

/* Progress Bar สำหรับภารกิจ */
.rank-light-progress-container {
    position: relative;
    width: 100%;
    max-width: 160px;
    height: 18px;
    background-color: #282d37;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #5c6579;
    display: flex;
    align-items: center;
}

.rank-light-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #ffd43b); /* ปรับสีเป็นเขียวสว่างไล่ไปเหลืองตามสั่ง */
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rank-light-progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* เงินติดตัวสีเขียวตามคำสั่ง */
.rank-light-money {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    color: #40c057;
    font-size: 1.05rem;
}


/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(168, 32, 48, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   GANG LEADERBOARD DIRECTORY STYLES
   ========================================== */
.rank-gang-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.rank-gang-logo {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: #0d121c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.rank-gang-logo-fallback {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.rank-gang-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
}

.rank-gang-tag {
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.35);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    box-shadow: 0 0 6px rgba(0, 210, 255, 0.2);
    flex-shrink: 0;
}

.rank-gang-type-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rank-gang-type-triads {
    background: rgba(255, 51, 68, 0.18);
    color: #ff4d5e;
    border: 1px solid rgba(255, 51, 68, 0.4);
}

.rank-gang-type-mc {
    background: rgba(255, 140, 0, 0.18);
    color: #ffa726;
    border: 1px solid rgba(255, 140, 0, 0.4);
}

.rank-gang-type-russian {
    background: rgba(0, 114, 255, 0.18);
    color: #42a5f5;
    border: 1px solid rgba(0, 114, 255, 0.4);
}

.rank-gang-type-org {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.rank-gang-territory-badge {
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.5px;
    padding: 2.5px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45));
    color: #fef08a;
    border: 1px solid rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    animation: webTerritoryPulse 2.4s infinite ease-in-out;
}

@keyframes webTerritoryPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.35); border-color: rgba(250, 204, 21, 0.6); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.75); border-color: rgba(253, 224, 71, 0.95); }
}

.rank-light-row-territory {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.28) 0%, rgba(120, 60, 65, 0.7) 40%, rgba(83, 91, 110, 0.9) 100%) !important;
    border-left: 3px solid #fbbf24 !important;
}

.rank-gang-vault-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.35);
    padding: 3px 10px;
    border-radius: 12px;
    color: #00e676;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.12);
}

.rank-gang-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}

.rank-gang-war-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.3) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 800;
}

.rank-gang-hq-box {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   EDIT PROFILE SUBTAB THEME SYNC (GRAY THEME)
   ========================================== */
#dash-view-edit .minimal-panel {
    background: #1e222d !important; /* ปรับสีเทาเข้มเข้าชุดกัน */
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border-radius: 12px;
}

#dash-view-edit .form-header h2 {
    color: #ffffff !important;
}

#dash-view-edit .form-header p {
    color: #a1a8b9 !important;
}

#dash-view-edit label {
    color: #cbd5e1 !important;
    font-weight: 600;
}

#dash-view-edit .form-input {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

#dash-view-edit .form-input[readonly] {
    background: rgba(255, 255, 255, 0.03) !important;
    opacity: 0.5;
}

#dash-view-edit .form-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 8px rgba(168, 32, 48, 0.3) !important;
}

#dash-view-edit .profile-avatar-preview {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Donate Coming Soon Styling */
.donate-coming-soon-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donate-coming-soon-card {
    background: #1e222d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(168, 32, 48, 0.15);
    border: 1px solid rgba(168, 32, 48, 0.3);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.donate-coming-soon-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.coming-soon-subtitle {
    color: var(--accent-secondary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.coming-soon-divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.coming-soon-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.btn-discord {
    background: #5865F2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* ========================================================
   REGISTER & LOGIN PAGES THEME SYNC (DARK GRAY THEME)
   ======================================================== */
#tab-register .minimal-panel,
#tab-login .minimal-panel {
    background: #1e222d !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

#tab-register .form-header h2,
#tab-login .form-header h2 {
    color: #ffffff !important;
}

#tab-register .form-header p,
#tab-login .form-header p {
    color: #a1a8b9 !important;
}

#tab-register label,
#tab-login label {
    color: #cbd5e1 !important;
    font-weight: 600;
}

#tab-register .form-input,
#tab-login .form-input {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

#tab-register .form-input:focus,
#tab-login .form-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 8px rgba(168, 32, 48, 0.3) !important;
}

#tab-register .profile-avatar-preview {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#tab-register .skin-grid {
    background: transparent !important;
    border: none !important;
}

#tab-register .skin-section-title,
#tab-register .lore-section-title {
    color: #ffffff !important;
}

/* ========================================================
   REGISTER WIZARD MULTI-STEP STYLES
   ======================================================== */
.register-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    padding: 0 10px;
    position: relative;
}

/* Base line behind steps */
.register-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 45px;
    right: 45px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    opacity: 0.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: 0.9;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #181b23;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #a1a8b9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step-item.active .step-num {
    background: #5865f2;
    border-color: #5865f2;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.step-item.completed .step-num {
    background: #00ff87;
    border-color: #00ff87;
    color: #12151c;
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.3);
}

.step-text {
    font-size: 12px;
    font-weight: 600;
    color: #a1a8b9;
    transition: all 0.3s ease;
}

.step-item.active .step-text {
    color: #ffffff;
    font-weight: 700;
}

.step-item.completed .step-text {
    color: #00ff87;
}

/* Step Content visibility */
.register-step-content {
    display: none;
    animation: fadeInStep 0.4s ease forwards;
}

.register-step-content.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation buttons bar */
.register-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 15px;
}

.register-navigation .btn {
    margin: 0 !important;
}

/* Adjust register minimal-panel width to look great with wizard */
#tab-register .minimal-panel {
    max-width: 650px !important;
    padding: 35px 40px !important;
}

/* Spawn Point selector refinements to fit nicely in step 3 */
#tab-register #registerSpawnGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}

/* ==========================================================================
   WEB PORTAL MARKET STYLES & REFINE ALIGNMENTS
   ========================================================================== */

#webMarketListContainer,
#webMarketMyListings,
#webMarketHistory,
#webMarketNPCGrid {
    scrollbar-gutter: stable;
}

#webMarketListContainer::-webkit-scrollbar,
#webMarketMyListings::-webkit-scrollbar,
#webMarketHistory::-webkit-scrollbar,
#webMarketNPCGrid::-webkit-scrollbar {
    width: 4px;
}

#webMarketListContainer::-webkit-scrollbar-track,
#webMarketMyListings::-webkit-scrollbar-track,
#webMarketHistory::-webkit-scrollbar-track,
#webMarketNPCGrid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

#webMarketListContainer::-webkit-scrollbar-thumb,
#webMarketMyListings::-webkit-scrollbar-thumb,
#webMarketHistory::-webkit-scrollbar-thumb,
#webMarketNPCGrid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#webMarketListContainer::-webkit-scrollbar-thumb:hover,
#webMarketMyListings::-webkit-scrollbar-thumb:hover,
#webMarketHistory::-webkit-scrollbar-thumb:hover,
#webMarketNPCGrid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Row alignments & items hover effects */
.market-list-row {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    font-size: 13px;
    color: #fff;
    transition: all 0.2s ease;
}

.market-list-row:hover {
    background: rgba(255,255,255,0.035) !important;
    border-color: rgba(255,255,255,0.08) !important;
    transform: translateY(-1px);
}

/* History Badges */
.badge-buy {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-sell {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Minimalist Dashboard styles matching the latest in-game inventory */
.profile-card-minimal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 18, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}
.profile-header-minimal {
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-avatar-minimal {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}
.profile-info-minimal {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
}
.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.profile-name-minimal {
    font-size: 0.78rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.profile-level-badge {
    font-size: 9px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 200, 60, 0.12);
    border: 1px solid rgba(255, 200, 60, 0.25);
    padding: 0px 5px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}
.exp-container-minimal {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
}
.exp-label-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.2px;
}
.exp-title {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
.exp-val {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}
.exp-bar-bg-minimal {
    height: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    overflow: hidden;
}
.exp-bar-fill-minimal {
    height: 100%;
    background: #ffc83c;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.financials-dashboard-minimal {
    display: flex;
    align-items: center;
    background: rgba(15, 18, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;
}
.dashboard-column-minimal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.dashboard-row-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dashboard-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 0.2px;
}
.dashboard-val {
    font-size: 0.74rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-divider-minimal {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 16px;
}
.money-val {
    color: #00ff87;
    opacity: 0.9;
}
.credit-val {
    color: #ffffff;
    opacity: 0.9;
}
.position-val {
    color: #ffffff;
}
.job-val {
    color: #ffffff;
    opacity: 0.9;
}

/* Vitals panel matching in-game inventory */
.dash-left-panel .vitals-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(15, 18, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 15px;
    box-sizing: border-box;
    gap: 8px;
}

.dash-left-panel .vital-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    justify-content: center;
    position: relative;
}

/* First child (Health) has margins, height is dynamic */
.dash-left-panel .vital-row:first-child {
    margin-top: 0px;
    position: relative;
    border-radius: 0px !important;
}

.dash-left-panel .vital-row:first-child .vital-bar-bg {
    height: 42px !important;
    position: relative;
    border-radius: 0px !important;
    overflow: hidden;
}

/* Other children (Armor, Food, Water) are 22px tall */
.dash-left-panel .vital-row:not(:first-child) {
    height: 22px;
    margin-top: 0px;
    border-radius: 0px !important;
    overflow: hidden;
    position: relative;
}

.dash-left-panel .vital-row:not(:first-child) .vital-bar-bg {
    height: 22px !important;
    position: relative;
    border-radius: 0px !important;
    overflow: hidden;
}

/* Label style for Health (not absolute) */
.dash-left-panel .vital-row:first-child .vital-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

/* Absolute label positioning on top of the other bars (Armor, Food, Water) */
.dash-left-panel .vital-row:not(:first-child) .vital-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    z-index: 5;
    pointer-events: none;
    margin: 0;
    color: #ffffff;
    text-shadow: none;
    font-size: 0.72rem;
    font-weight: 700;
}

.dash-left-panel .vital-row .vital-label span:last-child {
    color: #ffffff;
}

/* Border radius resets and solid flat colors inside bars matching in-game UI */
.dash-left-panel .vital-bar-fill {
    border-radius: 0px !important;
    height: 100%;
    transition: width 0.3s ease;
    box-shadow: none !important;
}

.dash-left-panel .health-fill {
    background: #10b981 !important;
}

.dash-left-panel .armor-fill {
    background: #94a3b8 !important;
}

.dash-left-panel .food-fill {
    background: #f97316 !important;
}

.dash-left-panel .drink-fill {
    background: #0ea5e9 !important;
}

/* Backgrounds matching in-game inventory dark theme */
.dash-left-panel .vital-bar-bg {
    background: rgba(0, 0, 0, 0.45) !important;
    border: none !important;
}

.dash-left-panel .health-bg {
    background: rgba(0, 0, 0, 0.45) !important;
}

.dash-left-panel .armor-bg {
    background: rgba(0, 0, 0, 0.45) !important;
}

.dash-left-panel .food-bg {
    background: rgba(0, 0, 0, 0.45) !important;
}

.dash-left-panel .drink-bg {
    background: rgba(0, 0, 0, 0.45) !important;
}

/* ==========================================================================
   CARS SHOP WEB SHOWROOM STYLING (Forza Horizon Dark/VIP Theme)
   ========================================================================== */


#tab-carsshop {
    --bg-darker: #f1f5f9;
    --bg-dark: #ffffff;
    --bg-panel: rgba(255, 255, 255, 0.72);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(143, 196, 0, 0.4);
    --accent: #8fc400;
    --accent-glow: rgba(143, 196, 0, 0.22);
    --accent-dark: #6c9400;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Outfit', 'Montserrat', sans-serif;

    background-color: var(--bg-darker) !important;
    background-image: 
        radial-gradient(circle at 10% 20%, #f8fafc 0%, #e2e8f0 100%),
        linear-gradient(45deg, rgba(143, 196, 0, 0.015) 0%, transparent 60%) !important;
    font-family: var(--font-body);
    color: var(--text-primary) !important;
    padding: 1.5rem 2rem !important;
    height: calc(100vh - 80px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
#tab-carsshop .showroom-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

#tab-carsshop .showroom-header {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

#tab-carsshop .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

#tab-carsshop .logo-area {
    display: flex;
    flex-direction: column;
}

#tab-carsshop .logo-accent {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 8px var(--accent-glow);
    font-style: italic;
}

#tab-carsshop .logo-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 6px;
    color: var(--text-primary);
    margin-top: 0.1rem;
}

#tab-carsshop .user-stats {
    display: flex;
    gap: 1.5rem;
}

#tab-carsshop .stat-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

#tab-carsshop .stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

#tab-carsshop .stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

#tab-carsshop .category-tabs {
    display: flex;
    gap: 0.8rem;
}

#tab-carsshop .tab-btn {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: skewX(-10deg);
}

#tab-carsshop .tab-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
    border-color: rgba(15, 23, 42, 0.15);
}

#tab-carsshop .tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 12px var(--accent-glow);
}

#tab-carsshop .showroom-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
    flex-grow: 1;
    min-height: 0;
    margin-bottom: 1rem;
}

#tab-carsshop .details-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

#tab-carsshop .details-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

#tab-carsshop .details-header {
    margin-bottom: 1.2rem;
}

#tab-carsshop .brand-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-dark);
    text-transform: uppercase;
}

#tab-carsshop .car-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0.2rem 0;
    letter-spacing: -0.5px;
}

#tab-carsshop .car-year {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

#tab-carsshop .car-preview-container {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.8rem;
    background: rgba(15, 23, 42, 0.015);
    border-radius: 4px;
    border: 1px dashed rgba(15, 23, 42, 0.06);
}

#tab-carsshop .glow-bg {
    position: absolute;
    width: 70%;
    height: 60%;
    background: radial-gradient(circle, rgba(143, 196, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

#tab-carsshop .car-large-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 2;
}

#tab-carsshop .car-svg-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

#tab-carsshop .car-silhouette {
    width: 80%;
    height: 80%;
    opacity: 0.35;
}

#tab-carsshop .performance-stats {
    margin-bottom: 1.2rem;
}

#tab-carsshop .section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.5rem;
}

#tab-carsshop .stat-row {
    margin-bottom: 0.7rem;
}

#tab-carsshop .stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

#tab-carsshop .stat-name {
    color: var(--text-secondary);
}

#tab-carsshop .stat-num {
    color: var(--accent-dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
}

#tab-carsshop .progress-track {
    height: 6px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

#tab-carsshop .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 10px;
    box-shadow: 0 0 6px var(--accent-glow);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#tab-carsshop .car-description-area {
    margin-bottom: 0.8rem;
    background: rgba(15, 23, 42, 0.015);
    border-radius: 4px;
    padding: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.02);
}

#tab-carsshop .car-description-area p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

#tab-carsshop .purchase-action {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#tab-carsshop .price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0.8rem;
}

#tab-carsshop .price-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

#tab-carsshop .price-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-primary);
}

#tab-carsshop .buy-button {
    background: var(--accent);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: skewX(-5deg);
    box-shadow: 0 5px 15px rgba(143, 196, 0, 0.25);
}

#tab-carsshop .buy-button:hover {
    background: var(--text-primary); 
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.2);
    transform: skewX(-5deg) translateY(-2px);
}

#tab-carsshop .buy-button:active {
    transform: skewX(-5deg) translateY(0);
}

#tab-carsshop .preview-button {
    background: #cbd5e1; 
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: skewX(-5deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-top: 0.8rem;
}

#tab-carsshop .preview-button:hover {
    background: var(--text-secondary); 
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: skewX(-5deg) translateY(-2px);
}

#tab-carsshop .preview-button:active {
    transform: skewX(-5deg) translateY(0);
}

#tab-carsshop .btn-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 2px;
}

#tab-carsshop .btn-subtext {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-top: 0.2rem;
}

#tab-carsshop .grid-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#tab-carsshop .grid-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    overflow-y: auto;
    padding-right: 0.8rem;
    flex-grow: 1;
    min-height: 0;
}

#tab-carsshop .grid-scroll::-webkit-scrollbar {
    width: 6px;
}

#tab-carsshop .grid-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.02);
    border-radius: 3px;
}

#tab-carsshop .grid-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 3px;
}

#tab-carsshop .grid-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

#tab-carsshop .car-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.6rem 0.8rem 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

#tab-carsshop .car-card:hover {
    background: #fafafa;
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

#tab-carsshop .car-card.selected {
    border: 3.5px solid var(--accent); 
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#tab-carsshop .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

#tab-carsshop .card-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a; 
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

#tab-carsshop .card-subinfo {
    font-size: 0.65rem;
    color: #64748b; 
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

#tab-carsshop .card-img-box {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0.4rem 0;
}

#tab-carsshop .card-image {
    max-width: 95%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.08));
    transition: transform 0.3s;
}

#tab-carsshop .car-card:hover .card-image {
    transform: scale(1.05) rotate(-2deg);
}

#tab-carsshop .card-svg-silhouette {
    width: 70%;
    height: 70%;
    opacity: 0.2;
}

#tab-carsshop .card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#tab-carsshop .card-price-tag {
    background: #0f172a; 
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.45rem 1rem;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

#tab-carsshop .car-card.selected .card-price-tag {
    background: var(--accent-dark); 
    color: #ffffff;
}

#tab-carsshop .showroom-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

#tab-carsshop .control-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#tab-carsshop .key-badge {
    background: var(--text-primary); 
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

#tab-carsshop .key-desc {
    color: var(--text-secondary);
    text-transform: uppercase;
}

#tab-carsshop .watermark {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

#tab-carsshop .notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#tab-carsshop .notification-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#tab-carsshop .notification-box {
    background: #ffffff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(143, 196, 0, 0.15);
    border-radius: 6px;
    padding: 2.2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) skewX(-4deg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#tab-carsshop .notification-overlay.active .notification-box {
    transform: scale(1) skewX(-4deg);
}

#tab-carsshop .noti-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2rem;
}

#tab-carsshop .noti-icon {
    font-size: 2.2rem;
    color: var(--accent-dark);
    text-shadow: 0 0 10px var(--accent-glow);
    margin-bottom: 0.5rem;
}

#tab-carsshop .noti-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

#tab-carsshop .noti-message {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

#tab-carsshop .noti-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

#tab-carsshop .noti-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 0.75rem 2.5rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    transform: skewX(-5deg);
    box-shadow: 0 4px 10px rgba(143, 196, 0, 0.15);
}

#tab-carsshop .noti-btn:hover {
    background: var(--text-primary);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.25);
}

@keyframes floatCar {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulseSilhouette {
    0% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.45;
    }
    100% {
        opacity: 0.25;
    }
}

#tab-carsshop .hidden-card {
    display: none !important;
}

#tab-carsshop .spec-label {
    color: var(--text-secondary) !important;
}
#tab-carsshop .spec-val {
    color: var(--text-primary) !important;
}
#tab-carsshop .spec-track {
    background: rgba(15, 23, 42, 0.08) !important;
}

/* Global Portal Footer */
.portal-footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: auto;
    box-sizing: border-box;
}

.portal-footer p {
    margin: 0;
    padding: 0;
}

/* ==========================================
   ROLE VIEW STYLES
   ========================================== */
#tab-role {
    padding: 40px 0;
    margin-top: 0;
}

.role-header-text {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.role-header-text h1 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 12px;
}

.role-header-text h1 span {
    color: var(--accent);
}

.role-header-text p {
    font-size: 1.15rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.role-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Lore Cards Wrapper */
.role-lore-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.role-lore-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Force hide the old conflicting checkbox indicator from line 3223 */
.role-lore-card::before {
    display: none !important;
}

.role-lore-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 0 !important; /* Sharp corners */
    background-size: cover;
    background-position: center;
    border: none !important; /* No borders */
    box-shadow: none !important; /* No shadows */
    filter: brightness(0.8) contrast(1.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.role-lore-card:hover .role-lore-image {
    transform: translateY(-4px);
    filter: brightness(0.95) contrast(1.05);
}

.role-lore-card.active .role-lore-image {
    transform: translateY(-4px);
    filter: brightness(1.1) contrast(1.05);
}

.role-lore-label {
    margin-top: 15px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-align: center;
}

.role-lore-card:hover .role-lore-label {
    color: #fff;
}

.role-lore-card.active .role-lore-label {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Content Container & Sections */
.role-lore-content {
    width: 100%;
    min-height: 200px;
}

.role-lore-section {
    display: none;
    animation: loreFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.role-lore-section.active {
    display: block;
}

@keyframes loreFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lore-section-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 30px;
    position: relative;
}

.lore-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.lore-section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.lore-intro-card {
    background: linear-gradient(135deg, rgba(18, 24, 41, 0.8) 0%, rgba(10, 14, 26, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lore-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.lore-intro-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
    font-weight: 500;
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.lore-detail-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lore-detail-card:hover {
    border-left-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.lore-detail-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.lore-detail-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.lore-detail-card.large-layout {
    grid-column: 1 / -1;
    border-left-color: var(--accent);
    background: linear-gradient(135deg, rgba(18, 24, 41, 0.6) 0%, rgba(10, 14, 26, 0.8) 100%);
}

.lore-detail-card.large-layout.crime-accent {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, rgba(168, 32, 48, 0.05) 0%, rgba(10, 14, 26, 0.8) 100%);
}

.lore-detail-card.large-layout h3 {
    font-size: 1.35rem;
}

.lore-detail-card.large-layout p {
    font-size: 1.05rem;
}

/* Agency cards styling */
.agency-card {
    border-left-width: 4px;
    padding-top: 35px;
}

.agency-card.police {
    border-left-color: #1e3799;
}
.agency-card.medical {
    border-left-color: #2ed573;
}
.agency-card.fire {
    border-left-color: #ff4757;
}
.agency-card.mechanic {
    border-left-color: #ffa502;
}

.agency-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.agency-card.police .agency-badge {
    background: rgba(30, 55, 153, 0.2);
    color: #70a1ff;
    border: 1px solid rgba(30, 55, 153, 0.3);
}
.agency-card.medical .agency-badge {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}
.agency-card.fire .agency-badge {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}
.agency-card.mechanic .agency-badge {
    background: rgba(255, 165, 2, 0.2);
    color: #eccc68;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

/* Alternating Row Layout for Lore Details */
.role-lore-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.role-lore-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background: linear-gradient(135deg, rgba(18, 24, 41, 0.4) 0%, rgba(10, 14, 26, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px;
    transition: all 0.3s ease;
}

.role-lore-row:nth-child(even) {
    flex-direction: row-reverse;
}

.role-lore-row:hover {
    border-color: rgba(168, 32, 48, 0.2);
    background: linear-gradient(135deg, rgba(18, 24, 41, 0.6) 0%, rgba(10, 14, 26, 0.8) 100%);
}

.role-lore-row-image {
    flex: 1;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    filter: none;
    transition: none;
}

.role-lore-row:hover .role-lore-row-image {
    filter: none;
}

.role-lore-row-text {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.role-lore-row-text h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.role-lore-row-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--accent);
}

.role-lore-row-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1; /* Brighter color for high readability */
    white-space: pre-line;
}

@media (max-width: 992px) {
    .role-lore-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .role-lore-row, .role-lore-row:nth-child(even) {
        flex-direction: column !important;
        gap: 20px;
        padding: 20px;
    }
    .role-lore-row-image {
        width: 100%;
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .role-lore-cards {
        grid-template-columns: 1fr;
    }
    .role-header-text h1 {
        font-size: 2.2rem;
    }
    .role-header-text p {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    .lore-intro-card {
        padding: 20px;
    }
    .lore-section-header h2 {
        font-size: 1.5rem;
    }
}

/* Shop Product Details Button */
.shop-product-details-btn {
    margin-top: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    z-index: 10;
}

.shop-product-details-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    border-color: rgba(0, 240, 255, 0.6);
}

/* Shop Details Modal styling */
.shop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.modal-open {
    overflow: hidden;
}

.shop-modal-container {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 95%;
    max-width: 720px;
    padding: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shop-modal-overlay.active .shop-modal-container {
    transform: scale(1) translateY(0);
}

.shop-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.shop-modal-close-btn:hover {
    color: #f1f5f9;
}

.shop-modal-body {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.modal-preview-box {
    flex: 1;
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-preview-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-preview-box.fallback-icon img.modal-fallback-img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.shop-modal-info {
    flex: 1.2;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.shop-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.shop-modal-desc {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.shop-modal-limit {
    font-size: 13px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
}

.shop-modal-badges {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.shop-badge {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.5px;
}

.shop-badge-weight {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.shop-badge-price {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #a78bfa;
}

@media (max-width: 600px) {
    .shop-modal-body {
        flex-direction: column;
        align-items: center;
    }
    .modal-preview-box {
        height: 200px;
    }
    .shop-modal-info {
        align-self: auto;
        justify-content: flex-start;
    }
    .shop-modal-badges {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Download Tab View Styles */
.download-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-header {
    text-align: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.download-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(168, 32, 48, 0.2);
}

.download-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 8px;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.download-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 32, 48, 0.5);
    box-shadow: 0 8px 24px rgba(168, 32, 48, 0.15);
}

.download-card-num {
    background: var(--accent);
    color: #fff;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.download-card-img-container {
    width: 200px;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card-body {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    gap: 8px;
}

.download-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.download-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.download-card-action {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-download {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: var(--accent-hover);
}

@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
    }
    .download-card-num {
        width: 100%;
        height: 40px;
        font-size: 1.4rem;
    }
    .download-card-img-container {
        width: 100%;
        height: 150px;
    }
    .download-card-action {
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.2);
    }
}

/* Guide Grid & Cards Styling */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.guide-card:hover {
    border-color: rgba(168, 32, 48, 0.4);
    box-shadow: 0 6px 20px rgba(168, 32, 48, 0.1);
}

.guide-card.full-width {
    grid-column: span 2;
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.guide-icon {
    font-size: 1.5rem;
}

.guide-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.guide-card-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guide-card-body p {
    margin-bottom: 15px;
}

.vram-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vram-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--accent);
    flex-wrap: wrap;
    gap: 10px;
}

.vram-list code {
    color: #ff4a5a;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.guide-tip {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
}

.req-columns {
    display: flex;
    gap: 30px;
}

.req-col {
    flex: 1;
}

.req-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1.5px solid;
}

.req-title.min {
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.req-title.rec {
    color: var(--accent);
    border-color: var(--accent);
}

.req-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-col li {
    font-size: 0.9rem;
}

.req-col li strong {
    color: var(--text-primary);
}

.troubleshooting-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ts-item {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.ts-num {
    background: var(--accent);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.ts-content strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.ts-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .guide-card.full-width {
        grid-column: span 1;
    }
    .req-columns {
        flex-direction: column;
        gap: 20px;
    }
}

/* Password Toggle Visibility Styles */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-input {
    padding-right: 48px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Guide Grid & Cards Styling */
.guide-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 32, 48, 0.5);
    box-shadow: 0 8px 24px rgba(168, 32, 48, 0.15);
}

.video-card-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-card-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.video-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.video-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* ==========================================
   LCRP CRYPTO TRADING STYLES
   ========================================== */
.crypto-warning-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(224, 49, 49, 0.1);
    border: 1px solid rgba(224, 49, 49, 0.3);
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 0 20px rgba(224, 49, 49, 0.15);
    animation: pulseBorder 2s infinite ease-in-out;
}

@keyframes pulseBorder {
    0% { border-color: rgba(224, 49, 49, 0.3); box-shadow: 0 0 15px rgba(224, 49, 49, 0.1); }
    50% { border-color: rgba(224, 49, 49, 0.6); box-shadow: 0 0 25px rgba(224, 49, 49, 0.25); }
    100% { border-color: rgba(224, 49, 49, 0.3); box-shadow: 0 0 15px rgba(224, 49, 49, 0.1); }
}

.crypto-warning-banner .warning-icon {
    font-size: 32px;
}

.crypto-warning-banner .warning-content h3 {
    color: var(--error);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.crypto-warning-banner .warning-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.crypto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.register-card {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.register-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 32, 48, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.crypto-logo-large {
    font-size: 64px;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(168, 32, 48, 0.3));
}

.register-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.register-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.register-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.fee-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.fee-info .info-value {
    color: var(--accent-secondary);
    font-weight: 700;
}

.register-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-style: italic;
}

.crypto-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.crypto-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #257e37;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #b82525;
}

/* Row Grid */
.crypto-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.crypto-main-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .crypto-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio cards */
.portfolio-val-card, .cash-bal-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 24, 41, 0.8) 100%);
    border: 1px solid var(--border-color);
}

.portfolio-val-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.portfolio-icon {
    font-size: 24px;
    opacity: 0.8;
}

.portfolio-val-card h1, .cash-bal-card h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

#cryptoTotalPortfolioValue {
    color: white;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

#cryptoUserCash {
    color: var(--accent-secondary);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.portfolio-profit-loss {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.cash-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pl-value.text-success {
    color: #40c057;
}

.pl-value.text-danger {
    color: #ff6b6b;
}

/* Live prices & Table */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header-flex h3, .card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(64, 192, 87, 0.08);
    border: 1px solid rgba(64, 192, 87, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #40c057;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #40c057;
    border-radius: 50%;
    box-shadow: 0 0 8px #40c057;
    animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.market-table-wrapper {
    overflow-x: auto;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.crypto-table th {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crypto-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.crypto-table tbody tr {
    transition: background-color var(--transition-speed);
    cursor: pointer;
}

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

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

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: white;
}

/* Coin Colors mapping classes */
.icon-btc { background: linear-gradient(135deg, #f7931a, #b56c12); }
.icon-eth { background: linear-gradient(135deg, #627eea, #3c54b4); }
.icon-ltc { background: linear-gradient(135deg, #bebebe, #8e8e8e); }
.icon-doge { background: linear-gradient(135deg, #c2a633, #8c7720); }
.icon-sol { background: linear-gradient(135deg, #14f195, #9945ff); }
.icon-xrp { background: linear-gradient(135deg, #23292f, #006097); }
.icon-bnb { background: linear-gradient(135deg, #f3ba2f, #a67f1b); }
.icon-ada { background: linear-gradient(135deg, #0033ad, #001f6d); }

.coin-name {
    display: flex;
    flex-direction: column;
}

.coin-symbol {
    font-weight: 700;
    color: white;
}

.coin-fullname {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.change-up {
    color: #40c057;
}

.change-down {
    color: #ff6b6b;
}

/* Trading Card Form */
.trade-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.trade-tab-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

#btnTradeTabBuy.active {
    background: rgba(64, 192, 87, 0.15);
    color: #40c057;
    border-color: rgba(64, 192, 87, 0.25);
    box-shadow: 0 2px 10px rgba(64, 192, 87, 0.15);
}

#btnTradeTabSell.active {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.25);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.15);
}

.trade-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.crypto-select, .crypto-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.crypto-input {
    padding-right: 60px; /* ป้องกันตัวเลขพิมพ์ทับหน่วยเงิน */
}

/* ซ่อนลูกศรเพิ่ม/ลด (Spinners) ใน input type number */
.crypto-input::-webkit-outer-spin-button,
.crypto-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.crypto-input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.crypto-select:focus, .crypto-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-group-row {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.radio-label input {
    cursor: pointer;
    accent-color: var(--accent);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    pointer-events: none;
}

.quick-sell-buttons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-xs-sell {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-xs-sell:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.trade-calc-summary {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-row span:last-child {
    color: white;
    font-weight: 600;
}

.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    font-size: 0.95rem;
}

.total-row span:first-child {
    color: white;
    font-weight: 700;
}

.total-row .text-success {
    color: #40c057;
    font-weight: 800;
}

/* Price History Chart styling */
.chart-card {
    display: flex;
    flex-direction: column;
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-coin-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}

.chart-coin-price {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
}

.chart-coin-change {
    font-weight: 700;
    font-size: 0.95rem;
}

.chart-coin-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   COMPLETE RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET, IPAD & DESKTOP)
   ========================================================================== */

/* Mobile Hamburger Toggle Button & Backdrop */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, rgba(168, 32, 48, 0.35), rgba(15, 20, 32, 0.95));
    border: 1px solid rgba(168, 32, 48, 0.6);
    border-radius: 20px;
    cursor: pointer;
    padding: 6px 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    z-index: 1002;
    box-shadow: 0 0 12px rgba(168, 32, 48, 0.35);
    transition: all 0.25s ease;
    user-select: none;
    margin-left: auto;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle.active {
    background: var(--accent);
    border-color: #ff4d6d;
    box-shadow: 0 0 18px rgba(168, 32, 48, 0.7);
}

.hamburger-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 16px;
    height: 12px;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-text {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background-color: #ffffff;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    background-color: #ffffff;
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
}

body.mobile-nav-open {
    overflow: hidden !important;
}

/* --- Breakpoint: 1280px (Laptops & Desktops) --- */
@media (max-width: 1280px) {
    header.navbar {
        padding: 0 30px;
    }

    .home-container {
        padding: 0 25px;
    }
}

/* --- Breakpoint: 1150px (Tablets, iPads & Mobile Drawer trigger) --- */
@media (max-width: 1150px) {
    header.navbar {
        padding: 0 16px;
        height: 65px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-socials {
        margin-right: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: rgba(15, 20, 32, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 90px 20px 40px 20px;
        gap: 8px;
        overflow-y: auto;
        z-index: 1000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.mobile-active {
        right: 0;
    }

    .nav-menu > li:not(:last-of-type)::after {
        display: none;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-item-dropdown {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown-content {
        position: static;
        transform: none;
        padding-top: 4px;
        padding-bottom: 4px;
        width: 100%;
        display: block;
    }

    .nav-dropdown-menu {
        background: rgba(10, 14, 26, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-left: 3px solid var(--accent);
        border-radius: 6px;
        box-shadow: none;
        padding: 4px 6px;
        margin-left: 8px;
        width: calc(100% - 8px);
    }

    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-btn.active {
        background: rgba(168, 32, 48, 0.2);
        border-color: var(--accent);
        color: #fff;
    }

    .nav-btn.active::after {
        display: none;
    }

    .nav-btn.btn-cta {
        margin-left: 0;
        margin-top: 5px;
        text-align: center;
        width: 100%;
    }

    #loggedOutNav {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    #loggedInNav {
        width: 100%;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .user-dropdown {
        width: 100%;
        margin-left: 0;
    }

    .user-dropdown-badge {
        width: 100%;
        justify-content: space-between;
    }

    .user-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 8px;
    }
}

/* --- Breakpoint: 992px (iPads & Medium Tablets) --- */
@media (max-width: 992px) {
    .hero-banner {
        padding: 60px 20px 80px 20px;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .server-bar {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .server-bar .info-item {
        justify-content: center;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .server-bar .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .grid-col-3, .grid-col-4, .features-grid, .news-grid, .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .portal-view {
        padding: 20px 15px;
    }
}

/* --- Breakpoint: 768px (Mobile & Small Tablets) --- */
@media (max-width: 768px) {
    header.navbar {
        height: 65px;
        padding: 0 15px;
    }

    .brand-name span {
        display: none; /* Compact brand on phones */
    }

    .nav-socials {
        display: none; /* Move to mobile menu drawer on small phones */
    }

    .hero-title {
        font-size: 2.0rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .grid-col-3, .grid-col-4, .features-grid, .news-grid, .shop-grid {
        grid-template-columns: 1fr !important;
    }

    /* Table responsive overflow wrapper */
    .table-container, .ranking-table-wrapper, .history-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    /* Modal dialogs on mobile */
    .modal-content, .dialog-box {
        width: 95% !important;
        padding: 20px 15px !important;
        margin: 10px auto;
    }
}

/* --- Breakpoint: 480px (Extra Small Mobile Phones) --- */
@media (max-width: 480px) {
    .brand-name {
        font-size: 14px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-desc {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .nav-menu {
        width: 85%;
        right: -85%;
    }
}

/* ==========================================================
   GANG SYSTEM & WARDOGS TURF WAR DIRECTORY (TAB-GANG-INFO)
   ========================================================== */

.gang-info-container {
    max-width: 1200px;
    width: 92%;
    margin: 25px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Hero Card */
.gang-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 50px 40px;
    border: 1px solid rgba(255, 51, 68, 0.25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 32, 48, 0.2);
    background: #0f1526;
}

.gang-hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(10, 14, 26, 0.94) 0%, rgba(18, 24, 41, 0.82) 50%, rgba(168, 32, 48, 0.4) 100%), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    z-index: 1;
}

.gang-hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.gang-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 51, 68, 0.15);
    border: 1px solid rgba(255, 51, 68, 0.4);
    color: #ff6b7a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(255, 51, 68, 0.2);
}

.gang-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.gang-hero-sub {
    font-size: 1.12rem;
    color: #b0b8cc;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Quick Stats Bar */
.gang-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gang-stat-card {
    background: rgba(18, 26, 43, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    transform: translateZ(0);
}

.gang-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 51, 68, 0.4);
    box-shadow: 0 8px 20px rgba(255, 51, 68, 0.15);
}

.gang-stat-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.gang-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
}

.gang-stat-label {
    font-size: 0.85rem;
    color: #8f9bb3;
}

/* Sections */
.gang-section {
    background: rgba(18, 26, 43, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 36px 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.gang-section-header {
    margin-bottom: 28px;
}

.gang-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.gang-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gang-section-desc {
    color: #9095a6;
    font-size: 1.02rem;
    line-height: 1.5;
}

.gang-sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid-2 Layout */
.gang-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}

.gang-glass-card {
    background: rgba(13, 19, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
}

.gang-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gang-card-icon {
    font-size: 1.5rem;
}

.gang-card-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    color: #ffffff;
}

/* Checklist */
.gang-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gang-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #cfd5e3;
    line-height: 1.45;
}

.gang-checklist li strong {
    color: #ffffff;
}

.check-icon {
    color: #2ed573;
    background: rgba(46, 213, 115, 0.15);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Panel Features Pills */
.gang-panel-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.panel-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.panel-pill:hover {
    background: rgba(255, 51, 68, 0.08);
    border-color: rgba(255, 51, 68, 0.3);
    color: #ffffff;
}

/* Hierarchy Ranks */
.gang-ranks-container {
    margin-top: 10px;
}

.gang-ranks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gang-rank-card {
    background: rgba(13, 19, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.gang-rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.rank-enforcer { border-top: 3px solid #ffb84d; }
.rank-enforcer:hover { border-color: #ffb84d; box-shadow: 0 8px 25px rgba(255, 184, 77, 0.2); }
.rank-treasurer, .rank-underboss { border-top: 3px solid #ff6b7a; }
.rank-treasurer:hover, .rank-underboss:hover { border-color: #ff6b7a; box-shadow: 0 8px 25px rgba(255, 107, 122, 0.2); }
.rank-member, .rank-soldier { border-top: 3px solid #66e0ff; }
.rank-member:hover, .rank-soldier:hover { border-color: #66e0ff; box-shadow: 0 8px 25px rgba(102, 224, 255, 0.2); }
.rank-prospect, .rank-associate { border-top: 3px solid #9ca3af; }
.rank-prospect:hover, .rank-associate:hover { border-color: #9ca3af; box-shadow: 0 8px 25px rgba(156, 163, 175, 0.2); }

.rank-badge-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: #9095a6;
    margin-bottom: 12px;
}

.rank-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.gang-rank-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.rank-role-th {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.gang-rank-card p {
    font-size: 0.86rem;
    color: #9aa2b4;
    line-height: 1.45;
}

/* War Spotlight Box */
.gang-war-spotlight {
    background: linear-gradient(135deg, rgba(23, 15, 25, 0.85) 0%, rgba(15, 21, 38, 0.9) 100%);
    border: 1px solid rgba(255, 51, 68, 0.35);
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(168, 32, 48, 0.15);
}

.war-spotlight-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 10px;
}

.war-spotlight-info p {
    font-size: 1rem;
    color: #b4bccf;
    line-height: 1.55;
    margin-bottom: 16px;
}

.spotlight-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ff6b7a;
    background: rgba(255, 51, 68, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

.war-rule-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.war-rule-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
    color: #ffffff;
    font-weight: 600;
}

/* Scoring Box */
.score-explain-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-type {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
}

.score-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.badge-blue {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #66e0ff;
    background: rgba(102, 224, 255, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
    width: fit-content;
}

.badge-gold {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffb84d;
    background: rgba(255, 184, 77, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
    width: fit-content;
}

.score-head strong {
    font-size: 0.96rem;
    color: #ffffff;
}

.score-type p {
    font-size: 0.88rem;
    color: #9aa2b4;
    line-height: 1.45;
}

/* Fairplay Grid */
.fairplay-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.fairplay-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
}

.fp-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.fairplay-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.94rem;
    margin-bottom: 2px;
}

.fairplay-item p {
    font-size: 0.84rem;
    color: #8f9bb3;
    line-height: 1.4;
}

/* Rewards Showcase */
.gang-rewards-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.reward-highlight-card {
    border-radius: 20px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reward-highlight-card:hover {
    transform: translateY(-4px);
}

.instant-win {
    background: linear-gradient(135deg, rgba(28, 20, 35, 0.9) 0%, rgba(18, 26, 43, 0.9) 100%);
    border: 1px solid rgba(255, 107, 122, 0.4);
    box-shadow: 0 10px 30px rgba(255, 51, 68, 0.15);
}

.hourly-tax {
    background: linear-gradient(135deg, rgba(16, 28, 38, 0.9) 0%, rgba(18, 26, 43, 0.9) 100%);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.12);
}

.reward-badge {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 12px;
}

.instant-win .reward-badge {
    color: #ff6b7a;
    background: rgba(255, 51, 68, 0.15);
}

.hourly-tax .reward-badge {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.15);
}

.reward-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.reward-payout {
    margin-bottom: 14px;
}

.payout-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.payout-note {
    font-size: 0.88rem;
    color: #9aa2b4;
}

.reward-perk-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffb84d;
    margin-bottom: 12px;
}

.reward-desc {
    font-size: 0.86rem;
    color: #8f9bb3;
    line-height: 1.45;
}

/* Territories Grid */
.gang-territories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.territory-card {
    background: rgba(13, 19, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.territory-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.territory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.territory-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff;
}

.tax-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.tax-badge.high { background: rgba(255, 51, 68, 0.15); color: #ff6b7a; }
.tax-badge.medium { background: rgba(255, 184, 77, 0.15); color: #ffb84d; }
.tax-badge.low { background: rgba(102, 224, 255, 0.15); color: #66e0ff; }

.territory-type {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.territory-tax {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.territory-tax span {
    font-size: 0.85rem;
    color: #8f9bb3;
    font-weight: normal;
}

.territory-card p {
    font-size: 0.86rem;
    color: #9aa2b4;
    line-height: 1.45;
}

/* Item Flow (Weed Farming) */
.gang-item-flow {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 12px;
    margin-bottom: 16px;
}

.item-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.item-flow-step img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.item-flow-step span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.flow-arrow {
    color: var(--accent-secondary);
    font-size: 1.2rem;
    font-weight: bold;
}

.item-step-desc {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: #cfd5e3;
    line-height: 1.45;
}

/* Storage Showcase */
.storage-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
}

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

.storage-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.storage-item p {
    font-size: 0.82rem;
    color: #8f9bb3;
}

/* Full-width Gang Storage Card */
.gang-storage-full {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.gang-storage-full .storage-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.gang-storage-full .storage-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.gang-storage-full .storage-item:hover {
    border-color: rgba(255, 51, 68, 0.35);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gang-storage-full .storage-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.gang-storage-full .storage-item strong {
    font-size: 1rem;
    margin-bottom: 4px;
}

.gang-storage-full .storage-item p {
    font-size: 0.86rem;
    line-height: 1.45;
}

/* Gang Weapons Tabs & Categorized Arsenal */
.gang-weapon-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.gang-weapon-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.gang-weapon-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.gang-weapon-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 51, 68, 0.25) 0%, rgba(200, 30, 50, 0.35) 100%);
    border-color: #ff3344;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 51, 68, 0.25);
}

.gang-arsenal-group {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.gang-arsenal-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gang-arsenal-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.triads-theme .gang-arsenal-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.mc-theme .gang-arsenal-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.russian-theme .gang-arsenal-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.special-theme .gang-arsenal-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.gang-arsenal-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Gang Subcategory Title (Skins, Weapons, Vehicles) */
.gang-subcat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.gang-subcat-title .subcat-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: #e2e8f0;
}

.gang-subcat-title .subcat-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Weapons Catalog Grid */
.weapons-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.weapons-catalog-grid.special-grid {
    grid-template-columns: repeat(2, 1fr);
}

.weapon-card {
    position: relative;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    contain: layout paint;
    transform: translateZ(0);
}

.weapon-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 51, 68, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 51, 68, 0.15);
}

.weapon-card.leader-weapon {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.weapon-card.leader-weapon:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.25);
}

.weapon-level-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    z-index: 2;
}

.weapon-level-badge.leader {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.weapon-img-wrap {
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 12px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.weapon-img-wrap.large-img {
    width: 100%;
    max-width: 100%;
    height: 190px;
    border-radius: 12px;
    margin: 22px 0 14px;
}

.weapon-img-wrap.large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.weapon-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
    transform: translateZ(0);
    will-change: transform;
}

.weapon-card:hover .weapon-img-wrap img {
    transform: scale(1.08);
}

.weapon-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.weapon-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.weapon-tag.melee { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.weapon-tag.pistol { background: rgba(102, 224, 255, 0.15); color: #66e0ff; }
.weapon-tag.smg { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.weapon-tag.shotgun { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.weapon-tag.rifle { background: rgba(255, 107, 122, 0.15); color: #ff6b7a; }
.weapon-tag.heavy { background: rgba(255, 184, 77, 0.15); color: #ffb84d; }
.weapon-tag.gold { background: rgba(245, 158, 11, 0.2); color: #fde047; }
.weapon-tag.special { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.weapon-tag.skin-tag { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
.weapon-tag.vehicle-tag { background: rgba(16, 185, 129, 0.18); color: #34d399; }

.weapon-cost {
    font-size: 0.88rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.weapon-cost.free-cost {
    color: #38bdf8;
}

.weapon-card p {
    font-size: 0.76rem;
    color: #8f9bb3;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

.weapon-supplies {
    width: 100%;
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.special-war-card {
    padding: 24px;
}

.special-war-card h5 {
    font-size: 1.1rem;
}

.special-war-card p {
    font-size: 0.84rem;
    max-width: 480px;
}

/* Perks Summary Card */
.perks-summary-card {
    background: rgba(13, 19, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
}

.gang-perks-full-guide {
    margin-bottom: 28px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(13, 19, 33, 0.98) 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    padding: 24px 28px;
}

.perks-summary-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.perk-star {
    font-size: 1.8rem;
    color: #ffb84d;
}

.perks-summary-head h4 {
    font-family: 'Outfit', 'Prompt', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.perks-summary-head p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 4px;
}

.perks-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.perk-pill {
    background: rgba(255, 184, 77, 0.08);
    border: 1px solid rgba(255, 184, 77, 0.2);
    color: #ffc97a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
}

/* EXP Guide Sub-section */
.gang-exp-guide-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-subhead {
    margin-bottom: 16px;
}

.guide-subhead h5 {
    font-family: 'Outfit', 'Prompt', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffd166;
    margin-bottom: 4px;
}

.guide-subhead p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* EXP Sources Grid */
.exp-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.exp-source-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.exp-source-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.35);
}

.exp-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.exp-card-reward {
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
}

.exp-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exp-card-list li {
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

.exp-card-list li::before {
    content: "•";
    color: #f59e0b;
    position: absolute;
    left: 2px;
    font-weight: bold;
}

.exp-card-list strong {
    color: #ffffff;
}

/* Gang Level Ladder Section & Table */
.gang-level-ladder-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.level-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 26, 0.75);
}

.gang-level-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
    min-width: 740px;
}

.gang-level-table thead tr {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.gang-level-table th {
    padding: 12px 14px;
    font-weight: 700;
    color: #ffd166;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.gang-level-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    vertical-align: middle;
}

.gang-level-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.gang-level-table .highlight-row {
    background: rgba(245, 158, 11, 0.06);
}

.gang-level-table .mythic-row {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.lvl-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    white-space: nowrap;
}

.lvl-badge.lvl-0 {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.lvl-badge.boss {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.lvl-badge.mythic {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.exp-val {
    color: #fbbf24;
    font-family: 'Outfit', monospace;
    font-size: 0.92rem;
}

.unlock-desc {
    line-height: 1.5;
    font-size: 0.83rem;
}

.unlock-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-right: 6px;
    margin-bottom: 2px;
}

.unlock-tag.weapon {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.unlock-tag.tactical {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.unlock-tag.boss {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.unlock-tag.vehicle {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.unlock-tag.aerial {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

.unlock-tag.tank {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fdba74;
}

/* Syndicates Lore Cards */
.syndicates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.syndicate-card {
    background: rgba(13, 19, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    transform: translateZ(0);
}

.syndicate-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 68, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.syndicate-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.syndicate-logo-wrap {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #0f1526;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.syndicate-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.syndicate-content {
    padding: 30px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.syndicate-origin {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.syndicate-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.syndicate-content p {
    font-size: 0.88rem;
    color: #9aa2b4;
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
}

.syndicate-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.syndicate-perks span {
    font-size: 0.8rem;
    color: #cfd5e3;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 10px;
    border-radius: 6px;
}

/* Command Table */
.gang-cmd-table {
    width: 100%;
    border-collapse: collapse;
}

.gang-cmd-table th,
.gang-cmd-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gang-cmd-table th {
    color: #8f9bb3;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gang Roadmap Split (Left Image, Right Steps) */
.gang-roadmap-split {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.gang-roadmap-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 19, 33, 0.85);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    min-height: 380px;
    display: flex;
}

.gang-roadmap-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.gang-roadmap-media:hover img {
    transform: scale(1.03);
}

.gang-roadmap-media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 22, 0.95) 75%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gang-roadmap-media-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffc97a;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.gang-roadmap-media-overlay h4 {
    font-family: 'Outfit', 'Prompt', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.gang-roadmap-media-overlay p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.gang-roadmap-steps-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

/* Roadmap Steps List (Centered & Itemized Rows) */
.roadmap-steps-list-centered {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-card-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(13, 19, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 24px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card-row:hover {
    transform: translateX(6px);
    border-color: rgba(255, 51, 68, 0.4);
    background: rgba(18, 25, 44, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 51, 68, 0.15);
}

.step-card-row .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(168, 32, 48, 0.45);
}

.step-row-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-row-body strong {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.step-row-body p {
    font-size: 0.88rem;
    color: #9aa2b4;
    line-height: 1.45;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .gang-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gang-ranks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .weapons-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .syndicates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gang-grid-2 {
        grid-template-columns: 1fr;
    }
    .gang-storage-full .storage-showcase {
        grid-template-columns: 1fr;
    }
    .gang-rewards-showcase {
        grid-template-columns: 1fr;
    }
    .gang-territories-grid {
        grid-template-columns: 1fr;
    }
    .weapons-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gang-hero-title {
        font-size: 2.1rem;
    }
    .gang-hero-card {
        padding: 35px 22px;
    }
    .gang-section {
        padding: 26px 20px;
    }
}

@media (max-width: 860px) {
    .gang-roadmap-split {
        grid-template-columns: 1fr;
    }
    .gang-roadmap-media {
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .step-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }
}

@media (max-width: 480px) {
    .gang-stats-grid {
        grid-template-columns: 1fr;
    }
    .gang-ranks-grid {
        grid-template-columns: 1fr;
    }
    .weapons-catalog-grid {
        grid-template-columns: 1fr;
    }
    .gang-panel-features {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   PRIVATE RESIDENCE & HOUSE SYSTEM DIRECTORY (TAB-HOUSE-INFO)
   ========================================================== */

.house-info-container {
    max-width: 1200px;
    width: 92%;
    margin: 25px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Hero Card */
.house-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 50px 40px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.15);
    background: #0b1120;
}

.house-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.94) 0%, rgba(18, 24, 41, 0.82) 50%, rgba(245, 158, 11, 0.25) 100%), url('images/house_interior.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    z-index: 1;
}

.house-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.house-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.house-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.house-hero-sub {
    font-size: 1.12rem;
    color: #b0b8cc;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 950px;
}

/* Quick Stats Bar */
.house-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    width: 100%;
}

.house-stat-card {
    background: rgba(15, 22, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}

.house-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
}

.house-stat-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.house-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.house-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: #fcd34d;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.house-stat-lbl {
    font-size: 0.76rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* General Section Styling */
.house-section {
    background: rgba(15, 22, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.house-section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.house-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.house-section-desc {
    font-size: 0.96rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* In-Game Residence Dashboard Simulator */
.house-sim-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(8, 12, 22, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.house-subtabs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 15, 26, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 6px 8px;
    overflow-x: auto;
}

.house-subtabs-nav::-webkit-scrollbar {
    height: 4px;
}

.house-subtabs-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}

.house-subtab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.subtab-thumb {
    width: 32px;
    height: 22px;
    border-radius: 5px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    background: #0b1120;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.subtab-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.house-subtab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.house-subtab-btn:hover .subtab-thumb {
    border-color: rgba(245, 158, 11, 0.5);
}

.house-subtab-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.5) 100%);
    border-color: rgba(251, 191, 36, 0.65);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.house-subtab-btn.active .subtab-thumb {
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.house-subtab-divider {
    color: rgba(255, 215, 0, 0.2);
    font-size: 0.75rem;
    pointer-events: none;
    padding: 0 2px;
}

/* Simulator Container & In-Game Frame */
.house-interactive-preview {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px 20px 20px;
    box-sizing: border-box;
}

.house-preview-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.25s ease-in-out;
    z-index: 1;
}

/* Inner In-Game Top HUD Bar */
.sim-inner-hud-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 12, 22, 0.75);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.hud-brand-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.hud-brand-txt {
    color: #f59e0b;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.hud-meta-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-room-badge {
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
}

.hud-status-badge {
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
}

.house-preview-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.house-subtab-pane {
    animation: simFadeIn 0.2s ease-out;
}

@keyframes simFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Overview Trio Glass Cards */
.pane-glass-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.pane-glass-mini-card {
    background: rgba(12, 17, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.pg-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.pg-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.pg-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
}

.pg-val.cyan { color: #38bdf8; }
.pg-val.green { color: #34d399; font-size: 1rem; }

.pg-sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.pane-cta-row {
    display: flex;
    justify-content: center;
}

.sim-enter-house-btn {
    width: 100%;
    max-width: 420px;
    height: 44px;
    border-radius: 22px;
    border: 1px solid rgba(52, 211, 153, 0.6);
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 4px 15px rgba(0, 0, 0, 0.6);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

/* 2. Fridge Light Card */
.sim-fridge-white-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #0f172a;
}

.sim-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.sim-filter-chips {
    display: flex;
    gap: 6px;
}

.sim-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: default;
}

.sim-chip.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.sim-wallet-badge {
    font-size: 0.74rem;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
}

.sim-fridge-items-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 220px;
    overflow-y: auto;
}

.sim-food-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
}

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

.sf-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sf-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.buff-pill {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.buff-pill.food { background: #fef3c7; color: #b45309; }
.buff-pill.drink { background: #e0f2fe; color: #0284c7; }

.sf-desc {
    font-size: 0.65rem;
    color: #64748b;
}

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

.sf-price {
    font-size: 0.85rem;
    font-weight: 900;
    color: #059669;
}

.sf-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.sf-buy-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: default;
}

/* 3. Infirmary Card */
.sim-infirmary-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sim-health-pill {
    font-size: 0.72rem;
    color: #fb7185;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    padding: 3px 10px;
    border-radius: 12px;
}

.sim-med-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sim-med-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 7px 10px;
}

.med-icon {
    font-size: 1.3rem;
}

.med-info {
    flex: 1;
}

.med-name {
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
}

.med-sub {
    font-size: 0.64rem;
    color: #94a3b8;
}

.med-price {
    font-size: 0.8rem;
    font-weight: 900;
    color: #38bdf8;
    margin-right: 6px;
}

.med-btn {
    background: #e11d48;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: default;
}

/* 4. Garage Card */
.sim-garage-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
}

.garage-title-text strong {
    font-size: 0.82rem;
    color: #ffffff;
    display: block;
}

.garage-title-text span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.garage-badge-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

.sim-cars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sim-car-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
}

.car-thumb {
    font-size: 1.5rem;
}

.car-info {
    flex: 1;
}

.car-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
}

.car-class {
    font-size: 0.6rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 5px;
    border-radius: 3px;
}

.car-specs-bars {
    display: flex;
    gap: 6px;
    font-size: 0.62rem;
    color: #94a3b8;
    margin-top: 2px;
}

.car-withdraw-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: default;
}

/* 5. Storage Card */
.sim-storage-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
}

.storage-title-box strong {
    font-size: 0.82rem;
    color: #fff;
    display: block;
}

.storage-title-box span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.storage-deposit-btn {
    background: #d97706;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: default;
}

.sim-storage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.storage-item-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
}

.st-icon {
    font-size: 1.25rem;
}

.st-meta {
    flex: 1;
}

.st-meta strong {
    font-size: 0.72rem;
    color: #ffffff;
    display: block;
}

.st-meta span {
    font-size: 0.62rem;
    color: #94a3b8;
}

.st-withdraw-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: default;
}

/* 6. Greenhouse Card */
.sim-greenhouse-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
}

.greenhouse-title-box strong {
    font-size: 0.82rem;
    color: #fff;
    display: block;
}

.greenhouse-title-box span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.gh-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

.sim-farm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.farm-plot-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.farm-plot-card.ready {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
}

.plot-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
}

.plot-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.plot-status {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.plot-status.growing { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.plot-status.ready { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
.plot-status.empty { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.plot-crop-icon {
    font-size: 1.8rem;
    margin: 2px 0;
}

.plot-crop-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.plot-empty-hint {
    font-size: 0.62rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.plot-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.plot-progress-bar .fill {
    height: 100%;
    background: #38bdf8;
}

.plot-progress-bar .fill.ready {
    background: #22c55e;
}

.plot-stats-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.6rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.plot-actions {
    display: flex;
    gap: 4px;
    width: 100%;
}

.plot-btn {
    flex: 1;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: default;
}

.plot-btn.water { background: #0284c7; color: #fff; }
.plot-btn.harvest { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
.plot-btn.harvest-ready { background: #15803d; color: #fff; }
.plot-btn.plant { background: #059669; color: #fff; }

/* 7. Mining Dashboard */
.sim-mining-dashboard {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
}

.mining-rig-split {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: center;
}

.rig-photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.rig-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 6px;
}

.rig-model-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #f59e0b;
}

.rig-status-pill {
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 3px;
}

.rig-status-pill.online { color: #10b981; }

.telemetry-top .t-badge {
    font-size: 0.65rem;
    color: #f59e0b;
    font-weight: 700;
}

.telemetry-top .t-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.telemetry-quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.t-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
}

.t-lbl { font-size: 0.62rem; color: #94a3b8; }
.t-val { font-size: 0.95rem; font-weight: 900; }
.t-val.green { color: #10b981; }
.t-val.yellow { color: #f59e0b; }
.t-val.cyan { color: #38bdf8; }
.t-val.gray { color: #cbd5e1; }
.t-sub { font-size: 0.58rem; color: #64748b; }

.rig-withdraw-btn {
    width: 100%;
    background: #059669;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: default;
}

/* 8. Entertainment Radio */
.sim-radio-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
}

.radio-deck-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.radio-visualizer-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
}

.radio-station-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.station-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}

.genre-pill {
    font-size: 0.6rem;
    font-weight: 700;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.sim-spectrum-analyzer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 46px;
    margin-bottom: 10px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.sim-spectrum-analyzer span {
    flex: 1;
    background: linear-gradient(180deg, #c084fc 0%, #38bdf8 100%);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s;
}

.radio-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    color: #cbd5e1;
}

.sim-vol-range {
    flex: 1;
    height: 4px;
    accent-color: #f59e0b;
}

.radio-presets-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.presets-header {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 700;
}

.preset-station-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.72rem;
    color: #fff;
}

.preset-station-btn.active {
    border-color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
}

.preset-tag {
    font-size: 0.58rem;
    color: #94a3b8;
}

/* 9. Status Utilities */
.sim-status-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    padding: 14px 16px;
}

.status-title-box strong {
    font-size: 0.82rem;
    color: #fff;
    display: block;
}

.status-title-box span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.status-summary-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-summary-pill.green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.sim-utilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.sim-util-subcard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
}

.util-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.u-icon { font-size: 1.2rem; }

.u-meta strong {
    font-size: 0.74rem;
    color: #fff;
    display: block;
}

.u-meta span {
    font-size: 0.6rem;
    color: #94a3b8;
}

.u-pill {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 700;
    color: #10b981;
}

.util-metric {
    font-size: 0.62rem;
    color: #cbd5e1;
    margin: 4px 0 6px 0;
}

.util-debt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #94a3b8;
}

.util-debt-row strong { color: #10b981; }

.u-pay-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
}

.sim-status-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-info {
    font-size: 0.72rem;
    color: #cbd5e1;
    display: flex;
    gap: 6px;
}

.sb-info strong.green { color: #10b981; }

.sb-payall-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Facilities List - Left Photo, Right Info (Zero Black Bars) */
.house-facilities-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.house-facility-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    background: rgba(14, 20, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    min-height: 220px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.house-facility-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.35);
}

.facility-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    background: #090c14;
}

.facility-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.facility-img-wrap:hover img {
    transform: scale(1.04);
}

.facility-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fcd34d;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.facility-info {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.facility-header-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.facility-header-row h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.facility-status-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.facility-status-pill.green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(52, 211, 153, 0.4); color: #34d399; }
.facility-status-pill.cyan { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.4); color: #38bdf8; }
.facility-status-pill.red { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.4); color: #fb7185; }
.facility-status-pill.amber { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }
.facility-status-pill.gold { background: rgba(234, 179, 8, 0.15); border: 1px solid rgba(234, 179, 8, 0.4); color: #facc15; }
.facility-status-pill.purple { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.4); color: #c084fc; }
.facility-status-pill.blue { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.4); color: #60a5fa; }

.facility-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.facility-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.facility-feature-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Two Column Glass Cards */
.house-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.house-glass-card {
    background: rgba(14, 20, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.house-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.house-card-icon {
    font-size: 1.4rem;
}

.house-card-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.house-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.house-checklist li {
    display: flex;
    gap: 12px;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
}

.house-checklist .check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Utility Bill Table */
.house-bill-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.house-bill-table {
    width: 100%;
    border-collapse: collapse;
}

.house-bill-table th {
    text-align: left;
    font-size: 0.82rem;
    color: #94a3b8;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.house-bill-table td {
    font-size: 0.88rem;
    color: #cbd5e1;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.house-bill-table th:nth-child(2),
.house-bill-table td:nth-child(2) {
    white-space: nowrap;
}

.bill-cost {
    font-weight: 800;
    color: #fbbf24;
    white-space: nowrap;
}

.total-cost {
    font-weight: 900;
    color: #10b981;
    font-size: 1rem;
    white-space: nowrap;
}

.bill-total-row td {
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: none;
    font-size: 0.92rem;
}

/* Roadmap Steps for House */
.house-steps-split .house-steps-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 380px;
    background: #090c14;
}

.house-steps-split .house-steps-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Media Queries for House */
@media (max-width: 1100px) {
    .house-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .house-facilities-list .house-facility-card {
        grid-template-columns: 1fr;
    }
    .facility-img-wrap {
        min-height: 220px;
    }
    .house-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .house-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .house-hero-title {
        font-size: 2.1rem;
    }
    .house-hero-card {
        padding: 35px 20px;
    }
    .house-section {
        padding: 26px 20px;
    }
}

@media (max-width: 480px) {
    .house-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* House Gallery Grid & Lightbox */
.house-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
}

@media (max-width: 1024px) {
    .house-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .house-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .house-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.house-gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    background: #090d18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.house-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.house-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.78) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.house-gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.28);
}

.house-gallery-item:hover img {
    transform: scale(1.06);
}

.house-gallery-item:hover .house-gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.house-gallery-item:hover .gallery-zoom-icon {
    transform: scale(1.1);
}

.gallery-zoom-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.3px;
}

/* Lightbox Modal */
.house-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(4, 7, 15, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.house-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.house-lightbox-content {
    position: relative;
    max-width: 88vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.house-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 14px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.25);
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.house-lightbox-modal.active .house-lightbox-content img {
    transform: scale(1);
}

.house-lightbox-caption {
    margin-top: 14px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.house-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
}

.house-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.08);
}

.house-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
    user-select: none;
}

.house-lightbox-nav:hover {
    background: rgba(245, 158, 11, 0.8);
    border-color: #f59e0b;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.house-lightbox-nav.prev {
    left: 24px;
}

.house-lightbox-nav.next {
    right: 24px;
}

@media (max-width: 640px) {
    .house-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .house-lightbox-nav.prev { left: 10px; }
    .house-lightbox-nav.next { right: 10px; }
    .house-lightbox-close { top: 15px; right: 15px; }
}

/* =============================================================================
   JOBS & CAREERS DIRECTORY STYLES (ระบบข้อมูลอาชีพและแหล่งรายได้)
   โครงสร้าง: แถวละ 1 งาน (ภาพซ้าย ข้อมูลขวา) เรียบหรู อ่านง่าย ไร้อีโมจิ
   ============================================================================= */
.jobs-info-container {
    max-width: 1400px;
    width: 92%;
    margin: 30px auto 70px;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Jobs Hero Card */
.jobs-hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 44px 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    margin-bottom: 35px;
}

.jobs-hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.jobs-hero-content {
    position: relative;
    z-index: 1;
}

.jobs-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
}

.jobs-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.jobs-hero-sub {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 900px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.jobs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.jobs-stat-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.jobs-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.jobs-stat-info {
    display: flex;
    flex-direction: column;
}

.jobs-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.22rem;
    font-weight: 800;
    color: #f8fafc;
}

.jobs-stat-lbl {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 3px;
}

/* Category Filter Bar */
.jobs-filter-wrapper {
    margin-bottom: 30px;
    position: sticky;
    top: 75px;
    z-index: 10;
}

.jobs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.job-filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.job-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.job-filter-btn.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.filter-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
}

.job-filter-btn.active .filter-dot {
    background: #ffffff;
}

/* =============================================================================
   Jobs List Layout (เรียงแถวละ 1 งาน: ภาพทางซ้าย ข้อมูลทางขวา)
   ============================================================================= */
.jobs-list-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

/* Row Card Container */
.job-row-card {
    display: flex;
    flex-direction: row;
    background: rgba(18, 26, 43, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.job-row-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    transform: translateY(-3px);
}

/* Left Side: Media / Image Column (ขยายภาพไปทางขวา แสดงยานพาหนะและทิวทัศน์เต็มตา) */
.job-row-media {
    flex: 0 0 490px;
    width: 490px;
    position: relative;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.job-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.job-row-card:hover .job-row-media img {
    transform: scale(1.04);
}

/* Golden Level Circle Badge (วงกลมสีทอง LV.1 บรรทัดเดียว) */
.job-gold-lv-circle {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff59d 0%, #fbbf24 45%, #d97706 75%, #92400e 100%);
    border: 2px solid #fffbeb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 12px rgba(245, 158, 11, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-row-card:hover .job-gold-lv-circle {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

.job-gold-lv-circle .lv-badge-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 900;
    color: #451a03;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    display: block;
    line-height: 1;
    text-align: center;
}

/* Gang Custom Badge (GANG) */
.job-gold-lv-circle.gang-badge {
    background: radial-gradient(circle at 35% 28%, #fca5a5 0%, #ef4444 45%, #b91c1c 75%, #7f1d1d 100%);
    border: 2px solid #fee2e2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 14px rgba(239, 68, 68, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.job-row-card:hover .job-gold-lv-circle.gang-badge {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

.job-gold-lv-circle.gang-badge .lv-badge-text {
    font-size: 0.76rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Right Side: Content Column (ปรับขนาดให้กระชับ อ่านง่าย สบายตา) */
.job-row-content {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-row-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.job-desc,
.job-subtitle {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* 4 Items Meta Info Grid */
.job-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
}

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

.info-label {
    font-size: 0.67rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 2px;
    line-height: 1.35;
    word-break: break-word;
}

.highlight-cash {
    color: #10b981 !important;
}

.highlight-crypto {
    color: #f59e0b !important;
}

/* Workflow Steps Panel */
.job-steps-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
}

.steps-heading {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.steps-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 12px;
}

.step-chip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.79rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.step-num {
    width: 18px;
    height: 18px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Clean Tables (No Emojis) */
.job-table-wrapper {
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    overflow-x: auto;
}

.table-caption {
    font-size: 0.76rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.job-clean-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.job-clean-table th {
    text-align: left;
    padding: 6px 10px;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.job-clean-table td {
    padding: 6px 10px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.job-clean-table tr:last-child td {
    border-bottom: none;
}

.table-tier {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.tier-legendary {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.tier-epic {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.tier-rare {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.tier-common {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

/* Feature Tags Footer */
.job-features-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-chip {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 9px;
    border-radius: 16px;
}

.badge-warning-text {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

/* Pro Tips Card */
.jobs-pro-tips-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.pro-tips-header {
    margin-bottom: 24px;
}

.pro-tips-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fbbf24;
    margin: 0 0 6px 0;
}

.pro-tips-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    margin: 0;
}

.pro-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pro-tip-item {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
}

.tip-num {
    width: 28px;
    height: 28px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.tip-text strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 4px;
}

/* Responsive Media Queries */
@media (max-width: 1240px) {
    .job-row-media {
        flex: 0 0 420px;
        width: 420px;
    }
}

@media (max-width: 1040px) {
    .job-row-media {
        flex: 0 0 360px;
        width: 360px;
    }
    .job-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 880px) {
    .job-row-card {
        flex-direction: column;
    }
    .job-row-media {
        flex: 0 0 240px;
        width: 100%;
        height: 240px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .steps-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .jobs-hero-title {
        font-size: 1.85rem;
    }
    .jobs-hero-card {
        padding: 30px 20px;
    }
    .job-row-content {
        padding: 20px 18px;
    }
    .job-info-grid {
        grid-template-columns: 1fr;
    }
    .jobs-filter-wrapper {
        top: 65px;
    }
    .job-filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ========================================================
   CAREER PROGRESSION & PLAYTIME FASHION VIEW STYLES
   ======================================================== */
.career-info-container {
    max-width: 1400px;
    width: 92%;
    margin: 30px auto 70px;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Career Hero Card */
.career-hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 44px 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 35px;
}

.career-hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.career-hero-content {
    position: relative;
    z-index: 1;
}

.career-hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.career-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.career-hero-sub {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 900px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.career-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.career-stat-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.career-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.35);
}

.career-stat-info {
    display: flex;
    flex-direction: column;
}

.career-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 3px;
}

.career-stat-lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Career Filter Bar */
.career-filter-wrapper {
    position: sticky;
    top: 75px;
    z-index: 20;
    margin-bottom: 35px;
}

.career-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.career-filter-bar::-webkit-scrollbar {
    display: none;
}

.career-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.career-filter-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.career-filter-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.career-filter-btn .filter-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    display: inline-block;
}

/* Section Headers */
.career-section-header {
    margin-bottom: 24px;
}

.career-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.career-section-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Grand Stage Milestone Cards */
.career-grand-section {
    margin-bottom: 50px;
}

.career-grand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.career-grand-card {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.95), rgba(12, 17, 30, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 0 260px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.career-grand-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.6);
}

.grand-card-media {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #0f172a;
}

.grand-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.career-grand-card:hover .grand-card-media img {
    transform: scale(1.04);
}

.grand-stage-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 15, 29, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.grand-card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.grand-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.grand-card-desc {
    font-size: 0.83rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}

.grand-reward-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    color: #fef08a;
    font-size: 0.82rem;
    font-weight: 700;
}

/* 20 Career Quests Grid */
.career-quests-section {
    margin-bottom: 40px;
}

.career-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.career-quest-card {
    background: linear-gradient(145deg, rgba(18, 25, 42, 0.95), rgba(11, 15, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    content-visibility: auto;
    contain-intrinsic-size: 0 240px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.career-quest-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.45);
}

.quest-card-media {
    position: relative;
    width: 100%;
    height: 135px;
    overflow: hidden;
    background: #0f172a;
}

.quest-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.career-quest-card:hover .quest-card-media img {
    transform: scale(1.04);
}

.quest-stage-tag {
    position: absolute;
    top: 9px;
    left: 9px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    background: rgba(10, 15, 29, 0.92);
}

.stage-1-tag {
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
}

.stage-2-tag {
    border: 1px solid rgba(59, 130, 246, 0.6);
    color: #93c5fd;
}

.stage-3-tag {
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #d8b4fe;
}

.stage-4-tag {
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

.quest-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.quest-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.35;
}

.quest-task {
    font-size: 0.83rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    flex: 1;
}

.rewards-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reward-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.cash-chip {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.xp-chip {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.skin-chip {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.craft-chip {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.item-chip {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #f472b6;
}

/* Playtime Fashion Milestones */
.career-fashion-section {
    margin-bottom: 40px;
}

.fashion-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.fashion-card {
    background: linear-gradient(145deg, rgba(18, 25, 42, 0.95), rgba(11, 15, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    content-visibility: auto;
    contain-intrinsic-size: 0 310px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fashion-card:hover {
    transform: translateY(-3px);
}

.fashion-card.rarity-common:hover {
    border-color: rgba(148, 163, 184, 0.5);
}

.fashion-card.rarity-rare:hover {
    border-color: rgba(59, 130, 246, 0.6);
}

.fashion-card.rarity-epic:hover {
    border-color: rgba(168, 85, 247, 0.6);
}

.fashion-card.rarity-legendary:hover {
    border-color: rgba(245, 158, 11, 0.6);
}

.fashion-card.rarity-mythic:hover {
    border-color: rgba(239, 68, 68, 0.7);
}

.fashion-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.fashion-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fashion-card:hover .fashion-card-media img {
    transform: scale(1.04);
}

.fashion-hours-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fbbf24;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.fashion-rarity-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    background: rgba(10, 15, 29, 0.92);
}

.common-tag {
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #cbd5e1;
}

.rare-tag {
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
}

.epic-tag {
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #c084fc;
}

.legendary-tag {
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.mythic-tag {
    background: rgba(239, 68, 68, 0.35);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

.fashion-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fashion-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.fashion-desc {
    font-size: 0.83rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

.fashion-parts-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
}

/* Career Pro Tips */
.career-pro-tips-card {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.9), rgba(12, 17, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .career-hero-title {
        font-size: 1.85rem;
    }
    .career-hero-card {
        padding: 24px 16px;
    }
    .career-filter-wrapper {
        top: 65px;
    }
    .career-filter-btn {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
    .career-cards-grid {
        grid-template-columns: 1fr;
    }
    .fashion-cards-grid {
        grid-template-columns: 1fr;
    }
    .grand-card-media {
        height: 140px;
    }
    .fashion-card-media {
        height: 200px;
    }
}


