@charset "UTF-8";

:root {
    --color-bg: #020617;
    --color-bg-elevated: #0f172a;
    --color-border: #1f2937;
    --color-border-input: #374151;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-accent: #f97316;
    --color-accent-hover: #ea580c;
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.7);
    --shadow-focus: 0 0 0 1px rgba(249, 115, 22, 0.3);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

body {
    min-height: 100vh;
    display: block;
    background: radial-gradient(circle at top, #1f2933, var(--color-bg));
    color: var(--color-text);
}

body.auth-page,
body.with-navbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

body.user-panel {
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(249, 115, 22, 0.14), transparent 55%),
        radial-gradient(circle at top, #1f2933, var(--color-bg));
    padding: 0;
}

body.user-panel.with-navbar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.user-panel .main-content.user-license-main {
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 20px 48px;
}

body.user-panel .user-license-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 24px;
    margin: 0 auto;
}

.card {
    background: #020617;
    border-radius: 12px;
    border: 1px solid #1f2937;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
    padding: 28px 32px;
}

.card-narrow {
    max-width: 420px;
    margin: 0 auto;
}

.card-narrow.w-full {
    width: 100%;
    max-width: 480px;
}

.card-register {
    max-width: 480px;
    margin: 0 auto;
}

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

.title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.nav-link {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
}

.nav-link:hover {
    color: #f97316;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

label {
    font-size: 13px;
    color: #9ca3af;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="datetime-local"],
input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-input);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-focus);
}

input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    color: inherit;
}

button:focus-visible,
a:focus-visible,
.btn-form:focus-visible,
.contact-action-btn:focus-visible,
.contact-submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-form,
form button[type="submit"]:not(.license-tab-btn):not(.contact-submit):not(.contact-action-btn):not(.btn-lic-generate):not(.btn-files-save):not(.asset-tool-tab):not(.badge):not(.btn-action--danger):not(.asset-tool-btn-secondary):not(.asset-tool-btn-remove) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(251, 146, 60, 0.45);
    background-color: #ea580c;
    background-image: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-form:hover,
form button[type="submit"]:not(.license-tab-btn):not(.contact-submit):not(.contact-action-btn):not(.btn-lic-generate):not(.btn-files-save):not(.asset-tool-btn-secondary):not(.asset-tool-btn-remove):hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
    transform: translateY(-1px);
}

.btn-form:active,
form button[type="submit"]:not(.license-tab-btn):not(.contact-submit):not(.contact-action-btn):not(.btn-lic-generate):not(.btn-files-save):active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-form.w-full {
    width: 100%;
}

/* Login / Registro / Verificación */
body.with-navbar .main-content .card form {
    margin-top: 4px;
}

body.with-navbar .main-content .card .form-group {
    margin-bottom: 0;
}

body.with-navbar .main-content .card .form-group label {
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 4px;
}

body.with-navbar .main-content .card .helper-text {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

body.with-navbar .main-content .btn-form {
    margin-top: 4px;
}

body.with-navbar .main-content .form-footer-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.with-navbar .main-content .form-footer-link:hover {
    color: #fb923c;
    text-decoration: underline;
}

body.with-navbar .main-content .btn-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 10px;
    background-color: #ea580c;
    background-image: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.with-navbar .main-content .btn-auth-link:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
}

/* Recuperar contraseña - modal login */
.auth-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.auth-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.recaptcha-wrap .g-recaptcha {
    transform-origin: center;
}

.label-required {
    color: #f97316;
    font-weight: 700;
}

.field-hint-valid {
    color: #34d399 !important;
}

.field-hint-invalid {
    color: #f87171 !important;
}

.field-hint-pending {
    color: #94a3b8 !important;
}

#register-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.auth-forgot-link {
    background: none;
    border: none;
    padding: 0;
    color: #fb923c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-forgot-link:hover {
    color: #f97316;
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(4px);
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 28px 26px 24px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.auth-modal-overlay.is-open .auth-modal-panel {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(71, 85, 105, 0.85);
    color: #fff;
}

.auth-modal-title {
    margin: 0 32px 10px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
}

.auth-modal-text {
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
}

.auth-modal-form {
    margin-top: 4px;
}

.auth-modal-form form {
    margin-top: 0;
    gap: 12px;
}

.auth-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-modal-actions .btn-form {
    flex: 1 1 140px;
    width: auto;
    min-width: 140px;
}

.btn-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #475569;
    background-color: #334155;
    background-image: none;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease;
}

.btn-auth-secondary:hover {
    background-color: #475569;
    filter: brightness(1.05);
}

.text-muted { color: #94a3b8; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.w-full { width: 100%; }
.text-center-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}
.form-footer-link { color: var(--color-accent); text-decoration: none; }
.form-footer-link:hover { text-decoration: underline; }
.list-disc { margin-left: 20px; margin-top: 10px; list-style-type: disc; }
.card-span-full { grid-column: 1 / -1; text-align: center; padding: 50px; }
.btn-gaming-inline { display: inline-block; }
.btn-buy.mt-sm { margin-top: 12px; }
.btn-buy.inline-block { display: inline-block; }
.service-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.service-actions.mt-14 { margin-top: 14px; }

.message-error {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
    font-size: 13px;
}

.message-success {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.4);
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    gap: 20px;
    margin-top: 16px;
}

/* =========================================
   DOWNLOADS PAGE
   ========================================= */

body.downloads-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(249, 115, 22, 0.12), transparent 55%),
        radial-gradient(circle at top, #1f2933, var(--color-bg));
}

.downloads-page-wrapper {
    flex: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.downloads-hero {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.downloads-hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.28);
}

.downloads-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 12px;
}

.downloads-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #94a3b8;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.download-panel {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 18px;
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.45);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.download-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c, #ea580c);
    opacity: 0.85;
}

.download-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow:
        0 22px 44px rgba(2, 6, 23, 0.55),
        0 0 0 1px rgba(249, 115, 22, 0.12);
}

.download-panel-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.download-icon svg {
    width: 24px;
    height: 24px;
}

.download-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    margin: 0;
}

.download-text {
    font-size: 0.94rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.download-meta {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.55;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(51, 65, 85, 0.7);
}

.download-meta span {
    color: #fbbf24;
    font-weight: 600;
}

.download-meta-file {
    word-break: break-all;
    font-size: 0.8rem;
    font-weight: 500 !important;
    color: #e2e8f0 !important;
}

.download-actions {
    margin-top: auto;
    padding-top: 4px;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-download:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.42);
}

.download-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fca5a5;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    background: rgba(127, 29, 29, 0.18);
    border: 1px dashed rgba(248, 113, 113, 0.35);
}

