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

:root {
    --bg-primary: #0f0f14;
    --bg-secondary: #16161d;
    --bg-tertiary: #1a1a24;
    --bg-card: #1e1e2a;
    --bg-hover: #252532;
    --border-color: #2a2a3a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7d;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-green: #4ade80;
    --accent-red: #f87171;
    --accent-yellow: #fbbf24;
    --accent-blue: #38bdf8;
}

/* Balance Change Indicators */
.change-positive {
    color: var(--accent-green);
    font-size: 0.85em;
    font-weight: 500;
}

.change-negative {
    color: var(--accent-red);
    font-size: 0.85em;
    font-weight: 500;
}

/* Balance Chart Section */
.balance-chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h3 i {
    color: var(--accent-primary);
}

.chart-period-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 3px;
}

.period-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.period-tab:hover {
    color: var(--text-secondary);
}

.period-tab.active {
    background: var(--accent-primary);
    color: white;
}

/* Real-time button pulsing effect */
.period-tab[data-period="300000"].active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: pulse-rt 2s infinite;
}

@keyframes pulse-rt {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.chart-container {
    position: relative;
    height: 150px;
    min-height: 150px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 150px;
}

.chart-empty {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.chart-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.chart-empty.hidden {
    display: none;
}

.chart-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

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

.chart-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.chart-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
    padding: 1rem;
}

.login-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1rem 1rem 2.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

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

.login-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.2rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Main App */
.main-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.header-left h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 10px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-tab.active {
    background: var(--accent-primary);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Account Switcher */
.account-switcher {
    position: relative;
}

.current-farmer-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.current-farmer-wrapper:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.current-farmer-wrapper .current-farmer {
    background: none;
    padding: 0;
}

.current-farmer-wrapper .current-farmer:hover {
    background: none;
}

.farmer-stats-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.farmer-balance {
    color: var(--accent-green);
    font-weight: 600;
}

.farmer-accounts-count {
    color: var(--text-muted);
}

.switcher-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.2s;
    margin-left: 0.25rem;
}

.account-switcher.open .switcher-arrow {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.account-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-dropdown-list {
    max-height: 350px;
    overflow-y: auto;
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.account-dropdown-item:hover {
    background: var(--bg-hover);
}

.account-dropdown-item.active {
    background: var(--accent-primary)15;
    border-left: 3px solid var(--accent-primary);
}

.account-dropdown-item .dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.account-dropdown-item .dropdown-info {
    flex: 1;
    min-width: 0;
}

.account-dropdown-item .dropdown-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-dropdown-item .dropdown-key {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.account-dropdown-item .dropdown-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.account-dropdown-item .dropdown-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-green);
}

.account-dropdown-item .dropdown-accounts {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.current-farmer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.current-farmer:hover {
    background: var(--bg-hover);
}

.farmer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.farmer-info {
    display: flex;
    flex-direction: column;
}

.farmer-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.farmer-key {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section */
.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--accent-primary);
}

.section-header .section-title {
    margin-bottom: 0;
}

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

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Fixed minimum height for consistency */
    position: relative;
}

.account-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(248, 113, 113, 0.1);
    color: var(--accent-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.account-card:hover .account-delete-btn {
    opacity: 1;
}

.account-delete-btn:hover {
    background: var(--accent-red);
    color: white;
    transform: scale(1.1);
}

.account-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.status-badge.online {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.status-badge.online i {
    font-size: 0.5rem;
}

.status-badge.offline {
    background: rgba(107, 107, 125, 0.15);
    color: var(--text-muted);
}

.status-badge.offline i {
    font-size: 0.5rem;
}

.account-action {
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.account-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

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

.account-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
}

.account-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.account-brainrots {
    margin-bottom: 0.75rem;
    flex: 1; /* Take remaining space to push footer to bottom */
    min-height: 100px; /* Minimum height for brainrots section */
    overflow: visible; /* Allow tooltips to show above */
    position: relative;
}

.brainrots-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.brainrots-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: visible; /* Allow tooltip to show above */
    padding-bottom: 0.5rem;
    padding-top: 22px; /* More space for mutation badges and tooltip */
    position: relative;
}

.brainrots-scroll::-webkit-scrollbar {
    height: 4px;
}

.brainrots-scroll::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.brainrots-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.brainrot-mini {
    flex-shrink: 0;
    width: 72px;
    text-align: center;
    position: relative;
}

.brainrot-mini.has-mutation .brainrot-mini-img {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.brainrot-mini-mutation {
    position: absolute;
    top: -4px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    z-index: 5;
    box-shadow: 0 0 6px currentColor;
    cursor: pointer;
}

/* Tooltip is now handled by JavaScript for proper z-index layering */

/* Empty state for no brainrots */
.brainrots-scroll .no-brainrots {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
}

.brainrot-mini-img {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.35rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brainrot-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brainrot-mini-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brainrot-mini-income {
    font-size: 0.65rem;
    color: var(--accent-green);
    font-weight: 600;
}

.account-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* Push footer to bottom of card */
}

/* Farm Keys List */
.farm-keys-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.farm-key-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.farm-key-card:hover {
    border-color: var(--accent-primary);
}

.farm-key-card.active {
    border-color: var(--accent-green);
    background: rgba(74, 222, 128, 0.05);
}

.farm-key-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.farm-key-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.farm-key-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.farm-key-username {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.farm-key-username .edit-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.farm-key-card:hover .farm-key-username .edit-btn {
    opacity: 1;
}

.farm-key-username .edit-btn:hover {
    color: var(--accent-primary);
}

.farm-key-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.farm-key-code:hover {
    background: var(--bg-hover);
}

.farm-key-code .key-text {
    transition: filter 0.3s ease;
}

.farm-key-code.blurred .key-text {
    filter: blur(5px);
    user-select: none;
}

.farm-key-code .key-icon {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.farm-key-code:hover .key-icon {
    opacity: 1;
}

.farm-key-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.farm-key-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.farm-key-stats {
    text-align: right;
    margin-right: 1rem;
}

.farm-key-accounts {
    font-size: 1.25rem;
    font-weight: 700;
}

.farm-key-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.select-key-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.select-key-btn:hover {
    background: var(--accent-secondary);
}

.farm-key-card.active .select-key-btn {
    background: var(--accent-green);
}

.delete-key-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.delete-key-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.add-key-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.add-key-btn:hover {
    background: var(--accent-secondary);
}

/* Accounts List */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
}

.account-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.account-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-list-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.account-list-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-list-income {
    text-align: center;
}

.account-list-income .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
}

.account-list-income .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.account-list-brainrots {
    text-align: center;
}

.account-list-brainrots .value {
    font-size: 1.1rem;
    font-weight: 700;
}

.account-list-brainrots .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header i {
    color: var(--accent-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem;
}

.modal-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Danger Button (for bulk delete) */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-danger:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .header-center {
        order: 3;
        width: 100%;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .nav-tab span {
        display: none;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .account-list-item {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }
    
    .account-list-income,
    .account-list-brainrots,
    .status-badge {
        display: none;
    }
}

/* Collection View */
.collection-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Bulk Delete Button - prominent red styling */
#bulkDeleteBtn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
}

#bulkDeleteBtn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

#bulkDeleteBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#bulkDeleteBtn i {
    font-size: 0.85rem;
}

/* Custom Tooltip for data-tooltip attribute */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    min-width: 180px;
}

.dropdown-toggle {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s;
}

.dropdown-toggle:hover {
    border-color: var(--accent-primary);
}

.dropdown-toggle.open {
    border-color: var(--accent-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.dropdown-toggle.open i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--accent-primary);
    color: white;
}

/* v9.11.11: Mutation badge in dropdown - use existing mutation-badge styles */
.dropdown-item .mutation-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 0 8px var(--glow-color, #888), 0 2px 6px rgba(0,0,0,0.4);
    animation: badge-glow-var 2s ease-in-out infinite;
}

/* Mutation badge colors for dropdown */
.dropdown-item .mutation-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #4a3500;
    --glow-color: #FFD700;
}

.dropdown-item .mutation-badge.diamond {
    background: linear-gradient(135deg, #00BFFF, #87CEEB);
    color: #003366;
    --glow-color: #00BFFF;
}

.dropdown-item .mutation-badge.bloodrot {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: #ffcccc;
    --glow-color: #DC143C;
}

.dropdown-item .mutation-badge.rainbow {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff);
    color: #ffffff;
    text-shadow: 0 0 3px #000, 0 0 5px #000;
    --glow-color: #ff00ff;
}

.dropdown-item .mutation-badge.candy {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: #4a0020;
    --glow-color: #FF69B4;
}

.dropdown-item .mutation-badge.lava {
    background: linear-gradient(135deg, #FF4500, #FF6347);
    color: #3d0000;
    --glow-color: #FF4500;
}

.dropdown-item .mutation-badge.galaxy {
    background: linear-gradient(135deg, #9400D3, #4B0082);
    color: #e0c0ff;
    --glow-color: #9400D3;
}

.dropdown-item .mutation-badge.yin-yang {
    background: linear-gradient(135deg, #333, #fff, #333);
    color: #000000;
    text-shadow: 0 0 2px #fff;
    --glow-color: #888888;
}

.dropdown-item .mutation-badge.radioactive {
    background: linear-gradient(135deg, #32CD32, #00FF00);
    color: #003300;
    --glow-color: #32CD32;
}

.dropdown-item .mutation-badge.cursed {
    background: linear-gradient(135deg, #1a0000, #4a0a0a, #8b0000);
    color: #ff6666;
    text-shadow: 0 0 4px #ff0000, 0 0 8px #990000;
    --glow-color: #ff0000;
}

.dropdown-item i {
    width: 16px;
    margin-right: 0.5rem;
    text-align: center;
}

.collection-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.collection-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.collection-stats i {
    color: var(--accent-primary);
}

/* Brainrots Grid */
.brainrots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.brainrot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
    position: relative;
}

/* v9.11.2: Content wrapper for image + details row */
.brainrot-card-content {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.brainrot-card:hover {
    /* border-color removed - only has-offer cards have border highlight */
    transform: translateY(-2px);
}

/* Only has-offer cards get border highlight on hover */
.brainrot-card.has-offer:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px #60a5fa, 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Generate Button - Top Left Corner */
.brainrot-generate-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 28px;
    height: 28px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.brainrot-card:hover .brainrot-generate-btn {
    opacity: 1;
}

.brainrot-generate-btn:hover {
    transform: scale(1.1);
    background: var(--accent-primary-hover);
}

.brainrot-generate-btn i {
    color: white;
    font-size: 0.7rem;
}

/* Generation count badge on button */
.brainrot-generate-btn.has-generations {
    opacity: 1;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
}

.brainrot-generate-btn .generation-count {
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.brainrot-card:hover .brainrot-generate-btn.has-generations {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.brainrot-image {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brainrot-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brainrot-image i {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Eldorado link button on card */
.brainrot-eldorado-link {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
    color: var(--accent-primary);
}

.brainrot-card:hover .brainrot-eldorado-link {
    opacity: 1;
}

.brainrot-eldorado-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.brainrot-eldorado-link i {
    font-size: 0.75rem;
}

.brainrot-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* v9.11.1: Removed justify-content: center to allow price blocks at bottom */
}

.brainrot-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brainrot-income {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.3rem;
}

.brainrot-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.brainrot-price[data-price-loading] {
    color: var(--text-muted);
}

.brainrot-price[data-price-loading] .fa-spinner {
    font-size: 0.8rem;
}

.brainrot-price .price-text {
    font-weight: 600;
}

.brainrot-price .price-text.suggested {
    color: var(--accent-green);
}

.brainrot-price .price-market {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.brainrot-price i {
    font-size: 0.8rem;
}

/* Parsing source badges (AI / Regex) */
.parsing-source-badge {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    cursor: help;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.parsing-source-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.parsing-source-badge.regex {
    color: #60a5fa; /* blue for regex/bot */
}

.parsing-source-badge.regex i {
    font-size: 0.65rem;
}

.parsing-source-badge.ai {
    color: #a78bfa; /* purple for AI */
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.8), 0 0 16px rgba(167, 139, 250, 0.5);
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.6));
}

.parsing-source-badge.ai i {
    font-size: 0.7rem;
    animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
    0%, 100% {
        opacity: 0.85;
        text-shadow: 0 0 8px rgba(167, 139, 250, 0.8), 0 0 16px rgba(167, 139, 250, 0.5);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(167, 139, 250, 1), 0 0 24px rgba(167, 139, 250, 0.7);
    }
}

.parsing-source-badge.hybrid {
    color: #a78bfa;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
}

.parsing-source-badge.hybrid i:first-child {
    color: #a78bfa;
}

.parsing-source-badge.hybrid i:last-child {
    color: #60a5fa;
    margin-left: 0.1rem;
    font-size: 0.55rem;
}

/* v9.10.5: AI + Next Range - brain with yellow arrow */
.parsing-source-badge.ai-next-range {
    color: #a78bfa; /* purple brain */
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.8), 0 0 16px rgba(167, 139, 250, 0.5);
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.6));
}

.parsing-source-badge.ai-next-range i.fa-brain {
    font-size: 0.7rem;
    animation: ai-pulse 2s ease-in-out infinite;
}

.parsing-source-badge.ai-next-range i.next-range-arrow {
    color: #f59e0b; /* yellow arrow */
    margin-left: 0.15rem;
    font-size: 0.6rem;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* v9.9.5: Next range badge - цена из следующего диапазона */
.next-range-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    font-size: 0.65rem;
    color: #f59e0b;
    opacity: 0.9;
}

.next-range-badge:hover {
    opacity: 1;
    color: #fbbf24;
}

.next-range-badge i {
    font-size: 0.6rem;
}

/* Price change indicators */
.price-change-up {
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.2rem;
}

.price-change-down {
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.2rem;
}

/* v9.9.7: Price type badge - compact */
.price-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.5rem;
    font-weight: 600;
    padding: 1px 3px;
    margin-left: 0.15rem;
    border-radius: 2px;
    background: rgba(139, 92, 246, 0.25);
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* v9.9.7: Price type dropdown toggle */
.price-type-toggle {
    min-width: 100px;
}

.price-type-toggle i:first-child {
    margin-right: 0.3rem;
    color: var(--primary);
}

/* Brainrot price row - compact layout */
.brainrot-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.brainrot-price .price-text {
    white-space: nowrap;
}

.brainrot-price .price-market {
    font-size: 0.7rem;
    opacity: 0.7;
    white-space: nowrap;
}

/* v9.11.1: Unified price block for normal cards (no mutation) */
/* v9.11.2: Full width at bottom of card */
.brainrot-price-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.brainrot-price-single {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 116, 139, 0.3);
    text-align: center;
    width: 100%;
}

.brainrot-price-single:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(100, 116, 139, 0.5);
}

.brainrot-price-single .price-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.brainrot-price-single .price-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    color: #94a3b8;
}

.brainrot-price-single .price-badges {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.brainrot-price-single .price-badges .parsing-source-badge {
    font-size: 0.5rem;
}

.brainrot-price-single .price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.brainrot-price-single .price-main .price-text {
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 600;
}

.brainrot-price-single .price-main .price-market {
    font-size: 0.6rem;
    opacity: 0.6;
    color: var(--text-muted);
}

/* v9.12.35: Price change row - matches variant cards height */
.brainrot-price-single .price-change {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0.9rem;
    font-size: 0.75rem;
}

.brainrot-price-single .price-change .price-change-up,
.brainrot-price-single .price-change .price-change-down {
    margin-left: 0;
}

.brainrot-price-single .price-additional {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
    position: relative;
}

.brainrot-price-single .price-additional .additional-price {
    font-size: 0.55rem;
    padding: 1px 4px;
}

/* v9.12.55: Last update time badge - absolute right position so median/next stay centered */
.brainrot-price-single .price-additional .price-last-update {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 500;
    padding: 1px 3px;
    cursor: help;
    white-space: nowrap;
}

.brainrot-price-single .price-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    opacity: 0.5;
    padding: 0.3rem 0;
}

/* v9.12.12: Compact pending placeholder - no spinner, just dash */
.brainrot-price-single.price-pending,
.price-variant.price-pending {
    min-height: 2rem;
}

.price-pending-text {
    font-size: 1rem;
    opacity: 0.3;
    font-weight: 500;
}

.brainrot-price-single .price-no-data {
    font-size: 0.7rem;
    opacity: 0.4;
    text-align: center;
}

/* v9.9.0: Additional prices (median, next competitor) */
.brainrot-additional-prices {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
}

.additional-price {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    cursor: help;
}

.additional-price.median {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* v9.11.19: Empty state for missing prices */
.additional-price.empty {
    opacity: 0.4;
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.additional-price.median i {
    font-size: 0.55rem;
}

.additional-price.next-comp {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* v9.10.2: Next competitor opportunity animation when gap > 100% */
.additional-price.next-comp.opportunity {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
    color: #fb923c;
    animation: pulse-opportunity 2s ease-in-out infinite;
}

.additional-price.next-comp.opportunity i {
    animation: bounce-arrow 1s ease-in-out infinite;
}

@keyframes pulse-opportunity {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(251, 146, 60, 0.3);
    }
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.additional-price.next-comp i {
    font-size: 0.6rem;
}

/* v9.11.0: Mutation price variants - two columns for Default and Mutation prices */
/* v9.11.2: Full width at bottom of card */
.brainrot-price-variants {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.price-variant {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    min-width: 80px;
    max-width: 50%;
    text-align: center;
}

.price-variant:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.price-variant.default {
    border-color: rgba(100, 116, 139, 0.3);
}

.price-variant.mutated {
    border-color: var(--mutation-glow, rgba(167, 139, 250, 0.3));
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(var(--mutation-rgb, 167, 139, 250), 0.1));
}

.price-variant-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.price-variant-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.price-variant-label.default {
    color: #94a3b8;
}

.price-variant-label.mutation {
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--mutation-bg, rgba(167, 139, 250, 0.2));
    color: var(--mutation-color, #a78bfa);
    font-size: 0.5rem;
}

/* Badges inside price variants */
.price-variant-badges {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 3px;
}

.price-variant-badges .parsing-source-badge {
    font-size: 0.5rem;
    padding: 1px 3px;
}

.price-variant-badges .next-range-badge {
    font-size: 0.45rem;
    padding: 1px 2px;
}

.price-variant-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 600;
}

.price-variant-main .price-text {
    color: #4ade80;
    font-size: 0.85rem;
}

.price-variant-main .price-market {
    font-size: 0.6rem;
    opacity: 0.6;
    color: var(--text-muted);
}

/* v9.12.33: Price change percentage row in variants */
.price-variant-change {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0.9rem;
    font-size: 0.65rem;
}

.price-variant-change .price-change-up,
.price-variant-change .price-change-down {
    font-size: 0.65rem;
    margin-left: 0;
}

/* v9.12.56: Changed to flex-start to make room for time badge on right */
.price-variant-additional {
    display: flex;
    justify-content: flex-start;
    gap: 0.25rem;
    margin-top: 0.15rem;
    position: relative;
    padding-right: 22px; /* Reserve space for absolute time badge */
}

.price-variant-additional .additional-price {
    font-size: 0.5rem;
    padding: 1px 3px;
    border-radius: 3px;
    min-width: 32px;
}

.price-variant-additional .additional-price.median {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* v9.11.21: Empty state for missing data in variants */
.price-variant-additional .additional-price.empty {
    opacity: 0.4;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.price-variant-additional .additional-price.next-comp {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* v9.11.21: Opportunity style - yellow with animation (gap > 100%) */
.price-variant-additional .additional-price.next-comp.opportunity {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
    color: #fb923c;
    animation: pulse-opportunity 2s ease-in-out infinite;
}

/* v9.12.55: Last update time badge for variant cards - absolute right position */
.price-variant-additional .price-last-update {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.45rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 500;
    padding: 1px 2px;
    cursor: help;
    white-space: nowrap;
}

.price-variant-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    opacity: 0.5;
    padding: 0.2rem 0;
}

.price-variant-no-data {
    font-size: 0.65rem;
    opacity: 0.4;
    text-align: center;
}

/* Offer additional prices */
.offer-additional-prices {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* v9.11.4: New current price row */
.offer-current-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    gap: 0.5rem;
}

.offer-current-price-row .offer-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.offer-current-price-row .offer-price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.offer-current-price-row .offer-diff-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
}

/* v9.11.4: Price variants for offers (similar to collection cards) */
.offer-price-variants {
    display: flex;
    gap: 0.5rem;
}

.offer-price-variant {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.offer-price-variant.mutated {
    border-color: var(--mutation-glow, rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 8px var(--mutation-glow, transparent);
}

.offer-variant-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.35rem;
}

.offer-variant-label {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.offer-variant-label.default {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.offer-variant-label.mutation {
    font-size: 0.5rem;
    box-shadow: 0 0 6px var(--glow-color, #888);
}

.offer-variant-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-green);
}

.offer-variant-price.no-price {
    color: var(--text-muted);
    font-style: italic;
}

/* v9.11.7: Container for extras (median, next competitor) */
.offer-variant-extras {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.offer-variant-extra {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
}

.offer-variant-extra.median {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.offer-variant-extra.next-comp {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* v9.11.7: Opportunity animation for next competitor when gap > 100% */
.offer-variant-extra.next-comp.opportunity {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    animation: pulse-opportunity 2s ease-in-out infinite;
}

.offer-variant-extra.next-comp.opportunity i {
    animation: bounce-arrow 1s ease-in-out infinite;
}

.offer-variant-extra i {
    font-size: 0.55rem;
}

/* Inline additional prices for non-mutation offers */
.offer-additional-prices-inline {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.offer-alt-inline {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 4px;
}

.offer-alt-inline.median {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.offer-alt-inline.next {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.offer-alt-inline i {
    font-size: 0.6rem;
}

.offer-alt-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    flex: 1;
    cursor: help;
}

.offer-alt-price.median {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.offer-alt-price.median i {
    color: #60a5fa;
    font-size: 0.7rem;
}

.offer-alt-price.next-comp {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.offer-alt-price.next-comp i {
    color: #4ade80;
    font-size: 0.7rem;
}

.offer-alt-price-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.offer-alt-price-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: auto;
}

/* Total value in stats */
.total-value {
    color: var(--accent-green);
    font-weight: 600;
}

/* Account value stat */
.account-stat.account-value .account-stat-value {
    color: var(--accent-green);
}

/* Account list value */
.account-list-value {
    text-align: center;
    min-width: 80px;
}

.account-list-value .value {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 1rem;
}

.account-list-value .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Farm key value */
.farm-key-value .farm-key-accounts {
    color: var(--accent-green) !important;
}

/* Total value stat card */
.stat-value-card .stat-value {
    color: var(--accent-green);
}

.stat-value-card .value-change {
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.brainrot-account {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    width: fit-content;
}

.brainrot-account i {
    font-size: 0.7rem;
}

/* Mutation Badge Inline - Under brainrot name */
.brainrot-mutation-line {
    margin-top: 2px;
    margin-bottom: 2px;
    min-height: 20px; /* v9.11.17: Increased for better alignment */
    display: flex;
    align-items: center;
}

/* v9.11.17: Placeholder for cards without mutation to maintain alignment */
.brainrot-mutation-placeholder {
    display: block;
    height: 20px; /* Same as mutation badge height */
}

.brainrot-mutation-badge-inline {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    --glow-color: #888;
    box-shadow: 0 0 8px var(--glow-color), 0 2px 6px rgba(0,0,0,0.4);
    animation: badge-glow-var 2s ease-in-out infinite;
}

@keyframes badge-glow-var {
    0%, 100% { filter: brightness(1); box-shadow: 0 0 6px var(--glow-color), 0 2px 6px rgba(0,0,0,0.4); }
    50% { filter: brightness(1.2); box-shadow: 0 0 14px var(--glow-color), 0 2px 8px rgba(0,0,0,0.5); }
}

/* Remove card glow for mutated brainrots */
.brainrot-card.brainrot-mutated {
    /* No special styling for mutated cards - glow is on badge */
}

/* Has Offer Badge - Bottom Left Corner - shopping cart indicator */
.brainrot-offer-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    z-index: 7;
}

.brainrot-offer-badge i {
    color: white;
    font-size: 0.65rem;
}

/* Has offer card style - blue border all around */
.brainrot-card.has-offer {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 2px 8px rgba(59, 130, 246, 0.2);
}

.brainrot-card.has-offer:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px #60a5fa, 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Quantity Badge - Top Right Corner */
.brainrot-quantity-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    z-index: 6;
    cursor: help;
    transition: top 0.2s ease;
}

/* Move quantity badge down when in selection mode to not overlap with checkbox */
.brainrot-card.selectable .brainrot-quantity-badge {
    top: calc(0.5rem + 24px + 0.5rem); /* Below the 24px checkbox: top + height + gap */
    z-index: 12; /* Above checkbox (z-index: 10) */
}

/* Custom tooltip for quantity badge */
.brainrot-quantity-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.98);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    border-radius: 8px;
    white-space: pre-line;
    min-width: 160px;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    line-height: 1.5;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brainrot-quantity-badge:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Account info styling in cards */
.brainrot-account {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: help;
}

.brainrot-account i {
    font-size: 0.55rem;
}

/* Generated card styling - border removed, only button shows status */
.brainrot-card.brainrot-generated {
    /* border-color removed - no special border for generated cards */
}

.brainrot-card.brainrot-generated:hover {
    /* border-color removed */
}

/* has-offer takes priority over brainrot-generated */
.brainrot-card.brainrot-generated.has-offer {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 2px 8px rgba(59, 130, 246, 0.2);
}

.brainrot-card.brainrot-generated.has-offer:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px #60a5fa, 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Partially generated card styling - border removed */
.brainrot-card.brainrot-partial {
    /* border-color removed - no special border */
}

.brainrot-card.brainrot-partial:hover {
    /* border-color removed */
}

/* Generate button changes for generated cards */
.brainrot-card.brainrot-generated .brainrot-generate-btn {
    background: var(--accent-green);
}

.brainrot-card.brainrot-generated .brainrot-generate-btn:hover {
    background: #22c55e;
}

/* Supa Account Info in Modal */
.supa-account-group {
    margin-bottom: 0.5rem;
}

.supa-account-info {
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .header-left .logo-text {
        display: none;
    }
    
    .nav-tab span {
        display: none;
    }
    
    .nav-tab {
        padding: 0.5rem 0.75rem;
    }
    
    .current-farmer .farmer-info {
        display: none;
    }
    
    .farm-key-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .farm-key-left, .farm-key-right {
        width: 100%;
    }
    
    .farm-key-right {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .app-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .header-left {
        order: 1;
    }
    
    .header-center {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
    
    .header-right {
        order: 2;
        margin-left: auto;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .nav-tab {
        flex: 1;
        justify-content: center;
        padding: 0.6rem;
    }
    
    .nav-tab i {
        font-size: 1.1rem;
    }
    
    /* Main content mobile */
    .main-content {
        padding: 1rem;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Accounts grid mobile */
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .account-card {
        padding: 1rem;
    }
    
    .account-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .account-stat {
        flex: 1;
        min-width: 60px;
    }
    
    /* Collection controls mobile */
    .collection-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .custom-dropdown {
        flex: 1;
        min-width: 120px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        width: 100%;
    }
    
    /* Brainrots grid mobile */
    .brainrots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .brainrot-card {
        padding: 0.75rem;
    }
    
    .brainrot-image {
        width: 60px;
        height: 60px;
    }
    
    .brainrot-name {
        font-size: 0.8rem;
    }
    
    .brainrot-income {
        font-size: 0.75rem;
    }
    
    .brainrot-price {
        font-size: 0.8rem;
    }
    
    /* Farm keys mobile */
    .farm-keys-list {
        gap: 0.75rem;
    }
    
    .farm-key-card {
        padding: 1rem;
    }
    
    .farm-key-info {
        max-width: none;
    }
    
    .farm-key-code {
        font-size: 0.65rem;
        word-break: break-all;
    }
    
    /* Accounts list mobile */
    .account-list-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
    }
    
    .account-list-avatar {
        grid-row: span 2;
    }
    
    .account-list-info {
        grid-column: 2;
    }
    
    .status-badge {
        justify-self: start;
    }
    
    .account-list-income,
    .account-list-brainrots,
    .account-list-value {
        display: none;
    }
    
    /* Section header mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .add-key-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal mobile */
    .modal-content {
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .login-container {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .login-icon {
        font-size: 2.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    /* Stats grid - single column on very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    /* Brainrots grid - single column */
    .brainrots-grid {
        grid-template-columns: 1fr;
    }
    
    .brainrot-card {
        flex-direction: row;
        gap: 1rem;
    }
    
    .brainrot-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .brainrot-details {
        flex: 1;
        min-width: 0;
    }
    
    /* Header minimal */
    .header-left i {
        font-size: 1.25rem;
    }
    
    .logout-btn {
        width: 32px;
        height: 32px;
    }
    
    .farmer-avatar {
        width: 28px;
        height: 28px;
    }
    
    /* Farm key cards */
    .farm-key-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .farm-key-username {
        font-size: 0.9rem;
    }
    
    .farm-key-accounts {
        font-size: 1rem;
    }
    
    .select-key-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .delete-key-btn {
        width: 32px;
        height: 32px;
    }
    
    /* Account cards */
    .account-avatar {
        width: 40px;
        height: 40px;
    }
    
    .account-name {
        font-size: 0.9rem;
    }
    
    .account-stat-value {
        font-size: 0.95rem;
    }
    
    .brainrot-mini {
        width: 60px;
    }
    
    .brainrot-mini-img {
        width: 48px;
        height: 48px;
    }
    
    /* Refresh prices button */
    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .btn-sm i {
        margin-right: 0.25rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .nav-tab,
    .select-key-btn,
    .delete-key-btn,
    .logout-btn,
    .dropdown-toggle,
    .dropdown-item,
    .add-key-btn,
    .login-btn,
    .btn {
        min-height: 44px;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .brainrots-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .brainrot-mini {
        scroll-snap-align: start;
    }
}

/* Landscape phone */
@media (max-width: 812px) and (orientation: landscape) {
    .login-screen {
        padding: 0.5rem;
    }
    
    .login-container {
        max-width: 500px;
        padding: 1.5rem;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .login-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

/* ==========================================
   SUPA GENERATOR MODAL STYLES
   ========================================== */

.supa-modal-content {
    max-width: 800px;
    width: 95%;
}

.supa-modal-body {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
}

.supa-preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supa-preview-frame {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.supa-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.supa-preview-placeholder i {
    font-size: 3rem;
}

.supa-preview-image,
.supa-result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.supa-download-section {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.supa-download-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.supa-download-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.supa-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.supa-eldorado-btn {
    background: linear-gradient(135deg, #ffc950 0%, #ff9500 100%);
    color: #14131a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 201, 80, 0.3);
}

.supa-eldorado-btn:hover {
    background: linear-gradient(135deg, #ffd970 0%, #ffaa20 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 201, 80, 0.4);
}

.supa-eldorado-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.supa-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supa-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.supa-form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.supa-form-group input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.supa-form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* v9.9.0: Supa Generator price selector */
.supa-price-selector {
    margin-top: 0.5rem;
}

/* v9.11.1: Mutation variant selector */
.supa-mutation-selector {
    margin-top: 0.5rem;
}

.supa-variant-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.supa-variant-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.supa-variant-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.supa-variant-option:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.supa-variant-option input[type="radio"] {
    width: 14px;
    height: 14px;
    margin-right: 0.4rem;
    accent-color: var(--accent-primary);
}

.supa-variant-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.supa-variant-label.default {
    color: #94a3b8;
}

.supa-variant-label.mutation {
    padding: 2px 6px;
    border-radius: 4px;
}

.supa-price-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.supa-price-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.supa-price-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.supa-price-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* v9.11.1: Custom price option */
.supa-price-option.custom .supa-price-label {
    flex-wrap: wrap;
}

.supa-custom-price-input {
    width: 70px;
    padding: 0.25rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

.supa-custom-price-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Disabled state for price options in offers modal */
.price-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.price-option.disabled input[type="radio"] {
    cursor: not-allowed;
}

.supa-price-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: var(--accent-primary);
}

.supa-price-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.85rem;
}

.supa-price-label i {
    width: 16px;
    font-size: 0.75rem;
}

.supa-price-option.median .supa-price-label i {
    color: #60a5fa;
}

.supa-price-option.next-comp .supa-price-label i {
    color: #4ade80;
}

.supa-price-label strong {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.supa-generate-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.supa-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.supa-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.supa-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.supa-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.supa-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    color: var(--accent-red);
}

@media (max-width: 768px) {
    .supa-modal-body {
        flex-direction: column;
    }
}

/* ==========================================
   OFFERS VIEW STYLES
   ========================================== */

/* Info Banner */
.offers-info-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.offers-info-banner.hidden {
    display: none;
}

.info-banner-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

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

.info-banner-text strong {
    color: var(--text-primary);
}

.info-banner-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.info-banner-close:hover {
    color: var(--text-primary);
}

/* Shop Name Section */
.shop-name-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.shop-name-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-name-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shop-name-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.shop-name-value.not-configured {
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    font-weight: 500;
    font-size: 0.9rem;
}

.edit-shop-name {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-shop-name:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.shop-name-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-yellow);
    padding: 0.5rem 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
}

.shop-name-hint.hidden {
    display: none;
}

/* Shop Name Modal Styles */
.shop-name-builder {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.emoji-selector {
    flex: 1;
    min-width: 120px;
}

.emoji-selector label,
.shop-text-input label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emoji-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.emoji-option {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-option:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.emoji-option.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.emoji-custom {
    width: 60px;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

.emoji-custom:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.shop-text-input {
    flex: 2;
    min-width: 200px;
    position: relative;
}

.shop-text-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.shop-text-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.char-counter {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(25%);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shop-name-preview {
    margin-top: 1rem;
}

.shop-name-preview label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-box {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* New Shop Name Builder */
.modal-shop-name .modal-content {
    max-width: 500px;
}

/* Shop Name Modal - higher z-index to appear on top of other modals */
#shopNameModal {
    z-index: 10000 !important;
}

#shopNameModal .modal-overlay {
    z-index: 10000;
}

#shopNameModal .modal-content {
    z-index: 10001;
}

.shop-name-builder-new {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emoji-picker-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

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

.emoji-picker-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emoji-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
    justify-content: center;
}

.emoji-picker-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.emoji-picker-btn .emoji-display {
    font-size: 1.5rem;
}

.emoji-picker-btn i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.shop-text-input-new {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-text-input-new label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-text-input-new .char-counter {
    position: static;
    transform: none;
    font-size: 0.7rem;
    opacity: 0.7;
}

.shop-text-input-new input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    transition: border-color 0.2s;
}

.shop-text-input-new input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.same-emoji-option {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.same-emoji-option .checkbox-wrapper {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Emoji Picker Popup - v9.11.15: Fixed layout */
.emoji-picker-popup {
    position: fixed;
    z-index: 100001;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 360px;
    max-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.emoji-picker-popup.hidden {
    display: none;
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.emoji-picker-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.emoji-picker-close:hover {
    color: var(--text-primary);
}

.emoji-picker-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.emoji-picker-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    box-sizing: border-box;
}

.emoji-picker-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    padding: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

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

.emoji-picker-grid::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.emoji-picker-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.emoji-picker-item {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    margin: 0;
}

.emoji-picker-item:hover {
    background: var(--bg-hover);
    transform: scale(1.15);
}

/* Register Code Section - kept for backwards compatibility but not used */
.register-code-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.register-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.register-code-header:hover {
    background: var(--bg-hover);
}

.register-code-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.register-code-header h3 i {
    color: var(--accent-primary);
}

.toggle-register {
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.2s;
}

.toggle-register.expanded i {
    transform: rotate(180deg);
}

.register-code-form {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.register-code-form.hidden {
    display: none;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.form-hint i {
    font-size: 1rem;
}

.offers-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.offers-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.offers-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.offers-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Cron Refresh Timer */
.cron-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: help;
    transition: all 0.2s ease;
    margin-left: 1rem;
    white-space: nowrap;
}

.cron-timer:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1));
    border-color: rgba(76, 175, 80, 0.5);
    transform: scale(1.02);
}

.cron-timer i {
    color: #4caf50;
    font-size: 0.75rem;
    animation: none;
}

.cron-timer.refreshing i {
    animation: spin 1s linear infinite;
}

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

.cron-timer-label {
    color: var(--text-muted);
}

.cron-timer-value {
    font-weight: 600;
    color: #4caf50;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    min-width: 2.5em;
    text-align: center;
}

.cron-timer.soon .cron-timer-value {
    color: #ff9800;
}

.cron-timer.imminent .cron-timer-value {
    color: #f44336;
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Offers Scan Progress Bar */
.offers-scan-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.offers-scan-progress.hidden {
    display: none;
}

.offers-scan-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.offers-scan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-green));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.offers-scan-progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 35px;
    text-align: right;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* Offer Card */
.offer-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
    position: relative;
    min-height: 300px; /* Fixed minimum height for alignment */
    height: 100%; /* Fill grid cell for equal heights */
}

.offer-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.offer-card.selected {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.offer-card-checkbox {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 5;
}

.offer-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding-left: 28px;
    position: relative;
    flex-shrink: 0; /* Don't shrink header */
    flex-grow: 1; /* Grow to push bottom content down */
    min-height: 100px; /* Fixed header height for alignment */
}

.offer-card-header .offer-status-badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 0.25rem;
}

.offer-card-header-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
}

.offer-card-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

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

.offer-card-info {
    flex: 1;
    min-width: 0;
    min-height: 85px; /* Fixed height for alignment - accounts for mutation badges */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.offer-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mutation badge in offer card */
.offer-mutation-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    --glow-color: #888;
    box-shadow: 0 0 8px var(--glow-color), 0 2px 6px rgba(0,0,0,0.4);
    animation: badge-glow-var 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Mutation line under brainrot name in offer card */
.offer-mutation-line {
    margin-top: 2px;
    margin-bottom: 2px;
    min-height: 18px; /* Fixed height for alignment */
}

/* Placeholder for cards without mutation - reserves same space */
.offer-mutation-placeholder {
    visibility: hidden;
}

/* Reserve space for mutation line even when absent */
.offer-card-info .offer-card-id {
    margin-top: auto; /* Push ID down to align across cards */
}

.offer-mutation-line .offer-mutation-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
}

.offer-card-id {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.offer-card-income {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: auto; /* Push to bottom of info block */
}

.offer-card-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    flex-shrink: 0; /* Don't shrink prices */
    gap: 0.3rem;
}

/* Wrapper for bottom section to ensure alignment across cards */
.offer-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto; /* Push to bottom of card */
    flex-shrink: 0;
}

.offer-price-item {
    text-align: center;
}

.offer-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.offer-price-value {
    font-size: 1rem;
    font-weight: 700;
}

.offer-price-value.current {
    color: var(--text-primary);
}

.offer-price-value.recommended {
    color: var(--accent-green);
}

.offer-price-diff {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-diff-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.offer-diff-badge.up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.offer-diff-badge.down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.offer-diff-badge.same {
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.offer-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0; /* Don't shrink actions */
}

.offer-card-actions .btn {
    flex: 1;
    justify-content: center;
}

/* v9.7.6: Delete button for paused offers */
.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* v9.7.6: Paused offer info */
.offer-paused-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.25rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
}

.offer-paused-info.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-adjust {
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
    color: white;
    border: none;
}

.btn-adjust:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* Bulk Price Modal */
.modal-lg .modal-content {
    max-width: 720px;
}

/* Bulk Price Modal XL */
#bulkPriceModal .modal-content {
    max-width: 780px;
}

.bulk-price-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bulk-option {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bulk-option .option-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0 28px;
}

.bulk-custom-input {
    margin-top: 0.75rem;
    margin-left: 28px;
}

.bulk-custom-input.hidden {
    display: none;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-wrapper input[type="radio"] {
    display: none;
}

.radio-wrapper .radiomark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.radio-wrapper input[type="radio"]:checked + .radiomark {
    border-color: var(--accent-primary);
}

.radio-wrapper input[type="radio"]:checked + .radiomark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.bulk-offers-list {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bulk-offer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.bulk-offer-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.bulk-offer-placeholder {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.bulk-offer-info {
    flex: 1;
    min-width: 0;
    max-width: 140px;
}

.bulk-offer-name {
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bulk-offer-income {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* v9.11.8: Bulk offer variant toggle */
.bulk-offer-variant-toggle {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

.bulk-variant-btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.55rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.bulk-variant-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.bulk-variant-btn.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.3);
}

.bulk-variant-btn.mutation {
    border: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.bulk-variant-btn.mutation.active {
    box-shadow: 0 0 8px currentColor;
    transform: scale(1.05);
}

.bulk-offer-prices {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.bulk-price-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    min-width: 55px;
    transition: all 0.2s ease;
}

.bulk-price-cell.highlighted {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-primary);
}

.bulk-price-cell.current {
    background: transparent;
}

.bulk-price-cell .price-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bulk-price-cell .price-label i {
    font-size: 0.55rem;
}

.bulk-price-cell .price-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bulk-price-cell.na .price-value {
    color: var(--text-tertiary);
    font-size: 0.65rem;
}

.bulk-price-cell.recommended .price-label i { color: #f59e0b; }
.bulk-price-cell.median .price-label i { color: #60a5fa; }
.bulk-price-cell.next-comp .price-label i { color: #4ade80; }

.bulk-price-cell.recommended.highlighted { background: rgba(245, 158, 11, 0.15); border-color: #f59e0b; }
.bulk-price-cell.median.highlighted { background: rgba(96, 165, 250, 0.15); border-color: #60a5fa; }
.bulk-price-cell.next-comp.highlighted { background: rgba(74, 222, 128, 0.15); border-color: #4ade80; }

/* Custom Price Input per Offer */
.bulk-offer-custom-input {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    min-width: 200px;
}

.bulk-offer-item.custom-mode .bulk-offer-custom-input {
    display: flex;
}

.bulk-offer-item.custom-mode .bulk-offer-prices {
    display: none;
}

.bulk-offer-custom-input .custom-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.bulk-offer-custom-input .custom-price-wrapper span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bulk-offer-custom-input .custom-price-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 60px;
    text-align: right;
    outline: none;
}

.bulk-offer-custom-input .price-quick-btns {
    display: flex;
    gap: 0.25rem;
}

.bulk-offer-custom-input .price-quick-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.bulk-offer-custom-input .price-quick-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.bulk-offer-custom-input .price-quick-btn.rec { border-color: #f59e0b; color: #f59e0b; }
.bulk-offer-custom-input .price-quick-btn.med { border-color: #60a5fa; color: #60a5fa; }
.bulk-offer-custom-input .price-quick-btn.next { border-color: #4ade80; color: #4ade80; }

.bulk-offer-custom-input .price-quick-btn:hover {
    opacity: 0.8;
}

.bulk-offer-custom-input .price-quick-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

/* Bulk Price Type Selector */
.bulk-price-type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bulk-price-type-option {
    position: relative;
    display: flex;
}

.bulk-price-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bulk-price-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.4rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    min-height: 80px;
}

.bulk-price-type-option label i {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.bulk-price-type-option[data-type="recommended"] label i { color: #f59e0b; }
.bulk-price-type-option[data-type="median"] label i { color: #60a5fa; }
.bulk-price-type-option[data-type="nextCompetitor"] label i { color: #4ade80; }
.bulk-price-type-option[data-type="custom-single"] label i { color: #a78bfa; }

.bulk-price-type-option label .type-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bulk-price-type-option label .type-hint {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.bulk-price-type-option.selected label,
.bulk-price-type-option input[type="radio"]:checked + label {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.bulk-price-type-option.unavailable label {
    opacity: 0.4;
    cursor: not-allowed;
}

.bulk-price-type-option.partially-available label .type-hint {
    color: #f59e0b;
}

.bulk-price-type-option:hover:not(.unavailable) label {
    background: var(--bg-hover);
}

#singlePriceInput {
    margin-bottom: 0.5rem;
}

#singlePriceInput .input-group {
    max-width: 150px;
    margin: 0 auto;
}

/* Single Offer Price Modal */
.offer-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.offer-preview img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.offer-preview-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.offer-preview-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* v9.11.4: Mutation badge in preview */
.offer-preview-mutation {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* v9.11.4: Variant selector in offer modal */
.offer-variant-selector {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.offer-variant-selector.hidden {
    display: none;
}

.variant-selector-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.variant-selector-options {
    display: flex;
    gap: 0.5rem;
}

.variant-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-btn:hover {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.variant-btn.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.variant-btn.mutation.active {
    border-color: var(--mutation-glow, var(--accent-primary));
    box-shadow: 0 0 10px var(--mutation-glow, transparent);
}

.variant-btn-label {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.variant-btn.default .variant-btn-label {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.variant-btn-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-green);
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

/* v9.11.4: Custom price option with current price hint */
.custom-price-option {
    flex-wrap: wrap;
}

.custom-price-wrapper-modal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.current-price-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.current-price-hint strong {
    color: var(--text-primary);
}

.input-group.compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 0.5rem;
}

.input-group.compact span {
    color: var(--text-muted);
}

.input-group.compact input {
    width: 80px;
    background: transparent;
    border: none;
    padding: 0.4rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-group.compact.inline {
    margin-left: auto;
}

/* Custom price row with market price display */
.custom-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.current-market-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 6px;
}

.current-market-price .market-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.current-market-price .market-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* Empty state for offers */
.offers-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.offers-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.offers-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.offers-empty p {
    font-size: 0.9rem;
}

/* Offer status badge */
.offer-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.offer-status-badge.active {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.offer-status-badge.needs-update {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* v9.8.22: Unverified offer status (not scanned recently) */
.offer-status-badge.unverified {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-status-badge.unverified i {
    font-size: 0.8rem;
}

/* v9.6: Paused offer status */
.offer-status-badge.paused {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-status-badge.paused i {
    font-size: 0.8rem;
}

/* v9.9: Pending status badge for offers awaiting Eldorado link */
.offer-status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    overflow: hidden;
}

.offer-status-badge.pending i {
    font-size: 0.65rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.offer-card.paused {
    opacity: 0.65;
    border-color: rgba(107, 114, 128, 0.4);
    filter: grayscale(30%);
}

.offer-card.paused:hover {
    opacity: 0.85;
    filter: grayscale(10%);
}

/* v9.9: Pending offer card styling */
.offer-card.pending {
    opacity: 0.75;
    border-color: rgba(251, 191, 36, 0.5);
    border-style: dashed;
}

.offer-card.pending:hover {
    opacity: 0.9;
    border-color: rgba(251, 191, 36, 0.7);
}

.offer-paused-info.pending-info {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

/* v9.8.21: Brainrots count badge for paused offers */
.offer-brainrots-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.offer-brainrots-badge.has-brainrots {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.offer-brainrots-badge.no-brainrots {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.offer-brainrots-badge i {
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .offers-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .offers-bulk-actions {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 0.75rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TOP / LEADERBOARDS STYLES
   ============================================ */

.top-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.top-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.top-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.top-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.top-tab i {
    font-size: 1rem;
}

.top-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Top 3 Podium */
.top-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3rem;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    min-width: 140px;
    width: 140px;
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-item.first {
    order: 2;
    min-width: 160px;
    width: 160px;
}

.podium-item.second {
    order: 1;
}

.podium-item.third {
    order: 3;
}

.podium-avatar {
    position: relative;
    margin-bottom: 0.5rem;
}

.podium-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    object-fit: cover;
}

.podium-item.first .podium-avatar img {
    width: 100px;
    height: 100px;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-avatar img {
    border-color: #c0c0c0;
}

.podium-item.third .podium-avatar img {
    border-color: #cd7f32;
}

.podium-crown {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    z-index: 10;
}

.podium-item.first .podium-crown {
    color: #ffd700;
    font-size: 2rem;
    top: -25px;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.podium-item.second .podium-crown {
    color: #c0c0c0;
}

.podium-item.third .podium-crown {
    color: #cd7f32;
}

.podium-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.podium-item.first .podium-rank {
    color: #ffd700;
    font-size: 2rem;
}

.podium-item.second .podium-rank {
    color: #c0c0c0;
}

.podium-item.third .podium-rank {
    color: #cd7f32;
}

.podium-name {
    font-size: 1rem;
    font-weight: 600;
    max-width: 130px;
    white-space: nowrap;
    overflow: visible;
}

/* User row with avatar and name */
.podium-user-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.podium-user-mini {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.podium-item.first .podium-user-mini {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.podium-brainrot-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Brainrot circular avatar in podium */
.podium-brainrot-avatar {
    position: relative;
}

.podium-brainrot-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.podium-item.first .podium-brainrot-circle {
    width: 100px;
    height: 100px;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-brainrot-circle {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.podium-item.third .podium-brainrot-circle {
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

/* Panel info under podium */
.podium-panel-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.podium-panel-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.podium-item.first .podium-panel-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* User circular avatar for Total podium */
.podium-user-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.podium-item.first .podium-user-circle {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-user-circle {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.podium-item.third .podium-user-circle {
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

/* Podium animation for circles */
.podium-animated {
    animation: podiumPulse 2s ease-in-out infinite;
}

.podium-item.first .podium-animated {
    animation: podiumGlow 2s ease-in-out infinite;
}

@keyframes podiumPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes podiumGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.5);
    }
}

.podium-brainrot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.podium-brainrot-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.podium-item.first .podium-brainrot-img {
    width: 60px;
    height: 60px;
}

.podium-brainrot-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 0.5rem;
}

.podium-item.first .podium-value {
    font-size: 1.25rem;
}

/* Podium income info for value tab */
.podium-income {
    font-size: 0.75rem;
    color: var(--accent-blue);
    opacity: 0.9;
    margin-top: 0.15rem;
}

.podium-item.first .podium-income {
    font-size: 0.85rem;
}

/* Top List (4-10) */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.top-list-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary)40;
}

/* Placeholder styles for empty positions */
.top-list-placeholder {
    opacity: 0.5;
    background: var(--bg-tertiary);
    border-style: dashed;
}

.top-list-placeholder:hover {
    opacity: 0.6;
    background: var(--bg-tertiary);
}

.placeholder-avatar {
    background: var(--bg-secondary) !important;
    color: var(--text-muted) !important;
}

.placeholder-text {
    color: var(--text-muted) !important;
}

.top-list-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.top-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.top-list-info {
    flex: 1;
    min-width: 0;
}

.top-list-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-list-brainrot {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.top-list-income {
    color: var(--accent-blue);
    font-weight: 500;
    margin-left: 0.25rem;
}

.top-list-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-green);
}

.top-list-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.top-list-farmers {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Empty state for top */
.top-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.top-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.top-empty h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Top Loading State */
.top-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

.top-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

/* Podium Avatar Icon (instead of img) */
.podium-avatar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid var(--border-color);
}

.podium-item.first .podium-avatar-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-avatar-icon {
    border-color: #c0c0c0;
}

.podium-item.third .podium-avatar-icon {
    border-color: #cd7f32;
}

/* Top List Avatar Icon */
.top-list-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-tabs {
        justify-content: stretch;
    }
    
    .top-tab {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .top-podium {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
    
    .podium-avatar img,
    .podium-avatar-icon {
        width: 60px;
        height: 60px;
    }
    
    .podium-item.first .podium-avatar img,
    .podium-item.first .podium-avatar-icon {
        width: 75px;
        height: 75px;
    }
    
    .podium-name {
        font-size: 0.85rem;
        max-width: 80px;
    }
}

/* ==========================================
   MASS SELECTION MODE
   ========================================== */

/* FAB Button - Mass Select Toggle */
.mass-select-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.mass-select-fab.visible {
    display: flex;
}

.mass-select-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.mass-select-fab.active {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.mass-select-fab.active:hover {
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.5);
}

/* Mass selection state indicator */
.mass-select-indicator {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mass-select-indicator.visible {
    display: flex;
}

.mass-select-count {
    font-weight: 600;
    color: var(--accent-primary);
}

.mass-select-generate-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mass-select-generate-btn:hover {
    transform: scale(1.05);
}

.mass-select-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Brainrot card in selection mode */
.brainrot-card.selectable {
    cursor: pointer;
}

.brainrot-card.selectable::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    transition: all 0.2s;
    z-index: 10;
}

.brainrot-card.selectable:hover::before {
    border-color: var(--accent-primary);
}

.brainrot-card.selectable.selected::before {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.brainrot-card.selectable.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 11;
}

.brainrot-card.selectable.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Hide generate button in selection mode */
.brainrot-card.selectable .brainrot-generate-btn {
    display: none;
}

/* Mass Generation Modal */
.mass-gen-modal .modal-content {
    max-width: 700px;
}

.mass-gen-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Custom scrollbar for mass-gen-list */
.mass-gen-list::-webkit-scrollbar {
    width: 8px;
}

.mass-gen-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.mass-gen-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

.mass-gen-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

.mass-gen-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.mass-gen-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.mass-gen-item-info {
    flex: 1;
}

.mass-gen-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.mass-gen-item-details {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mass-gen-item-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.mass-gen-item-status.pending { color: var(--text-secondary); }
.mass-gen-item-status.processing { color: #f59e0b; }
.mass-gen-item-status.done { color: #22c55e; }
.mass-gen-item-status.error { color: #ef4444; }

/* Mass generation price selector */
.mass-gen-global-price-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mass-gen-global-price-selector label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mass-gen-global-select {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
}

.mass-gen-global-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.mass-gen-price-selector {
    margin-left: auto;
    margin-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.mass-gen-variant-select {
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.7rem;
    cursor: pointer;
    min-width: 80px;
}

.mass-gen-variant-select:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.mass-gen-price-select {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    min-width: 90px;
}

.mass-gen-price-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.mass-gen-price-select option:disabled {
    color: var(--text-tertiary);
}

.mass-gen-custom-price {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.75rem;
    min-width: 80px;
    max-width: 90px;
    text-align: right;
}

.mass-gen-custom-price:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.mass-gen-custom-price.hidden {
    display: none;
}

/* Mass gen mutation badge */
.mass-gen-mutation-badge {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    color: #1e1b4b;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.mass-gen-item-remove {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mass-gen-item-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.mass-gen-progress {
    margin: 1rem 0;
}

.mass-gen-progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.mass-gen-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.3s;
}

.mass-gen-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mass generation action buttons (after completion) */
.mass-gen-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mass-gen-actions.hidden {
    display: none;
}

.mass-gen-download-btn,
.mass-gen-eldorado-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mass-gen-download-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
}

.mass-gen-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.mass-gen-eldorado-btn {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: #1a1a2e;
}

.mass-gen-eldorado-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.mass-gen-download-btn:disabled,
.mass-gen-eldorado-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mass-gen-footer-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .mass-select-fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .mass-select-indicator {
        bottom: 4.5rem;
        right: 1rem;
        left: 1rem;
        justify-content: space-between;
    }
}

/* ============ SETTINGS BUTTON ============ */
.settings-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.settings-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.settings-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.settings-btn:hover i {
    transform: rotate(90deg);
}

/* ============ SETTINGS MODAL ============ */
.settings-modal-content {
    max-width: 480px;
    width: 90%;
}

.settings-modal-body {
    padding: 1.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h4 i {
    color: var(--accent-primary);
}

.settings-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.settings-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.settings-option-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.settings-option-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.option-flag {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-flag img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.option-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Theme Preview Circles */
.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.theme-preview-dark {
    background: linear-gradient(135deg, #0f0f14 0%, #1e1e2a 50%, #6366f1 100%);
}

.theme-preview-light {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 50%, #6366f1 100%);
}

.theme-preview-purple {
    background: linear-gradient(135deg, #1a1025 0%, #35204d 50%, #a855f7 100%);
}

.theme-preview-green {
    background: linear-gradient(135deg, #0a1410 0%, #1a3528 50%, #22c55e 100%);
}

.settings-option-btn.active .theme-preview {
    border-color: white;
}

/* Theme-specific overrides for light theme */
body.theme-light {
    color-scheme: light;
}

body.theme-light .loading-screen {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

body.theme-light .loading-title {
    color: #1a1a1a;
}

body.theme-light .loading-subtitle {
    color: #4a4a4a;
}

body.theme-light .loading-spinner {
    border-color: #d1d1d6;
    border-top-color: #6366f1;
}

body.theme-light .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body.theme-light .brainrot-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-light .stat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-light .login-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea {
    color-scheme: light;
}