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

/* GLOBAL */
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background-color: #f5f7fa;
    color: #1c1e21;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER (inherits existing markup) */
header {
    background: #0b1c2d;
    padding: 15px 0;
}

header a {
    color: #ffffff;
    font-weight: 500;
}


/* HERO */
.hero {
    background: linear-gradient(135deg, #0b1c2d, #102a43);
    color: #ffffff;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text .badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #ff9f43;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #ff9f43;
}

.hero-text p {
    max-width: 500px;
    margin-bottom: 30px;
    color: #dbe4ee;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: bold;
}

.btn.primary {
    background: #ff9f43;
    color: #000;
}

.btn.secondary {
    border: 1px solid #ffffff;
    color: #ffffff;
}

/* HERO STATS */
.hero-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    color: #ff9f43;
}

/* TRUST BAR */
.trust-bar {
    background: #ffffff;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    font-weight: 500;
}

/* ABOUT */
.about {
    padding: 70px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.checklist {
    margin-top: 20px;
}

.checklist li {
    margin-bottom: 10px;
}

/* FEATURES */
.features {
    background: #ffffff;
    padding: 70px 0;
}

.center {
    text-align: center;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 10px;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #102a43, #0b1c2d);
    color: #ffffff;
    padding: 70px 0;
}

.cta-box {
    text-align: center;
}

.cta-box p {
    margin: 15px 0 25px;
}




/* HEADER POLISH */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #ff9f43;
}

.nav-links a {
    margin-left: 20px;
    color: #333;
    font-weight: 500;
}

.nav-links .primary-link {
    padding: 8px 14px;
    background: #ff9f43;
    color: #000;
    border-radius: 4px;
}

.nav-links .danger {
    color: #fff;
    background: #ff9f43;
    padding: 15px 40px;
    border-radius: 10px;
}

/* Public header: mobile hamburger (desktop unchanged) */
.topnav-toggle{
    display: none;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* HERO DEPTH FIX */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-visual {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
}

/* SECTION SEPARATION */
.about,
.features,
.cta {
    position: relative;
}

.about {
    background: #ffffff;
}

.features {
    border-top: 1px solid #eaeaea;
}

.feature-card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* RESPONSIVE FIX */
@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 30px;
    }
}

/* Public header mobile menu (only affects screens <= 900px) */
@media (max-width: 900px) {
    .header-flex {
        flex-wrap: wrap;
        gap: 12px;
    }

    .topnav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        margin-top: 6px;
        border-top: 1px solid #e6e6e6;
    }

    body.topnav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        padding: 10px 0;
    }

    .nav-links .danger {
        padding: 10px 14px;
        border-radius: 12px;
        width: fit-content;
    }
}





/* ==========================
   STATS
========================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background: #fff;
    padding: 40px;
    text-align: center;
}

.stat h3 {
    color: #ff9f43;
    font-size: 2rem;
}






/* ===============================
   PLANS PAGE
================================ */

.plans-page {
    background: #f4f6f8;
}

/* Page Hero */
.page-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a2540, #163d73);
    color: #fff;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Plans Section */
.plans-section {
    padding: 70px 20px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* Plan Card */
.plan-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
}

.plan-card h3 {
    font-size: 1.5rem;
    color: #0a2540;
    margin-bottom: 15px;
}

.plan-roi {
    font-size: 2.4rem;
    font-weight: bold;
    color: #f9b233;
}

.plan-duration {
    margin-bottom: 20px;
    color: #666;
}

/* List */
.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.plan-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* Button */
.btn-plan {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #0a2540;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-plan:hover {
    background: #163d73;
}

/* Featured Plan */
.plan-card.featured {
    border: 2px solid #f9b233;
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.08);
}

.plans_badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #f9b233;
    color: #000;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
}


/* ===============================
   AUTH PAGES
================================ */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a2540, #163d73);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-box {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    text-align: center;
}

.auth-box h2 {
    color: #0a2540;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.auth-subtext {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: #0a2540;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: #0a2540;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-auth:hover {
    background: #163d73;
}

.auth-footer {
    margin-top: 25px;
    font-size: 0.9rem;
}


.auth-footer a {
    color: #0a2540;
    font-weight: bold;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}









/* DASHBOARD */
.dashboard-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
}

.dashboard-header p {
    color: #666;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card h4 {
    margin-bottom: 10px;
    color: #555;
}

.stat-card p {
    font-size: 1.6rem;
    font-weight: bold;
    color: #0a2540;
}

/* Dashboard Section */
.dashboard-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Status badges (Dashboard table) */
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #eee;
    color: #333;
}

.badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.btn-small {
    background: #ff9f43;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.table-wrapper {
    overflow-x: auto;
}