@media (max-width: 768px) {
    .downloads-page-wrapper {
        padding: 32px 16px 56px;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .downloads-hero {
        margin-bottom: 28px;
    }
}

@media (max-width: 900px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.guides-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.guides-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.guide-card {
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guide-card h3 {
    font-size: 18px;
    margin: 0;
}

.guide-excerpt {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.guide-detail {
    padding: 28px;
}

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

.guide-detail-title {
    font-size: 26px;
    font-weight: 700;
}

.guide-detail-date {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 6px;
}

.guide-detail-image img {
    max-width: 100%;
    border-radius: 10px;
    margin: 14px 0 24px;
}

.guide-video {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.guide-video iframe {
    width: 800px;
    height: 600px;
    max-width: 100%;
    border-radius: 12px;
}

.guide-detail-content {
    line-height: 1.8;
    color: #e5e7eb;
}

@media (max-width: 900px) {
    .guide-video iframe {
        width: 100%;
        height: 360px;
    }
    .guide-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

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

th,
td {
    padding: 8px 10px;
    border-bottom: 1px solid #111827;
}

th {
    text-align: left;
    font-weight: 500;
    color: #9ca3af;
    background: #020617;
}

tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.7);
}

tr:nth-child(odd) td {
    background: rgba(15, 23, 42, 0.9);
}

tr.expired td {
    background: rgba(248, 113, 113, 0.08);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.badge-active {
    background: rgba(22, 163, 74, 0.15);
    color: #bbf7d0;
}

.badge-inactive {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

.badge-expired {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.badge-success {
    background: rgba(22, 163, 74, 0.15);
    color: #bbf7d0;
}

.badge-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

button.badge {
    background-image: none !important;
    cursor: pointer;
}

.admin-dashboard button.badge.badge-success,
.admin-dashboard button.badge.badge-danger {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    box-shadow: none;
}

.admin-dashboard button.badge.badge-success {
    background-color: rgba(22, 163, 74, 0.35) !important;
    background-image: none !important;
    color: #bbf7d0 !important;
}

.admin-dashboard button.badge.badge-danger {
    background-color: rgba(248, 113, 113, 0.25) !important;
    background-image: none !important;
    color: #fecaca !important;
}

/* =========================================
   GAMING DROPDOWN STYLES
   ========================================= */
.gaming-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 2000;
}

.gaming-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding-top: 10px; /* Space for hover */
    z-index: 1999;
}

.gaming-dropdown-wrapper:hover .gaming-dropdown-content {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Base Gaming Button */
.btn-gaming-login, .btn-gaming-register {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,0,0,0.95) 100%);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 160px;
}

.btn-gaming-login {
    border-bottom: 2px solid #ff0000; /* Fallback */
}

.btn-gaming-register {
    margin-top: 5px;
    background: linear-gradient(135deg, rgba(30,0,0,0.95) 0%, rgba(60,0,0,0.95) 100%);
    border-left: 2px solid #ff0000; /* Fallback */
}

/* SVG Border Effect */
.btn-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.border-rect {
    fill: none;
    stroke: #ff0000;
    stroke-width: 2;
    stroke-dasharray: 200, 400; /* Dash pattern */
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 0.6s ease;
    filter: drop-shadow(0 0 5px #ff0000);
}

@media (hover: hover) and (pointer: fine) {
    .btn-gaming-login:hover .border-rect,
    .btn-gaming-register:hover .border-rect {
        stroke-dashoffset: 0;
    }
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 2px #ff0000);
}

/* Hover States (solo dispositivos con ratón real; evita hover pegado en táctil) */
@media (hover: hover) and (pointer: fine) {
    .btn-gaming-login:hover {
        background: rgba(40, 0, 0, 0.9);
        text-shadow: 0 0 10px #ff0000;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
    }

    .btn-gaming-register:hover {
        background: rgba(60, 0, 0, 0.95);
        text-shadow: 0 0 10px #ff0000;
        transform: translateX(5px);
    }
}

.btn-gaming-login:focus,
.btn-gaming-register:focus,
.btn-gaming-download:focus {
    outline: none;
}

.btn-gaming-login:focus:not(:hover),
.btn-gaming-register:focus:not(:hover),
.btn-gaming-download:focus:not(:hover) {
    transform: none;
    box-shadow: none;
}

.btn-gaming-login:focus:not(:hover) {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,0,0,0.95) 100%);
    text-shadow: none;
}

.btn-gaming-register:focus:not(:hover) {
    background: linear-gradient(135deg, rgba(30,0,0,0.95) 0%, rgba(60,0,0,0.95) 100%);
    text-shadow: none;
}

.btn-gaming-login:focus:not(:hover) .border-rect,
.btn-gaming-register:focus:not(:hover) .border-rect,
.btn-gaming-download:focus:not(:hover) .border-rect {
    stroke-dashoffset: 400;
}

/* Gaming Download Button (Green Variant) */
.btn-gaming-download {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, rgba(0,20,0,0.9) 0%, rgba(0,40,0,0.95) 100%);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
    border-bottom: 2px solid #10b981; /* Emerald-500 */
    cursor: pointer;
    box-sizing: border-box;
}

.btn-gaming-download .border-rect {
    stroke: #10b981;
    filter: drop-shadow(0 0 5px #10b981);
}

@media (hover: hover) and (pointer: fine) {
    .btn-gaming-download:hover {
        background: rgba(6, 78, 59, 0.95);
        text-shadow: 0 0 10px #10b981;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
    }
}

.btn-gaming-download .btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    filter: drop-shadow(0 0 2px #10b981);
}

@media (hover: hover) and (pointer: fine) {
    .btn-gaming-download:hover .border-rect {
        stroke-dashoffset: 0;
    }
}

.btn-gaming-download:focus:not(:hover) {
    background: linear-gradient(135deg, rgba(0,20,0,0.9) 0%, rgba(0,40,0,0.95) 100%);
    text-shadow: none;
}

body.with-navbar {
    min-height: 100vh;
}

body.with-navbar .main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

/* =========================================
   LANDING PAGE STYLES
   ========================================= */

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(2, 6, 23, 0.95);
    border-bottom: 1px solid rgba(249, 115, 22, 0.22);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
    text-decoration: none;
}

.logo span {
    color: #f97316;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-item:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.45);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:focus {
    outline: none;
}

.nav-item:focus:not(:hover)::after {
    width: 0;
}

.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-user-pill:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.25);
    transform: translateY(-1px);
    color: #fff;
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
}

.nav-user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(30, 41, 59, 0.75);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-user-logout:hover {
    background: rgba(51, 65, 85, 0.95);
    color: #fff;
}

/* Green Download Button in Navbar */
.navbar .btn-gaming-download {
    padding: 10px 24px;
    font-size: 0.9em;
    margin-bottom: 0;
    width: auto;
    background: linear-gradient(135deg, rgba(0,20,0,0.8) 0%, rgba(0,30,0,0.9) 100%);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

@media (hover: hover) and (pointer: fine) {
    .navbar .btn-gaming-download:hover {
        background: rgba(6, 78, 59, 0.8);
    }
}

.navbar .btn-gaming-download .btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* Hero Section Styles */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 40px 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    margin-bottom: 20px;
    color: #f8fafc;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Gaming Buttons */
.btn-gaming {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 60px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s, filter 0.2s;
    margin: 0 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.btn-gaming:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.btn-gaming-hero-primary,
.btn-gaming.btn-primary {
    background-image: url('assets/btn-gaming-red.svg');
}

.btn-gaming-hero-secondary,
.btn-gaming.btn-secondary {
    background-image: url('assets/btn-gaming-outline.svg');
    color: #ffcccc;
}

.table-action {
    font-size: 12px;
    color: #f97316;
    text-decoration: none;
}

.table-action:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card {
        padding: 20px;
    }
}

/* Responsive Navbar */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.navbar-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        position: relative;
    }

    .navbar-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #0f172a;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid #1f2937;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }
    
    .gaming-dropdown-content {
        position: static;
        width: 100%;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 10px 0 0 0;
        display: flex;
        justify-content: center;
    }

    /* Hamburger Animation */
    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Ensure buttons take full width on mobile for better touch targets */
    .nav-links .btn-gaming-download,
    .nav-links .btn-gaming-login,
    .nav-links .nav-item,
    .nav-links .nav-user-pill,
    .nav-links .nav-user-logout {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .btn-gaming-download {
        margin-bottom: 0;
    }
}

/* =========================================
   ADMIN DASHBOARD STYLES
   ========================================= */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: stretch;
}

body.admin-dashboard {
    display: block;
    height: auto;
    background: #020617;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    border-right: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 20px;
}

.sidebar-header .logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.sidebar-menu {
    list-style: none;
    padding: 0 10px;
}

.sidebar-menu > li {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    cursor: pointer;
    justify-content: space-between;
}

.sidebar-link:hover, .sidebar-link.active {
    background: #1e293b;
    color: #fff;
}

.sidebar-dropdown {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-dropdown.show {
    display: block;
}

.sidebar-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.sidebar-dropdown a:hover, .sidebar-dropdown a.active {
    color: #fff;
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    background: #020617;
    overflow-y: auto;
}

/* Dashboard Modules */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.module-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Dashboard Tables override */
.dashboard-content table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0;
}

.dashboard-content th {
    text-align: left;
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.dashboard-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #1f2937;
    font-size: 14px;
}

.license-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.license-rank-badge-normal {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.license-rank-badge-gold {
    color: #fff1b8;
    border: 1px solid #facc15;
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.92), rgba(202, 138, 4, 0.88));
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.16), 0 8px 18px rgba(202, 138, 4, 0.18);
}

.license-scope-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.license-row-gold td {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.14), rgba(245, 158, 11, 0.05));
}

.license-row-gold:hover td {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.22), rgba(245, 158, 11, 0.1));
}

.license-row-gold td:first-child {
    border-left: 3px solid #facc15;
}

