
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem clamp(1.5rem, 5vw, 2rem);
}

/* Page Header */
.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #68717f;
    font-size: 1.05rem;
}

/* Auth Gate */
.auth-gate {
    background: white;
    border-radius: var(--r-md);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e3ddd3;
    box-shadow: var(--shadow-1);
}

.auth-gate h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.75rem;
    color: #1a2332;
    margin-bottom: 0.75rem;
}

.auth-gate p {
    color: #68717f;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.auth-gate-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: #ff6b4a;
    color: white;
    text-decoration: none;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

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

.stat-card {
    background: white;
    border-radius: var(--r-md);
    padding: 1.5rem;
    border: 1px solid #e3ddd3;
    box-shadow: var(--shadow-1);
    text-align: center;
}

.stat-card .stat-label {
    color: #68717f;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a2332;
    line-height: 1;
}

.stat-card .stat-value.positive { color: #1f7a5c; }
.stat-card .stat-value.negative { color: #a83a2c; }
.stat-card .stat-value.accent { color: #ff6b4a; }

/* Chart Section */
.chart-section {
    background: white;
    border-radius: var(--r-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e3ddd3;
    box-shadow: var(--shadow-1);
    position: relative;
}

.chart-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #1a2332;
    margin-bottom: 1.5rem;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Premium blur overlay for free members */
.chart-blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.7);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 10;
}

.chart-blur-overlay h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #1a2332;
    margin-bottom: 0.5rem;
}

.chart-blur-overlay p {
    color: #68717f;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.upgrade-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: #ff6b4a;
    color: white;
    text-decoration: none;
    border-radius: var(--r-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* Jump-to-casino-stats button */
.jump-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    background: white;
    color: #1a2332;
    text-decoration: none;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.jump-btn:hover {
    border-color: #ff6b4a;
    color: #ff6b4a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
}

/* Performance by Casino */
.casino-stats-section {
    background: white;
    border-radius: var(--r-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e3ddd3;
    box-shadow: var(--shadow-1);
}

.casino-stats-header {
    margin-bottom: 1.25rem;
}

.casino-stats-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #1a2332;
    margin: 0 0 0.25rem;
}

.casino-stats-sub {
    color: #68717f;
    font-size: 0.9rem;
    margin: 0;
}

.casino-stats-table-wrapper {
    overflow-x: auto;
}

.casino-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.casino-stats-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #68717f;
    border-bottom: 2px solid #f2ede5;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.casino-stats-table th:hover {
    color: #1a2332;
}

.casino-stats-table th.num,
.casino-stats-table td.num {
    text-align: right;
}

.casino-stats-table th .sort-indicator {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    color: #ff6b4a;
}

.casino-stats-table td {
    padding: 1rem;
    border-bottom: 1px solid #f8f5f0;
    color: #48536a;
    font-size: 0.95rem;
    white-space: nowrap;
}

.casino-stats-table tr:last-child td {
    border-bottom: none;
}

.casino-stats-table tr:hover td {
    background: #faf7f2;
}

.casino-stats-table .casino-name {
    font-weight: 600;
    color: #1a2332;
}

.casino-stats-table .casino-group {
    color: #99a2b0;
    font-size: 0.78rem;
    font-weight: 400;
    margin-left: 0.4rem;
}

.casino-stats-table .casino-custom-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    background: #f2ede5;
    color: #68717f;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--r-pill);
}

@media (max-width: 768px) {
    .casino-stats-table th,
    .casino-stats-table td {
        padding: 0.65rem 0.6rem;
        font-size: 0.85rem;
    }
    .casino-stats-table th:nth-child(4),
    .casino-stats-table td:nth-child(4),
    .casino-stats-table th:nth-child(6),
    .casino-stats-table td:nth-child(6) {
        display: none;
    }
}

/* Entries Section */
.entries-section {
    background: white;
    border-radius: var(--r-md);
    padding: 2rem;
    border: 1px solid #e3ddd3;
    box-shadow: var(--shadow-1);
}

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

.entries-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #1a2332;
    margin: 0;
}

.entries-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--wash-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
}

