@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: #080808;
    color: #cccccc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
}

/* Everything above the canvas */
body > *:not(#vx-bg) {
    position: relative;
    z-index: 1;
}

/* Ensure canvas fills but doesn't block */
#vx-bg {
    position: fixed !important;
    z-index: 0 !important;
}

a {
    color: #38e040;
    text-decoration: none;
    transition: color 0.18s;
}
a:hover { color: #60f068; }

h1, h2, h3, h4, h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: #efefef;
    letter-spacing: 0.2px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(8, 8, 8, 0.97);
    border-bottom: 1px solid #1c1c1c;
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo pequena na navbar — limitada com !important */
.navbar-brand img {
    display: block;
    height: 28px !important;
    width: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.nb-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #efefef;
    line-height: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.navbar-nav a {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 5px;
    transition: all 0.15s;
}
.navbar-nav a:hover        { color: #bbb; background: #131313; }
.navbar-nav a.active       { color: #38e040; background: rgba(56,224,64,0.07); }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-username {
    font-size: 13px;
    color: #666;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-primary  { background: #38e040; color: #080808; border-color: #38e040; }
.btn-primary:hover:not(:disabled) { background: #50f058; border-color: #50f058; color: #080808; }

.btn-orange   { background: #ff7a00; color: #080808; border-color: #ff7a00; }
.btn-orange:hover:not(:disabled)  { background: #ff9020; border-color: #ff9020; color: #080808; }

.btn-outline  { background: transparent; color: #38e040; border-color: #38e040; }
.btn-outline:hover:not(:disabled) { background: rgba(56,224,64,0.08); }

.btn-ghost    { background: transparent; color: #666; border-color: #252525; }
.btn-ghost:hover:not(:disabled)   { background: #111; color: #bbb; border-color: #333; }

.btn-danger   { background: transparent; color: #d03838; border-color: #d03838; }
.btn-danger:hover:not(:disabled)  { background: rgba(208,56,56,0.08); }

.btn-danger-solid { background: rgba(180,20,20,0.3); color: #ff6060; border-color: #c02020; }

.btn-sm    { padding: 5px 12px; font-size: 12px; }
.btn-lg    { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid;
    line-height: 1.4;
}
.badge-user    { background: rgba(255,255,255,0.04); color: #666; border-color: #252525; }
.badge-vip     { background: rgba(255,122,0,0.1); color: #ff7a00; border-color: rgba(255,122,0,0.28); }
.badge-admin   { background: rgba(56,224,64,0.08); color: #38e040; border-color: rgba(56,224,64,0.25); }
.badge-aluno   { background: rgba(56,224,224,0.08); color: #38e0e0; border-color: rgba(56,224,224,0.25); }
.badge-free    { background: rgba(56,224,64,0.07); color: #38e040; border-color: rgba(56,224,64,0.2); font-size: 9px; }
.badge-vip-tag { background: rgba(255,122,0,0.08); color: #ff7a00; border-color: rgba(255,122,0,0.22); font-size: 9px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert-success { background: rgba(56,224,64,0.06);  border-color: rgba(56,224,64,0.22);  color: #38e040; }
.alert-error   { background: rgba(208,56,56,0.06);  border-color: rgba(208,56,56,0.22);  color: #d03838; }
.alert-info    { background: rgba(255,122,0,0.06);  border-color: rgba(255,122,0,0.22);  color: #ff7a00; }
.alert-warn    { background: rgba(255,122,0,0.07);  border-color: rgba(255,122,0,0.25);  color: #ff8c1a; }

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #505050;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid #222;
    border-radius: 5px;
    color: #d0d0d0;
    padding: 9px 13px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.18s;
    outline: none;
}
.form-control:focus       { border-color: #38e040; }
.form-control::placeholder { color: #333; }
select.form-control        { cursor: pointer; }
textarea.form-control      { resize: vertical; min-height: 88px; }

.form-hint { font-size: 11px; color: #3a3a3a; margin-top: 4px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: rgba(14,14,14,0.9);
    border: 1px solid #1e1e1e;
    border-radius: 7px;
    padding: 20px;
}

.card-header {
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #e8e8e8;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #1a1a1a;
    border-radius: 7px;
    background: rgba(8,8,8,0.7);
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead { background: rgba(10,10,10,0.8); }
thead th {
    padding: 9px 15px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #404040;
    border-bottom: 1px solid #1a1a1a;
}

tbody tr {
    border-bottom: 1px solid #141414;
    transition: background 0.12s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover      { background: rgba(255,255,255,0.02); }
tbody td { padding: 10px 15px; color: #c0c0c0; vertical-align: middle; }

/* ============================================================
   STATUS DOTS
   ============================================================ */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.status-active   { background: #38e040; }
.status-inactive { background: #404040; }
.status-detected { background: #d03838; }
.status-banned   { background: #d03838; }
.status-used     { background: #555; }
.status-expired  { background: #ff7a00; }

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: rgba(10,10,10,0.92);
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 36px 32px;
    backdrop-filter: blur(12px);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    display: block;
    height: 64px !important;
    width: 64px !important;
    object-fit: contain;
    margin: 0 auto;
}

.auth-logo .site-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #f0f0f0;
    margin-top: 8px;
    letter-spacing: 2px;
}

.auth-logo .site-tagline {
    font-size: 12px;
    color: #404040;
    margin-top: 2px;
}

.auth-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #181818;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #404040;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #2a2a2a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.divider-text::before,
.divider-text::after { content: ''; flex: 1; height: 1px; background: #1e1e1e; }

/* ============================================================
   STORE / PUBLIC PAGES
   ============================================================ */
.page-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #161616;
}
.page-header h1      { font-size: 24px; font-weight: 800; }
.page-header p       { color: #484848; font-size: 13px; margin-top: 4px; }

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.section-head h2     { font-size: 17px; font-weight: 700; white-space: nowrap; }
.section-head-line   { flex: 1; height: 1px; background: #161616; }

/* Redeem box */
.redeem-box {
    background: rgba(10,10,10,0.8);
    border: 1px solid #1a1a1a;
    border-radius: 7px;
    padding: 16px 18px;
    margin-bottom: 28px;
}
.redeem-box-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #404040;
    margin-bottom: 8px;
}
.redeem-row { display: flex; gap: 8px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.product-card {
    background: rgba(12,12,12,0.92);
    border: 1px solid #1c1c1c;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover             { border-color: #2a2a2a; transform: translateY(-2px); }
.product-card.vip-card:hover    { border-color: rgba(255,122,0,0.28); }

.product-thumb {
    height: 110px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #161616;
    position: relative;
    overflow: hidden;
}

/* Subtle diagonal lines behind thumb */
.product-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(56,224,64,0.025) 12px,
        rgba(56,224,64,0.025) 13px
    );
}
.product-card.vip-card .product-thumb::before {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(255,122,0,0.025) 12px,
        rgba(255,122,0,0.025) 13px
    );
}

.product-thumb-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 3px;
    color: rgba(56,224,64,0.08);
    user-select: none;
    position: relative;
    z-index: 1;
}
.product-card.vip-card .product-thumb-label { color: rgba(255,122,0,0.08); }

.product-thumb-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 2px;
}

.product-game {
    font-size: 11px;
    color: #404040;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-desc {
    font-size: 12px;
    color: #585858;
    margin-bottom: 10px;
    line-height: 1.5;
    flex: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 12px;
}
.feature-list li {
    font-size: 12px;
    color: #666;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #111;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38e040;
    flex-shrink: 0;
}
.product-card.vip-card .feature-list li::before { background: #ff7a00; }

.product-price      { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: #38e040; margin-bottom: 2px; }
.product-price.paid { color: #ff7a00; }
.product-meta       { font-size: 11px; color: #303030; margin-bottom: 10px; }

.product-footer  { padding: 0 16px 14px; }
.locked-notice   { font-size: 11px; color: #404040; text-align: center; margin-top: 6px; }

/* ============================================================
   ADMIN LAYOUT  —  CORRECTED
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Sticky sidebar — stays on screen, doesn't overlap */
.sidebar {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    background: rgba(8,8,8,0.98);
    border-right: 1px solid #161616;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.sidebar-top {
    padding: 14px 16px;
    border-bottom: 1px solid #161616;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo pequena na sidebar — só ícone */
.sidebar-top img {
    display: block;
    height: 26px !important;
    width: 26px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-top-text {}

.sidebar-top .site-title {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e8e8e8;
    line-height: 1.2;
}

.sidebar-top .admin-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d03838;
    margin-top: 1px;
}

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

.sidebar-nav a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #505050;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    text-decoration: none;
}
.sidebar-nav a:hover  { color: #aaa; background: rgba(255,255,255,0.025); }
.sidebar-nav a.active { color: #38e040; background: rgba(56,224,64,0.04); border-left-color: #38e040; }
.sidebar-nav .nav-sep { height: 1px; background: #141414; margin: 6px 0; }

.sidebar-bottom {
    padding: 12px 18px;
    border-top: 1px solid #161616;
    flex-shrink: 0;
}
.sidebar-bottom .s-username { font-size: 13px; font-weight: 600; color: #999; }
.sidebar-bottom .s-ip       { font-size: 11px; color: #303030; margin-top: 2px; font-family: 'Roboto Mono', monospace; }

/* Main content — takes remaining width */
.admin-main {
    flex: 1;
    min-width: 0;        /* prevents flex overflow */
    padding: 28px 32px;
    overflow-x: hidden;
}

.admin-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.admin-header-left h1 { font-size: 21px; font-weight: 700; }
.admin-header-left p  { color: #404040; font-size: 13px; margin-top: 3px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.stat-card {
    background: rgba(10,10,10,0.95);
    border: 1px solid #1c1c1c;
    border-radius: 7px;
    padding: 14px 16px;
}
.stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #404040;
    margin-top: 6px;
    display: block;
}
.stat-card.c-green  .stat-value { color: #38e040; }
.stat-card.c-orange .stat-value { color: #ff7a00; }
.stat-card.c-red    .stat-value { color: #d03838; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
    background: #101010;
    border: 1px solid #222;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: #e8e8e8; }
.modal-close { background: none; border: none; color: #444; cursor: pointer; font-size: 18px; line-height: 1; transition: color 0.15s; padding: 0; }
.modal-close:hover { color: #d03838; }
.modal-body   { padding: 20px; }
.modal-body hr{ border: none; border-top: 1px solid #1a1a1a; margin: 16px 0; }
.modal-footer { padding: 12px 20px; border-top: 1px solid #1a1a1a; display: flex; gap: 8px; justify-content: flex-end; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid #141414;
    padding: 18px 24px;
    text-align: center;
    font-size: 12px;
    color: #303030;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-green  { color: #38e040; }
.text-orange { color: #ff7a00; }
.text-red    { color: #d03838; }
.text-muted  { color: #505050; }
.text-dim    { color: #303030; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.w-100 { width: 100%; }

.key-mono { font-family: 'Roboto Mono', monospace; letter-spacing: 1px; font-size: 12px; }

.search-bar {
    background: rgba(10,10,10,0.8);
    border: 1px solid #1e1e1e;
    border-radius: 7px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.generated-keys-box {
    background: rgba(8,8,8,0.8);
    border: 1px solid #1e1e1e;
    border-radius: 7px;
    padding: 14px;
    margin-bottom: 18px;
}
.generated-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(14,14,14,0.9);
    border-radius: 4px;
    margin-bottom: 5px;
    border: 1px solid #181818;
}
.generated-key-row:last-child { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-auto { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    background: rgba(12,12,12,0.92);
    border: 1px solid #1c1c1c;
    border-radius: 7px;
    overflow: hidden;
}
.product-detail-image {
    height: 100%;
    min-height: 280px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}
.product-detail-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(56,224,64,0.025) 12px,
        rgba(56,224,64,0.025) 13px
    );
    pointer-events: none;
}
.product-detail-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.product-detail-info {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
}
.product-detail-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.product-detail-game {
    font-size: 13px;
    color: #606060;
    margin-bottom: 2px;
}
.product-detail-version {
    font-size: 12px;
    color: #404040;
    margin-bottom: 12px;
}
.product-detail-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 8px;
}
.product-detail-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 12px 0;
}
.product-detail-actions {
    margin-top: auto;
}
.product-detail-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
@media (max-width: 720px) {
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-image { min-height: 180px; }
    .product-detail-info { padding: 20px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar        { width: 4px; height: 4px; }
::-webkit-scrollbar-track  { background: #080808; }
::-webkit-scrollbar-thumb  { background: #222; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #38e040; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .admin-layout  { flex-direction: column; }
    .sidebar       { width: 100%; height: auto; position: relative; top: auto; flex-direction: row; flex-wrap: wrap; }
    .sidebar-top   { width: 100%; padding: 12px 16px; }
    .sidebar-nav   { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0; }
    .sidebar-nav a { padding: 8px 12px; border-left: none; border-bottom: 2px solid transparent; font-size: 12px; }
    .sidebar-nav a.active { border-bottom-color: #38e040; border-left-color: transparent; }
    .sidebar-nav .nav-sep { display: none; }
    .sidebar-bottom{ width: 100%; }
    .admin-main    { padding: 16px; }
    .grid-2        { grid-template-columns: 1fr; }
    .grid-auto     { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .navbar-nav    { display: none; }
    .product-grid  { grid-template-columns: 1fr; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .redeem-row    { flex-direction: column; }
    .auth-box      { padding: 24px 20px; }
}

/* ============================================================
   COURSE / CURSO
   ============================================================ */
.course-progress-bar {
    height: 6px;
    background: #141414;
    border-radius: 3px;
    margin-bottom: 28px;
    overflow: hidden;
}
.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38e040, #50f870);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.course-module-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.course-module-card {
    background: rgba(12,12,12,0.92);
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.course-module-card:not(.course-module-locked):hover {
    border-color: #38e040;
    transform: translateY(-2px);
}
.course-module-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-module-locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.course-module-done {
    border-color: rgba(56,224,64,0.25);
    background: rgba(56,224,64,0.03);
}

.course-module-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.course-module-icon {
    font-size: 24px;
    line-height: 1;
}
.course-module-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #38e040;
    text-transform: uppercase;
}
.course-module-check {
    margin-left: auto;
    color: #38e040;
    font-size: 18px;
    font-weight: 700;
}
.course-module-lock {
    margin-left: auto;
    font-size: 16px;
    opacity: 0.5;
}

.course-module-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 6px;
}
.course-module-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}
.course-module-status {
    font-size: 11px;
    color: #404040;
    font-weight: 600;
}
.course-module-status.done {
    color: #38e040;
}
.course-module-status.start {
    color: #38e040;
}
.course-module-status.locked {
    color: #555;
    font-style: italic;
}

/* Module detail page */
.module-header {
    margin-bottom: 24px;
}
.module-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.module-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #38e040;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid rgba(56,224,64,0.2);
    border-radius: 4px;
    background: rgba(56,224,64,0.05);
}
.done-badge {
    color: #38e040;
    border-color: rgba(56,224,64,0.3);
    background: rgba(56,224,64,0.1);
}
.module-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}
.module-notice {
    font-size: 13px;
    color: #ff7a00;
    background: rgba(255,122,0,0.06);
    border: 1px solid rgba(255,122,0,0.15);
    border-radius: 5px;
    padding: 8px 14px;
    display: inline-block;
}

.module-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.module-sidebar {
    background: rgba(10,10,10,0.9);
    border: 1px solid #1c1c1c;
    border-radius: 7px;
    padding: 16px;
    position: sticky;
    top: 74px;
}
.module-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #505050;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #181818;
}

.module-lesson-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.module-lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: all 0.15s;
}
.module-lesson-item:hover {
    background: rgba(255,255,255,0.03);
    color: #aaa;
}
.module-lesson-item.active {
    background: rgba(56,224,64,0.07);
    color: #38e040;
}
.lesson-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    color: #555;
}
.module-lesson-item.active .lesson-num {
    background: rgba(56,224,64,0.15);
    border-color: rgba(56,224,64,0.3);
    color: #38e040;
}
.lesson-title {
    line-height: 1.3;
}

.module-content {
    min-height: 400px;
}
.lesson-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
}

.lesson-body {
    font-size: 14px;
    line-height: 1.75;
    color: #c8c8c8;
}
.lesson-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #e8e8e8;
    margin: 20px 0 10px;
}
.lesson-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ddd;
    margin: 16px 0 8px;
}
.lesson-body p {
    margin-bottom: 12px;
}
.lesson-body ul, .lesson-body ol {
    margin: 8px 0 12px 20px;
}
.lesson-body li {
    margin-bottom: 4px;
}
.lesson-body pre {
    background: rgba(0,0,0,0.6);
    border: 1px solid #1c1c1c;
    border-radius: 5px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 12px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #38e040;
}
.lesson-body code {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.4);
    padding: 1px 5px;
    border-radius: 3px;
    color: #38e040;
}
.lesson-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.w3s-box {
    background: rgba(56,224,64,0.04);
    border: 1px solid rgba(56,224,64,0.12);
    border-left: 3px solid #38e040;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
    color: #b0b0b0;
}
.w3s-box strong {
    color: #38e040;
    display: block;
    margin-bottom: 4px;
}
.w3s-box ul {
    margin: 6px 0 0 16px;
    padding: 0;
}
.w3s-box li {
    margin-bottom: 3px;
}
.w3s-box[style*="1a4a1a"] {
    border-left-color: #2a8a2a;
}
.w3s-box[style*="1a4a1a"] strong {
    color: #3ae050;
}

.course-highlight {
    background: rgba(56,224,64,0.05);
    border: 1px solid rgba(56,224,64,0.15);
    border-left: 3px solid #38e040;
    border-radius: 5px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #aaa;
}
.course-highlight strong {
    color: #38e040;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}
.course-table th {
    background: rgba(10,10,10,0.8);
    color: #505050;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 1px solid #1c1c1c;
    text-align: left;
}
.course-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #141414;
    color: #999;
}
.course-table tr:last-child td {
    border-bottom: none;
}

/* Exercises */
.lesson-exercises {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}
.ex-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #e8e8e8;
}
.exercise-card {
    background: rgba(10,10,10,0.85);
    border: 1px solid #1c1c1c;
    border-radius: 7px;
    padding: 16px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
.exercise-card.ex-correct {
    border-color: rgba(56,224,64,0.3);
}
.exercise-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #404040;
    margin-bottom: 8px;
}
.exercise-question {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 12px;
    line-height: 1.5;
}
.exercise-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.exercise-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #222;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: #999;
}
.exercise-option:hover {
    border-color: #3a3a3a;
    background: rgba(255,255,255,0.02);
}
.exercise-option input[type="radio"] {
    accent-color: #38e040;
    flex-shrink: 0;
}
.exercise-code-block {
    background: rgba(0,0,0,0.6);
    border: 1px solid #1c1c1c;
    border-radius: 5px;
    padding: 14px 16px;
    margin: 8px 0 12px;
    overflow-x: auto;
}
.exercise-code-block pre {
    margin: 0;
}
.exercise-code-block code {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #38e040;
    background: none;
    padding: 0;
}
.exercise-hint {
    font-size: 12px;
    color: #505050;
    font-style: italic;
    margin-bottom: 12px;
}
.exercise-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 5px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #1a1a1a;
}
.ex-result {
    font-size: 13px;
    font-weight: 600;
}

.module-complete-section {
    margin-top: 32px;
    padding: 20px;
    background: rgba(10,10,10,0.85);
    border: 1px solid #1c1c1c;
    border-radius: 7px;
    text-align: center;
}
.module-complete-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.module-complete-section p {
    color: #666;
    font-size: 13px;
    margin-bottom: 14px;
}
.module-complete-section.done {
    border-color: rgba(56,224,64,0.2);
    background: rgba(56,224,64,0.03);
}
.module-complete-section.done h3 {
    color: #38e040;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #404040;
}

@media (max-width: 860px) {
    .module-layout {
        grid-template-columns: 1fr;
    }
    .module-sidebar {
        position: relative;
        top: auto;
    }
    .course-module-list {
        grid-template-columns: 1fr;
    }
}