.license-form-card-gold {
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.08), 0 18px 40px rgba(120, 53, 15, 0.2);
}

.license-form-card-gold .card-header {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.88), rgba(202, 138, 4, 0.76));
}

.license-rank-helper {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.license-rank-helper-gold {
    color: #fcd34d;
}

.dashboard-content td img.thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================================
   USER DASHBOARD STYLES
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.user-panel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    background-image: none !important;
}

.user-panel .btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #fff;
}

.user-panel .btn-secondary:not(.btn-files-save) {
    background: #334155;
    color: #fff;
}

.user-panel .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.user-panel .btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.license-tab-btn {
    border: 1px solid #334155;
    background: #0f172a;
    color: #cbd5e1;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all 0.2s ease;
    background-image: none !important;
}

.license-tab-btn.active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #fff;
    border-color: #fb923c;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
}

.license-tab-btn:hover:not(.active) {
    border-color: #475569;
    color: #f8fafc;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #cbd5e1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #0f172a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.info-item span {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

/* =========================================
   NEWS ARTICLE STYLES (Consolidated)
   ========================================= */
.news-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 60px;
}

.news-article {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.news-header {
    padding: 40px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-bottom: 1px solid #1e293b;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.news-meta {
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-content h1, .news-content h2, .news-content h3 {
    color: #fff;
    margin-top: 30px;
}

.news-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #fff;
}

.btn-back svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .news-header, .news-content {
        padding: 20px;
    }
    .news-title {
        font-size: 1.8rem;
    }
    .news-container {
        margin: 20px auto;
    }
}

/* =========================================
   UTILITY CLASSES & COMPONENT STYLES
   ========================================= */

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Helper Text */
.helper-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* No News Message */
.no-news-message {
    text-align: center; 
    color: #64748b; 
    padding: 40px; 
    font-size: 1.1rem; 
    background: #0f172a; 
    border-radius: 12px; 
    border: 1px dashed #334155;
}

/* Error Page (Download) */
body.error-page {
    background: #0f172a;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.error-box {
    background: #1e293b;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ef4444;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.error-box h2 {
    color: #ef4444;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-box p {
    color: #94a3b8;
    margin: 10px 0;
    line-height: 1.5;
}

.btn-error-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 500;
}

.btn-error-back:hover {
    background: #2563eb;
}

/* Disabled Input */
.disabled-input {
    background: #0f172a;
    color: #64748b;
    border-color: #1e293b;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}


/* =========================================
   NEWS PAGE SPECIFIC STYLES
   ========================================= */
body.news-page {
    display: block;
    background: radial-gradient(circle at top, #1f2933, var(--color-bg));
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* =========================================
   LANDING PAGE SPECIFIC STYLES (Consolidated)
   ========================================= */
body.landing-page,
body.home-page,
body.with-navbar:not(.user-panel):not(.admin-dashboard) {
    display: block;
    background: radial-gradient(circle at top, #1f2933, var(--color-bg));
    overflow-x: hidden;
}

body.with-navbar:not(.home-page):not(.user-panel):not(.admin-dashboard) {
    display: flex;
    flex-direction: column;
}

.site-page-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.page-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.page-hero-kicker,
.home-section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.28);
}

.page-hero-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #94a3b8;
}

.home-section {
    margin-bottom: 56px;
}

.home-section-panel {
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
    padding: 32px 28px;
}

.home-section-panel .home-section-head {
    max-width: none;
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.home-section-panel .home-section-head-left {
    margin-bottom: 0;
}

.home-section-panel .features {
    padding: 0;
    max-width: none;
    margin: 0;
}

.home-section-panel .feature-card {
    background: rgba(15, 23, 42, 0.72);
    box-shadow: none;
}

.home-section-panel .pagination {
    margin-top: 32px;
}

.home-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 32px;
}

.home-section-head-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.home-section-title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #f8fafc;
}

.home-section-lead {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
}

.home-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1120px;
    margin: 28px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.home-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 14px;
    border-radius: 14px;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.home-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.28);
    color: #fdba74;
    font-size: 1.1rem;
    font-weight: 800;
}

.home-trust-item strong {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-trust-item span {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.45;
}

.home-cta-band {
    max-width: 1280px;
    margin: 8px auto 0;
    padding: 0 24px 48px;
}

.home-cta-inner {
    text-align: center;
    padding: 40px 32px;
    border-radius: 18px;
    border: 1px solid rgba(249, 115, 22, 0.28);
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 62%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.4);
}

.home-cta-inner h2 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-cta-inner p {
    margin: 0 auto 24px;
    max-width: 560px;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-home-primary,
.btn-home-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-home-primary {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.btn-home-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.btn-home-secondary {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(51, 65, 85, 0.85);
}

.btn-home-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.45);
    color: #fff;
}

.hero {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(249, 115, 22, 0.14), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(2, 6, 23, 0.92));
    z-index: -1;
}

.features-section .features {
    padding: 0;
}

.features {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1px solid rgba(51, 65, 85, 0.85);
    padding: 28px 24px;
    border-radius: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.feature-card h3 {
    color: #f8fafc;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c, #ea580c);
    opacity: 0.85;
}

.site-footer,
.landing-footer {
    text-align: center;
    padding: 32px 24px 40px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(2, 6, 23, 0.65);
}

.site-footer p,
.landing-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-gaming {
        width: 100%;
        max-width: 280px;
        margin: 10px 0;
    }
    
    .hero-content {
        padding: 20px 0;
    }
}

/* =========================================
   LANDING PAGE NEWS SECTION
   ========================================= */
.news-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.home-section.news-section {
    max-width: none;
}

.news-title {
    text-align: left;
    color: #f8fafc;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 28px;
    text-transform: none;
    letter-spacing: -0.02em;
    text-shadow: none;
    position: static;
    display: block;
    width: auto;
}

.home-section-head-left .news-title {
    margin-bottom: 0;
}

.news-grid {
    display: grid;
    gap: 25px;
}

.news-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.news-card h3 {
    color: #f1f5f9;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.news-date-badge {
    background: #1e293b;
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #334155;
    white-space: nowrap;
    margin-left: 15px;
}

.news-excerpt {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-grow: 1;
}

.btn-read-more {
    align-self: flex-start;
    background: transparent;
    color: var(--color-accent);
    border: 1px solid rgba(249, 115, 22, 0.55);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-read-more:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-read-more svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform 0.2s;
}