.entry-log-search,
.entry-log-category {
    min-height: 2.35rem;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink-70);
    font: 0.88rem var(--font-body);
}

.entry-log-search {
    flex: 1 1 260px;
    min-width: 220px;
}

.entry-log-category {
    flex: 0 1 180px;
}

.entry-log-search:focus,
.entry-log-category:focus {
    outline: none;
    border-color: var(--coral);
}

.entry-log-clear {
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border: 0;
    background: transparent;
    color: var(--ink-45);
    font: 0.82rem var(--font-body);
    text-decoration: underline;
    cursor: pointer;
}

.entry-log-clear:hover { color: var(--coral); }

.entry-log-count {
    margin-left: auto;
    color: var(--ink-45);
    font-size: 0.82rem;
    white-space: nowrap;
}

.add-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: #ff6b4a;
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-entry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* Entries Table */
.entries-table-scroll {
    overflow-x: auto;
}

.entries-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.entries-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #68717f;
    border-bottom: 2px solid #f2ede5;
    white-space: nowrap;
}

.entries-table th.num,
.entries-table td.num {
    text-align: right;
}

.entry-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.entry-sort-btn:hover { color: var(--ink); }

.entry-sort-indicator {
    color: var(--coral);
    font-size: 0.75rem;
}

.entries-table th:first-child { width: 27%; }
.entries-table th:nth-child(2) { width: 13%; }
.entries-table th:nth-child(3) { width: 11%; }
.entries-table th:nth-child(4),
.entries-table th:nth-child(5),
.entries-table th:nth-child(6) { width: 11%; }
.entries-table th:nth-child(7) { width: 18%; }
.entries-table th:last-child { width: 8%; }

.entry-offer-name {
    color: var(--ink);
    font-weight: 600;
}

.entry-offer-casino {
    display: block;
    margin-top: 0.15rem;
    color: var(--ink-35);
    font-size: 0.8rem;
}

.entry-category-chip {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
}

.entry-category-chip.casino {
    background: var(--positive-05);
    border-color: var(--positive-20);
    color: var(--positive-deep);
}

.entry-category-chip.sports {
    background: var(--info-05);
    border-color: var(--info-20);
    color: var(--info-strong);
}

.entry-category-chip.custom {
    background: var(--caution-05);
    border-color: var(--caution-20);
    color: var(--caution-deep);
}

.entries-no-results td {
    padding: 2rem 1rem;
    color: var(--ink-45);
    text-align: center;
}

.entries-table td {
    padding: 1rem;
    border-bottom: 1px solid #f8f5f0;
    color: #48536a;
    font-size: 0.95rem;
}

.entries-table tr:last-child td {
    border-bottom: none;
}

.entries-table tr:hover td {
    background: #faf7f2;
}

