:root {
    --bg-color: #F7F9FC;
    --text-color: #1A1A1A;
    --accent-color: #FE5722; /* Zenapex Orange */
    --card-bg: #ffffff;
    --nav-bg: #1A1A1A; /* Dark Nav like the reference */
    --border-color: #EDF1F7;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.dark-mode {
    --bg-color: #0F1115;
    --text-color: #FFFFFF;
    --card-bg: #1A1C22;
    --nav-bg: #000000;
    --border-color: #262932;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* 3. Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
}

.brand-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8F9BB3;
    display: block;
    margin-bottom: -5px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
}

.logo span { color: var(--accent-color); }

/* 4. Bottom Navigation - Floating Black Style */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 75px;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 40px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6B6B6B;
    transition: 0.3s;
}

.nav-item span { font-size: 0.6rem; 
      margin-top: 4px; 
      display: block !important;
  
}

.nav-item i { 
  font-size: 1.2rem; 
  margin-bottom: 4px;
  margin-top: 4px;
  
}

.nav-item.active { color: #FFFFFF; }

.nav-item.active .nav-icon-bg {
    background: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: -5px;
    box-shadow: 0 8px 15px rgba(254, 87, 34, 0.4);
}

/* 5. Main Content Area */
#app-shell {
    margin-top: 80px;
    margin-bottom: 110px;
    padding: 0 20px;
}

/* 6. Urban-Style Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 25px;
    border: none;
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    color: white;
}

.hero-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 2;
}

.price-tag {
    background: white;
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

/* Buttons */
.btn-main {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 20px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 10px 20px rgba(254, 87, 34, 0.3);
}

/* Invest Screen Tabs */
.tabs-modern {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.tab-pill {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 15px;
    background: var(--card-bg);
    color: #8F9BB3;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.tab-pill.active {
    background: #000;
    color: white;
    border-color: #000;
}


/* Theme Toggle Container */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#theme-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
}

/* The Toggle Track */
.theme-switch {
    width: 50px;
    height: 26px;
    background-color: var(--border-color);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* The Moving Thumb */
.switch-thumb {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.switch-thumb i {
    font-size: 0.7rem;
    color: #ffb100; /* Sun color */
}

/* Dark Mode State for Toggle */
body.dark-mode .theme-switch {
    background-color: var(--accent-color);
}

body.dark-mode .switch-thumb {
    transform: translateX(24px);
}

body.dark-mode .switch-thumb i {
    color: #1a1a1a;
}


/* Step-by-step horizontal scroll for Invest Screen */
.step-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.step-card {
    min-width: 220px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 15px;
}


/* Landscape Toggle Slider */
.invest-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 25px;
    aspect-ratio: 16 / 9; /* Landscape shape */
    position: relative;
}

.carousel-track {
    display: flex;
    width: 200%; /* Holds two 100% containers */
    height: 100%;
    /* Slides left, waits, then slides back right */
    animation: slideBackAndForth 10s infinite ease-in-out;
}

.carousel-item {
    width: 50%; /* Each item takes exactly 100% of the viewable area */
    height: 100%;
    flex-shrink: 0;
}

@keyframes slideBackAndForth {
    0%, 40% { transform: translateX(0); }       /* Shows Container 1 */
    50%, 90% { transform: translateX(-50%); }   /* Slides to Container 2 */
    100% { transform: translateX(0); }          /* Slides back to Container 1 */
}

.summary-card {
    height: 100%;
    margin: 0 !important;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0; /* Let parent handle rounding */
}

/* Typing Animation */
.typing-dots span {
    width: 8px;
    height: 8px;
    background: #FE5722;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
    margin-right: 2px;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