.btn-read-more:hover svg {
    transform: translateX(3px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #cbd5e1;
    text-decoration: none;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 600;
}
.page-link:hover, .page-link.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.error-msg {
    text-align: center;
    color: #ef4444;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =========================================
   GLOBAL MOBILE RESPONSIVE UTILITIES
   ========================================= */
@media (max-width: 480px) {
    .page-wrapper {
        padding: 15px;
    }
    .card {
        padding: 20px;
    }
    .title {
        font-size: 20px;
    }
    input[type="text"], input[type="password"], input[type="number"], input[type="email"], .btn-form, form button[type="submit"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1f2937;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================
   PRICING / BUY PAGE STYLES
   ========================================= */
.pricing-container {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}

.pricing-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid rgba(51, 65, 85, 0.85);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
}

.pricing-card.featured {
    border: 2px solid #fbbf24;
    background: linear-gradient(145deg, #1e293b 0%, #292524 100%);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}

.pricing-card.featured::before {
    content: 'DESTACADO';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #fbbf24;
    color: #000;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.pricing-card .price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 20px 0;
    display: block;
}

.pricing-card .price-tag span {
    font-size: 1.5rem;
    color: #94a3b8;
    vertical-align: top;
    margin-right: 4px;
}

.pricing-card .duration {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-weight: 500;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    margin-top: auto;
    text-align: center;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.btn-buy:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.38);
}

.pricing-card.featured .btn-buy {
    background: #fbbf24;
    color: #000;
}

.pricing-card.featured .btn-buy:hover {
    background: #d97706;
    color: #fff;
}

.pricing-card .package-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pricing-card.featured .package-name {
    color: #fbbf24;
}

.pricing-card.gold {
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(145deg, #23180a 0%, #3a2710 42%, #1e293b 100%);
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.18);
}

.pricing-card.gold:hover {
    box-shadow: 0 24px 45px rgba(251, 191, 36, 0.22);
}

.pricing-card.gold .price-tag,
.pricing-card.gold .package-name {
    color: #fbbf24;
}

.pricing-card.gold .price-tag span,
.pricing-card.gold .duration,
.pricing-card.gold .package-description,
.pricing-card.gold .package-tier {
    color: #fde68a;
}

.pricing-card.gold .btn-buy {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #1f2937;
}

.pricing-card.gold .btn-buy:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #fff;
}

.package-tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.package-description {
    min-height: 48px;
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.package-description-empty {
    visibility: hidden;
}

/* =========================================
   ADMIN DASHBOARD BUTTONS
   ========================================= */
.admin-dashboard .dashboard-content .btn,
.admin-dashboard .dashboard-content a.btn,
.admin-dashboard .module-header > .btn,
.admin-dashboard .module-header > a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background-color: #334155;
    background-image: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard .dashboard-content .btn:hover,
.admin-dashboard .dashboard-content a.btn:hover,
.admin-dashboard .module-header > .btn:hover,
.admin-dashboard .module-header > a.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.admin-dashboard .btn-primary,
.admin-dashboard a.btn-primary,
.admin-dashboard button.btn-primary {
    background-color: #ea580c;
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.admin-dashboard .btn-secondary,
.admin-dashboard a.btn-secondary,
.admin-dashboard button.btn-secondary {
    background-color: #334155 !important;
    background-image: none !important;
    color: #fff !important;
}

.admin-dashboard .btn-success,
.admin-dashboard a.btn-success,
.admin-dashboard button.btn-success {
    background-color: #059669 !important;
    background-image: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
}

.admin-dashboard .btn-danger,
.admin-dashboard a.btn-danger,
.admin-dashboard button.btn-danger,
.admin-dashboard button.btn-sm.btn-danger,
.admin-dashboard a.btn-sm.btn-danger {
    background-color: #dc2626 !important;
    background-image: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.admin-dashboard .btn-sm,
.admin-dashboard a.btn-sm,
.admin-dashboard button.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: #fff;
    background-color: #2563eb;
    background-image: none !important;
}

.admin-dashboard a.btn-sm.btn-primary,
.admin-dashboard button.btn-sm.btn-primary {
    background-color: #ea580c !important;
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
}

.admin-dashboard .dashboard-content button[type="submit"]:not(.badge):not(.asset-tool-tab):not(.btn-link-danger):not(.btn-action--danger):not(.asset-tool-btn-secondary):not(.asset-tool-btn-remove),
.admin-dashboard .dashboard-content input[type="submit"]:not(.badge) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background-color: #ea580c !important;
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-dashboard .dashboard-content button[type="submit"]:not(.badge):not(.asset-tool-tab):not(.btn-link-danger):not(.asset-tool-btn-secondary):not(.asset-tool-btn-remove):hover,
.admin-dashboard .dashboard-content input[type="submit"]:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}

.admin-dashboard .dashboard-content button[type="button"]:not(.asset-tool-tab):not(.asset-tool-btn-secondary):not(.asset-tool-btn-remove) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.admin-dashboard .message-error.mb-20,
.admin-dashboard .message-success.mb-20 {
    margin-bottom: 20px;
}

textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
}

textarea:focus,
select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.landing-content-layout {
    max-width: 1280px;
    margin: 48px auto 24px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.services-sidebar {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 100px;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
}

.landing-main-content {
    min-width: 0;
}

.services-sidebar h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.services-sidebar ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.services-sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid #1e293b;
    transition: all 0.2s ease;
}

.services-sidebar a:hover {
    border-color: rgba(249, 115, 22, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.services-page-wrapper {
    max-width: 1320px;
    margin: 120px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.service-main-card {
    background: rgba(8, 13, 25, 0.9);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 24px;
}

.service-main-card h1 {
    color: #f8fafc;
    margin-bottom: 8px;
}

.service-price {
    color: #fbbf24;
    margin-bottom: 18px;
}

.service-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.service-file-card {
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 10px;
    padding: 16px;
}

.service-file-card h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-file-card p {
    color: #94a3b8;
    line-height: 1.55;
}

.service-warning {
    border: 1px solid #7f1d1d;
    background: rgba(127, 29, 29, 0.18);
    border-radius: 10px;
    color: #fecaca;
    padding: 12px;
    margin-bottom: 0;
    line-height: 1.5;
}

.services-main-column {
    display: grid;
    gap: 16px;
}

.service-warning-panel {
    background: rgba(8, 13, 25, 0.9);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 16px;
}

.service-warning-panel h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.service-partner-card {
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.service-partner-logo {
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
    background: #020617;
    border-radius: 8px;
    padding: 6px;
}

.service-partner-card h2 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-partner-card p {
    color: #94a3b8;
    line-height: 1.5;
}

.service-prefix-badge {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fef3c7;
    border: 1px solid #b45309;
    background: rgba(180, 83, 9, 0.22);
}

.service-contact-line {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.service-detail-content {
    margin-top: 14px;
    color: #cbd5e1;
    line-height: 1.7;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .landing-content-layout,
    .services-page-wrapper {
        grid-template-columns: 1fr;
    }

    .services-sidebar {
        position: static;
    }
}

/* =========================================
   SLIDESHOW (index)
   ========================================= */
.slideshow-container {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1120px;
    height: min(62vh, 580px);
    margin: 24px auto 0;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.45);
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 18px 64px 0;
    box-sizing: border-box;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.04) 0%, rgba(2, 6, 23, 0.12) 70%, rgba(2, 6, 23, 0.28) 100%);
    z-index: 1;
    pointer-events: none;
}

.slide.active {
    display: flex;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center top;
    border-radius: 10px 10px 0 0;
    filter: drop-shadow(0 10px 28px rgba(2, 6, 23, 0.45));
}

.slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 16px 22px;
    text-align: left;
    border-radius: 0 0 10px 10px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(51, 65, 85, 0.75);
    box-shadow: 0 -8px 28px rgba(2, 6, 23, 0.35);
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c, #ea580c);
    opacity: 0.85;
}

.slide-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.65rem);
    color: #f8fafc;
    text-transform: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    text-shadow: none;
    animation: slideCaptionIn 0.45s ease-out;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    background-image: none !important;
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
    opacity: 0;
    animation: fadeIn 0.55s ease-out 0.15s forwards;
}

.slide-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@keyframes slideCaptionIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

.slideshow-arrow svg {
    width: 26px;
    height: 26px;
}

.slideshow-arrow:hover {
    background: rgba(2, 6, 23, 0.62);
    border-color: rgba(249, 115, 22, 0.55);
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

.slideshow-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.slideshow-arrow-prev {
    left: 18px;
}

.slideshow-arrow-next {
    right: 18px;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .slideshow-container { height: min(52vh, 400px); }
    .slide { padding: 12px 48px 0; }
    .slide-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .slide-content::before {
        left: 16px;
        right: 16px;
    }
    .slide-title {
        text-align: center;
        font-size: 1rem;
    }
    .slide-btn {
        width: 100%;
    }
    .slideshow-arrow {
        width: 42px;
        height: 42px;
    }
    .slideshow-arrow svg {
        width: 22px;
        height: 22px;
    }
    .slideshow-arrow-prev { left: 10px; }
    .slideshow-arrow-next { right: 10px; }
    .home-section-panel {
        padding: 24px 18px;
    }
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

.site-page-shell.contact-shell {
    max-width: 980px;
}

.service-hero .page-hero-kicker {
    margin-bottom: 14px;
}

.contact-card {
    padding: 32px;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.45);
}

.contact-title {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.contact-subtitle {
    margin: 0 0 22px;
    color: #94a3b8;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.contact-actions-wrap {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: linear-gradient(135deg, #f97316, #ea580c);
    background-image: none !important;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.contact-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
    filter: brightness(1.05);
}

.contact-action-btn.is-secondary {
    border-color: rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: none;
}

.contact-action-btn.is-secondary.active {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.contact-form-panel {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 0 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
    background: rgba(2, 6, 23, 0.55);
}

.contact-form-panel.show {
    max-height: 880px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 16px;
    padding-bottom: 16px;
}

.contact-form-panel label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 20px;
}

.contact-form-panel input,
.contact-form-panel textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 17px;
    padding: 14px 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
    border-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.contact-form-panel .form-group {
    margin-bottom: 18px;
}

.contact-submit {
    border: 1px solid rgba(248, 113, 113, 0.75);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.94), rgba(127, 29, 29, 0.9));
    background-image: none !important;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    min-height: 62px;
    min-width: 280px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform: scale(1.02);
    filter: brightness(1.06);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.contact-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.contact-message.error {
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.28);
}

.contact-message.success {
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, 0.45);
    background: rgba(21, 128, 61, 0.25);
}

@media (max-width: 768px) {
    .site-page-shell {
        padding: 28px 16px 56px;
    }

    .home-trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 20px;
        padding: 0 16px;
    }

    .home-cta-band {
        padding: 0 16px 40px;
    }

    .home-cta-inner {
        padding: 28px 20px;
    }

    .home-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .slideshow-container {
        width: calc(100% - 32px);
        height: min(52vh, 360px);
        border-radius: 16px;
    }

    .slide { padding: 10px 44px 0; }

    .slide-content {
        padding: 12px 14px;
    }

    .slide-title { font-size: 0.95rem; }

    .service-wrap { padding: 0; }

    .contact-title { font-size: 2rem; }
    .contact-subtitle { font-size: 1rem; }
    .contact-action-btn { width: 100%; min-width: 0; }
    .contact-submit { width: 100%; min-width: 0; font-size: 1rem; }
}

