/* ========================================
   CryptoInvest Platform - Main Styles
   Clean Light Professional Theme
   ======================================== */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #2563eb; text-decoration: none; transition: color 0.3s; }
a:hover { color: #1d4ed8; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Navbar ========== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand { font-size: 1.4rem; font-weight: 700; color: #2563eb !important; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
    padding: 8px 16px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    transition: all 0.3s;
}
.nav-menu a:hover { background: #f1f5f9; color: #1e293b; }
.btn-login { border: 1px solid #2563eb; color: #2563eb !important; }
.btn-register { background: linear-gradient(135deg, #2563eb, #7c3aed) !important; color: #fff !important; }
.btn-admin { background: #f59e0b !important; color: #000 !important; font-weight: 600; }
.btn-logout { color: #ef4444 !important; }
.nav-toggle { display: none; background: none; border: none; color: #1e293b; font-size: 24px; cursor: pointer; }

/* ========== Main Content ========== */
.main-content { padding: 30px 0; min-height: calc(100vh - 130px); }

/* ========== Hero ========== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #a855f7 100%);
    color: #fff;
}
.hero h1 { font-size: 3rem; margin-bottom: 16px; color: #fff; -webkit-text-fill-color: #fff; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .btn-primary { background: #fff; color: #2563eb; }
.hero .btn-primary:hover { background: #f8fafc; }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.btn-primary:hover { opacity: 0.9; color: #fff; }
.btn-outline { border: 1px solid #cbd5e1; color: #475569; background: transparent; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { display: block; width: 100%; }

/* ========== Grid ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ========== Cards ========== */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.card-header h3 { font-size: 16px; color: #1e293b; }
.card-body { padding: 20px; }

/* ========== Stat Cards ========== */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-icon { font-size: 32px; margin-bottom: 8px; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: #1e293b; }
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }
.stat-primary { border-left: 3px solid #2563eb; }
.stat-success { border-left: 3px solid #059669; }
.stat-warning { border-left: 3px solid #f59e0b; }
.stat-info { border-left: 3px solid #7c3aed; }

/* ========== Feature Cards ========== */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(37,99,235,0.1); }
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; color: #1e293b; }
.feature-card p { color: #64748b; font-size: 14px; }

/* ========== Package Cards ========== */
.packages-section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 12px; color: #1e293b; }
.section-subtitle { text-align: center; font-size: 1rem; color: #64748b; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.features { padding: 60px 0; }

.package-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.package-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(37,99,235,0.12); }
.package-card.popular { border: 2px solid #2563eb; }
.package-card.popular::before {
    content: '\01f525 MOST POPULAR';
    position: absolute; top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff; font-size: 11px; font-weight: 700; padding: 6px;
    letter-spacing: 1px;
}
.package-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #1e293b; }
.package-profit { font-size: 2.5rem; font-weight: 700; color: #2563eb; margin: 10px 0 4px; }
.package-profit-label { color: #64748b; font-size: 14px; margin-bottom: 16px; }
.package-details { list-style: none; margin-bottom: 20px; }
.package-details li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: 14px; }

/* ========== Forms ========== */
.auth-form {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.auth-form h2 { text-align: center; margin-bottom: 24px; color: #1e293b; }
.auth-link { text-align: center; margin-top: 20px; color: #64748b; font-size: 14px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #374151; font-size: 14px; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-control-inline { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #1e293b; font-size: 13px; }

/* ========== Tables ========== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.table th { color: #64748b; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; background: #f8fafc; }
.table td { color: #1e293b; }
.table tr:hover { background: #f8fafc; }

/* ========== Badges ========== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-active, .badge-approved, .badge-completed, .badge-profit { background: #dcfce7; color: #166534; }
.badge-pending, .badge-open { background: #fef3c7; color: #92400e; }
.badge-rejected, .badge-suspended, .badge-closed { background: #fee2e2; color: #991b1b; }
.badge-deposit { background: #dbeafe; color: #1e40af; }
.badge-withdrawal { background: #ede9fe; color: #5b21b6; }
.badge-bonus { background: #dcfce7; color: #166534; }
.badge-answered { background: #dbeafe; color: #1e40af; }
.badge-inactive { background: #f1f5f9; color: #64748b; }
.badge-admin { background: #2563eb; color: #fff; font-size: 10px; }

/* ========== Alerts ========== */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert a { color: #2563eb; font-weight: 600; }

/* ========== Ticket Messages ========== */
.ticket-messages { max-height: 500px; overflow-y: auto; }
.ticket-message { padding: 16px; margin-bottom: 12px; border-radius: 10px; }
.user-reply { background: #f0f4ff; border-left: 3px solid #2563eb; }
.admin-reply { background: #fffbeb; border-left: 3px solid #f59e0b; }
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.message-date { color: #64748b; margin-left: auto; }
.message-body { color: #1e293b; font-size: 14px; line-height: 1.6; }
.reply-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }

/* ========== Misc ========== */
.page-title { font-size: 1.8rem; margin-bottom: 24px; color: #1e293b; }
.page-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.text-muted { color: #64748b; }
.balance-display { padding: 16px; background: #f8fafc; border-radius: 8px; margin-bottom: 16px; border: 1px solid #e2e8f0; }
.profit-preview { padding: 16px; background: #dcfce7; border-radius: 8px; margin: 16px 0; border: 1px solid #bbf7d0; color: #166534; }
.wallet-info { margin: 16px 0; }
.wallet-address { font-family: monospace; font-size: 14px; word-break: break-all; color: #2563eb; padding: 12px; background: #f0f4ff; border-radius: 8px; margin: 8px 0; border: 1px dashed #93c5fd; }
.filter-btns { display: flex; gap: 4px; }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form .form-control { width: 200px; padding: 6px 12px; font-size: 13px; }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 20px; }

/* ========== Urgency / CTA Sections ========== */
.urgency-banner {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 20px 4px rgba(220,38,38,0.2); }
}
.cta-box {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
}
.cta-box h3 { font-size: 1.4rem; margin-bottom: 10px; color: #fff; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.cta-box .btn { background: #fff; color: #2563eb; font-weight: 700; }
.cta-box .btn:hover { background: #f0f4ff; }

/* ========== Stats Counter Section ========== */
.stats-section {
    background: #ffffff;
    padding: 50px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-item .stats-number { font-size: 2.2rem; font-weight: 800; color: #2563eb; }
.stats-item .stats-text { font-size: 14px; color: #64748b; margin-top: 4px; }

/* ========== How It Works Section ========== */
.how-section { padding: 60px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.step-item { padding: 24px; }
.step-number {
    width: 48px; height: 48px; line-height: 48px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff; font-weight: 700; font-size: 18px;
    border-radius: 50%; margin: 0 auto 16px;
}
.step-item h4 { color: #1e293b; margin-bottom: 8px; }
.step-item p { color: #64748b; font-size: 14px; }

/* ========== Live Activity Feed ========== */
.live-feed {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    max-height: 300px;
    overflow: hidden;
}
.live-feed h3 { margin-bottom: 16px; color: #1e293b; font-size: 16px; }
.feed-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9;
    font-size: 13px; color: #475569;
}
.feed-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ========== Testimonials ========== */
.testimonials-section { padding: 60px 0; background: #f8fafc; }
.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.testimonial-card .stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; }
.testimonial-card p { color: #475569; font-size: 14px; line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.testimonial-card .author { font-weight: 600; color: #1e293b; font-size: 13px; }

/* ========== Utility Classes ========== */
.d-none { display: none; }
.d-inline { display: inline; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-20 { margin-bottom: 20px; }
.text-sm { font-size: 13px; }

/* ========== Section Padding ========== */
.section-padded { padding: 60px 0; }
.section-padded-bottom { padding: 0 0 60px; }

/* ========== Urgency Banner Link ========== */
.urgency-banner a { color: #fff; text-decoration: underline; }

/* ========== Quick Actions (Dashboard) ========== */
.quick-actions { margin: 24px 0; }
.quick-action-link { margin: 0; text-decoration: none; display: block; }
.cta-withdraw { background: linear-gradient(135deg, #059669, #10b981); }
.cta-support { background: linear-gradient(135deg, #f59e0b, #ea580c); }

/* ========== Info Box ========== */
.info-box { padding: 16px; background: #f8fafc; border-radius: 8px; margin-top: 12px; border: 1px solid #e2e8f0; }
.info-box-title { font-weight: 600; color: #1e293b; }

/* ========== Footer ========== */
.footer { padding: 20px; text-align: center; color: #94a3b8; border-top: 1px solid #e2e8f0; font-size: 14px; background: #fff; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .grid-4, .stats-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #ffffff; flex-direction: column; padding: 16px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    .nav-menu.active { display: flex; }
    .grid-2, .grid-3, .grid-4, .stats-grid, .steps-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .card-header { flex-direction: column; gap: 10px; }
}
