:root {
    --bg: #0b0f1a;
    --bg-2: #111827;
    --surface: #151c2c;
    --surface-2: #1c2538;
    --border: rgba(255, 255, 255, .08);
    --text: #f5f7fb;
    --muted: #8b95a9;
    --gold: #f7c948;
    --orange: #f08c2e;
    --green: #22c55e;
    --violet: #8b5cf6;
    --radius: 16px;
} 

* { box-sizing: border-box; }

body.te-body {
    margin: 0;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, .18), transparent 60%),
        radial-gradient(800px 500px at -10% 10%, rgba(247, 201, 72, .10), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: 'Poppins', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.te-body a { color: inherit; text-decoration: none; }
.te-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.te-main { flex: 1; }

/* Header */
.te-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 15, 26, .75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.te-header .te-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.te-logo img { height: 36px; display: block; }
.te-nav { display: flex; align-items: center; gap: 8px; }
.te-nav a.te-link {
    padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px;
    transition: color .2s, background .2s;
}
.te-nav a.te-link:hover { color: var(--text); background: var(--surface); }
.te-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
    border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.te-btn-primary { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #0b0f1a !important; }
.te-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(247, 201, 72, .3); }
.te-btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.te-btn-ghost:hover { background: var(--surface-2); }
.te-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), #3b82f6);
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff;
}
.te-menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

@media (max-width: 767px) {
    .te-menu-toggle { display: block; }
    .te-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; padding: 16px;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        display: none;
    }
    .te-nav.open { display: flex; }
    .te-nav .te-btn { justify-content: center; }
}

/* Hero */
.te-hero { padding: 56px 0 24px; }
.te-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.te-hero h1 span { background: linear-gradient(135deg, var(--gold), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.te-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0; }
.te-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.te-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; font-size: 13px; color: var(--muted); }
.te-stat b { color: var(--text); font-size: 16px; margin-right: 4px; }

/* Section heads */
.te-section { padding: 32px 0; }
.te-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.te-section-head h2 { font-size: 24px; font-weight: 700; margin: 0; }
.te-section-head .te-sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.te-arrows { display: flex; gap: 8px; }
.te-arrow {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s;
}
.te-arrow:hover { background: var(--surface-2); }
.te-arrow.swiper-button-disabled { opacity: .35; cursor: default; }