/* =========================================
   SERVICE PAGE
   ========================================= */
.service-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

.site-page-shell.service-wrap {
    max-width: 1180px;
}

.service-hero {
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.4);
    padding: 32px 34px;
    margin-bottom: 24px;
}

.service-title {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 980px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.service-box {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(3, 7, 18, 0.9));
    padding: 20px 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.service-box h3 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 27px;
    font-weight: 700;
}

.service-box ul {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 18px;
}

.service-list-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.9);
    padding: 20px 22px;
    margin-bottom: 24px;
}

.service-list-card h3 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 28px;
    font-weight: 700;
}

.service-list-card ul {
    margin: 0;
    padding-left: 22px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 19px;
}

.service-cta {
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(249, 115, 22, 0.1), rgba(15, 23, 42, 0.96));
    padding: 22px 24px;
}

.service-cta h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 29px;
    font-weight: 800;
}

.service-cta p {
    margin: 0;
    color: #e2e8f0;
    font-size: 20px;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .service-wrap { padding: 0 14px; }
    .service-title { font-size: 1.85rem; }
    .service-subtitle { font-size: 19px; }
    .service-box h3, .service-list-card h3 { font-size: 24px; }
    .service-box ul, .service-list-card ul { font-size: 17px; }
    .service-cta h3 { font-size: 24px; }
    .service-cta p { font-size: 18px; }
}

/* =========================================
   TERMS / COMPRAR
   ========================================= */
.terms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 18px;
    color: #cbd5e1;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
}

.terms-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.terms-content {
    line-height: 1.6;
    font-size: 0.95rem;
}

.warning-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 1.5rem;
}

/* =========================================
   USER LICENSE PANEL
   ========================================= */
.user-license-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.6) inset;
    backdrop-filter: blur(12px);
}

.user-license-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 32px 22px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.35), transparent);
}

.user-license-heading .title {
    font-size: 28px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}

.user-license-heading .subtitle {
    font-size: 14px;
    color: #94a3b8;
    max-width: 420px;
    line-height: 1.5;
}

.user-license-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 65, 85, 0.7);
    background: rgba(15, 23, 42, 0.65);
}

.user-license-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    flex-shrink: 0;
}

.user-license-welcome-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-license-greeting {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.user-license-welcome-text strong {
    font-size: 15px;
    color: #e2e8f0;
    font-weight: 700;
    word-break: break-word;
}

.user-license-logout {
    margin-left: 4px;
    white-space: nowrap;
}

.user-license-body {
    padding: 26px 32px 32px;
}

.user-license-download-wrap {
    margin-bottom: 24px;
}

.user-license-download.btn-gaming-download {
    width: 100%;
    max-width: none;
}

.user-license-stats .info-item {
    position: relative;
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(51, 65, 85, 0.65);
    background: rgba(15, 23, 42, 0.75);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.user-license-stats .info-item:hover {
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
}

.user-license-stats .info-item label {
    font-size: 11px;
    letter-spacing: 0.1em;
}

.user-license-stats .info-item span:not(.badge) {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

body.user-panel .license-tabs {
    padding: 4px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.6);
    gap: 8px;
}

body.user-panel .license-tab-btn {
    flex: 1 1 220px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
}

body.user-panel .license-tab-btn.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(234, 88, 12, 0.12));
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.2);
}

body.user-panel .user-license-body .form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

body.user-panel .user-license-body input[type="text"],
body.user-panel .user-license-body input[type="password"] {
    border-radius: var(--radius-md);
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(2, 6, 23, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.user-panel .user-license-body input:focus {
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    outline: none;
}

body.user-panel .form-actions {
    justify-content: stretch;
    margin-top: 24px;
}

body.user-panel .form-actions .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .user-license-card-top {
        flex-direction: column;
        padding: 22px 20px 18px;
    }

    .user-license-welcome {
        width: 100%;
        justify-content: space-between;
    }

    .user-license-body {
        padding: 20px;
    }

    body.user-panel .license-tab-btn {
        flex: 1 1 100%;
    }
}

.license-tabs {
    display: flex;
    gap: 12px;
    margin: 22px 0 18px;
    flex-wrap: wrap;
}

.license-tab-panel {
    display: none;
}

.license-tab-panel.active {
    display: block;
}

.files-license-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.92));
    border: 1px solid var(--color-border);
}

body.user-panel .files-license-box {
    border-color: rgba(51, 65, 85, 0.7);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.files-license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.files-license-title {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
}

.files-license-help {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #34d399;
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: help;
    flex-shrink: 0;
}

.files-license-help:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.files-license-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(320px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.files-license-tooltip strong {
    display: block;
    margin-bottom: 8px;
    color: #6ee7b7;
    font-size: 13px;
}

.files-license-tooltip ol {
    margin: 0 0 10px 18px;
    padding: 0;
}

.files-license-tooltip li + li {
    margin-top: 6px;
}

.files-license-tooltip em {
    color: #f8fafc;
    font-style: normal;
    font-weight: 600;
}

.files-license-tooltip-list {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
}

.files-license-tooltip-note {
    margin: 0;
    color: #fbbf24;
    font-size: 11px;
    line-height: 1.45;
}

.files-license-help:hover .files-license-tooltip,
.files-license-help:focus .files-license-tooltip,
.files-license-help:focus-within .files-license-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.files-license-note {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.files-license-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    justify-content: flex-start;
    align-items: center;
}

body.user-panel .btn-lic-generate,
body.user-panel #btn-generate-files-license {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: none;
    flex: 0 0 auto;
    min-width: 168px;
    padding: 11px 22px;
    min-height: 44px;
    border: none !important;
    border-radius: 10px;
    background-color: #10b981 !important;
    background-image: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.user-panel .btn-lic-generate:hover:not(:disabled),
body.user-panel #btn-generate-files-license:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.42) !important;
}

body.user-panel .btn-lic-generate:active:not(:disabled),
body.user-panel #btn-generate-files-license:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
}

body.user-panel .btn-lic-generate:disabled,
body.user-panel #btn-generate-files-license:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.15);
    box-shadow: none !important;
}

body.user-panel .btn-lic-generate:focus-visible,
body.user-panel #btn-generate-files-license:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 2px;
}

.btn-files-save {
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid #38bdf8;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    background-image: none !important;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.btn-files-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.34);
}

.btn-files-save:active {
    transform: translateY(0);
}

.btn-files-save:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 18px 40px rgba(37, 99, 235, 0.34);
}

.files-license-expiration {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.files-license-expiration strong {
    color: #38bdf8;
    font-weight: 800;
}

.files-license-expiration span {
    color: #f8fafc;
    font-weight: 700;
}

.mini-caption {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
}

/* =========================================
   ADMIN UTILITIES
   ========================================= */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-grid-2-col-15 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 15px;
}

.admin-grid-categories {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.admin-grid-category-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 8px;
}

.admin-flex-gap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-flex-gap-8 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-flex-row {
    display: flex;
    gap: 10px;
}

