/* ===== CSS Custom Properties & Reset ===== */
:root {
    --bg-deep: #0d1117;
    --bg-card: #161b22;
    --border-subtle: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-solar: #00e676;
    --accent-warning: #ffa726;
    --accent-info: #2196f3;
    --danger: #f85149;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glow: 0 0 15px rgba(0, 230, 118, 0.2);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ===== Activity Ticker ===== */
.activity-ticker {
    background: linear-gradient(90deg, #0a2f1f, #0b1c2a, #0a2f1f);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--accent-solar);
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 35s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== Header ===== */
.app-header {
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.9rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-solar);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-solar);
    border-bottom-color: var(--accent-solar);
}

/* ===== Buttons ===== */
.btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    background: var(--accent-solar);
    border-color: var(--accent-solar);
    color: #0d1117;
    font-weight: 600;
}

.btn-warning {
    background: var(--accent-warning);
    border-color: var(--accent-warning);
    color: #0d1117;
    font-weight: 600;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-info {
    background: var(--accent-info);
    border-color: var(--accent-info);
    color: white;
}

/* ===== Layout ===== */
.container {
    max-width: 1300px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    width: 100%;
    flex: 1;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent-solar);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.metric-card {
    text-align: center;
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: var(--accent-solar);
    box-shadow: var(--shadow-glow);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-solar);
}

/* ===== Grids ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.divider {
    border-top: 1px solid var(--border-subtle);
    margin: 1.2rem 0;
}

/* ===== Investment Package Cards ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin: 1.8rem 0;
}

.package-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s;
}

.package-card:hover {
    border-color: var(--accent-solar);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.solar-img {
    width: 120px;
    min-height: 200px;
    background: linear-gradient(145deg, #0a2f1f, #0b1c2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-solar);
    position: relative;
    overflow: hidden;
}

.solar-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 230, 118, 0.05) 10px,
        rgba(0, 230, 118, 0.05) 20px
    );
}

.package-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-solar);
}

.package-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.package-detail strong {
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.3rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-solar), var(--accent-info));
    border-radius: 10px;
    transition: width 0.5s;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    margin: 5% auto;
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.close:hover {
    color: var(--danger);
}

/* ===== Forms ===== */
.input-field {
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.7rem;
    color: white;
    width: 100%;
    margin: 0.4rem 0 0.8rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-solar);
}

select.input-field {
    cursor: pointer;
}

select.input-field option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin: 0.8rem 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-solar);
    width: 16px;
    height: 16px;
}

/* ===== Activity Log ===== */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

.activity-item:last-child {
    border-bottom: none;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    z-index: 200;
    display: none;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.success { background: var(--accent-solar); color: #0d1117; }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--accent-warning); color: #0d1117; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Transaction Status Badges ===== */
.badge {
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background: rgba(255, 167, 38, 0.2); color: var(--accent-warning); }
.badge-approved { background: rgba(0, 230, 118, 0.2); color: var(--accent-solar); }
.badge-rejected { background: rgba(248, 81, 73, 0.2); color: var(--danger); }

/* ===== Tables ===== */
table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.7rem 0.5rem;
    border-bottom: 2px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

tr:hover td {
    background: rgba(0, 230, 118, 0.03);
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-top: 2px solid var(--accent-solar);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .package-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-links { gap: 0.8rem; font-size: 0.8rem; }
    .app-header { padding: 0.7rem 1rem; }
    .metric-value { font-size: 1.4rem; }
    table { font-size: 0.7rem; }
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 90;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 95;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-logo span { color: var(--accent-solar); font-size: 1.5rem; }

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
}

.sidebar-close:hover { color: var(--danger); }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 230, 118, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--accent-solar);
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(0, 230, 118, 0.05);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-solar);
    border-left-color: var(--accent-solar);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

/* ===== HEADER ===== */
.app-header {
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
}

.hamburger-btn:hover { color: var(--accent-solar); }

.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-greeting {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 100vh;
    padding-bottom: 70px; /* Space for bottom nav */
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    z-index: 50;
    padding: 0.4rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.4rem);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    transition: color 0.2s;
    min-width: 55px;
}

.bottom-nav-item i {
    font-size: 1.1rem;
}

.bottom-nav-item.active {
    color: var(--accent-solar);
}

