/*******************************************************
 * DaggerRO Auto Patcher - Compact 780x580 Theme
 * Styled according to DaggerRO Web Identity
 * Built for Kafra Patcher (Rust/Webview)
 *******************************************************/

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

:root {
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --secondary: #f97316;
    --secondary-glow: rgba(249, 115, 22, 0.4);
    --accent: #38bdf8;
    --gold: #fbbf24;
    --success: #22c55e;
    --danger: #ef4444;
    
    --bg-dark: #090d16;
    --bg-panel: rgba(15, 23, 42, 0.75);
    --bg-card: rgba(30, 41, 59, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(37, 99, 235, 0.5);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 780px;
    height: 580px;
    overflow: hidden;
    background: transparent;
    font-family: var(--font);
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.5;
    cursor: url('../img/ro_cursor.webp'), default;
}

a, button, input, select, .clickable {
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
}

/* App Window Wrapper */
.patcher-window {
    width: 780px;
    height: 580px;
    background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 15% 85%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
                linear-gradient(145deg, #0b1120 0%, #070a12 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Background Texture */
.patcher-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* =========================================
   1. TITLEBAR (DRAGGABLE)
   ========================================= */
.titlebar {
    height: 38px;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: move;
    z-index: 100;
    position: relative;
}

.titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulseDot 2s infinite;
}

.server-dot.offline {
    background: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important;
    animation: none !important;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.titlebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.titlebar-title span {
    color: #fff;
    font-weight: 800;
}

.titlebar-version {
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.titlebar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    -webkit-app-region: no-drag;
}

.window-btn {
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.window-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.window-btn.btn-close:hover {
    background: var(--danger);
    color: #fff;
}

.window-btn.btn-setup:hover {
    color: var(--accent);
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    height: 70px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 90;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 58px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.6));
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.04);
}

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

.nav-item {
    position: relative;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.25);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.5);
}

.nav-btn-highlight {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.nav-btn-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.5);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn.active {
    color: var(--gold);
    border-color: rgba(251, 191, 36, 0.4);
}

/* =========================================
   3. MAIN CONTENT CONTAINER (372px height — navbar cresceu 10px)
   ========================================= */
.main-viewport {
    height: 372px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    padding: 14px 16px;
}

