/* ===========================================================
   VEDAINISIGHT — GLOBAL.CSS v5.0
   Theme: White + Gold + Navy (applies to all pages incl. dashboard)
   Organized, duplicate-free, mobile-first responsive
   =========================================================== */

/* ------------- RESET & BASE ------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 50%, #fff9e6 100% );
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Utility */
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* ------------- TYPOGRAPHY ------------- */
h1,h2,h3,h4,h5 { color: #0A0A45; margin-bottom: .6rem; font-weight:700; }
p { color: #444; margin-bottom: .9rem; }

/* Theme colors (variables would be nicer, but kept simple) */
:root {
  --navy: #0A0A45;
  --gold: #F0C040;
  --soft: #fff9e6;
  --card-bg: #ffffff;
  --muted: #888;
}

/* ------------- HEADER / NAV ------------- */
.main-header {
  background: var(--navy);
  padding: 16px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow: 0 6px 18px rgba(10,10,40,0.08);
}

.logo a {
  color: var(--gold);
  text-decoration:none;
  font-weight:700;
  font-size:22px;
  letter-spacing:1px;
}

.menu-toggle {
  display:none;
  font-size:26px;
  color:#fff;
  cursor:pointer;
  user-select:none;
}

/* Nav */
#navbar ul {
  list-style:none;
  display:flex;
  gap:22px;
  align-items:center;
  margin:0;
  padding:0;
}
#navbar a {
  color:#fff;
  text-decoration:none;
  font-size:15px;
  padding:6px 8px;
  transition: color .15s;
}
#navbar a:hover, #navbar a.active { color: var(--gold); }

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display:block; }
  #navbar { display:none; width:100%; background:var(--navy); }
  #navbar.active { display:block; padding:12px 20px; }
  #navbar ul { display:block; text-align:right; }
  #navbar ul li { margin:10px 0; }
}

