/* ============================================
   AffVision — Dashboard Styles (Partner + Admin)
   ============================================ */

:root {
    --side-w: 260px;
    --top-h: 60px;
    --rose-500: #f43f7a;
    --rose-600: #d6245e;
    --rose-50: #fff1f5;
    --rose-100: #ffe4ed;
    --lavender-50: #f5f0ff;
    --gradient-primary: linear-gradient(135deg, #f43f7a 0%, #a87ef0 100%);
    --bg-dash: #f5f6fa;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dash);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============ SIDEBAR ============ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--side-w);
    height: 100vh;
    background: #ffffff;
    color: var(--text-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header img {
    height: 44px;
    width: auto;
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.sidebar-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    padding: 0 24px;
    margin: 20px 0 8px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--rose-50);
}

.sidebar-link.active {
    color: var(--rose-600);
    background: var(--rose-50);
    border-left-color: var(--rose-500);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #6b7280;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

.sidebar-link:hover svg { stroke: #111827; }
.sidebar-link.active svg { stroke: #d6245e; }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info { overflow: hidden; }
.sidebar-user-name { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.75rem; color: var(--text-tertiary); }

/* ============ TOPBAR ============ */
.topbar {
    position: fixed;
    top: 0;
    left: var(--side-w);
    right: 0;
    height: var(--top-h);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 90;
}

.topbar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-btn {
    padding: 7px 18px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    transition: var(--transition);
    text-decoration: none;
}

.topbar-btn:hover { border-color: var(--rose-500); color: var(--rose-500); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    margin-left: var(--side-w);
    padding: calc(var(--top-h) + 28px) 28px 40px;
    min-height: 100vh;
}

/* ============ CARDS ============ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ============ STAT WIDGETS ============ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-card-icon {
    width: 16px;
    height: 16px;
    stroke: var(--rose-400);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 8px;
    opacity: 0.7;
}

.stat-card-icon {
    width: 16px;
    height: 16px;
    stroke: #f43f7a;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 8px;
    display: block;
}

.stat-card-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card-value.positive { color: var(--green); }
.stat-card-value.negative { color: var(--red); }

.stat-card-change {
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 500;
}

.stat-card-change.up { color: var(--green); }
.stat-card-change.down { color: var(--red); }

/* ============ TABLES ============ */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead th {
    background: var(--bg-dash);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
}

tbody tr:hover { background: var(--rose-50); }
tbody tr:last-child td { border-bottom: none; }

td.positive { color: var(--green); font-weight: 600; }
td.negative { color: var(--red); font-weight: 600; }
td.bold { font-weight: 600; color: var(--text-primary); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: #fff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 3px rgba(244,63,122,0.1);
}

.form-textarea { resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; }

.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-warning { background: var(--yellow); color: #fff; }

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

.btn-outline:hover { border-color: var(--rose-500); color: var(--rose-500); }

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }

.btn:active, .btn-copy:active, .topbar-btn:active, button:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}
.btn-full { width: 100%; justify-content: center; }

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background: #fef3c7; color: #d97706; }
.badge-approved { background: #d1fae5; color: #059669; }
.badge-rejected { background: #fee2e2; color: #dc2626; }
.badge-verified { background: #d1fae5; color: #059669; }
.badge-unverified { background: #f3f4f6; color: #6b7280; }

/* ============ LINK COPY BOX ============ */
.link-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-dash);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.link-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    padding: 4px 0;
}

.link-box .btn-copy {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ============ ALERTS ============ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ============ DATE FILTER ============ */
.date-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-filter .btn { padding: 6px 16px; }
.date-filter .btn.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* ============ BLOG ============ */
.blog-preview {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.blog-preview:last-child { border-bottom: none; }

.blog-preview-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.78rem;
}

.blog-author { font-weight: 600; color: var(--text-primary); }
.blog-date { color: var(--text-tertiary); }

.blog-preview-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.blog-preview-title a { color: var(--text-primary); }
.blog-preview-title a:hover { color: var(--rose-500); }

.blog-preview-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-post-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.blog-post-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.blog-post-content p { margin-bottom: 16px; }

.video-embed {
    margin: 24px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ============ DEAL CARD ============ */
.deal-card {
    background: linear-gradient(135deg, #111827, #1e293b);
    border: none;
    color: #fff;
}

.deal-card .card-title { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }

.deal-card .deal-card-inner {
    flex-wrap: wrap;
}

.deal-values { display: flex; gap: 24px; flex-wrap: wrap; }

.deal-value-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.deal-value-num { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; color: #fff; }

.deal-calc {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}

.deal-calc strong { color: rgba(255,255,255,0.85); }

.deal-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    border-left: 3px solid rgba(244,63,122,0.5);
}

/* ============ CASINO LINK CARD ============ */
.casino-link-card { padding: 0; overflow: hidden; }

.casino-link-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.casino-link-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 160px;
}

.casino-link-content { padding: 24px; }

/* Pulsing button */
.pulse-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 122, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(244, 63, 122, 0); }
}

/* ============ TOOLS ============ */
.tools-game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tools-game-info {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tools-game-visual {
    background: #0f0f23;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.tools-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .tools-game-card { grid-template-columns: 1fr; }
    .tools-game-visual { min-height: 120px; padding: 24px; }
    .tools-game-info { padding: 24px; }
    .tools-controls-grid { grid-template-columns: 1fr; }
    .tools-game-info h3 { font-size: 1.1rem; }
    .tools-game-info p { font-size: 0.82rem; }
    .tools-game-visual img { width: 70px; }
}

/* ============ FAQ ============ */
.faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

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

.faq-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-item strong { color: var(--text-primary); }

/* ============ EARNINGS BREAKDOWN ============ */
.earnings-breakdown { }

.earning-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.92rem;
}

.earning-label { color: var(--text-secondary); }
.earning-value { font-weight: 500; color: var(--text-primary); text-align: right; }
.earning-value.bold { font-weight: 700; font-size: 1.05rem; }

.earning-calc {
    background: var(--bg-dash);
    margin: 4px -24px;
    padding: 12px 24px;
    border-radius: 0;
}

.earning-calc .earning-label { font-size: 0.82rem; color: var(--text-tertiary); }

.earning-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.earning-total {
    padding-top: 16px;
    font-size: 1.05rem;
}

.earning-total .earning-label { font-weight: 700; color: var(--text-primary); }
.earning-total .earning-value { font-weight: 800; font-size: 1.3rem; color: var(--green); }

/* ============ BLOG CARDS ============ */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta { display: flex; gap: 8px; margin-bottom: 6px; }
.blog-card-author { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.blog-card-date { font-size: 0.75rem; color: var(--text-tertiary); }

.blog-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--rose-500); }

.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.dash-blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.dash-blog-grid .blog-card-img {
    height: 120px;
}

.dash-blog-grid .blog-card-body {
    padding: 12px;
}

.dash-blog-grid .blog-card-title {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-hero-img {
    width: calc(100% + 48px);
    margin: -24px -24px 24px;
    height: 240px;
    object-fit: cover;
}

/* ============ EDITOR ============ */
.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--bg-dash);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.editor-toolbar button {
    padding: 5px 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.editor-toolbar button:hover { background: var(--rose-50); border-color: var(--rose-300); }

.editor-sep {
    width: 1px;
    background: var(--border);
    margin: 0 4px;
}

.editor-area {
    min-height: 250px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-primary);
    outline: none;
    overflow-y: auto;
}

.editor-area:focus { border-color: var(--rose-400); }

.editor-area h3 { font-size: 1.1rem; font-weight: 700; margin: 16px 0 8px; }
.editor-area ul { margin-left: 20px; }

/* ============ BLOG SLIDER ============ */
.blog-slider {
    position: relative;
    overflow: hidden;
}

.blog-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.blog-slide {
    min-width: 100%;
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.blog-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.blog-slide-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
}

.blog-slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-slide-excerpt {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.blog-slider-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
}

.blog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.blog-dot.active { background: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    .topbar { left: 0; }
    .topbar-title { font-size: 0.95rem; }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: block; }

    .stat-cards { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .card-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    table { font-size: 0.8rem; }
    thead th { padding: 8px 10px; font-size: 0.7rem; }
    tbody td { padding: 10px; }

    .link-box { flex-direction: column; }
    .link-box input { width: 100%; }
    .blog-cards-grid, .dash-blog-grid { grid-template-columns: 1fr; }
    .casino-link-inner { grid-template-columns: 1fr; }
    .deal-card .deal-card-inner { flex-direction: column; gap: 16px; }
    .deal-card .deal-card-inner img { width: 56px; height: 56px; }
    .deal-values { gap: 16px; }
    .deal-value-num { font-size: 1.4rem; }
    .deal-calc { font-size: 0.78rem; }
    .blog-slide { aspect-ratio: 16/9; }
    .blog-slide-title { font-size: 0.92rem; }
    .blog-slide-excerpt { font-size: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .casino-link-img { max-height: 160px; }
    .deal-values { gap: 24px; }
    .deal-value-num { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .main-content { padding: calc(var(--top-h) + 16px) 16px 32px; }
    .card { padding: 16px; }
    .stat-cards { grid-template-columns: 1fr; }
    .stat-card-value { font-size: 1.3rem; }
    .topbar-right span { display: none; }
}
