*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Arial,sans-serif;
}

body{
    background:#f4f6fb;
    color:#111827;
}

a{
    text-decoration:none;
    color:inherit;
}

.section-header{
    margin-bottom:20px;
}

.section-header h2{
    font-size:28px;
    margin-bottom:5px;
}

.section-header p{
    color:#64748b;
}

.section-margin{
    margin-top:30px;
}

.casino-grid-global{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:15px;
    margin-bottom:20px;
}

.casino-selector{
    max-width:1400px;
    margin:0 auto;
    padding:60px 30px;
}

.casino-header{
    text-align:center;
    margin-bottom:50px;
}

.casino-header h1{
    font-size:42px;
    margin-bottom:10px;
}

.casino-header p{
    color:#64748b;
    font-size:16px;
}

.casino-grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:15px;
    margin-bottom:20px;
}

.casino-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    transition:.2s;
    box-shadow:0 10px 30px rgba(15,23,42,.06);

    display:flex;
    flex-direction:column;
    align-items:center;

    text-decoration:none;
    color:inherit;
}

.casino-card:hover{
    transform:translateY(-4px);
    border-color:#2563eb;
}

.casino-card img{
    width:100%;
    height:120px;
    object-fit:contain;
    padding:15px;
    background:#000000;
}
.casino-card-global img{
    padding: 0px!important;
}

.casino-card-content{
    width:100%;
    padding:14px 10px;
    text-align:center;
}

.casino-card-content h2{
    margin:0;
    font-size:15px;
    font-weight:700;
    color:#1e293b;
}

.casino-card-content p,
.casino-btn{
    display:none;
}

.global-actions{
    margin-bottom:22px;
}

.select-all-box{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:15px;
    font-weight:700;
    color:#1e293b;
    cursor:pointer;
}

.select-all-box input{
    appearance:none;
    -webkit-appearance:none;
    width:24px;
    height:24px;
    border:1px solid #e5e7eb;
    border-radius:7px;
    background:#fff;
    cursor:pointer;
    position:relative;
    transition:.2s;
}

.select-all-box input:checked{
    background:#2563eb;
}

.select-all-box input:checked::after{
    content:"✓";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    color:#fff;
    font-size:15px;
    font-weight:800;
}

.global-casino-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:16px;
}

