/* White Card Theme - AdUsdc Style */
body {
    background: #F8F9FA !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Cards - White with Dark Purple Border */
.card-primary {
    background: white !important;
    border: 1px solid #6D28D9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
}

.card-primary:hover {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* Balance Card - Purple Gradient with WHITE Text */
.card-balance {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, .25) !important;
    border: 1px solid #5B21B6 !important;
    border-radius: 20px !important;
    padding: 35px 25px !important;
    color: white !important;
}

.card-balance * {
    color: white !important;
}

.card-balance h3 {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: white !important;
}

.card-balance h6 {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: white !important;
}

.card-balance .balance-text {
    color: white !important;
}

/* Buttons - Purple Primary */
.btn-primary {
    background: #7C3AED !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .25) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:active,
.btn-primary:hover,
.btn-primary:focus {
    background: #6D28D9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, .35) !important;
}

/* Navbar with Border Lines */
.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border-bottom: 1px solid #6D28D9 !important;
    position: relative;
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7C3AED, transparent);
}

.navbar .btn {
    background: white !important;
    color: #7C3AED !important;
    border: 2px solid #E9D5FF !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

.navbar .btn:hover {
    background: #7C3AED !important;
    color: white !important;
    border-color: #7C3AED !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .25) !important;
}

.navbar .btn-primary {
    background: #7C3AED !important;
    color: white !important;
    border: none !important;
}

.navbar-toggler {
    border-color: rgba(124, 58, 237, .3) !important;
}

/* Pills Navigation - Card Style with Border */
.nav-pills {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #6D28D9;
    margin-bottom: 30px;
}

.nav-pills .nav-item {
    margin: 5px;
}

.nav-pills .nav-link {
    background: white !important;
    color: #7C3AED !important;
    border: 2px solid #E9D5FF !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
    background: #7C3AED !important;
    color: white !important;
    border-color: #7C3AED !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .25) !important;
}

.i-pills, .active.i-pills {
    background: white !important;
    color: #7C3AED !important;
    border: 2px solid #E9D5FF !important;
}

.i-pills:hover, .active.i-pills:hover, .active.i-pills {
    background: #7C3AED !important;
    color: white !important;
}

/* Feature Cards - White with Dark Purple Border */
.feature-card {
    background: white;
    border: 1px solid #6D28D9;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    border-color: #7C3AED;
}

.feature-card i {
    color: #7C3AED;
    background: #F3E8FF;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.feature-card h4 {
    color: #1F2937;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.feature-card p {
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Stats Boxes - White with Dark Purple Border */
.stat-box {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #6D28D9;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #7C3AED;
}

.stat-box i {
    color: #7C3AED;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1F2937;
}

.stat-box p {
    font-size: 0.9rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin: 0;
}

/* Hero Section - Purple Gradient */
.hero-section {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    padding: 100px 30px;
    text-align: center;
    color: white;
    border-radius: 24px;
    border: 2px solid #5B21B6;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-section .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 14px 40px;
    margin: 0 8px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-section .btn-light {
    background: white;
    color: #7C3AED;
    border: none;
}

.hero-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.hero-section .btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background: white;
    color: #7C3AED;
    transform: translateY(-3px);
}

/* Footer with Border Lines */
.page-footer {
    background: white;
    padding: 40px 20px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    border-top: 1px solid #6D28D9;
    margin-top: 60px;
    position: relative;
}

.page-footer::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7C3AED, transparent);
}

.page-footer a {
    background: white;
    color: #7C3AED;
    border: 2px solid #E9D5FF;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.page-footer a:hover {
    background: #7C3AED;
    color: white;
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, .25);
    text-decoration: none;
}

/* Badges & Alerts */
.badge-info {
    background-color: #7C3AED !important;
    padding: 6px 12px;
    border-radius: 8px;
}

.badge-warning {
    background-color: #F3E8FF !important;
    color: #7C3AED !important;
}

.badge-send {
    background-color: #10B981 !important;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.alert-primary {
    background-color: #F3E8FF !important;
    color: #7C3AED !important;
    border: 1px solid #6D28D9 !important;
    border-radius: 12px;
}

.alert-ref {
    background-color: #ECFDF5 !important;
    color: #059669 !important;
    border: 1px solid #10B981 !important;
    border-radius: 12px;
}

/* Text Colors */
.text-main {
    color: #7C3AED !important;
}

.text-reward {
    color: #7C3AED !important;
    font-weight: 600;
}

.text-primary {
    color: #7C3AED !important;
}

.text-history {
    color: #6B7280 !important;
}

.color-1 p, hr {
    color: #7C3AED !important;
    border-color: #E9D5FF !important;
}

/* SweetAlert */
.swal2-confirm {
    background-color: #7C3AED !important;
    border-radius: 12px !important;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .hero-section {
        padding: 60px 20px;
    }
    .nav-pills {
        padding: 15px;
    }
    .nav-pills .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Additional Utility Classes */
.-ml-2 { margin-left: -7px !important; }
.-mr-2 { margin-right: -7px !important; }
.-mt-1 { margin-top: -4px !important; }
#balance { margin-bottom: 10px !important; margin-top: 1px !important; color: white !important; }
.priceData { width: 21px; height: 21px; margin-top: -3.5px; }
.text-dark-main { color: #1F2937 !important; }
code { color: #7C3AED !important; background: #F3E8FF; padding: 2px 8px; border-radius: 4px; }

/* Card History */
.card-history {
    border: 1px solid #6D28D9 !important;
}

/* All other cards get border */
.card {
    border: 1px solid #6D28D9 !important;
}

.card-body {
    color: inherit;
}

/* ==================== COMPACT UI STYLES ==================== */
/* Make everything more compact and smaller */

/* Reduce card padding */
.card-primary .card-body {
    padding: 1rem !important;
}

/* Make pills/tabs smaller */
.nav-pills .nav-link {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    margin: 0 0.2rem !important;
}

/* Smaller card titles */
.card-title {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Compact stats boxes */
.stat-box {
    padding: 1rem !important;
}

.stat-box h3 {
    font-size: 1.5rem !important;
}

.stat-box p {
    font-size: 0.85rem !important;
}

/* Smaller buttons */
.btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
}

.btn-lg {
    padding: 0.6rem 1.2rem !important;
    font-size: 1rem !important;
}

/* Compact tables */
.table {
    font-size: 0.85rem !important;
}

.table td, .table th {
    padding: 0.5rem !important;
}

/* Smaller alerts */
.alert {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
}

/* Reduce row margins */
.row {
    margin-bottom: 0.5rem;
}

/* Compact faucet display */
#pills-faucet .stat-info h5 {
    font-size: 1.1rem !important;
}

#pills-faucet .stat-info small {
    font-size: 0.75rem !important;
}

/* Smaller headings */
h3 {
    font-size: 1.3rem !important;
}

h5 {
    font-size: 1rem !important;
}

h6 {
    font-size: 0.9rem !important;
}

/* Compact balance card */
.card-balance {
    padding: 20px 15px !important;
}

.card-balance h3 {
    font-size: 1rem !important;
}

.card-balance h6 {
    font-size: 1.4rem !important;
}

/* Reduce spacing in pills content */
.tab-content {
    margin-top: 1rem !important;
}

/* Compact referral section */
.alert-ref {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

/* Smaller badges */
.badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Reduce container padding on mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .card-primary .card-body {
        padding: 0.75rem !important;
    }
}
