@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700&family=Cinzel+Decorative:wght@700&display=swap');

:root {
    --bg-main: #060913;
    --bg-surface: rgba(13, 19, 36, 0.75);
    --bg-surface-elevated: rgba(19, 29, 56, 0.85);
    --border-gold: rgba(245, 158, 11, 0.35);
    --border-gold-hover: rgba(251, 191, 36, 0.75);
    --gold-primary: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --cyan-accent: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.35);
    --crimson: #ef4444;
    --emerald: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-decor: 'Cinzel Decorative', serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, #060913, #0b1120);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060913; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; border: 1px solid var(--border-gold); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* Typography */
h1, h2, h3, h4, .ro-title {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-gold {
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--gold-glow);
}

.text-cyan {
    color: var(--cyan-accent);
    text-shadow: 0 0 12px var(--cyan-glow);
}

/* NAVBAR */
.ro-navbar {
    background: rgba(8, 12, 24, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-decor);
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 20px var(--gold-glow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #fef08a, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--gold-primary);
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* BUTTONS */
.btn-ro {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0f19;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid #fbbf24;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-ro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
}

.btn-ro-outline {
    background: rgba(13, 19, 36, 0.6);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ro-outline:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px var(--gold-glow);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border: 1px solid #f87171;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-cyan {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border: 1px solid var(--cyan-accent);
    box-shadow: 0 4px 15px var(--cyan-glow);
}

.btn-cyan:hover {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

/* HERO SECTION */
.hero-section {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-banner {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    background: linear-gradient(to bottom, #ffffff 0%, #fde68a 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.08em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* SERVER STATUS BAR */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.status-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.status-card:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.status-icon.online {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.status-icon.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-icon.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-info h4 {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.status-info .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* MAIN CONTENT TABS */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
    width: 100%;
    flex: 1;
}

.tab-nav {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-gold);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.05);
}

.tab-btn.active {
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    border-bottom: none;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* RO CARD */
.ro-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.ro-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.ro-card-header h3 {
    font-size: 1.25rem;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CHARACTERS GRID */
.chars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.char-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.char-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

.char-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.char-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.job-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    color: var(--gold-bright);
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.char-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.char-stats-row .stat-val {
    font-weight: 600;
    color: #f1f5f9;
}

.char-progress-bar {
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.char-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright));
    border-radius: 3px;
}

.char-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* TABLES */
.ro-table-wrapper {
    overflow-x: auto;
}

.ro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ro-table th {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gold);
}

.ro-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.ro-table tr:hover td {
    background: rgba(245, 158, 11, 0.04);
    color: #fff;
}

.rank-trophy {
    font-size: 1.2rem;
}

.rank-1 { color: #fbbf24; }
.rank-2 { color: #cbd5e1; }
.rank-3 { color: #d97706; }

/* MODALS */
.ro-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 0.75rem;
    overflow-y: auto;
}

.ro-modal {
    background: #0d1324;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 530px;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ro-modal-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(0,0,0,0.4));
    border-bottom: 1px solid var(--border-gold);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ro-modal-header h3 {
    font-size: 1.15rem;
    color: var(--gold-bright);
    margin: 0;
}

.ro-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
}

.ro-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.ro-modal-body {
    padding: 1rem 1.25rem;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) rgba(15, 23, 42, 0.6);
}

.ro-modal-body::-webkit-scrollbar {
    width: 6px;
}

.ro-modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.ro-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

.ro-modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(6, 9, 19, 0.95);
    flex-shrink: 0;
}

/* FORMS */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    background: rgba(15, 23, 42, 1);
}

/* SHOP GRID */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shop-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.shop-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid var(--border-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.shop-icon-wrapper img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.shop-card:hover .shop-icon-wrapper img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.shop-item-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shop-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-bright);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    color: #fff;
    border-left: 4px solid var(--gold-primary);
    padding: 1rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
}

.toast.success { border-color: var(--emerald); }
.toast.error { border-color: var(--crimson); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* FOOTER */
.ro-footer {
    background: #04060d;
    border-top: 1px solid var(--border-gold);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: auto;
}

.ro-footer a {
    color: var(--gold-bright);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2rem; }
    .status-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .status-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.6rem; }
}

/* RECHARGE RP & MERCADO PAGO STYLES */
.rp-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0.75rem;
}

.rp-pkg-btn {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 0.45rem 0.35rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.25;
}

.rp-pkg-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}

.rp-pkg-btn.active {
    border-color: var(--gold-bright);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
    color: #fff;
}

.rp-pkg-btn .pkg-rp {
    font-size: 0.76rem;
    color: var(--gold-bright);
    font-weight: 800;
    display: block;
    margin-top: 2px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(30, 41, 59, 0.85);
}

.payment-method-card.selected {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.badge-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-status.approved {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-status.rejected, .badge-status.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