.admin-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-flex-1 {
    flex: 1;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-card-mb {
    margin-bottom: 30px;
}

.admin-card-mb-20 {
    margin-bottom: 20px;
}

.admin-card-mt-15 {
    margin-top: 15px;
}

.admin-field-mb {
    margin-bottom: 15px;
}

.admin-field-mb-sm {
    margin-bottom: 10px;
}

.admin-mt-15 {
    margin-top: 15px;
}

.admin-mt-10 {
    margin-top: 10px;
}

.admin-mt-8 {
    margin-top: 8px;
}

.admin-mb-14 {
    margin-bottom: 14px;
}

.admin-mb-15 {
    margin-bottom: 15px;
}

.admin-hint {
    font-size: 0.85em;
    color: #9ca3af;
}

.admin-hint-block {
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #9ca3af;
}

.admin-hint-sm {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.admin-form-mt {
    margin-top: 15px;
}

.admin-form-inline {
    display: inline;
    margin: 0;
}

.admin-search-form {
    display: flex;
    gap: 10px;
}

.admin-search-input {
    padding: 5px;
}

.admin-table-wide {
    min-width: 1450px;
}

.admin-td-muted {
    font-size: 0.8em;
    color: #cbd5e1;
}

.admin-td-meta {
    font-size: 0.8em;
    color: #9ca3af;
}

.admin-td-strong {
    font-weight: 600;
    color: #fff;
}

.admin-text-center {
    text-align: center;
}

.admin-empty-state {
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.admin-section-title {
    font-weight: 700;
    color: #f8fafc;
}

.admin-section-title-mb {
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.admin-section-title-mb-10 {
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.admin-note {
    margin-bottom: 15px;
    font-size: 0.92em;
    color: #cbd5e1;
}

.admin-note-sm {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.stat-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px;
}

.stat-card-label {
    font-size: 12px;
    color: #94a3b8;
}

.stat-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 4px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #2563eb;
    background-image: none !important;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-action:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-action--success {
    background: #16a34a;
}

.btn-action--muted {
    background: #334155;
    padding: 10px 16px;
}

.btn-action--disabled {
    background: #475569;
    color: #cbd5e1;
    cursor: default;
}

.admin-dashboard button.btn-action--danger,
.admin-dashboard .btn-action--danger,
button.btn-action--danger {
    background-color: #dc2626 !important;
    background-image: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.days-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.days-badge--critical {
    background: #7f1d1d;
    color: #fecaca;
}

.days-badge--warning {
    background: #854d0e;
    color: #fef08a;
}

.days-badge--ok {
    background: #14532d;
    color: #bbf7d0;
}

.row-warning td {
    background: rgba(250, 204, 21, 0.14);
}

.badge-toggle {
    border: none;
    cursor: pointer;
    background-image: none !important;
}

.label-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-check-wrap {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.label-check-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-dashboard .admin-submit-mt {
    margin-top: 10px;
}

.btn-cancel-inline {
    margin-right: 8px;
    text-decoration: none;
}

.btn-float-right {
    float: right;
}

.text-gold-bold {
    color: #fbbf24;
    font-weight: bold;
}

.input-checkbox-inline {
    width: auto;
    margin: 0;
}

.input-readonly-muted {
    opacity: 0.8;
}

.preview-thumb-box {
    margin-bottom: 10px;
    padding: 10px;
    background: #0f172a;
    border-radius: 8px;
    display: inline-block;
}

.preview-thumb-img {
    max-height: 100px;
    display: block;
}

.news-cover-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.news-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-page-footer {
    text-align: center;
    padding: 40px;
    color: #64748b;
    margin-top: 40px;
}

.admin-td-desc {
    color: #94a3b8;
    max-width: 300px;
}

.btn-link-danger,
.admin-dashboard .btn-link-danger {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background-color: #dc2626 !important;
    background-image: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.admin-dashboard .btn-link-danger:hover {
    filter: brightness(1.08);
}

.th-w-80 { width: 80px; }
.th-w-120 { width: 120px; }
.thumb-slide { width: 100px; height: 60px; }
.badge-order { background: #334155; }
.admin-empty-cell {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}
.link-accent { color: #3b82f6; }

/* =========================================
   ADMIN: ASSET TOOL
   ========================================= */
.asset-tool-grid { display: grid; gap: 16px; }
.asset-tool-card { padding: 16px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.15); background: rgba(15, 23, 42, 0.42); }
.asset-tool-card-compact { padding: 14px; }
.asset-tool-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.asset-tool-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) 90px 90px minmax(220px, 1.2fr) auto; gap: 12px; align-items: end; }
.asset-tool-row + .asset-tool-row { margin-top: 12px; }
.asset-tool-row-actions { display: flex; gap: 10px; justify-content: flex-end; }
.asset-tool-mini { font-size: 0.84em; color: #94a3b8; margin-top: 6px; }
.asset-tool-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.asset-tool-tab {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    background-image: none !important;
}
.asset-tool-tab.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(96, 165, 250, 0.7);
    color: #fff;
}
.asset-tool-preview-layout { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.asset-tool-stage { border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.16); padding: 14px; background: rgba(2, 6, 23, 0.5); }
.asset-tool-canvas { width: 100%; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.14); background-image: linear-gradient(45deg, rgba(148, 163, 184, 0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(148, 163, 184, 0.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.08) 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; cursor: crosshair; }
.asset-tool-sidepanel { display: grid; gap: 14px; }
.asset-tool-crop-grid { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 12px; }
.asset-tool-empty { padding: 18px; text-align: center; color: #94a3b8; border: 1px dashed rgba(148, 163, 184, 0.2); border-radius: 12px; }
.asset-tool-result-grid { display: grid; gap: 12px; }
.asset-tool-result-item { padding: 12px 14px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; background: rgba(15, 23, 42, 0.45); }
.admin-dashboard .asset-tool-btn-secondary,
.admin-dashboard button.asset-tool-btn-secondary {
    background-color: #334155 !important;
    background-image: none !important;
    color: #f1f5f9 !important;
    border: 1px solid #475569 !important;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.admin-dashboard .asset-tool-btn-secondary:hover,
.admin-dashboard button.asset-tool-btn-secondary:hover {
    background-color: #475569 !important;
    filter: brightness(1.05);
}

.admin-dashboard #button-asset-add-more {
    background-color: #ea580c !important;
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    border: none !important;
}

.admin-dashboard button.asset-tool-btn-remove,
.admin-dashboard .asset-tool-btn-remove,
.admin-dashboard button.asset-tool-btn-secondary[data-action="remove"] {
    background-color: #dc2626 !important;
    background-image: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: 1px solid #b91c1c !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.admin-dashboard button.asset-tool-btn-remove:hover,
.admin-dashboard .asset-tool-btn-remove:hover,
.admin-dashboard button.asset-tool-btn-secondary[data-action="remove"]:hover {
    background-color: #b91c1c !important;
    filter: brightness(1.06);
}

@media (max-width: 980px) {
    .asset-tool-preview-layout { grid-template-columns: 1fr; }
    .asset-tool-row { grid-template-columns: 1fr; }
    .asset-tool-row-actions { justify-content: flex-start; }
}

/* ===== Balance Editor PvP Studio ===== */
.balance-editor-page .be-app {
    max-width: 1480px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2.5rem;
    width: 100%;
}

.be-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.be-topbar-info h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.be-topbar-info p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.be-topbar-actions {
    display: flex;
    gap: 0.5rem;
}

.be-btn {
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.15s ease;
}

.be-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.be-btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.be-btn-primary:hover:not(:disabled) {
    background: var(--color-accent-hover);
}

.be-btn-ghost {
    background: transparent;
    border-color: var(--color-border-input);
    color: var(--color-text);
}

.be-btn-ghost:hover:not(:disabled) {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.be-btn-xs {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
    margin-top: 0.4rem;
}

.be-sim-attr-profile {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

.be-btn-accent {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.be-btn-accent:hover:not(:disabled) {
    background: var(--color-accent);
    color: #fff;
}

/* Modal balanceo */
.be-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.be-modal-overlay[hidden] {
    display: none;
}

.be-attr-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
}

.be-attr-question {
    font-size: 1rem;
    margin: 0.75rem 0 1rem;
    text-align: center;
}

.be-attr-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.be-attr-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.be-attr-option:hover {
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.08);
    transform: translateY(-1px);
}

.be-attr-option-label {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.06em;
}

.be-attr-option-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.be-modal-sm {
    max-width: 460px;
}

/* Pantalla de carga — análisis */
.be-analysis-loader {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(ellipse at 50% 30%, rgba(249, 115, 22, 0.12) 0%, rgba(2, 6, 23, 0.94) 55%, rgba(2, 6, 23, 0.98) 100%);
    backdrop-filter: blur(12px);
}

.be-analysis-loader[hidden] {
    display: none;
}

body.be-analysis-loading {
    overflow: hidden;
}

.be-analysis-loader-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.75rem 1.65rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(249, 115, 22, 0.25);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 14, 28, 0.98) 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    text-align: center;
}

.be-analysis-loader-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    color: #f97316;
    animation: be-analysis-spin 1.1s linear infinite;
}

.be-analysis-loader-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes be-analysis-spin {
    to { transform: rotate(360deg); }
}

.be-analysis-loader-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: #fff;
}

.be-analysis-loader-step {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    min-height: 2.6em;
    margin: 0 0 1.25rem;
    line-height: 1.35;
    transition: opacity 0.25s ease;
}

.be-analysis-loader-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.be-analysis-loader-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fbbf24 100%);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
    transition: width 0.08s linear;
}

.be-analysis-loader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.be-analysis-loader-meta span:first-child {
    font-weight: 700;
    color: #fdba74;
    font-variant-numeric: tabular-nums;
}

.be-analysis-loader-files {
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.85;
}

/* Refinamiento post Fase 2 — misma UI, acento más “preciso” */
.be-analysis-loader.be-refine-mode {
    background: radial-gradient(ellipse at 50% 28%, rgba(34, 211, 238, 0.14) 0%, rgba(2, 6, 23, 0.94) 55%, rgba(2, 6, 23, 0.98) 100%);
}

.be-analysis-loader.be-refine-mode .be-analysis-loader-card {
    border-color: rgba(34, 211, 238, 0.28);
}

.be-analysis-loader.be-refine-mode .be-analysis-loader-icon {
    color: #22d3ee;
}

.be-analysis-loader.be-refine-mode .be-analysis-loader-bar {
    background: linear-gradient(90deg, #0e7490 0%, #22d3ee 48%, #a5f3fc 100%);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
    animation: be-refine-bar-glow 1.4s ease-in-out infinite;
}

.be-analysis-loader.be-refine-mode .be-analysis-loader-meta span:first-child {
    color: #a5f3fc;
}

@keyframes be-refine-bar-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

body.be-modal-open {
    overflow: hidden;
}

.be-modal {
    background: #0f172a;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.be-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--color-border);
}

.be-modal-header h2 {
    font-size: 1.05rem;
}

.be-modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.be-modal-body {
    padding: 1rem 1.15rem;
    overflow-y: auto;
    flex: 1;
}

.be-modal-intro {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.be-range-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

/* Slider profesional */
.be-slider-field {
    margin-bottom: 1.1rem;
}

.be-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    gap: 0.75rem;
}

.be-slider-header label {
    font-size: 0.82rem;
    color: var(--color-text);
    font-weight: 500;
}

.be-slider-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.be-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
        to right,
        var(--color-accent) 0%,
        var(--color-accent) var(--fill, 0%),
        #1e293b var(--fill, 0%),
        #1e293b 100%
    );
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: background 0.12s ease;
}

.be-slider:hover {
    background: linear-gradient(
        to right,
        var(--color-accent-hover) 0%,
        var(--color-accent-hover) var(--fill, 0%),
        #334155 var(--fill, 0%),
        #334155 100%
    );
}

.be-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fb923c, #ea580c);
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45), 0 0 0 4px rgba(249, 115, 22, 0.12);
    cursor: grab;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.be-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.08);
    box-shadow: 0 3px 14px rgba(249, 115, 22, 0.55), 0 0 0 6px rgba(249, 115, 22, 0.18);
}

.be-slider::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #1e293b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.be-slider::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
}

