/* ==========================================================================
   DESIGN VARIABLES & SYSTEM TOKENS
   ========================================================================== */
:root {
    --bg-main: #FAF7F2; /* Creamy white page background */
    --bg-sidebar: #F5F0E8; /* Warm light-brown-grey sidebar */
    --bg-card: #FFFFFF; /* Pure white cards */
    --bg-card-hover: #FFFFFF;
    --bg-input: #FAF7F2; /* Creamy white inputs */
    
    --border-color: rgba(44, 37, 32, 0.08); /* Subtle border */
    --border-hover: rgba(212, 168, 67, 0.35); /* Accent gold hover */
    --border-glow: rgba(212, 168, 67, 0.5);
    
    --text-primary: #2C2520; /* Dark brown-grey text */
    --text-secondary: #5C544A; /* Medium text */
    --text-muted: #9A9188; /* Light muted text */
    
    --color-primary: #2E5A9B; /* Royal Blue */
    --color-primary-grad: linear-gradient(135deg, #2E5A9B 0%, #1D3D70 100%);
    --color-accent: #D4A843; /* Gold */
    --color-accent-grad: linear-gradient(135deg, #D4A843 0%, #B2862B 100%);
    
    --color-success: #1A8C7A; /* Teal */
    --color-warning: #7B3F7D; /* Plum */
    --color-danger: #C0392B; /* Crimson */
    
    --shadow-main: 0 4px 16px rgba(44, 37, 32, 0.06);
    --shadow-glow: 0 0 20px rgba(212, 168, 67, 0.1);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: var(--font-main);
    --font-serif: var(--font-main);
    --font-mono: var(--font-main);

    --radius-lg: 20px; /* Round shapes from readme */
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main) !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main) !important;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .btn, .nav-item, label, .lbl-txt, select, option, input, textarea, pre, code, .terminal-body, .console-body {
    font-family: var(--font-main) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(44, 37, 32, 0.15);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 37, 32, 0.25);
}

/* ==========================================================================
   MAIN SYSTEM LAYOUT
   ========================================================================== */
.app-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Left Sidebar Workspace */
.sidebar {
    width: 290px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent-grad);
    filter: blur(15px);
    opacity: 0.25;
    z-index: -1;
}

.logo-icon {
    font-size: 26px;
    background: var(--color-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.nav-divider {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 18px 8px 6px 8px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-item *, .subtab-item * {
    pointer-events: none;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(44, 37, 32, 0.04);
}

.nav-item.active {
    color: #ffffff;
    background: var(--color-primary-grad);
    box-shadow: 0 4px 12px rgba(46, 90, 155, 0.25);
}

.nav-item.highlight-item {
    border-left: 2px solid var(--color-accent);
}

.nav-item.highlight-item.active {
    border-left: none;
    background: var(--color-accent-grad);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.25);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

.pulse-dot.green { background-color: var(--color-success); }
.pulse-dot.green::after { background-color: var(--color-success); }

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.sidebar-footer .version {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Right Workspace Container */
.workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   TOP BAR STATUS STYLING
   ========================================================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-main);
}

.bar-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.connection-status-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: default;
    transition: var(--transition-smooth);
}

.status-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.status-badge .lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Status Color Classes */
.status-badge.green { border-color: rgba(26, 140, 122, 0.25); background-color: rgba(26, 140, 122, 0.04); }
.status-badge.green .dot { background-color: var(--color-success); box-shadow: 0 0 8px rgba(26, 140, 122, 0.3); }
.status-badge.green .lbl { color: var(--color-success); }

.status-badge.red { border-color: rgba(192, 57, 43, 0.25); background-color: rgba(192, 57, 43, 0.04); }
.status-badge.red .dot { background-color: var(--color-danger); box-shadow: 0 0 8px rgba(192, 57, 43, 0.3); }
.status-badge.red .lbl { color: var(--color-danger); }

.status-badge.yellow { border-color: rgba(123, 63, 125, 0.25); background-color: rgba(123, 63, 125, 0.04); }
.status-badge.yellow .dot { background-color: var(--color-warning); box-shadow: 0 0 8px rgba(123, 63, 125, 0.3); }
.status-badge.yellow .lbl { color: var(--color-warning); }

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Dashboard Hero Card */
.hero-card {
    background: linear-gradient(135deg, #F5F0E8 0%, #FFFFFF 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-main);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 70%;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.hero-decor {
    position: absolute;
    right: -50px;
    top: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
    z-index: 1;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.card-title-group {
    margin-bottom: 24px;
}

.card-title-group h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* ==========================================================================
   TAB DISPLAY SWITCHES
   ========================================================================== */
.tab-content {
    display: none;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 370px; /* Space for tall console logs drawer */
}

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

/* ==========================================================================
   FORMS, INPUTS & CONTROLS
   ========================================================================== */
.workspace-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workspace-form.sm-gap {
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.workspace-form input[type="text"],
.workspace-form input[type="number"],
.workspace-form select,
.workspace-form-sm input[type="text"],
.workspace-form-sm select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

.workspace-form input[type="text"]:focus,
.workspace-form input[type="number"]:focus,
.workspace-form select:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.form-row {
    display: flex;
    gap: 20px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--color-primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background: var(--color-primary-grad);
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox .lbl-txt {
    margin-left: 4px;
}

/* Help text */
.help-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   DRAG AND DROP FILE ZONE
   ========================================================================== */
.drop-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--color-primary);
    background-color: rgba(0, 242, 254, 0.02);
}

.drop-zone .icon {
    font-size: 34px;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.drop-zone svg,
.drop-vector-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex-shrink: 0;
    color: #2563eb;
    margin-bottom: 8px;
    display: block;
}

.drop-zone:hover .icon,
.drop-zone:hover svg {
    transform: translateY(-3px);
}

.drop-zone .text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone .filename {
    margin-top: 12px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--color-success);
    font-weight: 600;
    word-break: break-all;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main) !important;
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #00E5FF 0%, #2979FF 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
}

.btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
}

