/* ==========================================
   CARGA BRUTA BRASIL - LOJA DE GOLD CSS
   ========================================== */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1f2640;
    --border-color: #2a2f42;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6b737e;
    --accent-orange: #f97316;
    --accent-light: #fb923c;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-gold: #fbbf24;
    --gradient-primary: linear-gradient(135deg, #f97316, #fb923c);
    --gradient-hero: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

/* ---- Header ---- */
.loja-header {
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.loja-header-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
}

.loja-header-content {
    position: relative;
    z-index: 1;
}

.gold-icon-big {
    font-size: 3em;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.loja-header h1 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 8px;
}

.loja-header p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* ---- User Section ---- */
.user-section,
.packs-section {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 30px 30px 50px;
    margin-bottom: 24px;
}

.step-badge {
    position: absolute;
    top: 20px;
    left: -16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.user-section h2,
.packs-section h2 {
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.user-section h2 i,
.packs-section h2 i {
    color: var(--accent-orange);
    margin-right: 8px;
}

/* ---- Input ---- */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent-orange);
}

.input-group button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
    white-space: nowrap;
}

.input-group button:hover { opacity: 0.9; }
.input-group button:active { transform: scale(0.98); }

/* ---- User Status ---- */
.user-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    display: none;
}

.user-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.user-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.user-status.loading {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ---- Packs Grid ---- */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pack-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pack-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

.pack-card .badge {
    position: absolute;
    top: 10px;
    right: -28px;
    font-size: 0.6em;
    font-weight: 700;
    padding: 3px 32px;
    transform: rotate(45deg);
    color: #fff;
    letter-spacing: 0.5px;
}

.pack-card .badge.popular {
    background: var(--accent-orange);
}

.pack-card .badge.best {
    background: var(--accent-green);
}

.pack-gold {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.pack-label {
    color: var(--text-secondary);
    margin: 4px 0 14px;
    font-size: 0.9em;
    font-weight: 500;
}

.pack-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-green);
}

.pack-price small {
    font-size: 0.45em;
    color: var(--text-muted);
    font-weight: 400;
}

.pack-per-gold {
    color: var(--text-muted);
    font-size: 0.78em;
    margin-top: 4px;
}

.pack-btn {
    margin-top: 16px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s;
}

.pack-btn:hover { opacity: 0.9; }

.pack-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ---- Payment Info ---- */
.payment-info {
    text-align: center;
    padding: 20px;
    margin: 30px 0 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.payment-info i {
    font-size: 1.4em;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.payment-info p {
    color: var(--text-secondary);
    font-size: 0.88em;
    line-height: 1.7;
}

.payment-info strong {
    color: var(--text-primary);
}

/* ---- Notification ---- */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9em;
    z-index: 1000;
    display: none;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    display: block;
    background: var(--accent-green);
    color: #fff;
}

.notification.error {
    display: block;
    background: var(--accent-red);
    color: #fff;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.82em;
    border-top: 1px solid var(--border-color);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .loja-header h1 { font-size: 1.8em; }
    .packs-grid { grid-template-columns: 1fr 1fr; }
    .input-group { flex-direction: column; }
    .user-section, .packs-section { padding: 24px 20px 24px 44px; }
    .nav-links { display: none; }
}

@media (max-width: 420px) {
    .packs-grid { grid-template-columns: 1fr; }
}
