html, body { overflow-x: hidden; }

/* ============================================================
   KARMAS.IN — STYLE V2 (Warm Vibrant Palette)
   Fire Opal · RYB Orange · Naples Yellow · Med. Aquamarine
   ============================================================ */

:root {
  --fo:     #EF5B2B; /* Fire Opal — primary */
  --orange: #F97316; /* RYB Orange — secondary */
  --yellow: #F9C31A; /* Naples Yellow — accent */
  --aqua:   #4FC8A0; /* Medium Aquamarine — success/nature */
  --cream:  #FFF8EE; /* Warm cream — page bg */
  --warm-border: #FFE4D4;
  --dark:   #2C1A0E; /* Warm dark — hero bg, headings */
  --mid:    #7A3B1E; /* Mid brown — body text */
  --muted:  #9a6b4b; /* Muted brown — secondary text */
  --bs-font-sans-serif: 'DM Sans', sans-serif;
  --bs-body-bg: #FFF8EE;
  --bs-body-color: #2C1A0E;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #2C1A0E;
  background: #FFF8EE;
}

/* ── Typography ── */
.fw-800 { font-weight: 800 !important; }
.ls-wide { letter-spacing: 0.06em; }
.text-karma  { color: var(--fo) !important; }
.text-muted  { color: var(--muted) !important; }
.text-mid    { color: var(--mid) !important; }

