/* ==========================================================
   HAPPILO INVESTMENT PLATFORM - MASTER STYLESHEET
   Accurate visual replica of UI Screenshots (Photos 1-16)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-dark-green: #0b4619;
    --brand-forest-green: #0e5320;
    --brand-mint-green: #e4f2e9;
    --brand-accent-mint: #d2edd8;
    --brand-gold: #ffb703;
    --brand-vip-yellow: #f8c325;
    --brand-blue: #0088cc;
    --text-main: #111827;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-app: #f4f6f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --radius-card: 20px;
    --radius-pill: 30px;
    --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.05);
    --shadow-floating: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #eaeff2;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile-First Device Wrapper */
.app-container {
    width: 100%;
    max-width: 460px;
    min-height: 100vh;
    background-color: var(--bg-app);
    position: relative;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding-bottom: 78px; /* space for fixed bottom nav */
}

.app-container.no-nav {
    padding-bottom: 24px;
}

/* ----------------------------------------------------------
   TOP APP BAR (Photos 10, 11, 13, 15)
   ---------------------------------------------------------- */
.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-nav-bar .brand-logo img {
    height: 38px;
    display: block;
}

.top-nav-bar .top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b4332;
    font-size: 20px;
    position: relative;
    text-decoration: none;
}

.icon-btn .badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #e63946;
    border-radius: 50%;
}

/* ----------------------------------------------------------
   SUB-PAGE TOP HEADER WITH BACK BUTTON (Photos 1, 2, 3)
   ---------------------------------------------------------- */
.page-header-green {
    background-color: var(--brand-dark-green);
    color: #ffffff;
    padding: 18px 18px 45px 18px;
    position: relative;
}

.page-header-green .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-green .back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
}

.page-header-green .header-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.page-header-green .header-right-action {
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

.page-header-white {
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 40;
}

.page-header-white .back-btn {
    color: #1e293b;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.page-header-white .header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

/* ----------------------------------------------------------
   HOMEPAGE BANNER CAROUSEL (Auto-sliding)
   ---------------------------------------------------------- */
.promo-banner {
    padding: 12px 16px 6px 16px;
}

.promo-banner-container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #0b4619;
    user-select: none;
    -webkit-user-select: none;
}

.banner-slider-track {
    display: flex;
    width: 200%; /* 2 slides */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.banner-slide {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 18px;
}

/* Dots Indicators */
.banner-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 20px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
}

.banner-dot.active {
    width: 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------------------------
   NET BALANCE CARD (Photos 6 & 15)
   ---------------------------------------------------------- */
.balance-card-wrapper {
    padding: 10px 16px;
}

.balance-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 22px;
    box-shadow: var(--shadow-floating);
}

.balance-card.overlap-header {
    margin-top: -30px;
    position: relative;
    z-index: 20;
}

.balance-card .balance-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.balance-card .balance-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.balance-card .account-pill {
    text-align: right;
}

.balance-card .account-pill .acc-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.balance-card .account-pill .acc-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.balance-card .balance-amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand-dark-green);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.balance-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-deposit {
    background: var(--brand-dark-green);
    color: #ffffff;
    padding: 13px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 12px rgba(11, 70, 25, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-deposit:hover {
    background: #093714;
}

.btn-withdraw {
    background: var(--brand-mint-green);
    color: var(--brand-dark-green);
    padding: 13px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-withdraw:hover {
    background: var(--brand-accent-mint);
}

/* ----------------------------------------------------------
   4-ICON QUICK ACTIONS (Photos 13 & 15)
   ---------------------------------------------------------- */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 8px 16px 16px 16px;
}

.quick-nav-item {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease;
}

.quick-nav-item:active {
    transform: scale(0.97);
}

.quick-nav-item .icon-circle {
    font-size: 22px;
    color: var(--brand-dark-green);
}

.quick-nav-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-dark-green);
    letter-spacing: 0.5px;
}

/* ----------------------------------------------------------
   INVESTMENT PRODUCTS CATALOG (Photos 10, 11, 13)
   ---------------------------------------------------------- */
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    padding: 10px 16px 12px 16px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 20px;
    margin: 0 16px 16px 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.product-thumbnail {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.product-thumbnail img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-info-left {
    flex: 1;
}

.product-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.product-limit-badge {
    font-size: 13px;
    color: var(--text-muted);
}

.product-limit-badge span {
    color: var(--brand-dark-green);
    font-weight: 700;
}

.product-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-dark-green);
}

.product-stats-box {
    background: #f8fafc;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 8px;
    margin-bottom: 16px;
    text-align: center;
}

