/* Ace Pot Info Page Styles
 * Modern redesign with progressive disclosure
 * Supports both light and dark themes via CSS variables
 */

/* ==================== Hero Section ==================== */
.ace-hero {
    background: linear-gradient(135deg,
        var(--league-primary, #6366f1) 0%,
        var(--league-gradient, #4f46e5) 50%,
        var(--league-accent-1, #ec4899) 100%);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.ace-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20S-10 18.954-10 30s8.954 20 20 20 20-8.954 20-20zm30 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.ace-hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.ace-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.ace-hero-text {
    flex: 1;
    min-width: 200px;
}

.ace-hero-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.ace-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0.25rem 0 0;
    font-weight: 500;
}

.ace-hero-metric {
    text-align: right;
    flex-shrink: 0;
}

.ace-total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ace-total-amount {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.25rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ace-guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-top: 0.375rem;
}

.ace-guarantee-badge i {
    font-size: 0.625rem;
}

/* ==================== Location Prompt ==================== */
.location-prompt-card {
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.location-prompt-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--league-primary, #6366f1), var(--league-gradient, #4f46e5));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.location-prompt-content {
    flex: 1;
    min-width: 200px;
}

.location-prompt-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1e293b);
    margin: 0;
}

.location-prompt-text {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #64748b);
    margin: 0.25rem 0 0;
}

.location-prompt-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==================== Location Filter Bar ==================== */
.location-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-2, #f8fafc);
    border-radius: 8px;
    flex-wrap: wrap;
}

.location-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #64748b);
}

