/* ========================================
   DASHBOARD.CSS - STEAMLINE DEVELOPER PORTAL
   Complete updated stylesheet with modern payment cards
   ======================================== */

/* ========================================
   FONTS AND BASE STYLES
   ======================================== */

@font-face {
    font-family: 'Caviar Dreams';
    src: url('./fonts/CaviarDreams-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Caviar Dreams', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none;
}

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

/* ========================================
   HEADER AND NAVIGATION
   ======================================== */

header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #247dd6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    font-family: inherit;
}

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

.btn-primary {
    background: #247dd6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1e6bbf;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #F38630;
    color: white;
    border-color: #F38630;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #047857;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-complete:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 125, 214, 0.4);
}

.btn-complete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   CARDS AND LAYOUTS
   ======================================== */

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* ========================================
   STATS GRID
   ======================================== */

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #247dd6;
    display: block;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ========================================
   HORIZONTAL TAB NAVIGATION
   ======================================== */

.tab-navigation {
    margin-bottom: 0;
    background: transparent;
}

.tab-nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #e5e7eb;
    background: transparent;
}

.tab-nav-item {
    margin: 0;
    margin-right: 2px;
}

.tab-nav-button {
    padding: 12px 24px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    font-family: 'Caviar Dreams', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    white-space: nowrap;
}

.tab-nav-button:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.tab-nav-button.active {
    background: white;
    color: #247dd6;
    border-color: #247dd6;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
    z-index: 2;
}

.tab-nav-button.disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #f3f4f6;
}

.tab-nav-button.disabled:hover {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #f3f4f6;
}

/* Beta badge styling */
.beta-badge {
    background: #F38630;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 8px 8px 8px;
    min-height: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.tab-inner {
    padding: 2rem;
}

/* Update card styles within tabs */
.tab-content .card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ========================================
   GAMES AND GAME ITEMS
   ======================================== */

.game-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-content .game-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.game-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tab-content .game-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========================================
   STATUS BADGES
   ======================================== */

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-live {
    background: #fff7ed;
    color: #F38630;
    border: 1px solid #F38630;
}

.status-review {
    background: #fef3c7;
    color: #92400e;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #247dd6;
    box-shadow: 0 0 0 3px rgba(36, 125, 214, 0.1);
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background-color: #fef2f2;
}

.form-input.valid {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background-color: #f0fdf4;
}

.validation-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

.validation-error.show {
    display: block;
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
}

.modal-content-large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ========================================
   ALERTS AND NOTIFICATIONS
   ======================================== */

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-info {
    background: #e0f2fe;
    border: 1px solid #247dd6;
    color: #0c4a6e;
}

.alert-success {
    background: #fff7ed;
    border: 1px solid #F38630;
    color: #9a3412;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

/* ========================================
   LOGIN AND AGREEMENT FORMS
   ======================================== */

.modern-checkbox-group:hover {
    border-color: #247dd6;
    box-shadow: 0 4px 12px rgba(36, 125, 214, 0.1);
}

.modern-checkbox-group.checked {
    border-color: #247dd6;
    background: #eff6ff;
}

.modern-checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #247dd6;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.modern-checkbox-group label {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    cursor: pointer;
    margin: 0;
    font-family: 'Caviar Dreams', sans-serif;
}

.complete-button-container {
    margin-top: 3rem;
    text-align: center;
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

.placeholder-content {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.placeholder-content h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.placeholder-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.placeholder-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.placeholder-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ========================================
   TABLES AND LEDGERS
   ======================================== */

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.ledger-table th,
.ledger-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.ledger-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.ledger-table tr:hover {
    background-color: #f9fafb;
}

.revenue-in {
    color: #059669;
    font-weight: 500;
}

.payment-out {
    color: #dc2626;
    font-weight: 500;
}

.balance {
    font-weight: 600;
    color: #247dd6;
}

/* ========================================
   REVENUE CHARTS
   ======================================== */

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    background: #fafbfc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.chart-container canvas {
    max-height: 100%;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.year-select:hover {
    border-color: #247dd6;
}

.year-select:focus {
    outline: none;
    border-color: #247dd6;
    box-shadow: 0 0 0 3px rgba(36, 125, 214, 0.1);
}

/* Loading States */
.chart-loading {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #247dd6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

.chart-error {
    text-align: center;
    padding: 3rem 1rem;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin: 1rem 0;
}

.chart-error p {
    margin: 0;
    font-weight: 500;
}

/* Revenue Summary Grid */
.revenue-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.summary-stat {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.summary-stat:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-stat .summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #247dd6;
    display: block;
    margin-bottom: 0.5rem;
}

.summary-stat .summary-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-summary {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #247dd6;
}

.summary-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.help-text {
    color: #6b7280;
    font-size: 0.875rem;
    align-self: center;
}

/* ========================================
   ACCOUNT SETTINGS
   ======================================== */

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: #1f2937;
    font-size: 1rem;
}

.legal-docs-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.legal-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.legal-doc-info h4 {
    margin: 0 0 0.25rem 0;
    color: #374151;
    font-size: 1rem;
}

.legal-doc-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.account-actions {
    margin-top: 1rem;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.action-info h4 {
    margin: 0 0 0.25rem 0;
    color: #374151;
    font-size: 1rem;
}

.action-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ========================================
   MODERN PAYMENT METHODS - REDESIGNED
   ======================================== */

/* Fix Steam Direct game name input width */
#steamDirectGameName {
    max-width: 400px;
    width: 100%;
}

/* Payment Method Status */
.payment-method-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.payment-method-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.payment-method-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.payment-method-status.active {
    color: #059669;
    background-color: #d1fae5;
}

.payment-method-status.inactive {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Payment Methods Container */
.payment-methods-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* MODERN PAYMENT METHOD CARDS - REDESIGNED */
.payment-method-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    overflow: hidden; /* CRITICAL: Prevent content overflow */
    transition: border-color 0.2s ease;
    cursor: default; /* FIXED: Remove misleading hover cursor */
    padding: 0; /* Reset padding for new structure */
    /* FIX: Ensure proper width calculation */
    box-sizing: border-box;
    width: 100%;
}

.payment-method-card:hover {
    border-color: #d1d5db; /* Subtle hover - no pointer cursor */
}

.payment-method-card.disabled {
    opacity: 0.6;
    border-color: #e5e7eb;
    background-color: #f9fafb;
}

.payment-method-card.available {
    opacity: 1;
    border-color: #d1d5db;
    background-color: white;
}

.payment-method-card.selected {
    border-color: #059669;
    box-shadow: 0 0 0 1px #059669;
}

/* MODERN HORIZONTAL HEADER DESIGN */
.payment-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    background: #fafbfc !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
}

.payment-method-card.selected .payment-card-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

/* Payment method title section */
.payment-card-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
}

.payment-card-title h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

/* Hide confusing status icons */
.payment-status-icon {
    display: none !important;
}

/* Setup status badges in header */
.setup-status {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    margin-right: 12px !important;
}

.setup-status.setup {
    color: #059669;
    background-color: #d1fae5;
}

.setup-status.not-setup {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Payment method icons */
.payment-method-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    background: #6b7280; /* Default gray */
}

/* Specific icon colors */
.stripe-icon {
    background: #635bff; /* Stripe purple */
}

.wire-icon {
    background: #059669; /* Green for banking */
}

/* Action buttons in header - ONLY BUTTONS HAVE POINTER CURSOR */
.payment-card-header .btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important; /* Only buttons should have pointer cursor */
    transition: all 0.2s !important;
}