/* ── Navbar ── */
.navbar { background: var(--dark) !important; }
.navbar-brand { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.btn-karma {
  background: var(--fo);
  color: white !important;
  font-weight: 700;
  border: none;
  transition: all 0.15s;
}
.btn-karma:hover { background: var(--orange); color: white !important; }

/* ── Buttons ── */
.btn-primary-k {
  background: var(--fo);
  color: #fff;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary-k:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }

.btn-ghost-k {
  background: transparent;
  color: var(--fo);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid var(--fo);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-ghost-k:hover { background: var(--fo); color: #fff; }

.btn-outline-k {
  background: transparent;
  color: var(--dark);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--warm-border);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}
.btn-outline-k:hover { border-color: var(--fo); color: var(--fo); background: #fff; }

/* ── Hero ── */
.hero-section {
  background: var(--dark);
  color: white;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -150px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(239,91,43,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,200,160,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,195,26,0.12);
  border: 1px solid rgba(249,195,26,0.3);
  color: var(--yellow);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.text-hero-accent { color: var(--yellow); }

/* ── Stats bar ── */
.stats-bar {
  background: var(--fo);
  padding: 28px 0;
}
.stats-bar .stat-num  { font-size: 30px; font-weight: 800; color: #fff; }
.stats-bar .stat-lbl  { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* ── Section pills ── */
.section-pill {
  display: inline-block;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.pill-orange { background: #FEF3E2; color: #9a3412; border: 1px solid #FED7AA; }
.pill-aqua   { background: #E0FFF5; color: #065F46; border: 1px solid #A7F3D0; }
.pill-yellow { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.pill-purple { background: #F5F3FF; color: #4C1D95; border: 1px solid #DDD6FE; }
.pill-red    { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

/* ── Step cards ── */
.step-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid var(--warm-border);
  height: 100%;
  transition: all 0.2s;
}
.step-card:hover { border-color: var(--fo); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(239,91,43,0.1); }
.step-num {
  width: 46px; height: 46px;
  background: var(--fo);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.step-card.step-final { background: var(--aqua); border-color: #1D9E75; }
.step-card.step-final .step-num { background: #0F6E56; }
.step-card.step-final h5,
.step-card.step-final p { color: #064E3B; }

/* ── Category cards ── */
.cat-card-k {
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
  position: relative;
}
.cat-card-k:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); color: inherit; }
.cat-card-k .cat-arrow { position: absolute; top: 18px; right: 16px; color: #9a6b4b; font-size: 16px; transition: transform 0.2s; }
.cat-card-k:hover .cat-arrow { transform: translate(3px,-3px); }

/* ── Task cards ── */
.task-card {
  display:flex;flex-direction:column;height:100%;
  background:#fff;border-radius:14px;border:1.5px solid var(--warm-border);
  overflow:hidden;text-decoration:none;color:inherit;transition:all 0.2s;
}
.task-card:hover{border-color:var(--fo);transform:translateY(-4px);box-shadow:0 12px 28px rgba(239,91,43,0.1);color:inherit;}
.task-card-img{height:185px;overflow:hidden;background:#f3f4f6;flex-shrink:0;}
.task-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.4s;}
.task-card:hover .task-card-img img{transform:scale(1.05);}
.task-card-body{padding:16px;flex:1;display:flex;flex-direction:column;}

.task-card-k {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--warm-border);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}
.task-card-k:hover { border-color: var(--fo); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(239,91,43,0.1); color: inherit; }
.task-img-k { height: 185px; overflow: hidden; background: #f3f4f6; position: relative; }
.task-img-k img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.task-card-k:hover .task-img-k img { transform: scale(1.05); }
.task-body-k { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.task-footer-k { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--warm-border); }

/* ── Karma pill ── */
.karma-pill-k {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF3E2;
  color: #9a3412;
  border: 1px solid #FED7AA;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ── Leaderboard ── */
.lb-item-k {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  transition: all 0.15s;
  border: 1.5px solid var(--warm-border);
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.lb-item-k:hover { border-color: var(--fo); background: #FFF8EE; color: inherit; }
.lb-rank-1-k { background: #FFFBEB; border-color: #F9C31A !important; }
.lb-rank-2-k { background: #F9FAFB; border-color: #D1D5DB !important; }
.lb-rank-3-k { background: #FFF7ED; border-color: #F97316 !important; }

/* ── Activity feed ── */
.activity-item-k {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--warm-border);
}

/* ── Impact section ── */
.impact-section { background: var(--dark); color: white; }
.impact-num { font-size: clamp(40px,5vw,68px); font-weight: 800; color: var(--yellow); line-height: 1; }
.impact-card-k {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}

/* ── Badge pills ── */
.badge-pill-k {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid;
}

/* ── Forms ── */
.form-control, .form-select {
  border: 1.5px solid var(--warm-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fo);
  box-shadow: 0 0 0 3px rgba(239,91,43,0.12);
  outline: none;
}
.form-label { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--dark); }

/* ── Dashboard sidebar ── */
.dash-sidebar {
  background: #fff;
  border-right: 1.5px solid var(--warm-border);
  min-height: calc(100vh - 66px);
  padding: 20px 0;
  position: sticky;
  top: 66px;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.dash-nav-link:hover, .dash-nav-link.active {
  color: var(--fo);
  background: #FFF8EE;
  border-left-color: var(--fo);
}
.dash-nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9a88a;
  padding: 12px 20px 4px;
}

/* ── Section backgrounds ── */
.bg-karma-cream  { background: #FFF8EE; }
.bg-karma-warm   { background: #FFF3E8; }
.bg-karma-white  { background: #fff; }
.bg-karma-dark   { background: var(--dark); }
.bg-karma-orange { background: var(--fo); }

/* ── Upload area ── */
.proof-upload-area {
  border: 2px dashed var(--warm-border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.proof-upload-area:hover, .proof-upload-area.dragover {
  border-color: var(--fo);
  background: rgba(239,91,43,0.04);
}

/* ── Cards ── */
.card {
  border: 1.5px solid var(--warm-border) !important;
  border-radius: 14px !important;
}
.card-header { border-bottom: 1px solid var(--warm-border) !important; }

/* ── Pagination ── */
.page-link { color: var(--fo); border-color: var(--warm-border); }
.page-item.active .page-link { background: var(--fo); border-color: var(--fo); }

/* ── Alert overrides ── */
.alert-success { background: #E0FFF5; border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: #FFF1F2; border-color: #FECDD3; color: #9F1239; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info    { background: #FEF3E2; border-color: #FED7AA; color: #9a3412; }

/* ── Bootstrap overrides ── */
.btn-dark  { background: var(--dark); border-color: var(--dark); }
.btn-dark:hover { background: #3d2415; border-color: #3d2415; }
.badge.bg-secondary { background: #FEF3E2 !important; color: #9a3412 !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { padding: 60px 0 50px; }
  .hero-preview { display: none !important; }
  .stats-bar .stat-num { font-size: 22px; }
  .dash-sidebar { position: static; min-height: auto; border-right: none; border-bottom: 1.5px solid var(--warm-border); }
}

/* ── Leaderboard podium ── */
.lb-rank-1 { background: #FFFBEB !important; border-color: #F9C31A !important; }
.lb-rank-2 { background: #F9FAFB !important; border-color: #D1D5DB !important; }
.lb-rank-3 { background: #FFF7ED !important; border-color: #F97316 !important; }

/* ── Animations ── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pulse-karma { 0%,100%{opacity:1} 50%{opacity:0.7} }
/* ============================================
   KARMAS.IN — GLOBAL MOBILE RESPONSIVE CSS
   ============================================ */

/* Base */
html,body{overflow-x:hidden;}
img{max-width:100%;}
*{box-sizing:border-box;}

/* ── TASKS LIST PAGE ── */
@media(max-width:768px){
  .task-card-wrapper{padding:0 4px;}
  .task-card-img img{height:160px!important;object-fit:cover;}
  /* Search bar */
  .tasks-search-row .col-md-4{margin-bottom:8px;}
  /* Filter pills scroll */
  .filter-cats{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:6px!important;scrollbar-width:none!important;}
  .filter-cats::-webkit-scrollbar{display:none;}
  /* Task grid - 1 col on mobile */
  .row.g-4 > .col-md-6{flex:0 0 100%!important;max-width:100%!important;}
}
@media(max-width:768px){
  /* Task grid - 1 col */
  .col-md-6.col-lg-4.task-card-wrapper{flex:0 0 100%!important;max-width:100%!important;width:100%!important;}
}

/* ── TASK VIEW PAGE ── */
@media(max-width:768px){
  .task-view-sidebar{position:static!important;margin-top:20px;}
  .task-hero-img{height:220px!important;}
  .task-action-btns{flex-direction:column!important;gap:8px!important;}
  .task-action-btns a,.task-action-btns button{width:100%!important;text-align:center!important;}
}

/* ── LEADERBOARD ── */
@media(max-width:640px){
  .lb-item-k{padding:10px 12px!important;gap:10px!important;}
  .lb-item-k img{width:38px!important;height:38px!important;}
  .lb-item-k .karma-pill{font-size:11px!important;}
}

/* ── PROFILE PAGE ── */
@media(max-width:768px){
  .profile-cover{height:140px!important;}
  .profile-avatar{width:72px!important;height:72px!important;bottom:-36px!important;}
  .profile-stats-row{grid-template-columns:repeat(2,1fr)!important;}
  .profile-badges{flex-wrap:wrap!important;}
}

/* ── GALLERY ── */
@media(max-width:640px){
  .gallery-grid{grid-template-columns:repeat(2,1fr)!important;gap:8px!important;}
  .proof-img{height:150px!important;}
  .lightbox-inner{border-radius:8px!important;}
  .lightbox-info{padding:14px!important;}
  #lb-img-prev,#lb-img-next{width:30px!important;height:30px!important;font-size:16px!important;}
}

/* ── REGISTER/LOGIN ── */
@media(max-width:768px){
  .auth-left-panel{display:none!important;}
  .auth-right-panel{padding:24px 16px!important;}
  .role-grid .col-6{flex:0 0 50%!important;}
}

/* ── FORMS ── */
@media(max-width:640px){
  .row.g-3 > .col-md-6{flex:0 0 100%!important;max-width:100%!important;}
  .row.g-3 > .col-12{flex:0 0 100%!important;max-width:100%!important;}
  .form-actions{flex-direction:column!important;gap:8px!important;}
  .form-actions .btn{width:100%!important;text-align:center!important;}
}

/* ── FOOTER ── */
@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr 1fr!important;gap:24px!important;}
  .footer-brand-col{grid-column:1/-1!important;}
}

/* ── CONTACT PAGE ── */
@media(max-width:640px){
  .contact-grid{grid-template-columns:1fr!important;}
  .contact-info-grid{grid-template-columns:1fr!important;}
}

/* ── ABOUT PAGE ── */  
@media(max-width:640px){
  .about-stats{grid-template-columns:1fr 1fr!important;}
  .about-team-grid{grid-template-columns:1fr 1fr!important;}
}

/* ── SETTINGS PAGE ── */
@media(max-width:640px){
  .settings-row{flex-direction:column!important;gap:8px!important;}
  .settings-row > div:first-child{min-width:unset!important;flex:none!important;}
}

/* ── SHARE CARD ── */
@media(max-width:480px){
  .impact-card{width:calc(100vw - 32px)!important;}
  .share-actions{flex-direction:column!important;}
  .share-actions a,.share-actions button{width:100%!important;}
}

/* ── NOTIFICATIONS ── */
@media(max-width:640px){
  .notif-item{padding:12px 14px!important;gap:10px!important;}
  .notif-icon{width:36px!important;height:36px!important;font-size:16px!important;}
}

/* ── GENERAL UTILITIES ── */
@media(max-width:768px){
  .hide-mobile{display:none!important;}
  .container{padding-left:14px!important;padding-right:14px!important;}
  section.py-5{padding-top:32px!important;padding-bottom:32px!important;}
  h1{font-size:clamp(24px,6vw,40px)!important;}
  h2{font-size:clamp(20px,5vw,32px)!important;}
  .btn-lg{padding:11px 20px!important;font-size:14px!important;}
  /* Cards full width on mobile */
  .card{border-radius:10px!important;}
  /* Tables scroll horizontally */
  .table-responsive-mobile{overflow-x:auto;-webkit-overflow-scrolling:touch;}
}
@media(max-width:480px){
  .container{padding-left:12px!important;padding-right:12px!important;}
}