.be-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fb923c, #ea580c);
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45);
    cursor: grab;
}

.be-slider-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.be-slider-hint {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.be-range-row input[type="range"] {
    flex: 1;
    accent-color: var(--color-accent);
}

.be-range-row strong {
    min-width: 3rem;
    text-align: right;
    color: var(--color-accent);
}

.be-modal-checks {
    margin: 0.85rem 0;
}

.be-modal-docs {
    margin: 0.75rem 0;
    font-size: 0.78rem;
}

.be-modal-docs summary {
    cursor: pointer;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.be-modal-docs ul {
    margin: 0.35rem 0 0.5rem 1rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.be-modal-docs h4 {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--color-accent);
}

.be-balance-preview {
    margin-top: 0.85rem;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    font-size: 0.82rem;
}

.be-balance-preview h4 {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.be-preview-list {
    margin: 0.35rem 0 0.5rem 1rem;
    line-height: 1.5;
}

.be-preview-warn {
    color: #f97316;
    font-weight: 600;
}

.be-preview-changes {
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.75rem;
}

.be-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--color-border);
}

.be-balance-scope {
    margin: 0.85rem 0;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.be-balance-scope .be-check {
    margin-top: 0.35rem;
}

.be-balance-matchup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.be-preview-success {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

.be-continue-hint {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.be-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.be-toast {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.be-toast-title {
    margin: 0 0 0.4rem;
    font-weight: 600;
    line-height: 1.35;
}

.be-toast-details {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.92;
}

.be-toast-details li + li {
    margin-top: 0.25rem;
}

.be-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.be-toast-success {
    background: #14532d;
    border: 1px solid #22c55e;
    color: #dcfce7;
}

.be-toast-error {
    background: #450a0a;
    border: 1px solid #ef4444;
    color: #fecaca;
}

.be-toast-info {
    background: #1e3a5f;
    border: 1px solid #3b82f6;
    color: #dbeafe;
}

#be-modal-apply:disabled {
    opacity: 0.65;
    cursor: wait;
}

.be-modal-download-box {
    margin-top: 1.1rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md, 10px);
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(160deg, rgba(20, 83, 45, 0.35) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.be-modal-download-box[hidden] {
    display: none;
}

.be-modal-download-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #bbf7d0;
    font-size: 0.95rem;
}

.be-modal-download-hint {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.be-modal-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.be-btn-download {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    color: #f0fdf4;
    border: 1px solid rgba(74, 222, 128, 0.45);
}

.be-btn-download:hover {
    filter: brightness(1.08);
}

.be-skillfight-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}

.be-skillfight-pick .be-label {
    margin-bottom: 0.3rem;
}

.be-chart-wrap-skilldps {
    height: 280px;
}

@media (max-width: 720px) {
    .be-skillfight-controls {
        grid-template-columns: 1fr;
    }
}

.be-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.be-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s ease;
}

.be-tab:hover:not(:disabled) {
    color: var(--color-text);
}

.be-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.be-tab:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.be-panel {
    display: none;
}

.be-panel.active {
    display: block;
}

/* Upload */
.be-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

.be-upload-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
}

.be-upload-slot {
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed var(--color-border-input);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: 0.2s ease;
    position: relative;
}

.be-upload-slot.loaded {
    border-style: solid;
    border-color: var(--color-success);
    background: rgba(34, 197, 94, 0.06);
}

.be-slot-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.6rem;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--color-accent);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.be-upload-slot h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.be-slot-path {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin: 0 0 0.45rem;
    opacity: 0.85;
}

.be-upload-help {
    display: inline-flex;
    vertical-align: middle;
}

.be-upload-help .be-key-help-panel {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: calc(100% - 2.2rem);
    transform: translateX(-50%);
    z-index: 30;
    min-width: 240px;
    max-width: 300px;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    background: #0b1220;
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    display: none;
    text-align: left;
    white-space: normal;
}

.be-upload-help:hover .be-key-help-panel,
.be-upload-help:focus .be-key-help-panel,
.be-upload-help:focus-within .be-key-help-panel {
    display: block;
}

.be-upload-help .be-key-help-panel strong {
    display: block;
    font-size: 0.75rem;
    color: #fdba74;
    margin-bottom: 0.2rem;
}

.be-upload-help .be-key-help-panel em {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.be-upload-help .be-key-help-panel span {
    display: block;
    font-size: 0.74rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.be-upload-help .be-key-help-panel code {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: #fdba74;
    word-break: break-all;
}

.be-slot-status {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.be-upload-slot.loaded .be-slot-status {
    color: var(--color-success);
    font-weight: 600;
}

.be-slot-btn {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-border-input);
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-text);
}

.be-slot-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.be-slot-name {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    word-break: break-all;
}

.be-upload-footer {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.be-upload-msg {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

/* Simulator layout */
.be-sim-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}

.be-sim-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 1rem;
}

.be-sidebar-block {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.be-sidebar-block h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

.be-label {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin: 0.4rem 0 0.2rem;
}

.be-select {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border-input);
    color: var(--color-text);
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.be-select-sm {
    width: auto;
    min-width: 160px;
}

.be-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    cursor: pointer;
}

.be-check-sm {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.be-check input {
    accent-color: var(--color-accent);
}

.be-buff-columns {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.be-buff-list {
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.75rem;
}

.be-muted {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.be-kpi-block .be-kpi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.78rem;
}

.be-kpi-block .be-kpi strong {
    color: var(--color-accent);
    font-size: 0.95rem;
}

.be-verdict {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.be-buff-active-info {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
    opacity: 0.85;
}

.be-sim-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.be-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.be-chart-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.be-chart-card h3 {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text-muted);
}

.be-chart-note {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.55rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
}

.be-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.be-chart-header h3 {
    margin-bottom: 0;
}

.be-chart-wrap {
    height: 220px;
    position: relative;
}

.be-chart-wrap-duel {
    height: 280px;
}

.be-chart-subtitle {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.be-slider-compact {
    margin-top: 0.5rem;
}

.be-chart-duel {
    margin-top: 0.5rem;
}

.be-chart-full .be-chart-wrap:not(.be-chart-wrap-duel) {
    height: auto;
}

.be-chart-full .be-chart-wrap-duel {
    height: 280px;
}

.be-heatmap-wrap {
    overflow: auto;
    padding: 0.25rem;
}

.be-heatmap-wrap canvas {
    cursor: crosshair;
    border-radius: 4px;
}

.be-heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.be-heatmap-legend span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.be-heatmap-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Editor */
.be-editor-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
    min-height: 420px;
}

.be-editor-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.be-editor-nav-item {
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.12s ease;
}

.be-editor-nav-item:hover {
    background: rgba(255,255,255,0.03);
    color: var(--color-text);
}

.be-editor-nav-item.active {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.35);
    color: var(--color-accent);
}

.be-editor-content {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    overflow: auto;
    max-height: 70vh;
}

.be-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.be-table th,
.be-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.4rem 0.5rem;
    text-align: left;
}

.be-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background: rgba(0,0,0,0.15);
}

.be-td-key {
    max-width: 320px;
    word-break: break-word;
}

.be-key-label {
    margin-right: 0.35rem;
}

.be-key-help {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    cursor: help;
}

.be-key-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.08);
    flex-shrink: 0;
}