/* Hide old action sections */
.payment-card-actions {
    display: none !important;
}

/* Card content styling - FIXED for proper list display */
.payment-card-content {
    padding: 16px 20px !important;
    /* FIX: Ensure content containment but allow list numbers */
    box-sizing: border-box;
    /* REMOVED: overflow: hidden - was cutting off list numbers */
}

/* Features list with checkmarks */
.payment-features {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.payment-features li {
    padding: 4px 0 4px 20px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    position: relative !important;
}

/* Replace bullets with checkmarks */
.payment-features li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    color: #10b981 !important;
    font-weight: bold !important;
}

/* Info sections styling - FIXED for proper list display */
.stripe-checkout-info,
.stripe-connect-info,
.stripe-info-section {
    background: #f8fafc !important;
    padding: 12px !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    margin-top: 12px !important;
    /* FIX: Ensure content stays within container but allow list numbers */
    box-sizing: border-box !important;
    width: 100% !important;
    word-wrap: break-word !important;
    /* REMOVED: overflow: hidden - was cutting off list numbers */
}

/* ADDED: Target the actual nested structure for ordered lists */
.stripe-checkout-info ol,
.stripe-connect-info ol, 
.stripe-info-section ol,
.stripe-placeholder ol {
    margin: 0.5rem 0 !important;
    padding-left: 2.5rem !important;
    list-style-position: outside !important;
    word-wrap: break-word !important;
}