/* Cards */
.te-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.te-card:hover { transform: translateY(-4px); border-color: rgba(247, 201, 72, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.te-card-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.te-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.te-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; background: rgba(11, 15, 26, .75); backdrop-filter: blur(6px); color: var(--gold);
    border: 1px solid rgba(247, 201, 72, .3);
}
.te-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.te-card-title { font-size: 17px; font-weight: 600; margin: 0; }
.te-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.te-chip { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.te-chip-1 { background: rgba(34, 197, 94, .12); color: #4ade80; }
.te-chip-2 { background: rgba(139, 92, 246, .14); color: #a78bfa; }
.te-card-actions { display: flex; gap: 8px; margin-top: auto; }
.te-card-actions .te-btn { flex: 1; justify-content: center; padding: 9px 12px; }
.te-proof { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.te-proof:hover { color: var(--gold); }

.te-featured-swiper { padding-bottom: 36px !important; }
.te-featured-swiper .swiper-slide { height: auto; }
.te-featured-swiper .swiper-pagination-bullet { background: var(--muted); opacity: .5; }
.te-featured-swiper .swiper-pagination-bullet-active { background: var(--gold); opacity: 1; width: 22px; border-radius: 4px; }

/* List */
.te-list { display: flex; flex-direction: column; gap: 10px; }
.te-row {
    display: grid; grid-template-columns: 72px 1fr auto auto auto; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px 10px 10px;
    transition: border-color .2s, background .2s;
}
.te-row:hover { border-color: rgba(247, 201, 72, .3); background: var(--surface-2); }
.te-row-img { width: 72px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.te-row-title { font-weight: 600; font-size: 15px; }
.te-row-title small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.te-row .te-proof-slot { min-width: 110px; text-align: right; }

@media (max-width: 767px) {
    .te-row { grid-template-columns: 64px 1fr; row-gap: 10px; }
    .te-row-img { width: 64px; height: 44px; }
    .te-row .te-chips, .te-row .te-proof-slot, .te-row .te-row-cta { grid-column: 1 / -1; }
    .te-row .te-proof-slot { text-align: left; }
    .te-row .te-row-cta .te-btn { width: 100%; justify-content: center; }
}

/* Pagination */
.te-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.te-pagination a, .te-pagination span {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500;
}
.te-pagination a:hover { color: var(--text); background: var(--surface-2); }
.te-pagination .active { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #0b0f1a; border-color: transparent; }
.te-pagination .disabled { opacity: .35; }

/* Footer */
.te-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 0; }
.te-footer .te-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.te-footer img { height: 28px; display: block; }
.te-footer p { color: var(--muted); font-size: 13px; margin: 0; }
.te-footer nav { display: flex; gap: 18px; }
.te-footer nav a { color: var(--muted); font-size: 13px; }
.te-footer nav a:hover { color: var(--text); }

/* Auth */
.te-auth-card {
    max-width: 420px; margin: 40px auto; padding: 32px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 16px;
}
.te-auth-card h1 { font-size: 26px; font-weight: 700; margin: 0; }
.te-auth-card .te-sub { color: var(--muted); font-size: 14px; margin: -8px 0 4px; }
.te-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.te-field input {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; color: var(--text); font: inherit; font-size: 15px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.te-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 201, 72, .15); }
.te-btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
.te-alert {
    background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 10px; padding: 10px 14px; font-size: 14px;
}

/* Admin */
.te-alert-success { background: rgba(34, 197, 94, .12); color: #4ade80; border-color: rgba(34, 197, 94, .3); margin-bottom: 16px; }
.te-muted { color: var(--muted); }
.te-empty { padding: 48px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.te-search { position: relative; margin-bottom: 16px; max-width: 360px; }
.te-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.te-search input {
    width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 14px 10px 36px; color: var(--text); font: inherit; font-size: 14px; outline: none;
}
.te-search input:focus { border-color: var(--gold); }
.te-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.te-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.te-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px; border-bottom: 1px solid var(--border); }
.te-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.te-table tr:last-child td { border-bottom: 0; }
.te-table tbody tr:hover { background: var(--surface-2); }
.te-table form { margin: 0; }
.te-toggle {
    width: 38px; height: 22px; border-radius: 999px; border: 0; cursor: pointer; position: relative;
    background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: background .2s;
}
.te-toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--muted); transition: transform .2s, background .2s;
}
.te-toggle.on { background: rgba(247, 201, 72, .25); }
.te-toggle.on::after { transform: translateX(16px); background: var(--gold); }
.te-actions { display: flex; gap: 6px; justify-content: flex-end; }
.te-icon-btn {
    width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 13px;
}
.te-icon-btn:hover { color: var(--text); }
.te-icon-btn.danger:hover { color: #f87171; border-color: rgba(239, 68, 68, .4); }

.te-back { color: var(--muted); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.te-back:hover { color: var(--text); }
.te-form-card {
    max-width: 720px; margin: 16px auto 0; padding: 28px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 16px;
}
.te-form-card h1 { font-size: 24px; font-weight: 700; margin: 0; }
.te-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.te-span-2 { grid-column: span 2; }
.te-img-preview { margin-top: 8px; max-width: 240px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.te-checks { display: flex; gap: 20px; align-items: end; padding-bottom: 12px; }
.te-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.te-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.te-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
    .te-form-grid { grid-template-columns: 1fr; }
    .te-span-2 { grid-column: auto; }
    .te-form-card { padding: 20px; }
}