.bottom-nav-item span {
    font-weight: 500;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-container {
        padding: 0.8rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    .page-container {
        padding-bottom: 1rem;
    }
    
    .main-content {
        padding-bottom: 0;
    }
}

/* ===== STEPPER STYLES ===== */
.stepper-indicators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid var(--border-subtle);
}

.step-indicator.active .step-number {
    background: var(--accent-solar);
    color: #0d1117;
    border-color: var(--accent-solar);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.step-indicator.completed .step-number {
    background: var(--accent-solar);
    color: #0d1117;
    border-color: var(--accent-solar);
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    text-align: center;
}

.step-indicator.active .step-label {
    color: var(--accent-solar);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-subtle);
    margin: 0 5px;
    margin-bottom: 20px;
    z-index: 1;
}

/* ===== BANK ACCOUNT CARDS ===== */
.bank-account-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bank-account-card:hover {
    border-color: var(--accent-solar);
    background: rgba(0, 230, 118, 0.03);
}

.bank-account-card.selected {
    border-color: var(--accent-solar);
    background: rgba(0, 230, 118, 0.1);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.bank-account-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.bank-account-info {
    flex: 1;
}

.bank-account-name {
    font-weight: 600;
    color: var(--text-primary);
}

.bank-account-number {
    font-size: 0.85rem;
    color: var(--accent-solar);
    font-weight: 500;
}

.bank-account-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.bank-account-actions {
    display: flex;
    gap: 0.3rem;
}

.bank-account-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

.badge-inactive {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(0, 230, 118, 0.2);
    color: var(--accent-solar);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== BUY CONFIRMATION MODAL ===== */
#buy-confirm-modal .modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#purchase-success-modal .modal-content {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Confetti-like effect for success */
#purchase-success-modal .modal-content::before {
    content: '🌟💰🌟';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== PACKAGE CARD WITH IMAGES ===== */
.package-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    border-color: var(--accent-solar);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.15);
    transform: translateY(-3px);
}

.package-image-side {
    position: relative;
    overflow: hidden;
}

.package-image-side img {
    transition: transform 0.5s ease;
}

.package-card:hover .package-image-side img {
    transform: scale(1.1);
}

.package-image-side::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.8), transparent);
}

/* Glow effect on hover */
.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: inset 0 0 30px rgba(0, 230, 118, 0.1);
    pointer-events: none;
    z-index: 1;
}

.package-card:hover::before {
    opacity: 1;
}

/* Package info text */
.package-info {
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 600px) {
    .package-card {
        flex-direction: column !important;
    }
    
    .package-image-side {
        width: 100% !important;
        height: 150px;
    }
    
    .package-image-side img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
}

/* ===== PACKAGE CARD STYLES ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin: 1.8rem 0;
}

.package-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    border-color: var(--accent-solar);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.2);
    transform: translateY(-4px);
}

/* Left Image Side */
.package-image-side {
    width: 150px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #0a2f1f, #0b1c2a);
}

.package-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .package-image-side img {
    transform: scale(1.1);
}

.package-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.2) 0%,
        rgba(13, 17, 23, 0.4) 50%,
        rgba(13, 17, 23, 0.8) 100%
    );
    z-index: 1;
}

.package-image-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.8rem;
    color: var(--accent-solar);
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.package-image-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    text-align: center;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* No image fallback */
.package-image-side.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a2f1f, #0b1c2a);
}

.package-image-side.no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0,230,118,0.1) 20px, rgba(0,230,118,0.1) 22px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0,230,118,0.1) 20px, rgba(0,230,118,0.1) 22px);
}

.package-image-side.no-image .package-image-icon {
    font-size: 3rem;
    position: static;
    text-shadow: none;
}

/* Right Info Side */
.package-info {
    flex: 1;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.package-level {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -0.3rem;
}

.package-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.3rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-label i {
    margin-right: 0.2rem;
    font-size: 0.65rem;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.highlight {
    color: var(--accent-solar);
}

/* Progress Bar */
.package-progress {
    margin: 0.3rem 0;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.2rem;
}

/* Buy Button */
.package-buy-btn {
    margin-top: auto;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff !important;
}

.package-buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.package-buy-btn i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card {
        flex-direction: column;
    }
    
    .package-image-side {
        width: 100%;
        height: 160px;
    }
    
    .package-image-side img {
        height: 160px;
    }
    
    .package-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .package-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

/* ===== INVESTMENT CARD STYLES ===== */
.investment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.investment-card:hover {
    border-color: var(--accent-solar);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15);
}

.investment-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(0,230,118,0.03), rgba(33,150,243,0.03));
}

