/*
 * Modern Account Management Page Styles
 * Card-based design for game account management and other pages
 */

/* ========================================
   SUCCESS AND ERROR MESSAGES
   ======================================== */

.gam-success,
.gam-error:not([hidden]) {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.gam-success::before,
.gam-error::before {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.gam-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 3px solid #10b981;
    color: #065f46;
}

.gam-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
}

.gam-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 3px solid #ef4444;
    color: #991b1b;
}

.gam-error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MANAGE ACCOUNTS PAGE
   ======================================== */

/* Grid layout for account cards */
.gam-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
    margin: 0;
}

/* Modern Account Card */
.gam-account-card-modern {
    background: var(--gam-surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gam-border, #e5e7eb);
    transition: all 0.3s ease;
}

.gam-account-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Account Header */
.gam-account-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gam-account-header.banned {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.gam-account-header.vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gam-account-header-left {
    flex: 1;
}

.gam-account-name {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gam-account-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.gam-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gam-badge-active {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.gam-badge-banned {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.gam-badge-vip {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

.gam-badge-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
}

.gam-account-header-right {
    text-align: right;
}

.gam-char-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Account Stats */
.gam-account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.gam-stat-item {
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gam-stat-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 10px;
}

.gam-stat-content {
    flex: 1;
}

.gam-stat-label {
    font-size: 11px;
    color: var(--gam-text-3, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.gam-stat-value {
    font-size: 18px;
    color: var(--gam-text, #1f2937);
    font-weight: 700;
}

/* Account Info Compact */
.gam-account-info-compact {
    padding: 20px 25px;
    background: var(--gam-surface-2, #f9fafb);
    border-bottom: 1px solid var(--gam-border, #e5e7eb);
}

.gam-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gam-border, #e5e7eb);
    font-size: 13px;
}

.gam-info-row:last-child {
    border-bottom: none;
}

.gam-info-label {
    color: var(--gam-text-3, #6b7280);
    font-weight: 600;
}

.gam-info-value {
    color: var(--gam-text, #1f2937);
    font-weight: 500;
}

/* Section Header */
.gam-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--gam-surface-2, #f9fafb);
    border-top: 1px solid var(--gam-border, #e5e7eb);
    cursor: pointer;
    user-select: none;
}

.gam-section-header:hover {
    background: var(--gam-surface-3, #f3f4f6);
}

.gam-section-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--gam-text, #1f2937);
    font-weight: 700;
}

.gam-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    color: #3b82f6;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gam-toggle-btn:hover {
    color: #1d4ed8;
    transform: scale(1.1);
}

.gam-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Collapsible Content */
.gam-collapsible-content {
    padding: 20px 25px;
    background: #fff;
}

/* Characters Section */
.gam-characters-section {
    border-top: 1px solid #e5e7eb;
}

.gam-no-chars {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-style: italic;
}

.gam-characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Character Card */
.gam-character-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s ease;
}

.gam-character-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.gam-char-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.gam-char-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.gam-char-class {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gam-char-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.gam-char-stat {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.gam-char-stat .label {
    color: #6b7280;
    font-weight: 600;
}

.gam-char-stat .value {
    color: #1f2937;
    font-weight: 700;
}

.gam-char-action {
    margin: 0;
}

.gam-btn-fix {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gam-btn-fix:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* Password Section */
.gam-password-section {
    border-top: 1px solid #e5e7eb;
}

.gam-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gam-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gam-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.gam-form-group input[type="password"] {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.gam-form-group input[type="password"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gam-btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gam-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gam-accounts-grid {
        grid-template-columns: 1fr;
    }

    .gam-account-stats {
        grid-template-columns: 1fr;
    }

    .gam-characters-grid {
        grid-template-columns: 1fr;
    }

    .gam-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gam-account-header-right {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gam-account-card-modern {
        border-radius: 12px;
    }

    .gam-collapsible-content {
        padding: 15px;
    }

    .gam-account-name {
        font-size: 18px;
    }
}

/* ========================================
   MODERN PAGES - SHARED STYLES
   ======================================== */

.gam-modern-page {
    width: 100%;
}

/* Page Hero Section */
.gam-page-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.gam-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cdefs%3E%3Cpattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"%3E%3Cpath d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100" height="100" fill="url(%23grid)"/%3E%3C/svg%3E');
    pointer-events: none;
}

.gam-page-hero > * {
    position: relative;
    z-index: 1;
}

.gam-hero-icon {
    font-size: 64px;
    line-height: 1;
}

.gam-hero-content {
    flex: 1;
}

.gam-hero-content h2 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gam-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 16px;
}

.gam-hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
}

.gam-account-count {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.gam-account-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Balance Hero (for cashpoints and voting) */
.gam-balance-hero {
    margin-bottom: 30px;
}

.gam-balance-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.gam-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cdefs%3E%3Cpattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"%3E%3Cpath d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100" height="100" fill="url(%23grid)"/%3E%3C/svg%3E');
    pointer-events: none;
}

.gam-balance-card > * {
    position: relative;
    z-index: 1;
}

.gam-vote-hero .gam-balance-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gam-balance-card .balance-icon {
    font-size: 72px;
    line-height: 1;
}

.gam-balance-card .balance-content {
    flex: 1;
}

.gam-balance-card .balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gam-balance-card .balance-amount {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gam-balance-card .balance-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Balance Action Button */
.gam-balance-card .balance-action {
    margin-left: auto;
}

.gam-btn-topup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #1d4ed8;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    line-height: 1;
}

.gam-btn-topup::before {
    content: '💰';
    font-size: 20px;
    line-height: 1;
}

.gam-btn-topup:hover {
    background: #f0f9ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #1e40af;
    border-color: #ffffff;
}

.gam-btn-topup .btn-icon {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.gam-btn-topup .btn-text {
    line-height: 1;
}

/* Two Column Layout */
.gam-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.gam-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 100%;
}

.gam-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Content Cards */
.gam-content-card {
    background: var(--gam-surface, #ffffff);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gam-border, #e5e7eb);
    margin-bottom: 25px;
}

.gam-content-card:last-child {
    margin-bottom: 0;
}

.gam-card-header {
    margin-bottom: 25px;
}

.gam-card-header h3 {
    color: var(--gam-text, #1f2937);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gam-card-header p {
    color: var(--gam-text-3, #6b7280);
    margin: 0;
    font-size: 0.875rem;
}

/* Modern Forms */
.gam-modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fix for all select elements in modern pages */
.gam-modern-page select,
.gam-modern-form select {
    padding: 10px 12px !important;
    color: #000000 !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    -webkit-text-fill-color: #000000 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    min-height: 44px !important;
}

.gam-modern-page select option,
.gam-modern-form select option {
    padding: 8px !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-weight: 600 !important;
}

.gam-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gam-form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.gam-label-icon {
    font-size: 18px;
}

.gam-label-text {
    flex: 1;
}

.gam-form-field input[type="text"],
.gam-form-field input[type="password"],
.gam-form-field input[type="number"] {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff !important;
    color: #000000 !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: #000000 !important;
}

.gam-form-field select {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff !important;
    color: #000000 !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: #000000 !important;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    min-height: 44px;
}

.gam-form-field select option {
    color: #000000 !important;
    background: #fff !important;
    padding: 8px;
    font-weight: 600 !important;
}

.gam-form-field input:focus,
.gam-form-field select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.gam-field-hint {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

/* Buttons */
.gam-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.gam-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.gam-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gam-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.gam-btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #1f2937;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gam-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.gam-btn-icon {
    font-size: 18px;
}

/* Empty State */
.gam-empty-state {
    text-align: center;
    padding: 60px 30px;
}

.gam-empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.gam-empty-state h3 {
    color: #1f2937;
    margin: 0 0 12px 0;
    font-size: 24px;
}

.gam-empty-state p {
    color: #6b7280;
    margin: 0 0 25px 0;
    font-size: 16px;
}

/* Info Cards (Sidebar) */
.gam-info-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.gam-info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gam-info-card-header .info-icon {
    font-size: 20px;
}

.gam-info-card-header h4 {
    margin: 0;
    font-size: 15px;
    color: #1f2937;
    font-weight: 700;
}

.gam-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gam-info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #374151;
}

.gam-info-list .list-icon {
    color: #3b82f6;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 12px;
}

.gam-info-list .list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gam-info-list strong {
    color: #1f2937;
    font-weight: 600;
    font-size: 13px;
}

.gam-info-list span {
    color: #6b7280;
    font-size: 12px;
}

.gam-tip-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.gam-tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gam-tip-header .tip-icon {
    font-size: 20px;
}

.gam-tip-header h4 {
    margin: 0;
    font-size: 15px;
    color: #1e40af;
    font-weight: 700;
}

.gam-tip-card p {
    color: #374151;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.gam-tip-card p:last-child {
    margin-bottom: 0;
}

.gam-action-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.gam-action-card h4 {
    color: #92400e;
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
}

.gam-action-card p {
    color: #78350f;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.gam-steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gam-steps-list li {
    counter-increment: step-counter;
    padding-left: 30px;
    position: relative;
    color: #374151;
    font-size: 13px;
    line-height: 1.5;
}

.gam-steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Account Chips */
.gam-accounts-list {
    /* old chip design overridden by gam-user-area.css accordion */
}

.gam-account-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gam-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}

.gam-account-chip .chip-icon {
    font-size: 14px;
}

/* Balance Grid */
.gam-accounts-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.gam-balance-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.gam-balance-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.gam-balance-item-icon {
    font-size: 32px;
}

.balance-item-icon {
    font-size: 32px;
}

.gam-balance-item-content {
    flex: 1;
}

.balance-item-content {
    flex: 1;
}

.gam-balance-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.balance-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.gam-balance-item-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.balance-item-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.gam-balance-item-amount span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.balance-item-amount span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* ========================================
   VOTING SYSTEM STYLES
   ======================================== */

.gam-vote-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gam-vote-site-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.gam-vote-site-card.available {
    border-color: #10b981;
}

.gam-vote-site-card.available:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
}

.gam-vote-site-card.cooldown {
    border-color: #f59e0b;
    opacity: 0.7;
}

.vote-site-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.vote-site-icon {
    font-size: 36px;
}

.vote-site-info {
    flex: 1;
}

.vote-site-name {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.vote-site-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 14px;
}

.reward-icon {
    font-size: 16px;
}

.vote-site-meta {
    margin-bottom: 15px;
}

.vote-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.meta-icon {
    font-size: 16px;
}

.vote-site-action {
    display: flex;
    justify-content: center;
}

.gam-vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    width: 100%;
}

.gam-vote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.vote-cooldown-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.cooldown-icon {
    font-size: 16px;
}

.gam-info-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.benefit-item {
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .gam-two-column-layout {
        grid-template-columns: 1fr;
    }

    .gam-sidebar-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .gam-accounts-grid {
        grid-template-columns: 1fr;
    }

    .gam-account-stats {
        grid-template-columns: 1fr;
    }

    .gam-characters-grid {
        grid-template-columns: 1fr;
    }

    .gam-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gam-account-header-right {
        text-align: left;
        width: 100%;
    }

    .gam-page-hero {
        flex-direction: column;
        text-align: center;
    }

    .gam-hero-badge {
        width: 100%;
    }

    .gam-balance-card {
        flex-direction: column;
        text-align: center;
    }

    .gam-balance-card .balance-action {
        margin-left: 0;
        width: 100%;
    }

    .gam-btn-topup {
        width: 100%;
        justify-content: center;
    }

    .gam-vote-sites-grid {
        grid-template-columns: 1fr;
    }

    .gam-info-cards-row {
        grid-template-columns: 1fr;
    }

    .gam-accounts-balance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .gam-account-card-modern {
        border-radius: 12px;
    }

    .gam-collapsible-content {
        padding: 15px;
    }

    .gam-account-name {
        font-size: 18px;
    }

    .gam-page-hero {
        padding: 20px;
        border-radius: 12px;
    }

    .gam-hero-icon {
        font-size: 48px;
    }

    .gam-hero-content h2 {
        font-size: 22px;
    }

    .gam-balance-card {
        padding: 25px;
    }

    .gam-balance-card .balance-amount {
        font-size: 36px;
    }

    .gam-btn-topup {
        padding: 12px 20px;
        font-size: 14px;
    }

    .gam-btn-topup .btn-icon {
        font-size: 22px;
    }

    .gam-success,
    .gam-error {
        padding: 14px 16px;
        font-size: 14px;
        gap: 10px;
    }

    .gam-success::before,
    .gam-error::before {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .gam-content-card {
        padding: 20px;
        border-radius: 12px;
    }

    .gam-info-card {
        padding: 14px;
    }

    .gam-sidebar-content {
        gap: 12px;
    }
}

/* ========================================
   DARK THEME - ADAPTIVE (PREFERS-COLOR-SCHEME)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Adaptive theme dark mode */
    .gam-adaptive-theme .gam-success {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #10b981;
        color: #d1fae5;
    }

    .gam-adaptive-theme .gam-error {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        border-color: #ef4444;
        color: #fee2e2;
    }

    .gam-adaptive-theme .gam-account-card-modern {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255,255,255,0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .gam-adaptive-theme .gam-account-card-modern:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .gam-adaptive-theme .gam-account-header {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .gam-adaptive-theme .gam-btn-primary {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    }

    .gam-adaptive-theme .gam-btn-primary:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    }

    .gam-adaptive-theme .gam-stat-item {
        background: #0f172a;
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-stat-icon {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    }

    .gam-adaptive-theme .gam-stat-label {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-stat-value {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-welcome-card {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-welcome-title {
        color: #e2e8f0 !important;
    }

    .gam-adaptive-theme .gam-welcome-text {
        color: #94a3b8 !important;
    }

    .gam-adaptive-theme .gam-stat-card {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-stat-card h3 {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-stats-grid {
        /* Grid layout - no color changes needed */
    }

    .gam-adaptive-theme .gam-stat-row {
        /* Flex layout - no color changes needed */
    }

    .gam-adaptive-theme .gam-quick-action-btn {
        /* Buttons already have inline gradient styles */
    }

    .gam-adaptive-theme .gam-account-info-compact {
        background: #0f172a;
        border-bottom-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-info-row {
        border-bottom-color: rgba(255,255,255,0.05);
    }

    .gam-adaptive-theme .gam-info-label {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-info-value {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-section-header {
        background: #0f172a;
        border-top-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-section-header:hover {
        background: #1e293b;
    }

    .gam-adaptive-theme .gam-section-header h4 {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-collapsible-content {
        background: #1e293b;
    }

    .gam-adaptive-theme .gam-password-section {
        border-top-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-characters-section {
        border-top-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-toggle-btn {
        color: #60a5fa;
    }

    .gam-adaptive-theme .gam-toggle-btn:hover {
        color: #93c5fd;
    }

    .gam-adaptive-theme .gam-no-chars {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-character-card {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-character-card:hover {
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .gam-adaptive-theme .gam-char-header {
        border-bottom-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-char-name {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-char-class {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-char-stat .label {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-char-stat .value {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-form-group label {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-form-group input[type="password"] {
        background: #0f172a !important;
        border-color: rgba(255,255,255,0.1);
        color: #e2e8f0 !important;
    }

    .gam-adaptive-theme .gam-form-group input[type="password"]:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .gam-adaptive-theme .gam-content-card {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-card-header h3 {
        color: #e2e8f0;
        -webkit-text-fill-color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-card-header p {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-modern-page select,
    .gam-adaptive-theme .gam-modern-form select,
    .gam-adaptive-theme .gam-form-field select {
        background: #0f172a !important;
        border-color: rgba(255,255,255,0.1) !important;
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }

    .gam-adaptive-theme .gam-modern-page select option,
    .gam-adaptive-theme .gam-modern-form select option,
    .gam-adaptive-theme .gam-form-field select option {
        background: #0f172a !important;
        color: #e2e8f0 !important;
    }

    .gam-adaptive-theme .gam-form-field input[type="text"],
    .gam-adaptive-theme .gam-form-field input[type="password"],
    .gam-adaptive-theme .gam-form-field input[type="number"] {
        background: #0f172a !important;
        border-color: rgba(255,255,255,0.1);
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }

    .gam-adaptive-theme .gam-form-field input:focus,
    .gam-adaptive-theme .gam-form-field select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    }

    .gam-adaptive-theme .gam-field-hint {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-form-field label {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-empty-state h3 {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-empty-state p {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-empty-state .empty-icon {
        opacity: 0.6;
    }

    .gam-adaptive-theme .gam-info-card {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-info-card-header h4 {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-info-list li {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-info-list strong {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-info-list span {
        color: #94a3b8;
    }

    .gam-adaptive-theme .gam-info-list .list-icon {
        color: #60a5fa;
    }

    .gam-adaptive-theme .gam-info-card-header .info-icon {
        color: #60a5fa;
    }

    .gam-adaptive-theme .gam-tip-card {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
        border-color: #3b82f6;
    }

    .gam-adaptive-theme .gam-tip-header h4 {
        color: #bfdbfe;
    }

    .gam-adaptive-theme .gam-tip-card p {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .gam-tip-card strong {
        color: #f0f9ff;
    }

    .gam-adaptive-theme .gam-tip-header .tip-icon {
        color: #93c5fd;
    }

    .gam-adaptive-theme .gam-action-card {
        background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
        border-color: #f59e0b;
    }

    .gam-adaptive-theme .gam-action-card h4 {
        color: #fef3c7;
    }

    .gam-adaptive-theme .gam-action-card p {
        color: #fde68a;
    }

    .gam-adaptive-theme .gam-btn-secondary {
        background: rgba(255,255,255,0.1);
        color: #fef3c7;
    }

    .gam-adaptive-theme .gam-btn-secondary:hover {
        background: rgba(245, 158, 11, 0.3);
        color: #fef3c7;
    }

    .gam-adaptive-theme .gam-steps-list li {
        color: #fde68a;
    }

    .gam-adaptive-theme .gam-steps-list li::before {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .gam-adaptive-theme .gam-accounts-list {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #10b981;
    }

    .gam-adaptive-theme .gam-account-chip {
        background: #0f172a;
        border-color: #10b981;
        color: #d1fae5;
    }

    .gam-adaptive-theme .gam-balance-item {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-balance-item:hover {
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .gam-adaptive-theme .gam-balance-item-name {
        color: #f1f5f9 !important;
    }

    .gam-adaptive-theme .balance-item-name {
        color: #f1f5f9 !important;
    }

    .gam-adaptive-theme .gam-balance-item-amount {
        color: #ffffff !important;
    }

    .gam-adaptive-theme .balance-item-amount {
        color: #ffffff !important;
    }

    .gam-adaptive-theme .gam-balance-item-amount span {
        color: #cbd5e1 !important;
    }

    .gam-adaptive-theme .balance-item-amount span {
        color: #cbd5e1 !important;
    }

    .gam-adaptive-theme .gam-vote-site-card {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .gam-vote-site-card.available {
        border-color: #10b981;
    }

    .gam-adaptive-theme .gam-vote-site-card.cooldown {
        border-color: #f59e0b;
    }

    .gam-adaptive-theme .vote-site-header {
        border-bottom-color: rgba(255,255,255,0.1);
    }

    .gam-adaptive-theme .vote-site-name {
        color: #e2e8f0;
    }

    .gam-adaptive-theme .vote-meta-item {
        color: #94a3b8;
    }

    .gam-adaptive-theme .vote-cooldown-info {
        background: rgba(245, 158, 11, 0.2);
        color: #fef3c7;
    }

    .gam-adaptive-theme .benefit-item {
        background: rgba(245, 158, 11, 0.3);
        color: #fef3c7;
    }

    /* Hero sections - dark theme */
    .gam-adaptive-theme .gam-page-hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .gam-adaptive-theme .gam-balance-card {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .gam-adaptive-theme .gam-vote-hero .gam-balance-card {
        background: linear-gradient(135deg, #581c87 0%, #3b0764 100%);
        box-shadow: 0 8px 25px rgba(88, 28, 135, 0.4);
    }

    .gam-adaptive-theme .gam-hero-badge {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* ========================================
   DARK THEME - FORCED (ALWAYS DARK)
   ======================================== */

.gam-force-dark .gam-success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
    color: #d1fae5;
}

.gam-force-dark .gam-error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-color: #ef4444;
    color: #fee2e2;
}

.gam-force-dark .gam-account-card-modern {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gam-force-dark .gam-account-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gam-force-dark .gam-account-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.gam-force-dark .gam-btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.gam-force-dark .gam-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.gam-force-dark .gam-stat-item {
    background: #0f172a;
    color: #e2e8f0;
}

.gam-force-dark .gam-stat-icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}

.gam-force-dark .gam-stat-label {
    color: #94a3b8;
}

.gam-force-dark .gam-stat-value {
    color: #e2e8f0;
}

.gam-force-dark .gam-welcome-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-welcome-title {
    color: #e2e8f0 !important;
}

.gam-force-dark .gam-welcome-text {
    color: #94a3b8 !important;
}

.gam-force-dark .gam-stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-stat-card h3 {
    color: #e2e8f0;
}

.gam-force-dark .gam-stats-grid {
    /* Grid layout - no color changes needed */
}

.gam-force-dark .gam-stat-row {
    /* Flex layout - no color changes needed */
}

.gam-force-dark .gam-quick-action-btn {
    /* Buttons already have inline gradient styles */
}

.gam-force-dark .gam-account-info-compact {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-info-row {
    border-bottom-color: rgba(255,255,255,0.05);
}

.gam-force-dark .gam-info-label {
    color: #94a3b8;
}

.gam-force-dark .gam-info-value {
    color: #e2e8f0;
}

.gam-force-dark .gam-section-header {
    background: #0f172a;
    border-top-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-section-header:hover {
    background: #1e293b;
}

.gam-force-dark .gam-section-header h4 {
    color: #e2e8f0;
}

.gam-force-dark .gam-collapsible-content {
    background: #1e293b;
}

.gam-force-dark .gam-password-section {
    border-top-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-characters-section {
    border-top-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-toggle-btn {
    color: #60a5fa;
}

.gam-force-dark .gam-toggle-btn:hover {
    color: #93c5fd;
}

.gam-force-dark .gam-no-chars {
    color: #94a3b8;
}

.gam-force-dark .gam-character-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-character-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gam-force-dark .gam-char-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-char-name {
    color: #e2e8f0;
}

.gam-force-dark .gam-char-class {
    color: #94a3b8;
}

.gam-force-dark .gam-char-stat .label {
    color: #94a3b8;
}

.gam-force-dark .gam-char-stat .value {
    color: #e2e8f0;
}

.gam-force-dark .gam-form-group label {
    color: #e2e8f0;
}

.gam-force-dark .gam-form-group input[type="password"] {
    background: #0f172a !important;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0 !important;
}

.gam-force-dark .gam-form-group input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.gam-force-dark .gam-content-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-card-header h3 {
    color: #e2e8f0;
    -webkit-text-fill-color: #e2e8f0;
}

.gam-force-dark .gam-card-header p {
    color: #94a3b8;
}

.gam-force-dark .gam-modern-page select,
.gam-force-dark .gam-modern-form select,
.gam-force-dark .gam-form-field select {
    background: #0f172a !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

.gam-force-dark .gam-modern-page select option,
.gam-force-dark .gam-modern-form select option,
.gam-force-dark .gam-form-field select option {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.gam-force-dark .gam-form-field input[type="text"],
.gam-force-dark .gam-form-field input[type="password"],
.gam-force-dark .gam-form-field input[type="number"] {
    background: #0f172a !important;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

.gam-force-dark .gam-form-field input:focus,
.gam-force-dark .gam-form-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.gam-force-dark .gam-field-hint {
    color: #94a3b8;
}

.gam-force-dark .gam-form-field label {
    color: #e2e8f0;
}

.gam-force-dark .gam-empty-state h3 {
    color: #e2e8f0;
}

.gam-force-dark .gam-empty-state p {
    color: #94a3b8;
}

.gam-force-dark .gam-empty-state .empty-icon {
    opacity: 0.6;
}

.gam-force-dark .gam-info-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-info-card-header h4 {
    color: #e2e8f0;
}

.gam-force-dark .gam-info-list li {
    color: #e2e8f0;
}

.gam-force-dark .gam-info-list strong {
    color: #e2e8f0;
}

.gam-force-dark .gam-info-list span {
    color: #94a3b8;
}

.gam-force-dark .gam-info-list .list-icon {
    color: #60a5fa;
}

.gam-force-dark .gam-info-card-header .info-icon {
    color: #60a5fa;
}

.gam-force-dark .gam-tip-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    border-color: #3b82f6;
}

.gam-force-dark .gam-tip-header h4 {
    color: #bfdbfe;
}

.gam-force-dark .gam-tip-card p {
    color: #e2e8f0;
}

.gam-force-dark .gam-tip-card strong {
    color: #f0f9ff;
}

.gam-force-dark .gam-tip-header .tip-icon {
    color: #93c5fd;
}

.gam-force-dark .gam-action-card {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #f59e0b;
}

.gam-force-dark .gam-action-card h4 {
    color: #fef3c7;
}

.gam-force-dark .gam-action-card p {
    color: #fde68a;
}

.gam-force-dark .gam-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fef3c7;
}

.gam-force-dark .gam-btn-secondary:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #fef3c7;
}

.gam-force-dark .gam-steps-list li {
    color: #fde68a;
}

.gam-force-dark .gam-steps-list li::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gam-force-dark .gam-accounts-list {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
}

.gam-force-dark .gam-account-chip {
    background: #0f172a;
    border-color: #10b981;
    color: #d1fae5;
}

.gam-force-dark .gam-balance-item {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-balance-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gam-force-dark .gam-balance-item-name {
    color: #f1f5f9 !important;
}

.gam-force-dark .balance-item-name {
    color: #f1f5f9 !important;
}

.gam-force-dark .gam-balance-item-amount {
    color: #ffffff !important;
}

.gam-force-dark .balance-item-amount {
    color: #ffffff !important;
}

.gam-force-dark .gam-balance-item-amount span {
    color: #cbd5e1 !important;
}

.gam-force-dark .balance-item-amount span {
    color: #cbd5e1 !important;
}

.gam-force-dark .gam-vote-site-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255,255,255,0.1);
}

.gam-force-dark .gam-vote-site-card.available {
    border-color: #10b981;
}

.gam-force-dark .gam-vote-site-card.cooldown {
    border-color: #f59e0b;
}

.gam-force-dark .vote-site-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.gam-force-dark .vote-site-name {
    color: #e2e8f0;
}

.gam-force-dark .vote-meta-item {
    color: #94a3b8;
}

.gam-force-dark .vote-cooldown-info {
    background: rgba(245, 158, 11, 0.2);
    color: #fef3c7;
}

.gam-force-dark .benefit-item {
    background: rgba(245, 158, 11, 0.3);
    color: #fef3c7;
}

/* Hero sections - dark theme */
.gam-force-dark .gam-page-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gam-force-dark .gam-balance-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gam-force-dark .gam-vote-hero .gam-balance-card {
    background: linear-gradient(135deg, #581c87 0%, #3b0764 100%);
    box-shadow: 0 8px 25px rgba(88, 28, 135, 0.4);
}

.gam-force-dark .gam-hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   MANAGE HEADER — account count + CTA
   ======================================== */
.gam-manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--gam-surface, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--gam-border, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.gam-manage-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gam-manage-header-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gam-text, #0f172a);
}
.gam-manage-header-count {
    background: var(--gam-accent-pale, #eef2ff);
    color: var(--gam-accent, #6366f1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.gam-btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Dark theme variants */
@media (prefers-color-scheme: dark) {
    .gam-adaptive-theme .gam-manage-header {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.1);
    }
    .gam-adaptive-theme .gam-manage-header-title { color: #e2e8f0; }
    .gam-adaptive-theme .gam-manage-header-count {
        background: rgba(99,102,241,0.2);
        color: #818cf8;
    }
}
.gam-force-dark .gam-manage-header {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.gam-force-dark .gam-manage-header-title { color: #e2e8f0; }
.gam-force-dark .gam-manage-header-count {
    background: rgba(99,102,241,0.2);
    color: #818cf8;
}


/* ========================================
   MANAGE PAGE HERO
   ======================================== */
.gam-manage-hero .gam-balance-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 0 10px 30px rgba(16,185,129,0.25);
}

.gam-manage-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.gam-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}

.gam-btn-hero:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   CREATE ACCOUNT PAGE
   ======================================== */
.gam-create-page {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.gam-create-hero {
    margin-bottom: 18px;
}

.gam-create-count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 16px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    text-align: center;
    flex-shrink: 0;
}

.gam-create-count-number {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.gam-create-count-label {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    opacity: 0.82;
}

.gam-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.gam-create-form-card,
.gam-create-sidebar .gam-card,
.gam-create-tip {
    margin-bottom: 18px;
}

.gam-create-form {
    display: grid;
    gap: 16px;
}

.gam-create-form .gam-field {
    margin-bottom: 0;
}

.gam-create-form .gam-input {
    min-height: 46px;
}

.gam-field-hint {
    display: block;
    margin-top: 6px;
    color: var(--gam-text-3, #64748b);
    font-size: 0.8rem;
    line-height: 1.4;
}

.gam-create-message p {
    margin: 0;
}

.gam-create-message .gam-success,
.gam-create-message .gam-error {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.gam-create-message .gam-success {
    background: var(--gam-success-pale, #d1fae5);
    color: var(--gam-success, #10b981);
    border: 1px solid var(--gam-success, #10b981);
}

.gam-create-message .gam-error {
    background: var(--gam-error-pale, #fee2e2);
    color: var(--gam-error, #ef4444);
    border: 1px solid var(--gam-error, #ef4444);
}

.gam-create-submit {
    width: fit-content;
}

.gam-account-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gam-account-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--gam-accent-pale, #dbeafe);
    color: var(--gam-accent, #2563eb);
    border: 1px solid rgba(37,99,235,0.22);
    font-size: 0.82rem;
    font-weight: 700;
}

.gam-create-rules {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gam-create-rules li {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gam-border, #e5e7eb);
}

.gam-create-rules li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gam-create-rules strong {
    color: var(--gam-text, #0f172a);
    font-size: 0.9rem;
}

.gam-create-rules span {
    color: var(--gam-text-3, #64748b);
    font-size: 0.82rem;
    line-height: 1.4;
}

.gam-create-tip {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .gam-create-layout {
        grid-template-columns: 1fr;
    }

    .gam-create-count {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .gam-create-submit {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .gam-adaptive-theme .gam-account-chip {
        background: rgba(96,165,250,0.14);
        border-color: rgba(96,165,250,0.28);
        color: #93c5fd;
    }
}

.gam-force-dark .gam-account-chip {
    background: rgba(96,165,250,0.14);
    border-color: rgba(96,165,250,0.28);
    color: #93c5fd;
}

/* ========================================
   MANAGE EMPTY STATE
   ======================================== */
.gam-manage-empty-page {
    max-width: 980px;
    margin: 0 auto;
}

.gam-manage-empty-hero {
    margin-bottom: 18px;
}

.gam-manage-empty-card .gam-empty {
    padding: 54px 24px;
}

.gam-manage-empty-card .gam-empty-text {
    max-width: 440px;
}