.be-key-help-icon-inline {
    display: inline-flex;
    vertical-align: middle;
}

.be-key-help:focus {
    outline: none;
}

.be-key-help:focus .be-key-help-icon,
.be-key-help:hover .be-key-help-icon {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--color-accent);
}

.be-key-tooltip {
    position: fixed;
    z-index: 1200;
    width: min(340px, calc(100vw - 24px));
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.be-key-tooltip strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #6ee7b7;
    font-size: 0.78rem;
    font-family: ui-monospace, monospace;
    word-break: break-all;
}

.be-key-tooltip-section {
    display: block;
    margin-bottom: 0.35rem;
    color: #94a3b8;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.be-key-tooltip-desc {
    display: block;
    margin-bottom: 0.35rem;
    color: #e2e8f0;
}

.be-key-tooltip-formula {
    display: block;
    margin-bottom: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.35);
    color: #94a3b8;
    font-size: 0.68rem;
    font-family: ui-monospace, monospace;
    line-height: 1.45;
}

.be-key-tooltip-tip {
    display: block;
    margin-bottom: 0.35rem;
    padding-left: 0.55rem;
    border-left: 2px solid rgba(52, 211, 153, 0.55);
    color: #a7f3d0;
    font-size: 0.7rem;
}

.be-key-tooltip-src {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-style: italic;
}

.be-key-help:hover .be-key-tooltip,
.be-key-help:focus .be-key-tooltip,
.be-key-help:focus-within .be-key-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.be-input-sm {
    width: 72px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-input);
    color: var(--color-text);
    border-radius: 4px;
    padding: 0.25rem 0.35rem;
    font-size: 0.82rem;
}

.be-input-sm:focus {
    outline: none;
    border-color: var(--color-accent);
}

.be-editor-sub {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin: 0.75rem 0 0.35rem;
}

.be-matrix-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.be-matrix-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.be-matrix-label {
    width: 32px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.be-matrix-cells {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.be-matrix-input {
    width: 42px;
    padding: 0.2rem;
    font-size: 0.68rem;
    text-align: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 3px;
}

.be-matrix-input:focus {
    border-color: var(--color-accent);
    outline: none;
}

/* Docs */
.be-docs-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.be-docs-pane {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    font-size: 0.82rem;
    max-height: 70vh;
    overflow: auto;
}

.be-docs-pane h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.be-doc-item {
    border-bottom: 1px solid var(--color-border);
    padding: 0.35rem 0;
}

.be-doc-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.25rem 0;
}

.be-doc-item p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0;
    line-height: 1.45;
}

.be-doc-list {
    margin: 0.25rem 0 0.5rem 1.1rem;
    padding: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.be-doc-list li + li {
    margin-top: 0.35rem;
}

.be-doc-tip {
    padding: 0.4rem 0.55rem;
    border-left: 2px solid rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.06);
    border-radius: 0 6px 6px 0;
}

@media (max-width: 1024px) {
    .be-sim-layout { grid-template-columns: 1fr; }
    .be-sim-sidebar { position: static; }
    .be-chart-row { grid-template-columns: 1fr; }
    .be-editor-layout { grid-template-columns: 1fr; }
    .be-editor-nav { flex-direction: row; flex-wrap: wrap; }
    .be-docs-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .be-upload-grid-3 { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 640px) {
    .be-upload-grid { grid-template-columns: 1fr; }
    .be-attr-options { grid-template-columns: 1fr; }
}

/* Balance Skill wizard */
.be-btn-skill {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
}

.be-btn-skill:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.22);
    border-color: #a855f7;
}

.be-modal-wizard {
    max-width: 560px;
    max-height: 92vh;
}

.be-modal-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
    font-weight: 400;
}

.be-skill-wizard-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 1.15rem;
}

.be-skill-wizard-progress-bar {
    height: 100%;
    width: 12.5%;
    background: linear-gradient(90deg, #a855f7, #f97316);
    transition: width 0.25s ease;
}

.be-skill-wizard-page-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 0.5rem 1.15rem 0;
    margin: 0;
}

.be-skill-wizard-body {
    max-height: 52vh;
    overflow-y: auto;
}

.be-skill-wizard-intro {
    margin-bottom: 1rem;
}

.be-skill-wizard-questions {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.be-skill-q-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.be-skill-q-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.be-skill-q-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fdba74;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.be-skill-q-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0.4rem 0 0;
    line-height: 1.4;
}

.be-skill-wizard-footer {
    justify-content: space-between;
}

.be-preview-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
}

.be-preview-list li {
    margin-bottom: 0.35rem;
}

.be-phase-badge {
    display: inline-block;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
}

.be-phase2-note {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
}

.be-wizard-error {
    margin: 0 0 0.85rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 6px;
}

.be-skill-q-label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.be-skill-q-help {
    position: relative;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.be-skill-q-help .be-key-help-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 220px;
    max-width: 280px;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #0b1220;
    border: 1px solid rgba(249, 115, 22, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    display: none;
    text-align: left;
}

.be-skill-q-help:hover .be-key-help-panel,
.be-skill-q-help:focus .be-key-help-panel,
.be-skill-q-help:focus-within .be-key-help-panel {
    display: block;
}

.be-skill-q-help .be-key-help-panel strong {
    display: block;
    font-size: 0.78rem;
    color: #fdba74;
    margin-bottom: 0.2rem;
}

.be-skill-q-help .be-key-help-panel em {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.be-skill-q-help .be-key-help-panel span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}