.location-status i {
    color: var(--league-primary, #6366f1);
}

/* ==================== Quick Info Section ==================== */
.quick-info-section {
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.quick-info-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--surface-1, #ffffff);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quick-info-toggle:hover {
    background: var(--surface-2, #f8fafc);
}

.quick-info-question {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1e293b);
}

.quick-info-question i {
    color: var(--league-primary, #6366f1);
}

.toggle-icon {
    color: var(--theme-text-secondary, #64748b);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.ace-info-card {
    padding: 1.25rem;
    background: var(--surface-2, #f8fafc);
    border-top: 1px solid var(--theme-border-color, #e2e8f0);
}

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

.ace-info-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.ace-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ace-info-icon.contribute {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ace-info-icon.win {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.ace-info-icon.rollover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.ace-info-icon.guaranteed {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.ace-info-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1e293b);
    margin: 0;
}

.ace-info-content p {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

/* ==================== Guarantee Details ==================== */
.guarantee-details-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(236, 72, 153, 0.02) 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.guarantee-details-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(236, 72, 153, 0.1);
    font-size: 0.875rem;
    font-weight: 700;
    color: #ec4899;
}

.guarantee-details-content {
    padding: 1rem;
}

.guarantee-example {
    background: var(--surface-1, #ffffff);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.example-scenario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px dashed var(--theme-border-color, #e2e8f0);
}

.scenario-label {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #64748b);
}

.scenario-arrow {
    color: var(--theme-text-secondary, #94a3b8);
}

.scenario-result {
    font-size: 0.9375rem;
    color: var(--theme-success, #10b981);
}

.example-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.breakdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.breakdown-item.cash {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.breakdown-item.bonus {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.breakdown-plus {
    color: var(--theme-text-secondary, #94a3b8);
    font-weight: 600;
}

.guarantee-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
    margin: 0;
    line-height: 1.5;
}

.guarantee-note i {
    color: #ec4899;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ==================== Tabs ==================== */
.ace-tabs-container {
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.ace-nav-tabs {
    display: flex;
    border-bottom: 1px solid var(--theme-border-color, #e2e8f0);
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ace-nav-tabs::-webkit-scrollbar {
    display: none;
}

.ace-nav-tabs .nav-item {
    flex: 1;
    min-width: fit-content;
}

.ace-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-secondary, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ace-tab-btn:hover {
    color: var(--theme-text-primary, #1e293b);
    background: var(--surface-2, #f8fafc);
}

.ace-tab-btn.active {
    color: var(--league-primary, #6366f1);
    border-bottom-color: var(--league-primary, #6366f1);
}

.ace-tab-btn i {
    font-size: 0.875rem;
}

.ace-tab-count {
    background: var(--surface-3, #e2e8f0);
    color: var(--theme-text-secondary, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

.ace-tab-btn.active .ace-tab-count {
    background: var(--league-primary, #6366f1);
    color: white;
}

.ace-tab-content {
    padding: 1.25rem;
    min-height: 200px;
}

/* ==================== Ace Pots Grid ==================== */
.ace-pots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.ace-pot-card {
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ace-pot-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Card with league image */
.ace-pot-card.has-image {
    padding: 0;
    overflow: hidden;
}

.ace-pot-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-2, #f1f5f9);
}

.ace-pot-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ace-pot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ace-pot-card:hover .ace-pot-image img {
    transform: scale(1.05);
}

.ace-pot-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ace-pot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ace-pot-league-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1e293b);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ace-pot-league-name:hover {
    color: var(--league-primary, #6366f1);
}

.guarantee-indicator {
    color: #f59e0b;
    font-size: 0.875rem;
}

.ace-pot-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-success, #10b981);
    line-height: 1;
}

.ace-pot-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
}

.ace-pot-contributors,
.ace-pot-distance {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ace-pot-next-event {
    padding-top: 0.75rem;
    border-top: 1px solid var(--theme-border-color, #e2e8f0);
}

.next-event-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-secondary, #64748b);
    margin-bottom: 0.25rem;
}

.next-event-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.next-event-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1e293b);
}

.next-event-course {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
}

.ace-pot-register-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.ace-pot-no-event {
    padding-top: 0.75rem;
    border-top: 1px solid var(--theme-border-color, #e2e8f0);
    text-align: center;
}

/* ==================== Winners Grid ==================== */
.ace-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.ace-winner-card {
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ace-winner-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ace-winner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.08) 0%,
        rgba(16, 185, 129, 0.02) 100%);
    border-bottom: 1px solid var(--theme-border-color, #e2e8f0);
}

.ace-winner-avatar {
    flex-shrink: 0;
}

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

.ace-winner-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1e293b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ace-winner-name .ace-winner-player-link,
.ace-winner-name a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.ace-winner-name .ace-winner-player-link:hover,
.ace-winner-name a:hover {
    color: var(--league-primary, #6366f1);
}

.ace-winner-league {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ace-winner-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-success, #10b981);
    flex-shrink: 0;
}

.ace-winner-details {
    padding: 1rem;
}

.ace-detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ace-detail-label {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ace-detail-label i {
    width: 14px;
    text-align: center;
    color: var(--theme-text-secondary, #94a3b8);
}

.ace-hole-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: var(--surface-2, #f8fafc);
    border-radius: 8px;
}

.ace-hole-badge .hole-number {
    width: 32px;
    height: 32px;
    background: var(--theme-success, #10b981);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ace-hole-badge .hole-label {
    font-size: 0.8125rem;
    color: var(--theme-text-primary, #1e293b);
    font-weight: 500;
}

/* ==================== Transactions List ==================== */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transaction-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.transaction-row:hover {
    background: var(--surface-2, #f8fafc);
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.transaction-row.contribution .transaction-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.transaction-row.payout .transaction-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-league {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1e293b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-reason {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-date {
    font-size: 0.75rem;
    color: var(--theme-text-secondary, #94a3b8);
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.amount-positive {
    color: var(--theme-success, #10b981);
}

.amount-negative {
    color: var(--theme-danger, #ef4444);
}

/* ==================== Rules Section ==================== */
.rules-section {
    border: 1px solid var(--theme-border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.rules-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--surface-1, #ffffff);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rules-toggle:hover {
    background: var(--surface-2, #f8fafc);
}

.rules-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1e293b);
}

.rules-toggle-text i {
    color: var(--league-primary, #6366f1);
}

.rules-content {
    padding: 1.25rem;
    background: var(--surface-2, #f8fafc);
    border-top: 1px solid var(--theme-border-color, #e2e8f0);
}

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

.rules-column {
    background: var(--surface-1, #ffffff);
    border-radius: 8px;
    padding: 1.25rem;
}

.rules-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1e293b);
    margin: 0 0 0.875rem;
}

.rules-heading i {
    color: var(--theme-success, #10b981);
    font-size: 0.875rem;
}

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

.rules-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #64748b);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--league-primary, #6366f1);
    border-radius: 50%;
}

.rules-note {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 0.875rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--theme-text-primary, #1e293b);
}

.rules-note i {
    color: #f59e0b;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--surface-3, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--theme-text-secondary, #94a3b8);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1e293b);
    margin-bottom: 0.375rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #64748b);
    margin-bottom: 1rem;
}

/* ==================== Dark Mode ==================== */
[data-bs-theme="dark"] .ace-hero {
    background: linear-gradient(135deg,
        var(--league-primary, #6366f1) 0%,
        #312e81 100%);
}

[data-bs-theme="dark"] .location-prompt-card,
[data-bs-theme="dark"] .ace-tabs-container,
[data-bs-theme="dark"] .ace-pot-card,
[data-bs-theme="dark"] .ace-winner-card,
[data-bs-theme="dark"] .transaction-row,
[data-bs-theme="dark"] .rules-column {
    background: var(--surface-1, #1e293b);
    border-color: var(--theme-border-color, #334155);
}

[data-bs-theme="dark"] .location-filter-bar,
[data-bs-theme="dark"] .ace-info-card,
[data-bs-theme="dark"] .rules-content,
[data-bs-theme="dark"] .ace-tab-content {
    background: var(--surface-2, #0f172a);
}

[data-bs-theme="dark"] .quick-info-toggle,
[data-bs-theme="dark"] .rules-toggle {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .quick-info-toggle:hover,
[data-bs-theme="dark"] .rules-toggle:hover,
[data-bs-theme="dark"] .transaction-row:hover {
    background: var(--surface-2, #0f172a);
}

[data-bs-theme="dark"] .ace-tab-btn:hover {
    background: var(--surface-2, #0f172a);
}

[data-bs-theme="dark"] .ace-pot-card:hover,
[data-bs-theme="dark"] .ace-winner-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .ace-pot-image {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .ace-winner-header {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.15) 0%,
        rgba(16, 185, 129, 0.05) 100%);
}

[data-bs-theme="dark"] .ace-hole-badge {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .ace-tab-count {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .ace-tab-btn.active .ace-tab-count {
    background: var(--league-primary, #6366f1);
}

[data-bs-theme="dark"] .empty-state-icon {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .rules-note {
    background: rgba(245, 158, 11, 0.15);
}

[data-bs-theme="dark"] .ace-info-icon.contribute {
    background: rgba(16, 185, 129, 0.2);
}

[data-bs-theme="dark"] .ace-info-icon.win {
    background: rgba(245, 158, 11, 0.2);
}

[data-bs-theme="dark"] .ace-info-icon.rollover {
    background: rgba(99, 102, 241, 0.2);
}

[data-bs-theme="dark"] .ace-info-icon.guaranteed {
    background: rgba(236, 72, 153, 0.2);
}

[data-bs-theme="dark"] .transaction-row.contribution .transaction-icon {
    background: rgba(16, 185, 129, 0.2);
}

[data-bs-theme="dark"] .transaction-row.payout .transaction-icon {
    background: rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .guarantee-details-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0.04) 100%);
    border-color: rgba(236, 72, 153, 0.3);
}

[data-bs-theme="dark"] .guarantee-details-header {
    background: rgba(236, 72, 153, 0.15);
}

[data-bs-theme="dark"] .guarantee-example {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .breakdown-item.cash {
    background: rgba(16, 185, 129, 0.2);
}

[data-bs-theme="dark"] .breakdown-item.bonus {
    background: rgba(236, 72, 153, 0.2);
}

/* ==================== Responsive ==================== */
@media (max-width: 767px) {
    .ace-hero {
        padding: 1.5rem 0;
    }

    .ace-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .ace-hero-metric {
        text-align: center;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .ace-hero-title {
        font-size: 1.5rem;
    }

    .ace-total-amount {
        font-size: 2rem;
    }

    .location-prompt-card {
        flex-direction: column;
        text-align: center;
    }

    .location-prompt-actions {
        width: 100%;
        flex-direction: column;
    }

    .location-prompt-actions .btn-theme-base {
        width: 100%;
    }

    .ace-nav-tabs {
        justify-content: flex-start;
    }

    .ace-tab-btn {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }

    .ace-tab-btn span:not(.ace-tab-count) {
        display: none;
    }

    .ace-pots-grid,
    .ace-winners-grid {
        grid-template-columns: 1fr;
    }

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

    .ace-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ace-pots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