.btn:hover:not(:disabled)::after {
    animation: btn-shimmer 1.2s ease-out infinite;
}

.btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

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

@keyframes btn-shimmer {
    100% {
        left: 200%;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #00E5FF 0%, #2979FF 100%);
    color: #ffffff !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc !important;
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    border-color: #00E5FF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
}

.btn-action {
    background: linear-gradient(135deg, #00E5FF 0%, #2979FF 100%);
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-action:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.45);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.input-action-wrapper {
    display: flex;
    gap: 12px;
}

.input-action-wrapper input {
    flex-grow: 1;
}

/* ==========================================================================
   SUB TABS (Re-region / Resign tab submenus)
   ========================================================================== */
.workspace-tabs {
    display: flex;
    gap: 8px;
    background-color: rgba(44, 37, 32, 0.06);
    padding: 5px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.subtab-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-grow: 1;
    text-transform: uppercase;
}

.subtab-item:hover {
    color: var(--text-primary);
}

.subtab-item.active {
    color: #ffffff;
    background: var(--color-primary-grad);
    box-shadow: 0 4px 10px rgba(46, 90, 155, 0.2);
}

.subtab-content {
    display: none;
}

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

/* ==========================================================================
   STATUS DETAILS GRID
   ========================================================================== */
.status-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.detail-row .lbl {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row .val {
    font-family: var(--font-mono);
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* ==========================================================================
   LIVE TERMINAL PROGRESS DRAWER
   ========================================================================== */
.console-drawer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 290px; /* Sidebar offset */
    height: 360px;
    background: #0f172a; /* Dark slate console background */
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
    color: #f8fafc;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
}

.console-header h3 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #9A9188; /* Muted warm grey */
}

.console-body {
    padding: 14px 24px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-line {
    word-break: break-all;
    position: relative;
    padding-left: 14px;
}

.log-line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.text-cyan { color: var(--color-primary); }
.text-purple { color: var(--color-accent); }
.text-green { color: var(--color-success); }
.text-red { color: var(--color-danger); }
.text-yellow { color: var(--color-warning); }
.text-muted { color: var(--text-muted); }

/* Custom Dynamic Cheat Option Cards styling */
.dynamic-options-card {
    border-color: var(--color-accent);
    background-color: rgba(157, 78, 221, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
}

.dynamic-options-card h3 {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* ==========================================================================
   INFO BANNERS
   ========================================================================== */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.04) 0%, rgba(79, 172, 254, 0.02) 100%);
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.info-banner.compact {
    padding: 14px 18px;
    margin-bottom: 16px;
}

.info-banner .info-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner div {
    flex-grow: 1;
}

.info-banner strong {
    color: var(--text-primary);
    font-size: 14px;
}

.info-banner p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 4px;
}

/* ==========================================================================
   ACCOUNT CARDS & GRID
   ========================================================================== */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.account-card:hover {
    border-color: var(--color-primary);
    background: rgba(0, 242, 254, 0.02);
}

.account-avatar {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

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

.account-id {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    word-break: break-all;
}

/* Saved accounts section header */
.saved-accounts-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* ==========================================================================
   HERO HINT TEXT
   ========================================================================== */
.hero-hint {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 242, 254, 0.04);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-hint strong {
    color: var(--color-primary);
}

/* ==========================================================================
   TOYBOX MODIFIER COMPONENT STYLES
   ========================================================================== */
.toy-modify-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.toy-title-badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary { background: rgba(46, 90, 155, 0.12); color: var(--color-primary); border: 1px solid rgba(46, 90, 155, 0.3); }
.badge-secondary { background: rgba(212, 168, 67, 0.15); color: var(--color-accent); border: 1px solid rgba(212, 168, 67, 0.35); }
.badge-info { background: rgba(26, 140, 122, 0.12); color: var(--color-success); border: 1px solid rgba(26, 140, 122, 0.3); }
.badge-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }

.inner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.meta-field .field-label {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.meta-field .field-val {
    margin-top: 4px;
    font-size: 0.95em;
    color: var(--text-primary);
}

.file-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.file-tag {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75em;
    color: var(--text-secondary);
}

.screenshot-preview-box {
    width: 100%;
    max-width: 384px;
    height: 190px;
    background: var(--bg-input);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
}
.screenshot-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.screenshot-preview-box .placeholder-text {
    font-size: 0.85em;
    color: var(--text-muted);
}

.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.action-toolbar .btn {
    flex: 1 1 auto;
}

.subtoybox-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.subtoybox-info-part h4 {
    font-size: 1em;
    color: var(--text-primary);
}
.subtoybox-actions {
    display: flex;
    gap: 8px;
}

.session-log-card {
    background: rgba(46, 90, 155, 0.04);
    border: 1px solid rgba(46, 90, 155, 0.15);
    border-radius: var(--radius-md);
    padding: 14px;
}
.session-log-card h4 {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: var(--color-primary);
}
.log-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.85em;
}
.log-list li {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.modal-card h3 {
    margin-bottom: 6px;
    color: var(--text-primary);
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* =================================================================
   Soft UI & Enterprise Dashboard Theme Updates
   ================================================================= */

/* Soft Cards */
.soft-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.soft-card:hover {
    box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.06), 0 3px 6px -1px rgba(0, 0, 0, 0.03);
}

.card-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.card-section-title h3,
.card-section-title h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
}

.section-svg-icon,
.header-vector-icon,
.banner-vector-icon,
.btn-svg-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
    color: #2563eb;
}

.header-vector-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Clean Form Inputs */
.clean-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: none; /* Normal sentence case! */
    color: #475569;
    letter-spacing: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-tech-subtext {
    font-size: 11px;
    font-family: var(--font-mono);
    color: #94a3b8;
    font-weight: 400;
}

.clean-input,
.clean-textarea,
.clean-select {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.15s ease-in-out;
}

.clean-input:focus,
.clean-textarea:focus,
.clean-select:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

.datetime-picker-input {
    cursor: pointer;
    font-family: var(--font-sans);
}

/* Combined Interactive Screenshot Studio */
.interactive-screenshot-studio {
    position: relative;
    width: 100%;
    min-height: 220px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive-screenshot-studio:hover,
.interactive-screenshot-studio.highlight {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.screenshot-canvas-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    padding: 30px 15px;
    text-align: center;
}

.placeholder-svg-icon {
    width: 36px;
    height: 36px;
    color: #94a3b8;
}

.screenshot-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.screenshot-hover-overlay svg {
    width: 28px;
    height: 28px;
    color: #38bdf8;
}

.interactive-screenshot-studio:hover .screenshot-hover-overlay {
    opacity: 1;
}

.studio-subtext {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 8px;
}

/* Header Status Bar & Tags */
.mod-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mod-status-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #475569;
}

.status-tag {
    font-weight: 500;
}

.status-tag.tag-primary {
    color: #2563eb;
    font-weight: 700;
}

.tag-divider {
    color: #cbd5e1;
    font-weight: 300;
}

/* Terminal Log Window */
.terminal-log-card {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.terminal-header {
    background: #1e293b;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #334155;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dots .dot.red { background: #ef4444; }
.terminal-dots .dot.yellow { background: #f59e0b; }
.terminal-dots .dot.green { background: #10b981; }

.terminal-title {
    font-size: 12px;
    font-family: var(--font-mono);
    color: #94a3b8;
}

.terminal-body {
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    max-height: 160px;
    overflow-y: auto;
    color: #38bdf8;
}

.terminal-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terminal-log-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.term-prompt {
    color: #4ade80;
    margin-right: 6px;
    font-weight: 700;
}

/* Sticky Hero Download Bar & Button */
.hero-download-bar {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

.btn-hero-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease-in-out;
}

.btn-hero-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(16, 185, 129, 0.5), 0 6px 8px -2px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.download-vector-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* Responsive Mobile & Tablet Layout Adjustments */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr !important;
    }
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    .hero-download-bar {
        justify-content: center;
        width: 100%;
    }
    .btn-hero-download {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ==========================================================================
   XBOX CLOUD SAVE STYLES
   ========================================================================== */
.divider-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00E5FF, #2979FF);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite linear;
}

@keyframes loading-shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.success-card {
    border-color: var(--color-success) !important;
    background: rgba(26, 140, 122, 0.05) !important;
}

.btn-success {
    background: linear-gradient(135deg, #1A8C7A 0%, #10594D 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 140, 122, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(26, 140, 122, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #C0392B 0%, #8E2319 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 800;
}

.status-badge.status-success {
    border-color: rgba(26, 140, 122, 0.25);
    background-color: rgba(26, 140, 122, 0.04);
}
.status-badge.status-success .dot {
    background-color: var(--color-success);
    box-shadow: 0 0 8px rgba(26, 140, 122, 0.3);
}
.status-badge.status-success .lbl {
    color: var(--color-success);
}

/* === Bundle Generator Tab === */

.bundle-phase {
    margin-bottom: 30px;
}

.bundle-phase-header {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.bundle-stats-row {
    margin-bottom: 20px;
}

.bundle-stat-card {
    text-align: center;
    padding: 20px;
}

.bundle-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bundle-stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--color-primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bundle card styling */
.bundle-card {
    border-left: 4px solid var(--border-color);
    padding: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bundle-card:hover {
    box-shadow: var(--shadow-main);
    transform: translateY(-2px);
}

.bundle-card .bundle-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.bundle-card .bundle-header:hover {
    background: #f8fafc;
}

.bundle-card .bundle-title-area {
    display: flex;
    flex-direction: column;
}

.bundle-card .bundle-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
    letter-spacing: -0.2px;
}

.bundle-card .bundle-themes {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.bundle-card .bundle-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bundle-card .bundle-count {
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-main);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.bundle-card .bundle-toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.bundle-card.collapsed .bundle-toggle-icon {
    transform: rotate(-90deg);
}

.bundle-card.collapsed .bundle-body {
    display: none;
}

.bundle-card .bundle-body {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    max-height: 400px;
    overflow-y: auto;
}

.bundle-card .toybox-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.bundle-card .toybox-item:last-child {
    border-bottom: none;
}

.bundle-card .toybox-name {
    color: var(--text-primary);
    font-weight: 500;
}

.bundle-card .toybox-status {
    color: var(--text-muted);
    font-size: 12px;
}

/* Franchise color borders */
.bundle-card.franchise-star-wars { border-left-color: #FFE81F; }
.bundle-card.franchise-marvel { border-left-color: #E62429; }
.bundle-card.franchise-disney { border-left-color: #1B87DE; }
.bundle-card.franchise-frozen { border-left-color: #8ECAE6; }
.bundle-card.franchise-mystery { border-left-color: #6C5CE7; }
.bundle-card.franchise-mixed { border-left-color: #A0A0A0; }

/* Progress display */
.bundle-progress-item {
    padding: 4px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.bundle-progress-item.success { color: var(--color-success); }
.bundle-progress-item.error { color: var(--color-danger); }
.bundle-progress-item.working { color: var(--color-primary); font-weight: 600; }

/* === Expert Bundle Accordion List & Toolbar Styles === */
.bundle-capacity-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 130px;
}

.bundle-capacity-badge .cap-text {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.bundle-capacity-badge .cap-bar-mini {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.bundle-capacity-badge .cap-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.bundle-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.bundle-search-input {
    max-width: 320px;
    padding: 6px 12px;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.bundle-search-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.toybox-table-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 4px;
}

.toybox-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

.toybox-row-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.toybox-left-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.drag-handle {
    cursor: grab;
    color: #94a3b8;
    font-size: 14px;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.toybox-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.toybox-id-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 6px;
}

.toybox-creator-tag {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.toybox-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toybox-move-select {
    padding: 4px 8px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    cursor: pointer;
}

.btn-icon-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.btn-icon-delete:hover {
    background: #fee2e2;
}