.stat-col .stat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-col .stat-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.btn-invest {
    width: 100%;
    background: var(--brand-dark-green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 70, 25, 0.2);
    transition: background 0.2s;
}

.btn-invest:hover {
    background: #083814;
}

/* ----------------------------------------------------------
   MY ACCOUNT PROFILE (Photos 5 & 6)
   ---------------------------------------------------------- */
.profile-header-card {
    background: var(--brand-dark-green);
    color: #ffffff;
    padding: 24px 20px 48px 20px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.profile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-badge-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-circle {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
}

.user-details h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.user-details .uid-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.vip-member-badge {
    background: var(--brand-vip-yellow);
    color: #4a2800;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 6px;
}

.header-gear-btn {
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
}

.metrics-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.metric-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-card .metric-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.metric-card .metric-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-card .metric-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.menu-list-card {
    background: var(--card-bg);
    border-radius: 20px;
    margin: 0 16px 16px 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

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

.menu-item:hover {
    background: #fbfcfe;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-item-left span {
    font-size: 15px;
    font-weight: 600;
}

.menu-item.signout .menu-item-left span {
    color: #e63946;
}

.menu-chevron {
    color: var(--text-light);
    font-size: 16px;
}

.app-version-footer {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    padding: 14px 0 20px 0;
}

/* ----------------------------------------------------------
   PORTFOLIO & INCOME (Photo 9)
   ---------------------------------------------------------- */
.portfolio-header-box {
    background: var(--brand-dark-green);
    color: #ffffff;
    padding: 24px 20px 50px 20px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    text-align: center;
}

.portfolio-header-box h2 {
    font-size: 24px;
    font-weight: 800;
}

.portfolio-header-box p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.portfolio-stats-card {
    background: #ffffff;
    border-radius: 20px;
    margin: -30px 16px 14px 16px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    box-shadow: var(--shadow-floating);
    position: relative;
    z-index: 10;
}

.portfolio-stats-card .col:first-child {
    border-right: 1px solid #f1f5f9;
}

.portfolio-stats-card .col-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.portfolio-stats-card .col-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
}

.portfolio-stats-card .col-value.green {
    color: var(--brand-dark-green);
}

.payout-countdown-pill {
    background: #ffffff;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    margin: 0 16px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 600;
}

.payout-countdown-pill .clock-badge {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payout-countdown-pill .time-digits {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.empty-state-box {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

/* ----------------------------------------------------------
   INVITE & TEAM SCREEN (Photos 7 & 8)
   ---------------------------------------------------------- */
.invite-header-box {
    background: var(--brand-dark-green);
    color: #ffffff;
    padding: 18px 18px 24px 18px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    text-align: center;
}

.invite-header-box h2 {
    font-size: 22px;
    font-weight: 800;
}

.invite-header-box p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.invite-code-card {
    background: #ffffff;
    border-radius: 20px;
    margin: 14px 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-soft);
}

.invite-code-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.invite-code-box {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.invite-code-box .code-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--brand-dark-green);
}

.copy-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}

.btn-copy-invite-link {
    width: calc(100% - 32px);
    margin: 0 16px 12px 16px;
    background: var(--brand-dark-green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(11, 70, 25, 0.25);
}

.refer-promo-banner {
    background: var(--brand-dark-green);
    color: #ffffff;
    margin: 0 16px 16px 16px;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.refer-promo-banner .bonus-bubble {
    background: var(--brand-gold);
    color: #3d2300;
    font-size: 18px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    margin: 0 10px;
}

.rules-card {
    background: #ffffff;
    border-radius: 20px;
    margin: 0 16px 16px 16px;
    padding: 18px;
    border-left: 5px solid var(--brand-gold);
    box-shadow: var(--shadow-soft);
}

.rules-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-dark-green);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rule-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.rule-item-row .rule-rate {
    font-weight: 800;
    color: var(--brand-dark-green);
}

.rules-card-footnote {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.4;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}

.team-levels-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.level-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.level-stat-card .lvl-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.level-stat-card .lvl-active {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-dark-green);
}

.level-stat-card .lvl-amount {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    margin-top: 4px;
}

.tabs-nav-bar {
    display: flex;
    background: #e2e8f0;
    border-radius: 14px;
    padding: 4px;
    margin: 0 16px 16px 16px;
}

.tabs-nav-bar .tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tabs-nav-bar .tab-btn.active {
    background: #ffffff;
    color: var(--brand-dark-green);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ----------------------------------------------------------
   TRANSACTIONS (Photo 1)
   ---------------------------------------------------------- */
.tx-group-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 12px 20px 6px 20px;
}

.tx-card {
    background: #ffffff;
    border-radius: 16px;
    margin: 0 16px 10px 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tx-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: lowercase;
}

.tx-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tx-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.tx-amount {
    font-size: 17px;
    font-weight: 800;
}

.tx-amount.positive {
    color: #10b981;
}

.tx-amount.negative {
    color: #ef4444;
}

/* ----------------------------------------------------------
   REDEEM GIFT (Photos 2 & 4)
   ---------------------------------------------------------- */
.redeem-illustration-card {
    text-align: center;
    padding: 24px 20px;
}

.redeem-illustration-card img {
    width: 170px;
    height: auto;
}

.redeem-form-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px;
    margin: 0 16px 16px 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.redeem-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.redeem-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.gift-code-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.gift-code-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
}