.investment-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.investment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investment-image-fallback {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(145deg, #0a2f1f, #0b1c2a);
    flex-shrink: 0;
}

.investment-header-info {
    flex: 1;
    min-width: 0;
}

.investment-header-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.investment-header-info .package-level {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.investment-status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.status-active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-solar);
    animation: pulse 2s infinite;
}

.status-completed {
    background: rgba(33, 150, 243, 0.15);
    color: var(--accent-info);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.investment-card-body {
    padding: 1rem;
}

.investment-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.investment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-label i {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.earning {
    color: var(--accent-solar);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(0,230,118,0.3); }
    50% { text-shadow: 0 0 15px rgba(0,230,118,0.6); }
}

/* Progress Section */
.investment-progress-section {
    margin: 0.8rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.progress-bar-large {
    width: 100%;
    height: 10px;
    background: var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill-large {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Real-time counter */
.realtime-counter {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-solar);
    font-size: 0.85rem;
}

/* Days remaining */
.days-remaining {
    text-align: center;
    padding: 0.5rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.days-remaining .days-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-info);
}

.days-remaining .days-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ===== SOLAR SLIDESHOW - ONE SLIDE AT A TIME ===== */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 0 auto 1.5rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slides-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
    width: 100%;
}

.slide-item {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for text readability */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.6) 40%, 
        rgba(0, 0, 0, 0.2) 70%, 
        transparent 100%);
    padding: 3rem 2rem 1.5rem 2rem;
    color: #fff;
    text-align: center;
}

.slide-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-solar);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.slide-overlay p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.slide-btn:hover {
    background: var(--accent-solar);
    color: #0d1117;
    border-color: var(--accent-solar);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.slide-btn i {
    font-size: 0.9rem;
}

/* Navigation Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
    backdrop-filter: blur(4px);
}

.slide-arrow:hover {
    background: var(--accent-solar);
    color: #0d1117;
    border-color: var(--accent-solar);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slide-prev { left: 20px; }
.slide-next { right: 20px; }

/* Dots Navigation - Centered at bottom */
.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slide-dot.active {
    background: var(--accent-solar);
    border-color: var(--accent-solar);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

/* Loading State */
#slideshow-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    z-index: 5;
    text-align: center;
}

/* Fade animation for slide transitions */
.slide-item {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 280px;
        border-radius: 10px;
    }
    
    .slide-overlay {
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .slide-overlay h3 {
        font-size: 1.1rem;
    }
    
    .slide-overlay p {
        font-size: 0.8rem;
    }
    
    .slide-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .slide-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slide-prev { left: 10px; }
    .slide-next { right: 10px; }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 220px;
    }
    
    .slide-overlay h3 {
        font-size: 1rem;
    }
    
    .slide-overlay p {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    
    .slide-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
}

/* Login country code styling */
#login-country-code {
    background: rgba(0, 230, 118, 0.08) !important;
    border: 1px solid var(--accent-solar) !important;
    color: var(--accent-solar) !important;
    font-weight: 600;
    text-align: center;
    cursor: default;
    user-select: none;
}

/* Phone input styling */
#login-identifier {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

#login-identifier::placeholder {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== BLACK & WHITE REFERRAL INPUT ===== */
.referral-input-bw {
    background: #1a1a1a !important;
    border: 1px solid #444 !important;
    color: #ccc !important;
    transition: all 0.3s ease;
}

.referral-input-bw:focus {
    border-color: #888 !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    outline: none;
}

.referral-input-bw::placeholder {
    color: #666 !important;
    font-style: italic;
}

/* Read-only state (when referral from URL) */
.referral-input-bw[readonly] {
    background: #222 !important;
    border: 1px solid #555 !important;
    color: #aaa !important;
    cursor: not-allowed;
}

/* Hover effect */
.referral-input-bw:hover:not([readonly]) {
    border-color: #666 !important;
}