/* Dashboard Improvements */

.dashboard-intro {
    margin-bottom: 30px;
}

.dashboard-intro h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #0a2540;
}

.dashboard-intro p {
    color: #555;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dash-card.highlight {
    background: linear-gradient(135deg, #0a2540, #163d73);
    color: #ffffff;
}

.dash-card h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.amount {
    font-size: 1.8rem;
    font-weight: bold;
}

.status.active {
    color: green;
    font-weight: bold;
}

.dashboard-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



/* ===========================
   PLANS PAGE (APP GRID STYLE)
   =========================== */

.page-head{
  margin: 10px 0 18px;
}
.page-title{
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 6px;
}
.page-subtitle{
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.plans-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.plan-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.plan-top{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-name{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.plan-roi{
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.10);
  color: #1d4ed8;
  white-space: nowrap;
}

.plan-meta{
  display: grid;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.meta-row{
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-size: 14px;
  color: #374151;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
}

.plan-actions{
  margin-top: auto;
}

.btn-full{
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Responsive */
@media (max-width: 1100px){
  .plans-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  .plans-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .plans-grid{ grid-template-columns: 1fr; }
}


/* ===========================
   ADMIN - PENDING DEPOSITS UI
   Scoped to avoid affecting other pages
   =========================== */

.admin-investments-page .admin-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}

.admin-investments-page .admin-title{
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 900;
}

.admin-investments-page .admin-subtitle{
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.admin-investments-page .admin-cards{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-investments-page .btn-danger{
  background: #c0392b !important;
  color: #fff !important;
}

.admin-investments-page .btn-approve{
  background: #2563eb !important;
  color: #fff !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  display:inline-block;
}

.admin-investments-page .btn-approve:hover{
  opacity: 0.92;
}



/* ===========================
   DASHBOARD - PENDING BANNER
   =========================== */
.pending-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  margin: 10px 0 18px;
}
.pending-banner strong{
  display:block;
  font-weight: 900;
  color:#92400e;
}
.pending-banner p{
  margin: 4px 0 0;
  color:#92400e;
  font-size: 14px;
}


/* ===========================
   GLOBAL HEADER MARQUEE (Ticker)
   =========================== */
.marquee-bar{
  background: #0b1220;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.marquee-inner{
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding: 10px 0;
}

.marquee-track{
  display: inline-flex;
  align-items: center;
  gap: 18px;
  will-change: transform;
  animation: marqueeScroll 22s linear infinite;
}

.marquee-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e5e7eb;
  opacity: 0.95;
}

.marquee-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5b6cff;
  display: inline-block;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}


/* ===========================
   HOMEPAGE: Popular Markets
   =========================== */
.markets{
  padding: 30px 40px 50px;
}

.markets .markets-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.markets h2{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.markets p{
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.market-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.market-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  display:flex;
  gap: 12px;
  align-items:center;
}

.market-icon{
  width:44px;
  height:44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: #fad3af;
  color:#ff9f43;
  border:1px solid #f9a85c;
}

.market-name{
  font-weight: 900;
  margin: 0;
  font-size: 14px;
}

.market-sub{
  margin: 2px 0 0;
  color:#6b7280;
  font-size: 13px;
}

@media (max-width: 980px){
  .market-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .market-grid{ grid-template-columns: 1fr; }
}


/* ===========================
   GLOBAL FOOTER
   =========================== */
.site-footer{
  margin-top: 28px;
  background: #0b1220;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 18px;
}

.site-footer h3{
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer h4{
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.site-footer p{
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer a{
  display:block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  margin: 6px 0;
  opacity: 0.95;
}

.site-footer a:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 18px;
  text-align:center;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr 1fr;
  }
}

/* HERO: extra mobile tightening to prevent horizontal scroll */
@media (max-width: 520px){
  body{ overflow-x:hidden; }
  .hero{ min-height:auto; padding:56px 0; }
  .hero-text h1{ font-size:2.05rem; line-height:1.15; }
  .hero-text p{ font-size:1rem; }
  .hero-actions{ flex-wrap:wrap; }
  .hero-actions .btn{ width:100%; justify-content:center; }
  .hero-visual{ grid-template-columns:1fr; }
  .hero-visual .card{ min-width:0; }
}
@media (max-width: 520px){
  .footer-inner{
    grid-template-columns: 1fr;
  }
}




/* ===========================
   CONTACT PAGE
   =========================== */
.contact-page{
  padding: 0 0 10px;
}

.contact-hero{
  background: linear-gradient(135deg, #0b1220, #101a33);
  color: #fff;
  padding: 38px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-hero-inner{
  max-width: 1200px;
  margin: 0 auto;
}

.contact-hero h1{
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 900;
}

.contact-hero p{
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  max-width: 680px;
  line-height: 1.6;
}

.contact-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

.contact-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.contact-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.contact-card h2{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}
.contact-card h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.muted{
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form label{
  display:block;
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 6px;
  color: #111827;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(91,108,255,0.65);
  box-shadow: 0 0 0 4px rgba(91,108,255,0.12);
}

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.alert{
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  margin: 10px 0 14px;
  border: 1px solid transparent;
}

.alert-error{
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-success{
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.info-list{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}

.info-item{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
}

.info-label{
  color: #6b7280;
  font-weight: 800;
  font-size: 12px;
}

.info-value{
  color: #111827;
  font-weight: 800;
  font-size: 12px;
  text-align:right;
  word-break: break-word;
}

.btn-dark{
  background: #111827 !important;
}

@media (max-width: 980px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .form-row{
    grid-template-columns: 1fr;
  }
}


/* ===========================
   ADMIN - MESSAGES PAGE
   =========================== */
.msg-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}
.msg-new{
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.msg-read{
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* ===========================
   PROFILE PAGE
   =========================== */
.profile-form label{
  display:block;
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 6px;
  color: #111827;
}

.profile-form input,
.profile-form select{
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.profile-form input:focus,
.profile-form select:focus{
  border-color: rgba(91,108,255,0.65);
  box-shadow: 0 0 0 4px rgba(91,108,255,0.12);
}






































































































/* ===========================
   MOBILE: APP SIDEBAR -> DRAWER
   (does not affect desktop)
   =========================== */

.app-overlay{
  display:none;
}

@media (max-width: 900px){

  /* Make sure content doesn't keep desktop left offset */
  .app-content, .app-main, .app-body{
    margin-left: 0 !important;
  }
  /* On mobile, remove the fixed sidebar column so the content uses full width */
  .app-shell{
    grid-template-columns: 1fr !important;
  }


  /* Sidebar becomes a hidden drawer */
  .app-sidebar{
    position: fixed;
    top: 0;
    left: -290px;               /* hidden off screen */
    width: 280px;
    height: 100vh;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.25s ease;
  }

  /* Overlay behind drawer */
  .app-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
  }

  /* Open state */
  body.nav-open .app-sidebar{
    left: 0;
  }

  body.nav-open .app-overlay{
    display:block;
  }

  /* Make topbar show hamburger nicely */
  .app-topbar{
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }
}

/* Desktop: hide overlay + hamburger if you want */
@media (min-width: 901px){
  .nav-toggle{ display:none; }
}















/* ===========================
   HERO RESPONSIVE (MOBILE)
   Desktop view unchanged
   =========================== */

@media (max-width: 900px) {

  /* Make hero stack vertically */
  .hero {
    flex-direction: column;
    padding: 56px 18px !important;
    text-align: left;
    gap: 20px;
  }

  /* Let the text take full width */
  .hero-content {
    max-width: 100% !important;
  }

  /* Reduce headline size for small screens */
  .hero h1 {
    font-size: 2.05rem !important;
    line-height: 1.15 !important;
  }

  .hero p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Buttons wrap properly on mobile */
  .hero .btn,
  .hero .btn-outline,
  .hero .btn-small {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Image goes below, full width */
  .hero-image {
    width: 100%;
  }

  .hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 14px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .hero {
    padding: 46px 14px !important;
  }

  .hero h1 {
    font-size: 1.85rem !important;
  }
}



/* =========================
   LIVE MARKET CHART SECTION
   ========================= */
.market-chart {
  padding: 60px 0;
}

.market-chart .section-head {
  margin-bottom: 18px;
}

.market-chart .section-head h2 {
  margin: 0 0 6px;
}

.market-chart .section-head p {
  margin: 0;
  opacity: 0.85;
}

.tv-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
  min-height: 520px; /* ensures autosize has room */
}

/* Mobile height adjustment */
@media (max-width: 768px) {
  .tv-embed {
    min-height: 420px;
  }
}



/* FIX: TradingView chart not filling container */
.market-chart .tv-embed {
  width: 100%;
  min-height: 520px;            /* control chart height */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}


/* TradingView wrapper must be allowed to stretch */
.market-chart .tradingview-widget-container,
.market-chart .tradingview-widget-container__widget {
  width: 100% !important;
  height: 520px !important;     /* MUST match/track tv-embed height */
}

/* Mobile height */
@media (max-width: 768px) {
  .market-chart .tv-embed {
    min-height: 420px;
  }
  .market-chart .tradingview-widget-container,
  .market-chart .tradingview-widget-container__widget {
    height: 420px !important;
  }
}