.profit-positive { color: #1f7a5c; font-weight: 600; }
.profit-negative { color: #a83a2c; font-weight: 600; }

.row-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #99a2b0;
    padding: 0.25rem;
    border-radius: var(--r-sm);
    transition: color 0.2s ease;
    font-size: 1rem;
    margin-left: 0.25rem;
}

.row-action-btn.duplicate:hover { color: #1f7a5c; }
.row-action-btn.edit:hover { color: #ff6b4a; }
.row-action-btn.delete:hover { color: #a83a2c; }
.entry-actions { white-space: nowrap; text-align: right; }

/* Tidy-up modal */
.tidy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tidy-modal {
    background: white;
    border-radius: var(--r-md);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-3);
}

.tidy-modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f2ede5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.tidy-modal-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #1a2332;
    margin: 0 0 0.35rem;
}

.tidy-modal-header p {
    color: #68717f;
    font-size: 0.9rem;
    margin: 0;
}

.tidy-modal-body {
    padding: 1.25rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.tidy-row {
    display: grid;
    grid-template-columns: 1fr auto 1.4fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f2ede5;
}

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

.tidy-row .source-name {
    font-weight: 600;
    color: #1a2332;
}

.tidy-row .source-count {
    color: #99a2b0;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.tidy-row .arrow {
    color: #c4cad4;
    font-size: 1.2rem;
}

.tidy-row select {
    padding: 0.45rem 0.6rem;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.88rem;
    background: white;
    width: 100%;
}

.tidy-row .confidence {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.5rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    white-space: nowrap;
}

.confidence.exact { background: #dbeae4; color: #114a39; }
.confidence.high { background: #dbeafe; color: #24466d; }
.confidence.fuzzy { background: #f5ead2; color: #7d4a12; }
.confidence.none { background: #f2ede5; color: #68717f; }

.tidy-modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #f2ede5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tidy-modal-footer .secondary {
    background: none;
    border: none;
    color: #68717f;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.tidy-modal-footer .primary {
    padding: 0.75rem 1.5rem;
    background: #ff6b4a;
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.tidy-modal-footer .primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tidy-cta-banner {
    background: rgba(90, 90, 168,0.08);
    border: 1px solid rgba(90, 90, 168,0.2);
    border-radius: var(--r-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tidy-cta-banner p {
    margin: 0;
    color: #48536a;
    font-size: 0.9rem;
}

.tidy-cta-banner button {
    padding: 0.55rem 1.1rem;
    background: #1a2332;
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.tidy-cta-banner .dismiss {
    background: none;
    color: #99a2b0;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #99a2b0;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Entries pagination */
.entries-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
}
.pagin-btn {
    background: white;
    border: 2px solid #e3ddd3;
    border-radius: var(--r-md);
    padding: 0.4rem 0.9rem;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #48536a;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pagin-btn:hover:not(:disabled) { border-color: #ff6b4a; color: #ff6b4a; }
.pagin-btn:disabled { opacity: 0.35; cursor: default; }
.pagin-label {
    font-size: 0.85rem;
    color: #68717f;
    min-width: 90px;
    text-align: center;
}

/* Free member limited entries notice */
.limited-entries-notice {
    background: rgba(255,107,74,0.08);
    border: 1px solid rgba(255,107,74,0.2);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.limited-entries-notice p {
    color: #48536a;
    font-size: 0.9rem;
    margin: 0;
}

.limited-entries-notice a {
    color: #ff6b4a;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: #99a2b0;
}

/* Period filter bar */
.period-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.45rem 1rem;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-pill);
    background: white;
    color: #68717f;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.period-btn:hover {
    border-color: #ff6b4a;
    color: #ff6b4a;
}

.period-btn.active {
    background: #ff6b4a;
    border-color: #ff6b4a;
    color: white;
    font-weight: 600;
}

/* Custom date range */
.custom-range {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    background: white;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-md);
    padding: 0.85rem 1.1rem;
}

.custom-range.open { display: flex; }

.custom-range label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #68717f;
}

.custom-range input[type="date"] {
    padding: 0.45rem 0.65rem;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #48536a;
    background: white;
}

.custom-range input[type="date"]:focus {
    outline: none;
    border-color: #ff6b4a;
}

.custom-range .custom-range-sep { color: #99a2b0; font-size: 0.85rem; }

.custom-range .custom-range-clear {
    background: none;
    border: none;
    color: #68717f;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    font-family: 'Work Sans', sans-serif;
}

.custom-range .custom-range-clear:hover { color: #ff6b4a; }

@media (max-width: 768px) {
    .entries-toolbar {
        align-items: stretch;
    }

    .entry-log-search,
    .entry-log-category {
        flex-basis: 100%;
        min-width: 0;
    }

    .entry-log-count {
        margin-left: 0;
    }

    .entries-table {
        font-size: 0.85rem;
    }
    .stat-card .stat-value {
        font-size: 1.6rem;
    }
}

/* ---------- My Casinos (vault + tracker) ---------- */
.my-casinos-section {
    background: white;
    border-radius: var(--r-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e3ddd3;
    box-shadow: var(--shadow-1);
}

.my-casinos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.my-casinos-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #1a2332;
    margin: 0 0 0.25rem;
}

.my-casinos-sub {
    color: #68717f;
    font-size: 0.9rem;
    margin: 0;
    max-width: 540px;
}

.add-casino-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: #ff6b4a;
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.add-casino-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

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

.import-cta-banner {
    background: rgba(31, 122, 92,0.08);
    border: 1px solid rgba(31, 122, 92,0.25);
    border-radius: var(--r-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.import-cta-banner p {
    margin: 0;
    color: #114a39;
    font-size: 0.9rem;
}

.import-cta-banner button {
    padding: 0.55rem 1.1rem;
    background: #1f7a5c;
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.vault-cap-notice {
    background: rgba(255,107,74,0.08);
    border: 1px solid rgba(255,107,74,0.25);
    border-radius: var(--r-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    display: none;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.vault-cap-notice p {
    margin: 0;
    color: #48536a;
    font-size: 0.9rem;
}

.vault-cap-notice a {
    color: #ff6b4a;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.my-casinos-table-wrapper {
    overflow-x: auto;
}

.my-casinos-table {
    width: 100%;
    border-collapse: collapse;
}

.my-casinos-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #68717f;
    border-bottom: 2px solid #f2ede5;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.my-casinos-table th:hover { color: #1a2332; }

.my-casinos-table th.num,
.my-casinos-table td.num {
    text-align: right;
}

.my-casinos-table th .sort-indicator {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    color: #ff6b4a;
}

.my-casinos-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f8f5f0;
    color: #48536a;
    font-size: 0.93rem;
    white-space: nowrap;
}

.my-casinos-table tr:last-child td {
    border-bottom: none;
}

.my-casinos-table tr.in-vault:hover td { background: #faf7f2; }
.my-casinos-table tr.not-in-vault td { background: #faf7f2; }
.my-casinos-table tr.not-in-vault:hover td { background: #f2ede5; }

.my-casinos-table .casino-name {
    font-weight: 600;
    color: #1a2332;
}

.my-casinos-table .casino-group {
    color: #99a2b0;
    font-size: 0.78rem;
    font-weight: 400;
    margin-left: 0.4rem;
}

.my-casinos-table .casino-custom-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    background: #f2ede5;
    color: #68717f;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--r-pill);
}

.my-casinos-table .status-empty {
    color: #c4cad4;
}

.my-casinos-table .actions-cell {
    text-align: right;
    white-space: nowrap;
}
.my-casinos-table .vault-last-played { color: var(--ink-45); }

.my-casinos-table .row-action-btn.add-to-vault {
    background: #f2ede5;
    color: #48536a;
    border: 1px solid #e3ddd3;
    padding: 0.35rem 0.7rem;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
}

.my-casinos-table .row-action-btn.add-to-vault:hover {
    background: #ff6b4a;
    color: white;
    border-color: #ff6b4a;
}

.status-pill {
    display: inline-block;
    padding: 0.18rem 0.65rem;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-active { background: #dbeae4; color: #114a39; }
.status-restricted { background: #f5ead2; color: #7d4a12; }
.status-gubbed { background: #f2ddd8; color: #7d271d; }
.status-closed { background: #f2ede5; color: #68717f; }

.kyc-yes { color: #1f7a5c; font-weight: 700; font-size: 1.05rem; }
.kyc-no { color: #c4cad4; }

.vault-match-hint {
    display: block;
    font-size: 0.75rem;
    color: #7d4a12;
    margin-top: 0.2rem;
}
.vault-match-hint--none {
    color: #99a2b0;
}
.vault-match-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: #965914;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.my-casinos-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #68717f;
}

.my-casinos-empty .empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.my-casinos-empty p { margin-bottom: 1.25rem; }

@media (max-width: 768px) {
    .my-casinos-table th,
    .my-casinos-table td {
        padding: 0.6rem 0.55rem;
        font-size: 0.82rem;
    }
    .my-casinos-table th:nth-child(5),
    .my-casinos-table td:nth-child(5),
    .my-casinos-table th:nth-child(7),
    .my-casinos-table td:nth-child(7) {
        display: none;
    }
}

/* ---------- Account modal ---------- */
.account-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.account-modal {
    background: white;
    border-radius: var(--r-md);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-3);
}

.account-modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f2ede5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.account-modal-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    color: #1a2332;
    margin: 0 0 0.3rem;
}

.account-modal-header p {
    color: #68717f;
    font-size: 0.88rem;
    margin: 0;
}

.account-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #99a2b0;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}

.account-modal-body {
    padding: 1.25rem 1.75rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.account-form-row { position: relative; }

.account-form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #48536a;
    margin-bottom: 0.4rem;
}

.account-form-row input[type="text"],
.account-form-row input[type="number"],
.account-form-row input[type="date"],
.account-form-row textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background: white;
}

.account-form-row input:focus,
.account-form-row textarea:focus {
    outline: none;
    border-color: #ff6b4a;
}

.account-form-row input:disabled {
    background: #f8f5f0;
    color: #99a2b0;
    cursor: not-allowed;
}

.account-form-row textarea { resize: vertical; min-height: 70px; }

.account-form-hint {
    color: #99a2b0;
    font-size: 0.78rem;
    margin: 0.3rem 0 0;
}

.account-match-hint {
    font-size: 0.78rem;
    margin: 0.35rem 0 0;
    display: none;
}

.account-casino-suggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: white;
    border: 1px solid #e3ddd3;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
}
.account-casino-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.85rem;
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.92rem;
}
.account-casino-option strong { color: var(--ink-deep); }
.account-casino-option span { color: var(--ink-45); font-size: 0.8rem; margin-left: 0.5rem; }
.account-casino-option.custom { background: var(--canvas); font-size: 0.88rem; color: var(--ink-45); }

.status-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-radio {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid #e3ddd3;
    border-radius: var(--r-pill);
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    color: #48536a;
}

.status-radio:has(input:checked) {
    border-color: #ff6b4a;
    background: rgba(255,107,74,0.06);
    color: #1a2332;
    font-weight: 600 !important;
}

.status-radio input { margin: 0; }

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-form-grid .account-form-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.account-modal-error {
    background: #f2ddd8;
    border: 1px solid #e0b3ab;
    color: #932e22;
    border-radius: var(--r-md);
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
}

.account-modal-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid #f2ede5;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.account-modal-cancel {
    background: none;
    border: none;
    color: #68717f;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem;
}

.account-modal-save {
    padding: 0.7rem 1.4rem;
    background: #ff6b4a;
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.account-modal-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-modal-delete {
    padding: 0.55rem 1rem;
    background: white;
    color: #932e22;
    border: 1.5px solid #fecaca;
    border-radius: var(--r-md);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.account-modal-delete:hover { background: #f2ddd8; }

@media (max-width: 540px) {
    .account-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Full dashboard CTA ---------- */
.dashboard-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #1a2332;
    border-radius: var(--r-md);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 107, 74, 0.25);
    box-shadow: var(--shadow-2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    pointer-events: none;
}

.dashboard-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    border-color: rgba(255, 107, 74, 0.5);
}

.dashboard-cta-text { flex: 1; min-width: 240px; position: relative; z-index: 1; }

.dashboard-cta-text h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: white;
}

.dashboard-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dashboard-cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: #ff6b4a;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-2);
}

.dashboard-cta-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}

.dashboard-cta:hover .dashboard-cta-icon {
    transform: translateX(4px);
}