.btn-redeem-now {
    width: 100%;
    background: #4f46e5;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* ----------------------------------------------------------
   AUTH: LOGIN & REGISTER (Photos 14 & 16)
   ---------------------------------------------------------- */
.auth-page-wrapper {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px 20px 20px;
}

.auth-header-hero {
    text-align: center;
    padding: 20px 0 30px 0;
}

.auth-logo-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px auto;
}

.auth-brand-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-dark-green);
    letter-spacing: -0.5px;
}

.auth-tagline {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 4px;
}

.auth-card-body {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group-field {
    margin-bottom: 16px;
}

.form-field-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1.5px solid #0b4619;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.input-with-prefix .prefix-badge {
    background: #cbf3d2;
    color: #0b4619;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 18px;
    border-right: 1px solid #a3e6b2;
}

.input-with-prefix input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 16px;
    background: #ffffff;
}

.input-with-icon:focus-within {
    border-color: var(--brand-dark-green);
}

.input-with-icon .field-icon {
    color: var(--text-light);
    font-size: 18px;
    margin-right: 10px;
}

.input-with-icon input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
}

.input-with-icon .toggle-eye {
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.dashed-input-box {
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #fafafa;
}

.dashed-input-box .field-icon {
    color: #10b981;
    font-size: 18px;
    margin-right: 10px;
}

.dashed-input-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
}

.btn-auth-submit {
    width: 100%;
    background: var(--brand-dark-green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(11, 70, 25, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-bottom-switch {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-bottom-switch a {
    color: var(--brand-dark-green);
    font-weight: 800;
    text-decoration: none;
}

.auth-secure-footer {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* ----------------------------------------------------------
   SETTINGS PAGE (Photo 3)
   ---------------------------------------------------------- */
.settings-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
}

.settings-card {
    background: #eef7f2;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s;
}

.settings-card:active {
    transform: scale(0.97);
}

.settings-card .card-icon {
    font-size: 28px;
    color: var(--brand-dark-green);
}

.settings-card span {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark-green);
}

.settings-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 12px 20px 6px 20px;
}

/* ----------------------------------------------------------
   MODALS (Photos 4 & 12)
   ---------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.show .modal-dialog {
    transform: translateY(0);
}

.modal-header-green {
    background: var(--brand-dark-green);
    color: #ffffff;
    padding: 22px 20px;
    text-align: center;
}

.modal-header-green h3 {
    font-size: 20px;
    font-weight: 800;
}

.modal-header-green p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.modal-header-blue {
    background: #0ea5e9;
    color: #ffffff;
    padding: 22px 20px;
    text-align: center;
}

.modal-header-blue h3 {
    font-size: 20px;
    font-weight: 800;
}

.modal-header-blue p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.modal-body {
    padding: 20px;
}

.modal-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.modal-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.modal-feature-list li .feat-icon {
    font-size: 18px;
    color: #10b981;
}

.btn-join-telegram {
    width: 100%;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-modal-close {
    width: 100%;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
}

/* ----------------------------------------------------------
   BOTTOM NAVIGATION BAR (Photos 1, 5, 7, 9, 10, 13, 15)
   ---------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #eef2f6;
    padding: 8px 0 10px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    position: relative;
    padding: 4px 0;
}

.nav-item .nav-icon {
    font-size: 22px;
    margin-bottom: 3px;
}

.nav-item .nav-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-item.active {
    color: var(--brand-dark-green);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 5px;
    height: 5px;
    background: var(--brand-dark-green);
    border-radius: 50%;
}

/* ----------------------------------------------------------
   FLASH ALERTS
   ---------------------------------------------------------- */
.flash-alert-box {
    margin: 12px 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-alert-box.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-alert-box.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