.global-casino-card{
    position:relative;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:24px 18px 18px;
    cursor:pointer;
    text-align:center;
    transition:.2s;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.global-casino-card:hover{
    transform:translateY(-3px);
    border-color:#2563eb;
}

.global-casino-card:has(input:checked){
    border-color:#2563eb;
    background:#eff6ff;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.global-casino-card input{
    appearance:none;
    -webkit-appearance:none;

    position:absolute;
    top:8px;
    right:8px;

    width:30px;
    height:30px;

    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;

    cursor:pointer;
    transition:.2s;
}

.global-casino-card input:checked{
    background:#2563eb;
}

.global-casino-card input:checked::after{
    content:"✓";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    color:#fff;
    font-size:18px;
    font-weight:900;
}

.global-casino-card img{
    width:100%;
    height:90px;
    object-fit:contain;
    margin-bottom:15px;
}

.global-casino-card span{
    display:block;
    font-size:15px;
    font-weight:800;
    color:#0f172a;
}

@media(max-width:1200px){
    .global-casino-grid{
        grid-template-columns:repeat(4, 1fr);
    }
}

@media(max-width:900px){
    .global-casino-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media(max-width:600px){
    .global-casino-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

.admin-layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#0f172a;
    color:#fff;
    padding:24px 18px;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
}

.logo{
    font-size:22px;
    font-weight:800;
    margin-bottom:30px;
}

.nav-link{
    display:block;
    width:100%;
    border:none;
    background:transparent;
    color:#cbd5e1;
    text-align:left;
    padding:10px 14px;
    border-radius:8px;
    margin-bottom:8px;
    cursor:pointer;
    transition:.2s;
    font-size:16px;
    font-weight:600;
    line-height:1.3;
}

.nav-link:hover,
.nav-link.active{
    background:#2563eb;
    color:#fff;
}

.main{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:30px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.topbar h1{
    font-size:28px;
    margin-bottom:5px;
}

.topbar span{
    color:#64748b;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:18px;
}

.card{
    display:block;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:22px;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.card:hover{
    transform:translateY(-3px);
    border-color:#2563eb;
}

.card h3{
    margin-bottom:8px;
    color:#111827;
}

.card p{
    color:#64748b;
    font-size:14px;
    line-height:1.6;
}

.editor{
    display:none;
    background:#fff;
    border-radius:18px;
    padding:26px;
    border:1px solid #e5e7eb;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.editor.active{
    display:block;
}

.editor-header{
    border-bottom:1px solid #e5e7eb;
    margin-bottom:24px;
    padding-bottom:16px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full{
    grid-column:span 2;
    margin-bottom: 15px;
}

.section-title{
    grid-column:span 2;
    margin-top:15px;
    padding-top:20px;
    border-top:1px solid #e5e7eb;
    font-size:18px;
    font-weight:700;
}

label{
    margin-bottom:7px;
    font-size:14px;
    font-weight:600;
}

input,
textarea,
select{
    width:100%;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    outline:none;
}

select{
    appearance:none;

    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat;

    background-position:right 18px center;
    padding-right:45px;
}

textarea{
    min-height:120px;
    resize:vertical;
}

.actions{
    margin-top:25px;
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

.btn{
    border:none;
    padding:12px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
}

.btn-secondary{
    background:#e5e7eb;
}

.status{
    display:none;
    color:#16a34a;
    font-size:14px;
}

.faq-admin-item{
    background:#fafafa;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px;
    margin-bottom:15px;
}

.faq-admin-item .form-group{
    margin-bottom:15px;
}

.editor{
    display:block;
}

.faq-admin-item{
    position:relative;
    background:#fafafa;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px;
    margin-bottom:15px;
}

.faq-remove{
    position:absolute;
    top:8px;
    right:8px;
    width:20px;
    height:20px;
    border:none;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    cursor:pointer;
    font-size:14px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;

    line-height:1;
    padding:0;
}

@media(max-width:900px){
    .sidebar{
        position:relative;
        width:100%;
    }

    .admin-layout{
        flex-direction:column;
    }

    .main{
        width:100%;
        margin-left:0;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .form-group.full,
    .section-title{
        grid-column:span 1;
    }
}

.editor-header-flex{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.editor-header-flex h2{
    margin:0;
}

/* BLOG GRID */

.cms-blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:20px;
    margin-top:20px;
}

.cms-blog-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    transition:.2s;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.cms-blog-card:hover{
    transform:translateY(-3px);
}

.cms-blog-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.cms-blog-content{
    padding:20px;
}

.cms-blog-date{
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    color:#64748b;
    margin-bottom:12px;
}

.cms-blog-content h3{
    font-size:22px;
    line-height:1.3;
    margin-bottom:12px;
}

.cms-blog-desc{
    color:#64748b;
    line-height:1.6;
    margin-bottom:18px;
}

.cms-blog-actions{
    display:flex;
    gap:10px;
}

.btn-danger{
    background:#ef4444;
    color:#fff;
}

.btn-danger:hover{
    background:#dc2626;
}

.cms-users-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.cms-user-card{
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:20px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
}

.cms-user-card h3{
    margin-bottom:5px;
}

.cms-user-card p{
    color:#64748b;
}

.user-role{
    padding:7px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.user-role.super-admin{
    background:#dbeafe;
    color:#1d4ed8;
}

.user-role.editor{
    background:#f1f5f9;
    color:#334155;
}

.cms-user-actions{
    display:flex;
    gap:10px;
}

.permissions-grid{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.permission-card{
    display:flex;
    align-items:center;
    gap:10px;

    padding:14px 18px;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;

    font-weight:700;
    cursor:pointer;
    transition:.2s;

    width:auto;
    flex:none;
}

.permission-card input{
    width:18px;
    height:18px;
}

.permission-card:hover{
    border-color:#2563eb;
}

.permission-card:has(input:checked){
    background:#eff6ff;
    border-color:#2563eb;
    color:#2563eb;
}

.permission-all{
    background:#f8fafc;
}

.casino-permission-box{
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:20px;
    margin-bottom:20px;
    background:#fff;
}

.casino-title{
    margin-bottom:18px;
}

.casino-title label{
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
}

.casino-title input{
    width:20px;
    height:20px;
}

.casino-title span{
    font-size:22px;
    font-weight:700;
    color:#0f172a;
}

.casino-title input:checked + span{
    color:#2563eb;
}

.casino-pages{
    margin-top:15px;
}

.page-content h2{
    color:#ffde70;
    margin-bottom:15px;
}

.page-content h3{
    color:#ffde70;
    margin-bottom:12px;
}

.page-content p{
    margin-bottom:15px;
    line-height:1.8;
}

.page-content ul,
.page-content ol{
    margin-top:10px;
    margin-bottom:25px;
    padding-left:22px;
}

.page-content li{
    margin-bottom:8px;
}

.page-content a{
    color:#ffde70;
    text-decoration:none;
}

.page-content a:hover{
    text-decoration:underline;
}

.page-content h2:not(:first-child),
.page-content h3:not(:first-child){
    margin-top:40px;
}
/* ══════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════ */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error   { background: #fee2e2; color: #b91c1c; }

/* ══════════════════════════════════════════════
   BUTTONS — small variant
══════════════════════════════════════════════ */
.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* ══════════════════════════════════════════════
   LOADING TEXT
══════════════════════════════════════════════ */
.loading-text {
    color: #94a3b8;
    padding: 20px 0;
    font-size: 14px;
}

/* ══════════════════════════════════════════════
   PAGES TABLE
══════════════════════════════════════════════ */
.pages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pages-table th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pages-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.pages-table tr:last-child td { border-bottom: none; }
.pages-table tr:hover td { background: #f8fafc; }
.pages-table td:last-child { display: flex; gap: 8px; justify-content: flex-end; }

.slug-tag {
    font-family: monospace;
    font-size: 12px;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 5px;
}

.block-count {
    font-weight: 700;
    color: #1e293b;
}

/* ══════════════════════════════════════════════
   STATUS BADGE
══════════════════════════════════════════════ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.status-badge.active   { background: #dcfce7; color: #166534; }
.status-badge.inactive { background: #fee2e2; color: #b91c1c; }

/* ══════════════════════════════════════════════
   BLOCK TYPE TAG (in block header)
══════════════════════════════════════════════ */
.block-type-tag {
    display: inline-block;
    font-family: monospace;
    font-size: 11px;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 5px;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════
   REORDER BUTTONS
══════════════════════════════════════════════ */
.reorder-btns {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.btn-reorder {
    width: 28px;
    height: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
    padding: 0;
}
.btn-reorder:hover {
    background: #e0e7ff;
    border-color: #6366f1;
    color: #4f46e5;
}

/* ══════════════════════════════════════════════
   BLOCK TYPE PICKER GRID (in page.php)
══════════════════════════════════════════════ */
.block-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.block-type-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: .15s;
}
.block-type-card:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.block-type-card strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}
.block-type-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ══════════════════════════════════════════════
   PAGE SETTINGS — enabled toggle
══════════════════════════════════════════════ */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-track {
    width: 42px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    transition: .2s;
    flex-shrink: 0;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-input:checked + .toggle-track {
    background: #22c55e;
}
.toggle-input:checked + .toggle-track::after {
    transform: translateX(18px);
}
.toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* ══════════════════════════════════════════════
   BACK LINK
══════════════════════════════════════════════ */
.back-link {
    display: inline-block;
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 4px;
}
.back-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   NAV BACK (sidebar)
══════════════════════════════════════════════ */
.nav-back {
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 14px;
    margin-bottom: 16px;
}
.nav-back:hover { background: transparent; color: #fff; }

/* ══════════════════════════════════════════════
   NAV SECTION LABEL
══════════════════════════════════════════════ */
.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #475569;
    padding: 14px 14px 6px;
}

/* ══════════════════════════════════════════════
   NAV LINK ICONS
══════════════════════════════════════════════ */
.nav-link i, .nav-back i {
    width: 18px;
    text-align: center;
    margin-right: 8px;
    font-size: 14px;
}

/* ══════════════════════════════════════════════
   ICON BUTTONS
══════════════════════════════════════════════ */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: .15s;
}
.btn-icon.btn-primary   { background: #2563eb; color: #fff; }
.btn-icon.btn-secondary { background: #e5e7eb; color: #374151; }
.btn-icon.btn-danger    { background: #ef4444; color: #fff; }
.btn-icon:hover { opacity: .85; transform: scale(1.05); }
