/* ============================================
   HYIP User Interface - Modern Dark Theme
   Bootstrap 5 + Custom Styling
   ============================================ */

:root {
    /* Modern Dark Color Palette */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Backgrounds */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --bg-glass: rgba(30, 41, 59, 0.7);

    /* Text */
    --text-white: #f8fafc;
    --text-light: #e2e8f0;
    --text-gray: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

/* ============================================
   Global Styles
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.75rem;
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
    border: none;
    color: var(--text-white);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-gradient {
    background: var(--bg-gradient);
    color: white;
}

.btn-gradient:hover {
    filter: brightness(1.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* ============================================
   Cards & Glass Panels
   ============================================ */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.glass-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    padding: 4rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Investment Plans
   ============================================ */

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-card) 100%);
}

.plan-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.plan-roi {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    line-height: 1;
}

.plan-roi span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.plan-details {
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.plan-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.plan-detail-item:last-child {
    margin-bottom: 0;
}

.plan-detail-item span:first-child {
    color: var(--text-gray);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #020617;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: block;
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.footer-heading {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   Forms
   ============================================ */

.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   Responsive
   ============================================ */

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }
}

/* ============================================
   Utilities
   ============================================ */

.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Table Custom */
.table-custom {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-light);
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Input Group Overrides */
.input-group-text {
    border-color: var(--border-color);
    color: var(--text-gray);
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    z-index: 3;
}

.form-select {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-gray);
}

.page-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    color: var(--text-white);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link {
    background: var(--bg-dark);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Dropdowns & Utilities */
.bg-card {
    background-color: var(--bg-card) !important;
}

.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.dropdown-item {
    color: var(--text-gray);
    transition: all 0.2s;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.dropdown-divider {
    border-color: var(--border-color);
    opacity: 1;
}