/*
Theme Name: Astra Child
Theme URI: http://example.com/astra-child/
Description: Child Theme for Astra
Author: Antigravity
Author URI: http://example.com
Template: astra
Version: 1.0.1
*/

/* =========================================
   GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-gold: #cfa12f;
    --accent-gold-hover: #e0b445;
    --border-color: #222;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body,
html,
#page,
.hfeed,
.site,
.site-content,
.ast-container {
    background-color: var(--bg-dark) !important;
    background: var(--bg-dark) !important;
    color: var(--text-main);
}

/* Fix Astra Header/Footer Backgrounds */
.site-header,
.site-footer,
.ast-footer-copyright {
    background-color: #000 !important;
    border-bottom: 1px solid #222;
}

.site-footer {
    border-top: 1px solid #222;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
}

a:hover {
    color: var(--accent-gold-hover);
}

/* Override Astra Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff !important;
}

.entry-title {
    display: none;
}

/* Hide default page title */
.entry-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================
   FULL WIDTH & MARGIN REMOVAL
   ========================================= */
.ast-container,
.site-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Hide Unwanted Header/Footer Elements if needed */
.ast-footer-copyright {
    display: none;
}

/* Optional: Hide copyright */

/* =========================================
   SITE BRANDING (Logo)
   ========================================= */
.site-title a {
    font-family: 'Orbitron', sans-serif;
    /* Futuristic Font */
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

/* =========================================
   LAYOUT & CONTAINERS (Dashboard Specific)
   ========================================= */
.ev-dashboard-wrapper {
    max-width: 1400px;
    /* Wider dashboard */
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.ev-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .ev-main-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.ev-hero {
    background: linear-gradient(135deg, #1c1c1c, #000);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.ev-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-gold);
    filter: blur(150px);
    opacity: 0.15;
}

.ev-hero-content h1 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    color: #fff;
    font-weight: 300;
}

.ev-hero-content h1 span {
    font-weight: 700;
    color: var(--accent-gold);
}

.ev-hero-content p {
    color: var(--text-muted);
    margin: 0;
}

.ev-btn-glow {
    background: var(--accent-gold);
    color: #000;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ev-btn-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
    transform: scale(1.05);
    color: #000;
}

/* =========================================
   HIDE DEFAULT WOOCOMMERCE LOOP
   (Prevents duplicates on Shop Page)
   ========================================= */
.woocommerce-shop ul.products,
.post-type-archive-product ul.products {
    display: none !important;
}

/* Ensure our grid is visible */
.ev-store-grid {
    display: grid !important;
}

/* =========================================
   STATS CARDS (Glassmorphism)
   ========================================= */
.ev-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ev-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.ev-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.ev-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.ev-card-icon.purple {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.ev-card-icon.green {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.ev-card-info h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ev-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.ev-card-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-15deg);
}

/* =========================================
   SECTIONS & TABLES
   ========================================= */
.ev-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 25px;
    height: 100%;
}

.ev-section.small-pad {
    padding: 20px;
    margin-bottom: 25px;
}

.ev-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.ev-section-header h2 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.ev-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.ev-table th {
    text-align: left;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0 15px 5px;
}

.ev-table td {
    background: #181818;
    padding: 15px;
    font-size: 0.95rem;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #252525;
    color: #ccc;
}

.ev-table td:first-child {
    border-left: 1px solid #252525;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #fff;
}

.ev-table td:last-child {
    border-right: 1px solid #252525;
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
}

.ev-daily {
    color: var(--success);
    font-weight: bold;
}

.ev-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================================
   FORMS & INPUTS
   ========================================= */
.ev-input-icon {
    position: relative;
}

.ev-input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.ev-input-icon input {
    padding-left: 40px !important;
}

.ev-btn-full {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ev-btn-full:hover {
    background: var(--accent-gold);
    color: #000;
}

/* =========================================
   REFERRAL BOX
   ========================================= */
.ev-ref-box {
    display: flex;
    gap: 10px;
    background: #000;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #333;
}

.ev-ref-box input {
    border: none !important;
    background: transparent !important;
    color: var(--accent-gold) !important;
    padding: 10px !important;
}

.ev-ref-box button {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 40px;
    cursor: pointer;
}

.ev-ref-box button:hover {
    background: #555;
}

.ev-ref-stat {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-message-box {
    margin-top: 15px;
}

.ev-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.ev-error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* =========================================
   NEW WITHDRAW SECTION
   ========================================= */
.ev-withdraw-section {
    margin-top: 50px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.ev-withdraw-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.ev-withdraw-header {
    text-align: center;
    margin-bottom: 30px;
}

.ev-withdraw-header h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.ev-withdraw-header p {
    color: #888;
}

.ev-withdraw-body {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ev-withdraw-flex-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group.flex-sh {
    flex: 1;
    min-width: 250px;
}

.ev-input-icon.big input {
    height: 60px;
    font-size: 1.2rem;
    padding-left: 50px;
    background: #000;
    border-color: #333;
}

.ev-input-icon.big i {
    top: 20px;
    left: 20px;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.ev-btn-glow.big-btn {
    height: 60px;
    padding: 0 40px;
    font-size: 1.1rem;
    white-space: nowrap;
    border: none;
    background: var(--accent-gold);
    color: #000;
    cursor: pointer;
    font-weight: 800;
}

/* MESSAGES */
.ev-message-inline {
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.ev-message-inline .error {
    color: #ff4757;
}

.ev-message-inline .success {
    color: #2ecc71;
}

/* =========================================
   FIX WHITESPACE GAPS (Aggressive)
   ========================================= */
body,
html,
#page,
.hfeed,
.site {
    background-color: var(--bg-dark) !important;
}

.ast-separate-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.entry-content,
.ast-primary-header-bar,
.site-content {
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove Footer Whitespace */
.site-footer {
    display: none !important;
    /* Hide footer completely if broken */
}

.ast-footer-copyright {
    display: none !important;
}