/* asset/theme2/frontend/css/premium-theme.css */
/* --------------------------------------------------- */
/* Premium visual design system for Multiplyx Theme 2 */
/* --------------------------------------------------- */
/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color, #212529);
    background-color: var(--bg-color, #f8fafc);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--heading-color, #111);
}

/* Primary color palette (adjustable via CSS variables) */
:root {
    --primary-h: 210;  /* hue */
    --primary-s: 55%;
    --primary-l: 55%;
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 90%);
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 30%);
    --bg-color: #f8fafc; /* light background */
    --bg-dark: #111827;   /* dark background */
    --text-color: #212529;
    --text-light: #f3f4f6;
}

/* Dark mode overrides */
.dark-theme {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-light);
    --heading-color: var(--text-light);
}


/* Header: sin override de fondo — el tema original (style.css) maneja el color */
header.header {
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism cards */
.card-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Button primary */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Micro‑animations for links */
.nav-link {
    position: relative;
    color: inherit;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: var(--primary-dark);
}
.nav-link:hover::after {
    width: 100%;
}

/* Social icons hover effect */
.social-list li a {
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-list li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header.header { padding: 0.5rem 0; }
    .card-glass { padding: 1rem; }
}

/* =================================================== */
/* LIGHT THEME FORCED CONTRAST OVERRIDES FOR DASHBOARD */
/* =================================================== */
html.light-theme,
html.light-theme body,
html.light-theme .dashboard-main,
html.light-theme .dashboard-body-part,
html.light-theme .sp-referral {
    background-color: #f4f6f9 !important;
    background-image: none !important;
    color: #111827 !important;
}

html.light-theme h1,
html.light-theme h2,
html.light-theme h3,
html.light-theme h4,
html.light-theme h5,
html.light-theme h6,
html.light-theme p,
html.light-theme span,
html.light-theme a,
html.light-theme i,
html.light-theme strong,
html.light-theme label,
html.light-theme div {
    text-shadow: none !important;
}

html.light-theme .d-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-theme .d-sidebar-menu li a {
    color: #374151 !important;
}

html.light-theme .d-sidebar-menu li a i {
    color: #10b981 !important;
}

html.light-theme .d-sidebar-menu li.active > a {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

html.light-theme .d-sidebar-menu li.active > a i {
    color: #ffffff !important;
}

html.light-theme .d-sidebar-menu li a:hover {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
}

html.light-theme .d-sidebar-menu li .submenu {
    background-color: #f9fafb !important;
}

html.light-theme .d-sidebar-menu li .submenu li a {
    color: #4b5563 !important;
}

html.light-theme .d-plan-notice {
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

html.light-theme .d-plan-notice p {
    color: #4b5563 !important;
}

/* Dashboard Hero Card */
html.light-theme .dashboard-hero-card {
    background: linear-gradient(135deg, #ffffff, #f3f4f6) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme .dashboard-hero-left h2 {
    color: #111827 !important;
    text-shadow: none !important;
}

html.light-theme .dashboard-hero-left p {
    color: #4b5563 !important;
}

html.light-theme .hero-badge {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
}

html.light-theme .hero-stat span {
    color: #6b7280 !important;
}

html.light-theme .hero-stat strong {
    color: #111827 !important;
}

html.light-theme .hero-stat {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
}

/* Stat Boxes (Account Balance, Withdraw, Deposit, etc.) */
html.light-theme .d-box-one,
html.light-theme .d-box-three,
html.light-theme .d-box-four,
html.light-theme .dashboard-summary-card,
html.light-theme .dashboard-actions-card,
html.light-theme .card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    color: #111827 !important;
}

html.light-theme .d-box-one .caption-title,
html.light-theme .d-box-three .caption-title,
html.light-theme .d-box-four .caption-title,
html.light-theme .summary-item span,
html.light-theme .dashboard-actions-head p,
html.light-theme .dashboard-summary-head p {
    color: #4b5563 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

html.light-theme .d-box-one-amount,
html.light-theme .d-box-three-amount,
html.light-theme .d-box-four-amount,
html.light-theme .summary-item strong {
    color: #111827 !important;
    text-shadow: none !important;
}

html.light-theme .d-box-one .icon,
html.light-theme .d-box-three .icon,
html.light-theme .d-box-four .icon {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
}

html.light-theme .d-box-one .icon i,
html.light-theme .d-box-three .icon i,
html.light-theme .d-box-four .icon i {
    color: #059669 !important;
}

html.light-theme .summary-item {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
}

html.light-theme .action-btn {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

html.light-theme .action-btn span {
    color: #111827 !important;
}

html.light-theme .action-btn:hover {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

html.light-theme .action-btn i {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
}

html.light-theme .progress-meta span {
    color: #374151 !important;
}

html.light-theme .progress-meta strong {
    color: #111827 !important;
}

html.light-theme .progress-meta small {
    color: #6b7280 !important;
}

html.light-theme .progress {
    background-color: #e5e7eb !important;
}

html.light-theme .progress-bar {
    background-color: #10b981 !important;
}

/* Forms, Copy Link & Labels */
html.light-theme label {
    color: #374151 !important;
    font-weight: 500 !important;
}

html.light-theme .form-control {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

html.light-theme .form-control[readonly] {
    background-color: #f3f4f6 !important;
}

/* Tables and logs */
html.light-theme .card-header {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

html.light-theme .card-header h5 {
    color: #111827 !important;
}

html.light-theme .sp-referral li p {
    color: #374151 !important;
}

html.light-theme .sp-referral li span {
    color: #111827 !important;
    font-weight: 500 !important;
}

/* Dropdown menu & top header */
html.light-theme header#header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

html.light-theme .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05) !important;
}

html.light-theme .dropdown-item {
    color: #374151 !important;
}

html.light-theme .dropdown-item:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

html.light-theme .user-toggle-menu span {
    color: #111827 !important;
}

/* =================================================== */
/* DASHBOARD CARD & STAT BOX SIZE REDUCTION OVERRIDES */
/* =================================================== */
.d-box-one,
.d-box-three,
.d-box-four {
    padding: 16px 18px !important;
    border-radius: 16px !important;
}

.d-box-four .content {
    margin-top: 15px !important;
}

.d-box-four .icon {
    width: 48px !important;
    height: 48px !important;
}

.d-box-four .icon i {
    font-size: 18px !important;
}

.d-box-four .link-btn {
    top: 15px !important;
    right: 15px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    line-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.d-box-four-amount {
    font-size: 20px !important;
    margin-top: 4px !important;
}

.d-box-four .caption-title {
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

/* Three boxes */
.d-box-three {
    padding: 12px 15px !important;
    align-items: center !important;
}

.d-box-three .icon {
    width: 42px !important;
    height: 42px !important;
}

.d-box-three .icon i {
    font-size: 16px !important;
}

.d-box-three-amount {
    font-size: 16px !important;
    margin-top: 2px !important;
}

.d-box-three .caption-title {
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

/* One box */
.d-box-one {
    padding: 18px 22px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    position: relative !important;
}

.d-box-one .icon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
    margin-right: 15px !important;
}

.d-box-one .content {
    position: relative !important;
    width: auto !important;
    flex: 1 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
}

.d-box-one-amount {
    font-size: 24px !important;
}

/* Responsive grid adjustments to save space */
@media (max-width: 768px) {
    .d-box-one,
    .d-box-three,
    .d-box-four {
        padding: 12px 14px !important;
    }
    
    .d-box-four .content {
        margin-top: 10px !important;
    }
    
    .d-box-four-amount {
        font-size: 16px !important;
    }
    
    .d-box-three-amount {
        font-size: 14px !important;
    }
    
    .d-box-one-amount {
        font-size: 20px !important;
    }
    
    .dashboard-hero-card {
        padding: 15px !important;
        margin-bottom: 12px !important;
    }
    
    .hero-stat {
        min-width: 120px !important;
        padding: 10px 8px !important;
    }
    
    .hero-stat strong {
        font-size: 16px !important;
    }
    
    .hero-stat span {
        font-size: 10px !important;
    }
}

/* =================================================== */
/* PREMIUM PRICING / INVESTMENT PLAN CARD STYLING      */
/* =================================================== */
.invest-plan {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    padding: 16px !important;
    display: flex !important;
    flex-flow: column !important;
    justify-content: space-between !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.invest-plan * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.invest-plan:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.1) !important;
    border-color: rgba(0, 255, 65, 0.3) !important;
}

.invest-plan::before,
.invest-plan::after,
.invest-plan-shape {
    display: none !important; /* disable old ugly custom clip-paths/borders */
}

.invest-plan-top {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px !important;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    flex-flow: row !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.invest-plan-top::before,
.invest-plan-top::after {
    display: none !important; /* disable old polygon clip-paths */
}

.invest-plan-name {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
}

.invest-plan-amount {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #00FF41 !important; /* vibrant lime green */
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.3) !important;
}

.invest-plan-min-max {
    font-size: 13px !important;
    color: #e5e7eb !important;
    font-weight: 600 !important;
    display: block !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    margin-bottom: 10px !important;
    text-align: left !important;
}

.invest-plan-min-max span {
    display: inline !important;
    margin-right: 0.5rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.invest-plan-min-max .invest-plan-sep {
    margin: 0 0.3rem !important;
    display: inline !important;
}

.invest-plan-features {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    margin: 10px 0 !important;
    padding: 8px 12px !important;
    list-style: none !important;
    list-style-type: none !important;
}

.invest-plan-features li {
    position: relative !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    color: #c5c5c5 !important;
    padding: 6px 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.invest-plan-features li::before,
.invest-plan-features li::after {
    display: none !important;
    content: none !important;
}

.invest-plan-features li:last-child {
    border-bottom: none !important;
}

.invest-plan-features-inline {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 6px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    justify-content: flex-start !important;
}

.invest-plan-features-inline li {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    color: #e5e7eb !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}


/* LIGHT THEME INVESTMENT PLAN OVERRIDES */
html.light-theme .invest-plan {
    background: #eaeef3 !important; /* slightly grey background */
    border: 1px solid #c4cbd4 !important; /* clean visible border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme .invest-plan:hover {
    box-shadow: 0 15px 35px rgba(13, 111, 42, 0.15) !important;
    border-color: #0d6f2a !important;
}

html.light-theme .invest-plan-top {
    background: #dce1e8 !important; /* darker grey header */
    border: 1px solid #c4cbd4 !important;
}

html.light-theme .invest-plan-name {
    color: #111827 !important;
}

html.light-theme .invest-plan-amount {
    color: #0d6f2a !important; /* readable dark green */
    text-shadow: none !important;
}

html.light-theme .invest-plan-min-max {
    color: #1f2937 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html.light-theme .invest-plan-features {
    background-color: #dce1e8 !important;
    border: 1px solid #c4cbd4 !important;
}

html.light-theme .invest-plan-features li {
    border-bottom: 1px dashed #c4cbd4 !important;
    color: #374151 !important;
    padding-left: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html.light-theme .invest-plan-features li::before,
html.light-theme .invest-plan-features li::after {
    display: none !important;
    content: none !important;
}

html.light-theme .invest-plan-features-inline li {
    background: #dce1e8 !important;
    border: 1px solid #c4cbd4 !important;
    color: #374151 !important;
}

/* ===================================================================== */
/* PREMIUM PRICING CARD OVERRIDES FOR LOGGED-IN VIEW (.pricing-item)     */
/* ===================================================================== */
.pricing-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    padding: 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.pricing-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.1) !important;
    border-color: rgba(0, 255, 65, 0.3) !important;
}

.pricing-item .top-part {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
    padding: 15px 0 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.pricing-item .top-part .icon {
    display: none !important; /* hide default icon for high density */
}

.pricing-item .plan-name span {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.pricing-item .plan-price {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #00FF41 !important; /* vibrant lime green */
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.3) !important;
    margin-top: 10px !important;
}

.pricing-item .plan-price sub {
    font-size: 14px !important;
    color: #e5e7eb !important;
    bottom: 0 !important;
}

.pricing-item .check-list {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
    padding: 10px 15px !important;
    list-style: none !important;
}

.pricing-item .check-list li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    color: #c5c5c5 !important;
    padding: 10px 0 !important;
}

.pricing-item .check-list li:last-child {
    border-bottom: none !important;
}

/* LIGHT THEME PRICING-ITEM OVERRIDES */
html.light-theme .pricing-item {
    background: #eaeef3 !important; /* slightly grey background */
    border: 1px solid #c4cbd4 !important; /* clean visible border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

html.light-theme .pricing-item:hover {
    box-shadow: 0 15px 35px rgba(13, 111, 42, 0.15) !important;
    border-color: #0d6f2a !important;
}

html.light-theme .pricing-item .top-part {
    background: #dce1e8 !important; /* darker grey header */
    border: 1px solid #c4cbd4 !important;
}

html.light-theme .pricing-item .plan-name span {
    color: #111827 !important;
}

html.light-theme .pricing-item .plan-price {
    color: #0d6f2a !important; /* readable dark green */
    text-shadow: none !important;
}

html.light-theme .pricing-item .plan-price sub {
    color: #1f2937 !important;
}

html.light-theme .pricing-item .check-list {
    background-color: #dce1e8 !important;
    border: 1px solid #c4cbd4 !important;
}

html.light-theme .pricing-item .check-list li {
    border-bottom: 1px dashed #c4cbd4 !important;
    color: #374151 !important;
}