.stripe-checkout-info li,
.stripe-connect-info li,
.stripe-info-section li,
.stripe-placeholder li {
    margin: 0.25rem 0 !important;
    font-size: 0.875rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

.fee-list,
.setup-steps {
    margin: 8px 0 !important;
    padding-left: 16px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}

.fee-list li,
.setup-steps li {
    margin-bottom: 4px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* Bank info section - collapsed by default */
.bank-info-section {
    display: none; /* Hidden by default */
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Bank setup button */
.setup-bank-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.setup-bank-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Bank form grid adjustments */
.bank-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.bank-form-grid .form-group:last-child {
    grid-column: 1 / -1 !important;
}

/* Payment confirmation details */
.payment-confirmation-details {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-row.total-row {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.detail-row .label {
    color: #64748b;
}

.detail-row .value {
    font-weight: 500;
}

/* Payment tip */
.payment-tip {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #1e40af;
}

/* Bank info and payment info sections */
.payment-info-section {
    margin-top: 1rem;
}

.bank-info-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.bank-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bank-status-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.bank-status-text h3 {
    margin: 0 0 0.25rem 0;
    color: #374151;
    font-size: 1.125rem;
}

.bank-status-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ========================================
   LEGAL MODALS
   ======================================== */

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.legal-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.legal-modal-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 12px 12px 0 0;
    z-index: 10;
}

.legal-modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-download-btn {
    background: #247dd6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: 'Caviar Dreams', sans-serif;
}

.legal-download-btn:hover {
    background: #1e6bbf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 125, 214, 0.3);
}

.legal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.legal-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.legal-modal-body {
    padding: 0 2rem 2rem 2rem;
}

.legal-document {
    font-family: Georgia, 'Times New Roman', serif;
    color: #2d3748;
    line-height: 1.7;
    font-size: 15px;
}

.legal-document h2 {
    color: #247dd6;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #247dd6;
    padding-bottom: 1rem;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #247dd6;
}

.legal-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section strong {
    color: #1f2937;
    font-weight: 600;
}

/* ========================================
   STEAM DIRECT STYLES
   ======================================== */

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

.steam-direct-title {
    color: #247dd6;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.steam-direct-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.steam-direct-fee-amount {
    color: #247dd6;
    font-weight: 600;
}

/* Submit Payment Section */
.steam-direct-submit-section {
    text-align: center;
    margin-top: 2rem;
}

.steam-direct-submit-btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

.submit-requirements {
    margin-top: 0.5rem;
    color: #dc2626;
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    /* Navigation Tabs */
    .tab-nav-list {
        flex-wrap: wrap;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .tab-nav-item {
        margin-right: 1px;
        margin-bottom: 2px;
    }
    
    .tab-nav-button {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .beta-badge {
        display: none;
    }
    
    /* Tab Content */
    .tab-inner {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Charts */
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .year-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        align-self: stretch;
    }
    
    .year-select {
        width: 100%;
        padding: 0.75rem;
    }
    
    /* Revenue Summary */
    .revenue-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .summary-stat {
        padding: 1rem;
    }
    
    .summary-stat .summary-value {
        font-size: 1.5rem;
    }
    
    /* Account Settings */
    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .legal-doc-item,
    .action-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .bank-status {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Payment Methods */
    .payment-methods-container {
        grid-template-columns: 1fr;
    }
    
    .bank-form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Payment card headers on mobile */
    .payment-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .payment-card-title {
        justify-content: center !important;
    }
    
    .setup-status {
        text-align: center !important;
        margin-right: 0 !important;
    }
    
    /* Agreement Step */
    .agreement-step-modern {
        margin: 1rem;
        padding: 2rem 1.5rem;
        width: calc(100% - 2rem);
    }
    
    .agreement-title {
        font-size: 2rem;
    }
    
    .agreement-subtitle {
        font-size: 1.125rem;
    }
    
.legal-links-section {
    margin-bottom: 2rem;
}

.acknowledgment-checkbox {
    text-align: left;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.acknowledgment-checkbox .modern-checkbox-group {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.acknowledgment-checkbox .modern-checkbox-group:hover {
    border-color: #d1d5db;
    background-color: #fafafa;
}

.acknowledgment-checkbox .modern-checkbox-group.checked {
    border-color: #247dd6;
    background-color: #f0f9ff;
}

.acknowledgment-checkbox .modern-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #247dd6;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.acknowledgment-checkbox .modern-checkbox-group label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
    margin: 0;
}
    
    .legal-link {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .modern-checkbox-group {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    /* Legal Modals */
    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .legal-modal-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-modal-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .legal-download-btn {
        justify-content: center;
    }
    
    .legal-close-btn {
        align-self: flex-end;
    }
    
    /* Game Items */
    .game-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .game-actions {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Base */
    .container {
        padding: 0 10px;
    }
    
    /* Charts */
    .chart-container {
        height: 250px;
        margin: 0.5rem 0;
    }
    
    /* Revenue Summary */
    .revenue-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .summary-stat {
        padding: 0.75rem;
    }
    
    .summary-stat .summary-value {
        font-size: 1.25rem;
    }
    
    .summary-stat .summary-label {
        font-size: 0.75rem;
    }
    
    /* Forms */
    .form-input {
        padding: 0.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Payment Methods */
    .payment-method-card {
        padding: 0;
    }
    
    .payment-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Agreement */
    .agreement-step-modern {
        padding: 1.5rem 1rem;
    }
    
    .agreement-title {
        font-size: 1.75rem;
    }
    
    .btn-complete {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 200px;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .btn {
        -webkit-font-smoothing: antialiased;
    }
    
    .chart-container {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .tab-navigation,
    .btn,
    .modal,
    .close-btn {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        border: none;
        box-shadow: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Focus Management for Accessibility */
.btn:focus,
.form-input:focus,
.tab-nav-button:focus {
    outline: 2px solid #247dd6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #333;
    }
    
    .payment-method-card.selected {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* EMAIL NOTIFICATIONS STYLES */

/* Notification status in header */
.notification-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-status-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.notification-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.notification-status.loading {
    color: #3b82f6;
    background-color: #dbeafe;
}

.notification-status.active {
    color: #059669;
    background-color: #d1fae5;
}

.notification-status.error {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Notification preferences grid */
.notification-preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Notification categories */
.notification-category {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.notification-category-title {
    margin: 0 0 1.5rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Individual preference items */
.notification-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.notification-preference-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preference-info {
    flex: 1;
}

.preference-label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.preference-description {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Modern toggle switches */
.preference-toggle {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: block;
    width: 48px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-input:checked + .toggle-label {
    background-color: #247dd6;
}

.toggle-input:checked + .toggle-label::after {
    transform: translateX(24px);
}

.toggle-input:focus + .toggle-label {
    box-shadow: 0 0 0 3px rgba(36, 125, 214, 0.1);
}

/* Actions section */
.notification-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Save status message */
.notification-save-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-save-status.success {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.notification-save-status.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.notification-save-status.hidden {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-preferences-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .notification-preference-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .preference-toggle {
        align-self: flex-start;
    }
    
    .notification-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notification-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ===========================================
   Steamline Login — Full Layout + Hero Polish
   =========================================== */

/* --- 50/50 split layout --- */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* equal halves */
  gap: 0;
  background: #f8fafc;
}

/* =========================
   LEFT: Login column
   ========================= */
.login-shell .login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.login-shell .brand-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;          /* Space between logo and text */
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2rem;
  color: #247dd6;
  letter-spacing: .2px;
}

.login-shell .brand-logo {
  height: 2rem;          /* Match the text height */
  width: auto;           /* Maintain aspect ratio */
  object-fit: contain;   /* Ensure proper scaling */
}

.login-shell .login-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 2rem;
}

.login-shell .login-title {
  margin: 0 0 .25rem;
  font-size: 1.45rem;
  color: #111827;
  font-weight: 800;
  text-align: center;
}
.login-shell .steamline-accent { color: #247dd6; }

.login-shell .login-subtitle {
  color: #6b7280;
  margin: 0 0 1.25rem;
  font-size: .95rem;
}

.login-shell .login-cta {
  width: 100%;
  justify-content: center;
}

/* Divider with lines */
.login-shell .divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
  color: #9ca3af;
  font-size: .875rem;
}
.login-shell .divider::before,
.login-shell .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  width: 42%;
  background: #e5e7eb;
}
.login-shell .divider::before { left: 0; }
.login-shell .divider::after  { right: 0; }

/* Scoped form bits so we don't affect other screens */
.login-shell .form-label { 
  display: block; 
  margin: 0 0 .4rem; 
  color: #374151;
  font-weight: 500;
}

.login-shell .form-input {
  width: 100%;
  border-radius: 10px;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.login-shell .form-input:focus {
  outline: none;
  border-color: #247dd6;
  background: white;
  box-shadow: 0 0 0 3px rgba(36, 125, 214, 0.1);
}

.login-shell .form-input:focus-visible {
  outline: 2px solid rgba(36,125,214,0.35);
  outline-offset: 2px;
}

.login-shell .form-input::placeholder {
  color: #9ca3af;
}

.login-shell .validation-error {
  color: #b91c1c;
  font-size: .85rem;
  margin-top: .4rem;
}

.login-shell .help-inline {
  color: #6b7280;
  font-size: .85rem;
  margin: .5rem 0 1rem;
}

.login-shell .legal-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: #6b7280;
  text-align: center;
}
.login-shell .legal-note a {
  color: #247dd6;
  text-decoration: none;
  font-weight: 600;
}
.login-shell .legal-note a:hover { text-decoration: underline; }

/* Discord brand button - Enhanced with better hover states */
.login-shell .btn-discord{
  --discord:#5865F2;              /* Blurple */
  --discord-hover:#4752C4;
  background:var(--discord);
  color:#fff;
  border: 1px solid var(--discord);
  display:inline-flex;
  align-items:center;
  justify-content: center;
  gap:.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-bottom: 1rem;
}
.login-shell .btn-discord:hover,
.login-shell .btn-discord:focus{
  background:var(--discord-hover);
  border-color:var(--discord-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.login-shell .btn-discord:active {
  transform: translateY(0);
}
.login-shell .btn-discord .discord-icon{
  display:inline-flex;
  line-height:0;
  color:#fff;
}

/* Enhanced magic link button - Orange theme to match design */
.login-shell .btn-success {
  background: #F38630;
  color: white;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-bottom: 1rem;
}

.login-shell .btn-success:hover {
  background: #e67a28;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 134, 48, 0.3);
}

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

/* Utility used here */
.login-shell .hidden { display: none !important; }

/* =========================
   RIGHT: Steamline hero
   ========================= */
.login-shell .steamline-hero{
  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Center vertically like left side */
  align-items: center;       /* Center horizontally */
  text-align: center;
  padding: 3rem 2rem;

  /* Background: much darker orange base */
  background: linear-gradient(180deg, rgba(243,134,48,0.12) 0%, rgba(243,134,48,0.08) 100%);
  border-left: 1px solid #e9edf2;
  box-shadow: none;
  border-radius: 0;

  /* Shared sizing for hero cards */
  --hero-card-max: 640px;
}

.login-shell .hero-logo {
    height: 4rem;        /* Larger than left side (2rem) */
    width: auto;         /* Maintain aspect ratio */
    object-fit: contain; /* Ensure proper scaling */
    margin-bottom: 0.75rem; /* Match original hero-title margin */
}

.login-shell .hero-tagline{
  font-size: 1.4rem;
  color: #4b5563;
  letter-spacing: .2px;
  margin: 0 0 2rem;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;   /* Ensure tagline is centered */
}

/* Quote card upgrade - Larger with prominent quote marks */
.login-shell .hero-quote{
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 0 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #F38630; 
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: fadeUp 420ms ease both;
}

.login-shell .hero-quote blockquote{
  position: relative;
  z-index: 1;
  margin: 0 0 1rem 0;  /* More space below quote */
  line-height: 1.4;    /* Slightly tighter for larger text */
  font-size: 1.5rem;   /* Larger quote text - was 1.3rem */
  color: #0f172a;
  font-weight: 500;
  font-style: italic;
}

.login-shell .hero-quote blockquote::before{
    content: '\201C';    /* Unicode for opening quote */
    font-size: 4rem;
    line-height: 1;
    color: #F38630;
    font-family: 'Times New Roman', serif;
    position: absolute;
    left: -20px;
    top: -25px;
    z-index: 0;
    pointer-events: none;
}

.login-shell .hero-quote blockquote::after{
    content: '\201D';    /* Unicode for closing quote */
    font-size: 4rem;
    line-height: 1;
    color: #F38630;
    font-family: 'Times New Roman', serif;
    position: absolute;
    right: -15px;
    bottom: -30px;
    z-index: 0;
    pointer-events: none;
}

.login-shell .hero-quote figcaption{
  margin: .5rem auto 0;
  color:#6b7280;
  font-size: 1.05rem;   /* Increased from .95rem */
  border-top: 1px solid #eef0f3;  /* hairline to separate attribution */
  padding-top: .6rem;
  max-width: 48ch;
  text-align: center;   /* Center the attribution */
}

/* Checklist polish - Centered container with left-aligned text */
.login-shell .checklist{
  width: 100%;
  max-width: 500px;
  margin: 0 auto;        /* Center the container */
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align the items within centered container */
  gap: .85rem;
  animation: fadeUp 480ms ease both;
}

.login-shell .checklist li{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* Left align content within each item */
  gap: .75rem;
  color: #374151;
  opacity: 0; 
  animation: fadeUp 520ms ease both;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;      /* Left align text */
}

.login-shell .checklist li::before{
  content:"✓";
  flex: 0 0 18px;
  width:18px; height: 18px;
  display:inline-grid; place-items:center;
  margin-top: 1px;
  border-radius: 999px;
  background: #e8f7f0;
  color:#10b981;                          /* green check */
  font-weight: 700;
  font-size: 12px;
}

/* Staggered reveal for list items */
.login-shell .checklist li:nth-child(1){ animation-delay: 70ms; }
.login-shell .checklist li:nth-child(2){ animation-delay: 140ms; }
.login-shell .checklist li:nth-child(3){ animation-delay: 210ms; }

/* Animations */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(12px); }
  to  { opacity:1; transform: translateY(0); }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px){
  .login-shell { grid-template-columns: 1fr; }
  .login-shell .steamline-hero{ 
    background: linear-gradient(180deg, rgba(243,134,48,0.1) 0%, rgba(243,134,48,0.06) 100%);
    border-left: 0;
    padding: 2rem 1.5rem;
  }
  .login-shell .login-left,
  .login-shell .steamline-hero { padding: 1.5rem; }

  .login-shell .hero-quote{ width: 100%; max-width: 100%; }
  .login-shell .checklist { width: 100%; max-width: 100%; }
}

#agreementModal .modal-content {
    max-width: 500px;
    width: 90%;
}

.modal-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.modal-brand-logo {
    height: 1.5rem;
    width: auto;
    object-fit: contain;
}

.steamline-blue {
    color: #247dd6;
}

.agreement-modal-body {
    text-align: center;
    padding: 0 1rem;
}

.agreement-modal-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.agreement-checkboxes {
    text-align: left;
    margin: 2rem 0;
}

.agreement-checkboxes .modern-checkbox-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.agreement-checkboxes .modern-checkbox-group:hover {
    border-color: #d1d5db;
    background-color: #fafafa;
}

.agreement-checkboxes .modern-checkbox-group.checked {
    border-color: #247dd6;
    background-color: #f0f9ff;
}

.agreement-modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.agreement-modal-actions .btn {
    min-width: 180px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}


/* Inline legal links */
.legal-link-inline {
    color: #247dd6;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.legal-link-inline:hover {
    color: #1e6bbf;
    text-decoration: underline;
}

/* Make modal non-dismissible */
#agreementModal {
    pointer-events: auto;
}

#agreementModal .modal-content {
    position: relative;
}

/* Ensure modal stays on top */
#agreementModal {
    z-index: 1100;
}

#agreementModal {
    pointer-events: none; /* Blocks clicks on the dark overlay */
}

#agreementModal .modal-content {
    pointer-events: auto; /* Allows clicks on the actual modal content */
}

/* ========================================
   PRICING PLAN MODAL STYLES
   ======================================== */

#pricingPlanModal {
    pointer-events: none;
}

#pricingPlanModal .modal-content {
    pointer-events: auto;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.pricing-modal-body {
    padding: 2rem;
}

.pricing-modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.pricing-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-plan-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.pricing-plan-card.featured {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    margin-bottom: 1.5rem;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.plan-price-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-feature {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
}

.plan-feature:last-child {
    border-bottom: none;
}

.plan-actions {
    margin-top: auto;
}

/* Payment Method Display */
.payment-method-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.payment-method-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.payment-method-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.payment-method-details {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.card-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    background: #6b7280;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

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

.card-brand {
    font-weight: 500;
    text-transform: capitalize;
}

.card-last4 {
    font-size: 0.85rem;
    color: #9ca3af;
}

.payment-method-loading {
    color: #6b7280;
    font-style: italic;
    font-size: 0.9rem;
}

.payment-method-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


.plan-select-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.enterprise-note {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.pricing-modal-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.pricing-disclaimer {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive design for pricing modal */
@media (max-width: 768px) {
    .pricing-plans-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-modal-body {
        padding: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
}

/* ========================================
   SERVICE PLAN SECTION STYLES
   ======================================== */

.service-plan-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-plan-label {
    font-size: 0.9rem;
    color: #666;
}

.service-plan-status {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
}

.current-plan-display {
    margin-bottom: 1.5rem;
}

.plan-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plan-details {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-item {
    font-size: 0.9rem;
    color: #4b5563;
    padding: 0.25rem 0;
}

.plan-actions {
    display: flex;
    align-items: center;
}

.premium-plan-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
}

.billing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.billing-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.billing-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.billing-value {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
}

/* Responsive design for service plan */
@media (max-width: 768px) {
    .plan-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .billing-info {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ADD GAME MODAL MULTI-STEP STYLES
   ======================================== */

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

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

.progress-step.completed {
    opacity: 0.8;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #3b82f6;
    color: white;
}

.progress-step.completed .step-circle {
    background: #059669;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #1f2937;
    font-weight: 600;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 1rem 1.5rem 1rem;
}

.progress-step.active + .progress-line,
.progress-step.completed + .progress-line {
    background: #3b82f6;
}

/* Add Game Modal Sizing */
#addGameModal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.add-game-step {
    min-height: 250px;
}

.step-content {
    padding: 1.5rem;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Steam Availability Options */
.steam-availability-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.option-card {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.option-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.option-status.published {
    background: #dcfce7;
    color: #166534;
}

.option-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.option-description {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Service Plan Options in Modal */
.service-plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.plan-option-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-option-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.plan-option-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plan-option-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.plan-option-features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-feature {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Help Text */
.help-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Completion Step */
.completion-content {
    text-align: center;
    padding: 2rem;
}

.completion-icon {
    margin-bottom: 1.5rem;
}

.completion-checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #059669;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
}

.completion-content h4 {
    color: #059669;
    margin-bottom: 1rem;
}

.completion-message {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2937;
}

.completion-actions {
    margin-top: 2rem;
}

/* ========================================
   STRIPE ELEMENTS STYLING
   ======================================== */

/* Payment Form Wrapper - Side-by-Side Layout */
.payment-form-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 700px;
    align-items: flex-start;
}

/* Payment Form Container - Modern Credit Card Form */
.payment-form-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 0 0 400px; /* Fixed width, don't grow or shrink */
}

.payment-form-header {
    padding: 0.75rem 1rem 0.5rem 1rem;
    background: #FF9A56; /* Lighter, more modern orange */
    color: white;
}

.payment-form-header h3 {
    margin: 0 0 0.125rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.payment-form-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

/* Stripe Elements Form Container - Compact Modern */
.stripe-elements-form {
    padding: 1rem;
    background-color: #ffffff;
}

/* Payment Form Section - Modern CC Standards */
.payment-form-section {
    margin-bottom: 0.5rem;
}

.payment-form-section .form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Card Field Groups - Modern Spacing */
.card-field-group {
    margin-bottom: 0.5rem;
}

.card-field-group:last-child {
    margin-bottom: 0;
}

/* Card Field Row (for expiry and CVC side by side) - Modern */
.card-field-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-field-half {
    flex: 1;
    margin-bottom: 0;
}

/* Stripe Element Container - Modern CC Design */
.stripe-element {
    padding: 12px 14px;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-size: 1rem;
    min-height: 44px; /* Touch-friendly height */
    /* Removed display: flex that was interfering with Stripe Elements */
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.stripe-element:focus-within {
    border-color: #FF9A56; /* Use lighter orange */
    box-shadow: 0 0 0 2px rgba(255, 154, 86, 0.1);
    outline: none;
}

.stripe-element.StripeElement--invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.stripe-element.StripeElement--focus {
    border-color: #FF9A56; /* Use lighter orange */
    box-shadow: 0 0 0 2px rgba(255, 154, 86, 0.1);
    outline: none;
}

/* Stripe Element Error Messages */
.stripe-element-errors {
    margin-top: 0.5rem;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 1.25rem;
}

/* Stripe Elements Info Section - Sidebar Design */
.stripe-elements-info {
    flex: 1;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0; /* Remove top margin since it's now side-by-side */
    min-height: fit-content;
}

.processing-fees-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.stripe-elements-info p {
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.stripe-elements-info .fee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stripe-elements-info .fee-list li {
    padding: 0.2rem 0;
    color: #6b7280;
    font-size: 0.8rem;
}

/* Payment Method Card States for Stripe Elements */
.payment-method-card#stripeElementsCard.selected {
    border-color: #247dd6;
    background-color: rgba(36, 125, 214, 0.05);
}

.payment-method-card#stripeElementsCard.selected .payment-status-icon {
    background-color: #247dd6;
    color: white;
}

/* Steam Direct Success Message */
.steam-direct-success-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
}

.steam-direct-success-message .success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.steam-direct-success-message .success-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #166534;
}

.steam-direct-success-message .success-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #15803d;
    line-height: 1.5;
}

/* Mobile Responsive - Compact Design */
@media (max-width: 768px) {
    /* Stack payment form and fees vertically on mobile */
    .payment-form-wrapper {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    .payment-form-container {
        flex: 1;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .stripe-elements-info {
        flex: 1;
        margin-top: 0;
    }

    .stripe-elements-form {
        padding: 1rem;
    }

    .payment-form-header {
        padding: 0.75rem 1rem 0.5rem 1rem;
    }

    .payment-form-header h3 {
        font-size: 1rem;
    }

    .stripe-element {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .payment-form-section .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .stripe-elements-info {
        padding: 0.75rem;
    }

    .processing-fees-info h4 {
        font-size: 0.85rem;
    }

    /* Stack card fields vertically on mobile */
    .card-field-row {
        flex-direction: column;
        gap: 0;
    }

    .card-field-half {
        margin-bottom: 0.75rem;
    }

    .card-field-half:last-child {
        margin-bottom: 0;
    }
}

/* ========================================
   SUBSCRIPTION PAYMENT FORM STYLES
   ======================================== */

.subscription-payment-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

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

.subscription-payment-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscription-payment-header h3 {
    color: #374151;
    margin: 0;
    font-size: 1.25rem;
}

.back-to-plans-btn {
    color: #FF9A56;
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.back-to-plans-btn:hover {
    color: #E8894A;
    text-decoration: none;
}

.subscription-billing-notice {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 1rem;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.subscription-payment-form-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.subscription-payment-form-container {
    flex: 0 0 400px;
}

.subscription-payment-form {
    background: white;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.subscription-payment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.subscription-payment-info {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: fit-content;
}

.subscription-payment-info h4 {
    color: #FF9A56;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.subscription-info-content p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.subscription-billing-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-billing-details li {
    padding: 0.4rem 0;
    color: #6b7280;
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.2rem;
}

.subscription-billing-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .subscription-payment-form-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .subscription-payment-form-container {
        flex: 1;
    }

    .subscription-payment-actions {
        flex-direction: column;
    }

    .subscription-payment-container {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .steam-availability-options {
        grid-template-columns: 1fr;
    }
    
    .service-plan-options {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        padding: 1rem;
    }
    
    .option-card, .plan-option-card {
        padding: 1rem;
    }
}

/* ========================================
   GAME PROGRESS METER STYLES
   ======================================== */

/* Game Progress Meter - extends existing progress system */
.game-progress-meter {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    border: 1px solid #e5e7eb;
}

.game-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.5rem;
}

.game-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 90px;
    max-width: 120px;
}

.game-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

.game-progress-step.completed .game-step-circle {
    background: #247dd6;
    color: white;
}

.game-progress-step.active .game-step-circle {
    background: #F38630;
    color: white;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 134, 48, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(243, 134, 48, 0.1); }
}

.game-step-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.game-progress-step.active .game-step-label {
    color: #F38630;
    font-weight: 600;
}

.game-progress-step.completed .game-step-label {
    color: #247dd6;
    font-weight: 600;
}


.game-progress-line {
    height: 2px;
    background: #e5e7eb;
    flex: 1;
    margin: 0 0.5rem;
    margin-top: -1rem;
    z-index: 1;
    transition: background 0.3s ease;
}

.game-progress-step.completed + .game-progress-line {
    background: #247dd6;
}

/* Remove half-filled progress lines - only fill when step is completed */

/* Action buttons for game progress */
.game-progress-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.game-progress-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-progress-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-status-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-percentage {
    font-size: 0.8rem;
    color: #247dd6;
    font-weight: 600;
}

/* Mobile and narrow window responsive adjustments */
@media (max-width: 900px) {
    .game-progress-step {
        min-width: 70px;
        max-width: 90px;
    }

    .game-step-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .game-progress-indicator {
        gap: 0.75rem;
    }

    .game-progress-line {
        margin: 0 0.25rem;
    }
}

@media (max-width: 768px) {
    .game-progress-meter {
        padding: 1rem;
    }

    .game-progress-step {
        min-width: 60px;
        max-width: 80px;
    }

    .game-step-circle {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .game-step-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .game-progress-indicator {
        gap: 0.5rem;
        padding: 0 0.25rem;
    }

    .game-progress-line {
        margin: 0 0.15rem;
    }

    .game-progress-actions {
        flex-direction: column;
        margin-top: 1rem;
    }

    .game-progress-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .game-progress-meter {
        padding: 0.875rem;
    }

    .game-progress-step {
        min-width: 50px;
        max-width: 70px;
    }

    .game-step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .game-step-label {
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .game-progress-indicator {
        gap: 0.375rem;
    }

    .game-progress-line {
        margin: 0 0.1rem;
        height: 1.5px;
    }
}

@media (max-width: 480px) {
    .game-progress-meter {
        padding: 0.75rem;
    }

    .game-progress-indicator {
        flex-wrap: wrap;
        gap: 0.75rem 0.25rem;
        justify-content: center;
    }

    .game-progress-step {
        flex: 0 0 calc(50% - 0.125rem);
        max-width: calc(50% - 0.125rem);
        min-width: 0;
    }

    .game-progress-line {
        display: none;
    }

    .game-step-label {
        font-size: 0.58rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    .game-progress-summary {
        margin-bottom: 0.75rem;
    }

    .progress-status-text {
        font-size: 0.75rem;
    }
}

/* Very narrow screens - stack vertically */
@media (max-width: 320px) {
    .game-progress-step {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .game-step-label {
        font-size: 0.6rem;
        white-space: normal;
        word-wrap: break-word;
    }
}

/* ========================================
   GAME SELECTION COMBOBOX STYLES
   ======================================== */

/* Game Combobox Container */
.game-combobox {
    position: relative;
    width: 100%;
}

/* Combobox Input */
.combobox-input {
    width: 100%;
    padding-right: 3rem; /* Make room for dropdown arrow */
    cursor: pointer;
}

.combobox-input:focus {
    cursor: text;
}

/* Toggle Button */
.combobox-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.combobox-toggle:hover {
    color: #247dd6;
}

.combobox-toggle:focus {
    outline: 2px solid #247dd6;
    outline-offset: 2px;
    border-radius: 4px;
}

.game-combobox[aria-expanded="true"] .combobox-toggle {
    transform: translateY(-50%) rotate(180deg);
    color: #247dd6;
}

/* Dropdown Container */
.combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

/* Loading State */
.dropdown-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #247dd6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty State */
.dropdown-empty {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
}

/* Game Options */
.dropdown-options {
    max-height: 200px;
    overflow-y: auto;
}

.game-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.game-option:hover {
    background-color: #f8f9fa;
}

.game-option:focus,
.game-option.focused {
    background-color: #f0f7ff;
    outline: none;
}

.game-option.selected {
    background-color: #247dd6;
    color: white;
}

.game-option:last-child {
    border-bottom: none;
}

.game-option-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.game-option-name {
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-option-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.game-option.selected .game-option-meta {
    color: rgba(255, 255, 255, 0.8);
}

.game-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.game-status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.game-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.game-option.selected .game-status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Add Game Option */
.dropdown-add-game {
    border-top: 1px solid #e5e7eb;
}

.add-game-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    color: #247dd6;
    transition: background-color 0.2s ease;
}

.add-game-option:hover {
    background-color: #f0f7ff;
}

.add-game-option:focus {
    background-color: #f0f7ff;
    outline: 2px solid #247dd6;
    outline-offset: -2px;
}

.add-game-option svg {
    flex-shrink: 0;
}

/* Selected Game Display */
.selected-game-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.selected-game-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.selected-game-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.selected-game-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.clear-selection-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.clear-selection-btn:hover {
    color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .combobox-dropdown {
        max-height: 250px;
    }

    .dropdown-options {
        max-height: 180px;
    }

    .game-option {
        padding: 1rem 0.75rem;
    }

    .game-option-name {
        font-size: 0.8rem;
    }

    .game-option-meta {
        font-size: 0.7rem;
    }

    .add-game-option {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .combobox-dropdown {
        max-height: 200px;
        margin-top: 0.125rem;
    }

    .dropdown-options {
        max-height: 140px;
    }

    .game-option {
        padding: 0.875rem 0.5rem;
    }

    .add-game-option {
        padding: 0.875rem 0.5rem;
    }

    .game-option-main {
        gap: 0.125rem;
    }
}