.tab-pane {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    bottom: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
    gap: 14px;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- TAB: HOME / INÍCIO --- */
.home-left {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-right {
    flex: 0.85;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* News Box */
.news-box {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.news-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.news-box-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent);
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1;
}

.news-list::-webkit-scrollbar {
    width: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.news-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateX(2px);
}

.news-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.tag-notice { background: rgba(37, 99, 235, 0.25); color: #60a5fa; }
.tag-event { background: rgba(249, 115, 22, 0.25); color: #fb923c; }
.tag-update { background: rgba(34, 197, 94, 0.25); color: #4ade80; }

.news-item-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-date {
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* Banner Hero Card */
.hero-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius);
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 105px;
}

/* Banner Interativo: Pacote Desbravador */
.hero-card.hero-desbravador {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(20, 10, 5, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-card.hero-desbravador:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3), inset 0 0 25px rgba(245, 158, 11, 0.12);
}

.hero-desbravador-bg {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background-size: cover;
    background-position: right 20%;
    opacity: 0.65;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.hero-card.hero-desbravador:hover .hero-desbravador-bg {
    transform: scale(1.05);
    opacity: 0.85;
}

.hero-desbravador-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.90) 45%, rgba(15, 23, 42, 0.35) 75%, rgba(15, 23, 42, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-desbravador-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 72%;
}

.hero-tag-pkg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8.5px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-price-chip {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.hero-title-pkg {
    font-size: 13.5px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-sub-pkg {
    font-size: 9.5px;
    color: #cbd5e1;
    line-height: 1.25;
    margin-top: 2px;
}

.hero-cta-btn {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.hero-card.hero-desbravador:hover .hero-cta-btn {
    transform: scale(1.05);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
}

.hero-art {
    position: absolute;
    right: -10px;
    bottom: -15px;
    height: 140px;
    opacity: 0.75;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.hero-card:hover .hero-art {
    transform: scale(1.05);
}

.hero-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hero-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    z-index: 2;
}

.hero-sub {
    font-size: 10px;
    color: var(--text-muted);
    z-index: 2;
    margin-top: 2px;
}

/* Server Info Card */
.info-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
}

.info-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 8px;
}

.stat-chip-label {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-chip-val {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.features-banner {
    background: rgba(249, 115, 22, 0.08);
    border: 1px dashed rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

/* Quick Action Links */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-link-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.quick-link-btn.discord {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.35);
    color: #a5b4fc;
}

.quick-link-btn.discord:hover {
    background: rgba(88, 101, 242, 0.3);
    color: #fff;
}

/* =========================================
   DISCREET PLAYER ACCOUNT BOX (RIGHT CARD)
   ========================================= */
.player-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
}

.player-box-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

/* Discret Login Form */
.player-input-wrap {
    position: relative;
    margin-bottom: 6px;
}

.player-input-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-dim);
    pointer-events: none;
}

.player-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 10px 6px 28px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    outline: none;
    transition: all 0.2s;
}

.player-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.btn-player-login {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    padding: 7px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-player-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.player-login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
}

.player-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.player-link:hover {
    text-decoration: underline;
}

/* Logged-in Profile View */
.player-profile-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar-circle {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.profile-text-welcome {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.profile-text-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.profile-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 5px 8px;
    text-align: center;
}

.profile-stat-lbl {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.profile-stat-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
}

.account-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.btn-acc-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-acc-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-acc-action.primary {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.4);
    color: #93c5fd;
}

.btn-acc-action.primary:hover {
    background: rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-acc-action.logout {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-acc-action.logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* Admin news button */
.btn-admin-news {
    background: rgba(249,115,22,0.18);
    border: 1px solid rgba(249,115,22,0.35);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 11px;
    color: var(--secondary);
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
    margin-left: 6px;
    line-height: 1;
}
.btn-admin-news:hover {
    background: rgba(249,115,22,0.35);
    color: #fff;
}

/* News item clickable */
.news-item {
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
}

/* Loading state */
.news-item-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-dim);
    font-size: 11px;
    list-style: none;
}


/* --- TAB: CADASTRO / REGISTRO --- */
.register-container {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 16px;
}

.register-card {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.register-perks {
    flex: 0.9;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 7px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 7px;
}

.form-row-2col .form-row {
    margin-bottom: 0;
}

.form-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 10px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #0f172a;
    color: #fff;
}

.reg-feedback {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.reg-feedback.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.reg-feedback.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.btn-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    padding: 9px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.perk-icon {
    font-size: 18px;
}

.perk-text-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.perk-text-sub {
    font-size: 10px;
    color: var(--text-dim);
}

/* --- TAB: DOAÇÃO / DONATE (Nova versão com pacotes) --- */
.donate-container-new {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 12px;
}

.donate-packages-col {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.donate-header-info {
    margin-bottom: 2px;
}

.donate-pkg-card {
    background: rgba(15,23,42,0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.donate-pkg-card:hover {
    border-color: rgba(249,115,22,0.4);
    background: rgba(30,41,59,0.8);
    transform: translateX(2px);
}

.donate-pkg-card.selected {
    border-color: var(--secondary);
    background: rgba(249,115,22,0.08);
    box-shadow: 0 0 0 1px rgba(249,115,22,0.3);
}

.pkg-badge {
    font-size: 20px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pkg-badge-gold  { background: rgba(251,191,36,0.15); }
.pkg-badge-blue  { background: rgba(37,99,235,0.15); }
.pkg-badge-green { background: rgba(34,197,94,0.15); }

.pkg-info {
    flex: 1;
    min-width: 0;
}

.pkg-name {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkg-perks {
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkg-price {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary);
    flex-shrink: 0;
    text-align: right;
    min-width: 52px;
}

.free-amount-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 7px 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: none;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
}

.free-amount-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(249,115,22,0.2);
}

.donate-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 6px 0;
}

.donate-preset-chip {
    background: rgba(15,23,42,0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 7px 4px;
    text-align: center;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s ease;
}

.donate-preset-chip:hover {
    border-color: rgba(249,115,22,0.5);
    background: rgba(30,41,59,0.9);
    transform: translateY(-1px);
}

.donate-preset-chip.active {
    border-color: var(--secondary);
    background: rgba(249,115,22,0.15);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(249,115,22,0.25);
}

.donate-calc-box {
    background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(15,23,42,0.7) 100%);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0;
}

.donate-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 12px;
    gap: 8px;
}

.donate-input-wrap:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(249,115,22,0.2);
}

.donate-currency-prefix {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
}

.donate-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

/* --- Coluna Direita: Resumo / PIX --- */
.donate-action-col {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donate-summary-box {
    background: rgba(15,23,42,0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.donate-summary-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
}

.donate-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
}

.donate-warning {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 10px;
    color: #fca5a5;
    text-align: center;
}

.btn-donate-pix {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9px;
    padding: 9px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(249,115,22,0.35);
    transition: all 0.2s;
    width: 100%;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
}

.btn-donate-pix:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.55);
    filter: brightness(1.08);
}

.btn-donate-pix:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- PIX QR Code View --- */
.pix-card {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.pix-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--secondary);
    text-align: center;
}

.pix-qr-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-img {
    max-width: 185px;
    max-height: 185px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.pix-label {
    font-size: 9px;
    color: var(--text-dim);
}

.pix-code-box {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 6px;
}

.pix-code-text {
    flex: 1;
    font-size: 8px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

.btn-copy-pix {
    background: transparent;
    border: none;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: transform 0.15s;
}
.btn-copy-pix:hover { transform: scale(1.2); }

.pix-info {
    font-size: 9px;
    color: #4ade80;
    font-weight: 600;
    text-align: center;
}

.pix-status-pending {
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    color: var(--secondary);
    width: 100%;
    text-align: center;
}

.pix-status-approved {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    color: #4ade80;
    width: 100%;
    text-align: center;
}

.btn-pix-back {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 10px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
    width: 100%;
}
.btn-pix-back:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Doação Livre */
.donate-container {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 12px;
    overflow: visible;
}

.donate-left {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
}

.donate-right {
    flex: 0.85;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* --- TAB: LOGIN SSO --- */
.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 380px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-header {
    text-align: center;
}

.login-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.login-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input {
    accent-color: var(--primary);
}

.link-muted {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.link-muted:hover {
    text-decoration: underline;
}

/* =========================================
   4. FOOTER / PATCHER CONTROL DECK (100px)
   ========================================= */
.patcher-footer {
    height: 100px;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 10px 18px;
    gap: 16px;
    z-index: 100;
    position: relative;
}

.deck-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.progress-status {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-status.ready {
    color: #4ade80;
}

.progress-status.error {
    color: var(--danger);
}

.progress-stats {
    font-weight: 600;
    color: var(--text-dim);
    font-size: 10px;
}

/* Progress Bar Container */
.progress-bar-wrapper {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #f97316 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    animation: barShimmer 2s linear infinite;
}

@keyframes barShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.progress-bar-fill.error {
    background: var(--danger);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.deck-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Big Play Button */
.btn-play {
    width: 155px;
    height: 52px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-play.ready {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    opacity: 1;
    animation: pulsePlay 2.5s infinite;
}

.btn-play.ready:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.7), 0 0 15px rgba(249, 115, 22, 0.6);
}

.btn-play.ready:active {
    transform: translateY(1px) scale(0.98);
}

@keyframes pulsePlay {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(37, 99, 235, 0.75), 0 0 20px rgba(249, 115, 22, 0.4);
    }
}

/* Options Dropdown */
.dropdown {
    position: relative;
}

.btn-dropdown-toggle {
    width: 38px;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 190px;
    background: #0f172a;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 200;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Toast Notifications (Browser testing & patcher feedback) */
.toast-container {
    position: absolute;
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

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

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

/* =========================================
   MODALS (Notícia & Admin)
   ========================================= */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

/* Modal de leitura de notícia */
.news-modal {
    width: 480px;
    max-height: 380px;
    background: linear-gradient(145deg, #0f172a 0%, #0b1120 100%);
    border: 1px solid rgba(37,99,235,0.35);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: slideUp 0.25s ease;
    position: relative;
}

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

.news-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-modal-date {
    font-size: 9px;
    color: var(--text-dim);
}

.news-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
}
.news-modal-close:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.news-modal-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.news-modal-author {
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: -6px;
}

.news-modal-body {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
    user-select: text;
    -webkit-user-select: text;
}

.news-modal-body::-webkit-scrollbar { width: 4px; }
.news-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.news-modal-body ul, .news-modal-body ol {
    padding-left: 18px;
    margin: 6px 0;
}

.news-modal-body p { margin: 4px 0; }
.news-modal-body strong { color: #fff; }
.news-modal-body a { color: var(--accent); }

/* Modal Admin de Notícias */
.admin-modal {
    width: 500px;
    max-height: 400px;
    background: linear-gradient(145deg, #0f172a 0%, #0b1120 100%);
    border: 1px solid rgba(249,115,22,0.35);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: slideUp 0.25s ease;
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.admin-modal-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 110px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-news-list::-webkit-scrollbar { width: 4px; }
.admin-news-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.admin-news-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 7px;
    padding: 5px 8px;
}

.admin-news-row-title {
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-admin-edit {
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 700;
    color: #93c5fd;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
}
.btn-admin-edit:hover { background: rgba(37,99,235,0.4); color: #fff; }

.btn-admin-del {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 700;
    color: #fca5a5;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
}
.btn-admin-del:hover { background: rgba(239,68,68,0.3); color: #fff; }

.admin-form-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow: hidden;
}

.admin-form-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    margin-bottom: 4px;
}

.admin-input {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 5px 9px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
    user-select: text;
    -webkit-user-select: text;
}
.admin-input:focus { border-color: var(--primary); }

.admin-select {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 5px 8px;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    outline: none;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
}

.admin-textarea {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 6px 9px;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    outline: none;
    width: 100%;
    resize: none;
    transition: border-color 0.2s;
    user-select: text;
    -webkit-user-select: text;
    line-height: 1.5;
}
.admin-textarea:focus { border-color: var(--primary); }

.admin-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-admin-clear {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 5px 12px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
}
.btn-admin-clear:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-admin-save {
    background: linear-gradient(135deg, var(--secondary) 0%, #ea580c 100%);
    border: none;
    border-radius: 7px;
    padding: 5px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}
.btn-admin-save:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.45); }

/* =========================================
   DONATE TAB
   ========================================= */

.donate-container {
    display: flex;
    gap: 10px;
    height: 100%;
    padding: 6px 12px 8px 12px;
    overflow: hidden;
}

/* LEFT SIDE */
.donate-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* RIGHT SIDE */
.donate-right {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Preset chips grid */
.donate-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.donate-preset-chip {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    padding: 3px 5px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 700;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.donate-preset-chip:hover {
    background: rgba(37,99,235,0.2);
    border-color: rgba(37,99,235,0.5);
    color: #93c5fd;
    transform: translateY(-1px);
}

.donate-preset-chip.active {
    background: linear-gradient(135deg, rgba(249,115,22,0.3), rgba(234,88,12,0.2));
    border-color: rgba(249,115,22,0.6);
    color: #fb923c;
    box-shadow: 0 0 8px rgba(249,115,22,0.2);
}

/* Amount input */
.donate-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0 8px;
    gap: 6px;
    transition: border-color 0.2s;
}

.donate-input-wrap:focus-within {
    border-color: rgba(249,115,22,0.6);
    box-shadow: 0 0 0 2px rgba(249,115,22,0.1);
}

.donate-currency-prefix {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary);
    flex-shrink: 0;
}

.donate-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 0;
    width: 100%;
    user-select: text;
    -webkit-user-select: text;
}

.donate-amount-input::-webkit-inner-spin-button,
.donate-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Calc box */
.donate-calc-box {
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* Warning / not logged in */
.donate-warning {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 9.5px;
    color: #fca5a5;
    line-height: 1.3;
}

/* Generate PIX button */
.btn-donate-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(249,115,22,0.4);
    letter-spacing: 0.3px;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-donate-pix:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.55);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.btn-donate-pix:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.btn-donate-pix:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Summary/benefits box (right side default view) */
.donate-summary-box {
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.donate-summary-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
    border-bottom: 1px solid rgba(251,191,36,0.15);
    padding-bottom: 6px;
}

/* PIX card (right side after generating) */
.pix-card {
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    box-shadow: 0 0 20px rgba(99,102,241,0.1);
}

.pix-title {
    font-size: 12px;
    font-weight: 800;
    color: #a5b4fc;
    text-align: center;
}

.pix-label {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
}

/* QR Code */
.pix-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 4px;
}

.pix-qr-img {
    max-width: 185px;
    max-height: 185px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* PIX code copy row */
.pix-code-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    padding: 5px 7px;
}

.pix-code-text {
    flex: 1;
    font-size: 8px;
    color: var(--text-muted);
    word-break: break-all;
    overflow: hidden;
    max-height: 30px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    user-select: text;
    -webkit-user-select: text;
}

.btn-copy-pix {
    flex-shrink: 0;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 5px;
    padding: 3px 6px;
    color: #a5b4fc;
    font-size: 10px;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
}

.btn-copy-pix:hover {
    background: rgba(99,102,241,0.35);
    transform: scale(1.05);
}

/* Info: credits to be received */
.pix-info {
    font-size: 10px;
    color: var(--gold);
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
}

/* Status bar */
.pix-status-pending {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 9px;
    color: #fde68a;
    text-align: center;
    animation: pix-pulse 2s ease-in-out infinite;
}

.pix-status-approved {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 9px;
    color: #4ade80;
    text-align: center;
    font-weight: 700;
}

.pix-status-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 9px;
    color: #fca5a5;
    text-align: center;
}

@keyframes pix-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Cancel / back button */
.btn-pix-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    padding: 4px 10px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 9px;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-pix-back:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--text-muted);
}

/* Success view */
.donate-success-view {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.35);
    border-radius: 10px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    flex: 1;
    animation: success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Loading spinner for pix generation */
.pix-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9,13,22,0.7);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.pix-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(249,115,22,0.2);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


/* =========================================
   DONATE SUBTABS & PACOTE DESBRAVADOR
   ========================================= */

.donate-subnav {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    width: 100%;
}

.donate-subtab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    transition: all 0.2s ease;
}

.donate-subtab-btn:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-main);
}

.donate-subtab-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.85));
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.donate-subtab-btn.active.btn-subtab-pkg {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(251, 191, 36, 0.15));
    border-color: rgba(251, 191, 36, 0.7);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.subtab-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fb923c;
    letter-spacing: 0.3px;
}