/* ------------- HERO (homepage / page tops) ------------- */
.hero, .about-hero, .dash-hero, .ask-hero, .profile-hero, .wallet-hero {
  text-align:center;
  padding: 80px 20px 40px;
}
.hero h2, .about-hero h2, .dash-hero h2, .ask-hero h2, .profile-hero h2, .wallet-hero h2 {
  font-size: 40px;
  line-height:1.05;
  color: var(--navy);
}
.hero p { max-width:900px; margin:12px auto 20px; color:#444; font-size:18px; }

/* ------------- BUTTONS ------------- */
.btn, .btn-primary {
  display:inline-block;
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
}
.btn:hover { background:#00073c; }

.btn-outline {
  display:inline-block;
  background:transparent;
  color: var(--navy);
  border:2px solid var(--navy);
  padding: 12px 26px;
  border-radius:8px;
  font-weight:600;
}
.btn-outline:hover { background:var(--navy); color:#fff; }

/* ------------- ELEMENT CARDS (4 card grid) ------------- */
.elements {
  padding: 48px 20px;
  text-align:center;
}
.elements h3 { font-size:30px; color:var(--navy); margin-bottom:22px; }

/* Grid */
.element-grid {
  max-width:1150px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
  align-items:stretch;
}

/* Card */
.element {
  background: var(--card-bg);
  padding:22px;
  border-radius:14px;
  border-top:6px solid var(--gold);
  box-shadow: 0 6px 20px rgba(20,20,40,0.06);
  min-height:170px;
}
.element h4 { margin-bottom:10px; color:var(--navy); font-size:18px; }
.element p { color:#444; font-size:14px; }

/* Responsive grid */
@media (max-width: 1024px) { .element-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .element-grid { grid-template-columns: 1fr; } }

/* ------------- CTA SECTION ------------- */
.cta { padding:56px 20px; text-align:center; }
.cta h3 { font-size:28px; color:var(--navy); margin-bottom:12px; }
.cta p { color:#444; margin-bottom:18px; }
.cta-buttons { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }

/* ------------- ABOUT PAGE ------------- */
.about-container {
  max-width:1100px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
  padding: 0 20px 30px;
}
.about-card {
  background:var(--card-bg);
  padding:18px;
  border-radius:12px;
  border-top:5px solid var(--gold);
  box-shadow:0 6px 18px rgba(10,10,40,0.04);
  text-align:center;
}
@media (max-width: 900px) { .about-container { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .about-container { grid-template-columns: 1fr; } }

/* ------------- AUTH (login / signup / forgot) ------------- */
.auth-container {
  max-width:480px;
  margin:30px auto 56px;
  background: var(--card-bg);
  padding:28px;
  border-radius:12px;
  box-shadow:0 8px 30px rgba(10,10,40,0.05);
}
.auth-container h2 { color:var(--navy); margin-bottom:10px; text-align:center; }
.auth-form label { display:block; color:var(--navy); font-weight:600; margin-bottom:6px; }
.auth-form input, .auth-form select, .auth-form textarea {
  width:100%; padding:12px; border-radius:8px; border:1px solid #ddd; margin-bottom:14px; font-size:15px;
}
.auth-btn { width:100%; padding:12px; background:var(--navy); color:#fff; border:none; border-radius:8px; font-weight:700; cursor:pointer; }
.auth-message { background:var(--soft); border-left:4px solid var(--gold); padding:10px 12px; color:#6a5500; border-radius:6px; }

/* ------------- ASK INSIGHT FORM & OUTPUT ------------- */
.ask-container { max-width:900px; margin:18px auto; padding:0 20px 30px; }
.ask-card {
  background:var(--card-bg);
  padding:26px;
  border-radius:12px;
  box-shadow:0 8px 30px rgba(10,10,40,0.04);
}
.ask-card h3 { color:var(--navy); margin-bottom:18px; }
.ask-card select, .ask-card textarea, .ask-card input {
  width:100%; padding:12px; border-radius:8px; border:1px solid #ddd; margin-bottom:14px; font-size:15px;
}
.dob-group { display:flex; gap:10px; flex-wrap:wrap; }
.dob-group select { flex:1; min-width:86px; }

/* small balance box */
.current-balance { background: #fff9d4; padding:12px; border-left:5px solid var(--gold); border-radius:8px; color:var(--navy); font-weight:700; margin-bottom:14px; }

/* result / reading box */
.reading-box, .insight-box, .ask-output {
  display:none;
  margin-top:18px;
  background:var(--soft);
  padding:18px;
  border-left:5px solid var(--gold);
  border-radius:8px;
}

/* ask button consistent */
.ask-btn { width:100%; padding:12px; background:var(--navy); color:#fff; border-radius:8px; border:none; font-weight:700; cursor:pointer; }

/* ------------- DASHBOARD / PROFILE / WALLETS (same theme) ------------- */
.dash-container, .profile-container, .wallet-container, .history-container {
  max-width:780px;
  margin: 20px auto;
  padding: 0 18px 25px;
}
.dash-card, .profile-card, .wallet-card, .history-card {
  background: var(--card-bg);
  padding:18px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(10,10,40,0.06);
  margin-bottom:16px;
}
.dashboard-title, .dash-title {  font-size:22px; font-weight:700; margin-bottom:10px; }

.dash-btn, .profile-btn, .wallet-btn {  padding:12px; font-size:15px; border-radius:8px;}


/* profile form */
.profile-card input, .profile-card select { padding:10px;   font-size:14.5px; }

/* wallet */
.wallet-balance {   font-size:18px;   padding:12px; }

.wallet-actions { display:flex; gap:12px; flex-wrap:wrap; }

/* wallet table */
.wallet-table { width:100%; border-collapse:collapse; margin-top:12px; }
.wallet-table th, .wallet-table td { padding:12px; border-bottom:1px solid #eee; text-align:left; }

/* history item */
.history-card { padding:18px; border-radius:10px; }

/* DASHBOARD — Top Balance Bar */
.top-wallet-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* RIGHT ALIGN */
    padding: 10px 20px 0 20px;
    margin: 0;
}

.wallet-box-top {
    background: #fff9d6;
    padding: 10px 18px;
    border-left: 5px solid #f0c040;
    border-radius: 10px;
    font-weight: 700;
    color: #0A0A45;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wallet-box-top a {
    font-weight: 600;
    color: #0A0A45;
    margin-left: 10px;
    text-decoration: underline;
}
/* ------------------------------
   DASHBOARD GRID LAYOUT
------------------------------ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.08);
}

/* Full-width card (for final result) */
.dashboard-card.full {
    grid-column: span 2;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.full {
        grid-column: span 1;
    }
}


/* MOBILE */
@media (max-width: 768px) {
    .top-wallet-bar {
        justify-content: center; /* center on mobile */
    }
}


/* ------------- ASK HISTORY / ITEM ------------- */
.history-empty { text-align:center; padding:40px; border-radius:10px; background:var(--card-bg); box-shadow:0 8px 20px rgba(10,10,40,0.03); }
.history-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.history-category { color:var(--navy); font-weight:700; }
.history-answer { background:#fff9e0; padding:12px; border-left:4px solid var(--gold); border-radius:8px; margin-top:10px; }

/* ------------- FOOTER ------------- */
footer {
  background: var(--navy);
  color:#ddd;
  padding:18px 20px;
  text-align:center;
  margin-top:36px;
}
footer span { color:var(--gold); font-weight:700; }

/* ------------- SMALL SCREEN / RESPONSIVE TWEAKS ------------- */
@media (max-width: 992px) {
  .element-grid { grid-template-columns: repeat(2,1fr); }
  .about-container { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .element-grid { grid-template-columns: 1fr; gap:16px; }
  .hero { padding: 60px 18px 30px; }
  .hero h2 { font-size: 30px; }
  .menu-toggle { display:block; }
  #navbar { display:none; width:100%; }
  #navbar.active { display:block; padding:12px 18px; }
  #navbar ul { display:block; text-align:right; padding-right:18px; }
  .dob-group { flex-direction:row; gap:8px; }
  .auth-container { margin:12px 16px 40px; padding:18px; }
  .dash-card, .profile-card, .wallet-card { padding:18px; }
}
@media (max-width: 480px) {
  .hero h2 { font-size:26px; }
  .cta h3 { font-size:22px; }
  .btn, .btn-outline { padding:10px 16px; font-size:14px; }
}

/* ------------- ACCESSIBILITY / FOCUS ------------- */
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 3px solid rgba(240,192,64,0.15); outline-offset:2px; }

/* ========== END global.css v5.0 ========== */
/* ------------------------------
   DASHBOARD LAYOUT FIX (Final) adding some alignment in dashboard center position.
------------------------------ */
.dashboard-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
}

.dashboard-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0px 6px 22px rgba(0,0,0,0.08);
}

.dashboard-card.full {
    grid-column: span 2;
}

/* Fix DOB selects */
.dob-group {
    display: flex;
    gap: 10px;
    margin: 12px 0 20px;
}

.dob-group select {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* Mobile fix */
@media(max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.full {
        grid-column: span 1;
    }
}

/* Dashboard hero right alignment */
.dash-hero {
    text-align: left !important;
    padding: 60px 30px 20px;
    margin-right: 20px;
}

.dash-hero h2 {
    font-size: 38px;
    font-weight: 700;
    color: #0A0A45;
}

.dash-hero p {
    font-size: 18px;
    color: #444;
}
/* Dashboard top alignment */
.dash-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px 10px;
}

.dash-welcome h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #0A0A45;
}

.dash-welcome p {
    margin-top: 4px;
    font-size: 17px;
    color: #444;
}

/* Right side balance box */
.dash-balance {
    background: #fff7cc;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 6px solid #f0c040;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
    font-size: 15px;
    color: #0A0A45;
    font-weight: 600;
}

.dash-balance a {
    margin-left: 10px;
    color: #0A0A45;
    font-weight: 300;
    text-decoration: underline;
}
.dob-group, .time-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.dob-group select,
.time-group select,
input[name="birth_place"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 10px;
}
.reading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.reading-row label {
    width: 55px;
    font-weight: 50;
    color: #0A0A45;
}

.reading-row .inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.reading-row input,
.reading-row select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    min-width: 40px;
}

.reading-submit {
    display: flex;
    justify-content: flex-end;
}

.manage-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.manage-btn {
    text-decoration: none;
    font-weight: 600;
    color: #0A0A45;
}

.manage-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-width: 140px;
    z-index: 999;
}

.manage-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #0A0A45;
    font-weight: 500;
}

.manage-menu a:hover {
    background: #f5f5f5;
}

.manage-dropdown:hover .manage-menu {
    display: block;
}
.ask-box {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #f0c040;
}

.ask-box h2 {
    text-align: center;
    color: #0A0A45;
    margin-bottom: 20px;
}

.ask-box label {
    font-weight: 600;
    color: #0A0A45;
}

.ask-box select,
.ask-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.ask-btn {
    width: 100%;
    background: #0A0A45;
    color: white;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.ask-btn:hover {
    background: #00073c;
}
/* ================= PROFILE PAGE ================= */

.profile-wrapper {
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  gap: 30px;
}

.profile-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-top: 5px solid #f0c040;
}

.profile-card h3 {
  margin-bottom: 20px;
  color: #0A0A45;
  font-size: 20px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-grid .field {
  display: flex;
  flex-direction: column;
}

.profile-grid label {
  font-weight: 600;
  color: #0A0A45;
  margin-bottom: 6px;
}

.profile-grid input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: border 0.2s, box-shadow 0.2s;
}

.profile-grid input:focus {
  outline: none;
  border-color: #f0c040;
  box-shadow: 0 0 0 2px rgba(240,192,64,0.2);
}

.profile-grid input[disabled] {
  background: #f7f7f7;
  color: #777;
}

/* Buttons */
.btn-primary {
  align-self: flex-start;
  background: #0A0A45;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #00073c;
}

.btn-secondary {
  align-self: flex-start;
  background: #f0c040;
  color: #000;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e0b030;
}

.ask-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 3fr;
  gap: 18px;
  background: #f8fbff;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid #e4ecf8;
  margin-bottom: 22px;
  align-items: start;
}

.meta-item {
  font-size: 14px;
}

.meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a99;
  margin-bottom: 4px;
}


.meta-value {
  font-weight: 600;
  color: #111827;
}

.meta-item.status .meta-value {
  display: inline-block;
  padding: 4px 10px;
  background: #dcfce7;
  color: #065f46;
  border-radius: 999px;
  font-size: 12px;
}

.meta-item.question {
  grid-column: 4;
  text-align: left;
}

.meta-item.question .meta-value {
  display: block;
  width: 100%;
  text-align: left;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-weight: 500;
}

.elements {
  padding: 40px 0;
}
.element {
  background: transparent;
  margin-bottom: 30px;
}


  .meta-item.question {
    grid-column: auto;
  }
}

/* META GRID */
.ask-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 14px;
  background: #f8fbff;
  padding: 14px;
  border-radius: 12px;
}


.meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 4px;
}

.meta-value {
  font-weight: 600;
  color: #111827;
}
.ask-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}
.ask-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #f8fbff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.answer-card h4 {
  text-align: left;
  margin-bottom: 6px;
}

.ask-question {
  margin-top: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 12px;
  text-align:left;
}

.question-text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  text-color: red;
}
.answer-card {
  margin-top: 14px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 5px solid #f0c040;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  text-align: left;
}

.answer-content {
  line-height: 1.8;
  text-align: left;
}
.ask-divider {
  height: 1px;
  background: #e5eaf2;
  margin: 14px 0;
}
.question-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #fee2e2;          /* soft red */
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 8px;
}
.answer-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #dcfce7;          /* soft green */
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 10px;
  text-align: left;
}
/* ===== STATUS PILL ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ✅ COMPLETED */
.status-pill.completed {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #86efac;
}

/* ⏳ PENDING */
.status-pill.pending {
  background: linear-gradient(135deg, #fff7cc, #fde68a);
  color: #92400e;
  border: 1px solid #facc15;
}

/* ❌ OPTIONAL: FAILED / ERROR */
.status-pill.failed {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}