/* Container de visualização das subtabs */
.donate-subviews-wrap {
    flex: 1;
    display: flex;
    min-height: 0;
    width: 100%;
}

.donate-subview {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 10px;
}

/* Pacote Desbravador - Banner e Preço */
.pkg-price-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 9px;
    padding: 4px 8px;
    margin: 1px 0;
}

.pkg-price-val {
    font-size: 16px;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pkg-price-val small {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
}

.pkg-price-badge {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Callout do NPC no Jogo */
.pkg-npc-callout {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 4px 8px;
    margin: 1px 0;
}

.pkg-npc-callout .npc-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.pkg-npc-callout .npc-text {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.25;
}

.pkg-npc-callout .npc-text strong {
    color: #a5b4fc;
}

/* Botão de Compra do Pacote */
.btn-donate-package {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 34px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: url('../img/ro_cursor_hover.webp'), pointer;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transition: all 0.2s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-donate-package:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

.btn-donate-package:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Lista de Itens do Pacote no Lado Direito */
.pkg-items-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    padding: 8px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pkg-items-scroll {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0;
    overflow-y: auto;
    max-height: 220px;
    padding-right: 3px;
}

.pkg-items-scroll::-webkit-scrollbar {
    width: 4px;
}

.pkg-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

.pkg-item-card {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    padding: 4px 7px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pkg-item-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(251, 191, 36, 0.35);
}

.pkg-item-card .item-ico {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: radial-gradient(circle, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 6px;
    padding: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pkg-item-card:hover .item-ico {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.pkg-item-card .item-ico img {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.pkg-item-card .item-details {
    flex: 1;
    min-width: 0;
}

.pkg-item-card .item-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.pkg-item-card .item-name {
    font-size: 10px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkg-item-card .item-qty-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    flex-shrink: 0;
}

.pkg-item-card .item-desc {
    font-size: 8.5px;
    color: var(--text-dim);
    line-height: 1.2;
    margin-top: 1px;
}
