/* =====================================================
   DabiDubi — Global Styles
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&family=Pacifico&display=swap');

:root {
  --pink:   #FF6B9D;
  --yellow: #FFD93D;
  --mint:   #6BCB77;
  --purple: #A855F7;
  --coral:  #FF8C61;
  --sky:    #4FC3F7;
  --cream:  #FFF9F0;
  --dark:   #2D1B69;
  --gray:   #6B7280;
  --light:  #F3F4F6;
  --white:  #FFFFFF;
  --shadow: 0 4px 24px rgba(45,27,105,.10);
  --shadow-lg: 0 8px 40px rgba(45,27,105,.16);
  --radius: 18px;
  --radius-sm: 10px;
  --sidebar-w: 252px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Confetti ---- */
.confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.confetti-p {
  position: absolute; border-radius: 2px;
  animation: cfFall linear infinite; opacity: .75;
}
@keyframes cfFall {
  0%   { transform: translateY(-30px) rotate(0deg);   opacity: .8; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0;  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .9rem;
  cursor: pointer; border: none; transition: all .18s; text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary   { background: var(--purple); color: #fff; box-shadow: 0 4px 14px rgba(168,85,247,.35); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(168,85,247,.5); }
.btn-pink      { background: var(--pink);   color: #fff; box-shadow: 0 4px 14px rgba(255,107,157,.3); }
.btn-pink:hover { box-shadow: 0 6px 20px rgba(255,107,157,.5); }
.btn-mint      { background: var(--mint);   color: #fff; }
.btn-yellow    { background: var(--yellow); color: var(--dark); }
.btn-coral     { background: var(--coral);  color: #fff; }
.btn-danger    { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-ghost     { background: transparent; border: 2px solid currentColor; color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-white-outline { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-white-outline:hover { background: #fff; color: var(--purple); }
.btn-white     { background: #fff; color: var(--purple); }
.btn-sm  { padding: 7px 16px; font-size: .82rem; }
.btn-xs  { padding: 5px 11px; font-size: .78rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: 10px; }

/* ---- Form elements ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; color: var(--dark); margin-bottom: 6px; font-size: .88rem; }
.form-control {
  width: 100%; padding: 11px 15px;
  border: 2px solid #E5E7EB; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: .93rem; color: var(--dark);
  transition: border-color .18s; outline: none; background: #fff;
}
.form-control:focus { border-color: var(--purple); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: .78rem; color: var(--gray); margin-top: 4px; }

/* ---- Cards ---- */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body  { padding: 24px; }
.card-header {
  padding: 18px 24px; border-bottom: 1px solid #F3F4F6;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.card-title { font-family: 'Fredoka One', cursive; font-size: 1.15rem; color: var(--dark); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700;
}
.badge-green  { background: #DCFCE7; color: #15803D; }
.badge-yellow { background: #FEF9C3; color: #A16207; }
.badge-blue   { background: #DBEAFE; color: #1D4ED8; }
.badge-red    { background: #FEE2E2; color: #DC2626; }
.badge-purple { background: #F3E8FF; color: #7C3AED; }
.badge-pink   { background: #FCE7F3; color: #BE185D; }
.badge-gray   { background: #F3F4F6; color: #4B5563; }
.badge-orange { background: #FFF7ED; color: #C2410C; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: #FAFAFA; padding: 11px 14px; text-align: left; font-size: .75rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
td { padding: 13px 14px; border-top: 1px solid #F3F4F6; font-size: .88rem; font-weight: 600; vertical-align: middle; }
tr:hover td { background: #FAFAFA; }

/* ---- Toast ---- */
.cd-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--dark); color: #fff;
  padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: .9rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.2); max-width: 320px;
  transform: translateX(120%); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.cd-toast.show { transform: translateX(0); }
.cd-toast--success { background: var(--mint); }
.cd-toast--error   { background: #EF4444; }
.cd-toast--warning { background: var(--coral); }
.cd-toast--info    { background: var(--sky); color: var(--dark); }

/* ---- Modal ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 22px; padding: 36px;
  max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modalPop .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop { from { opacity:0; transform:scale(.88); } to { opacity:1; transform:scale(1); } }
.modal-title { font-family: 'Fredoka One', cursive; font-size: 1.6rem; color: var(--dark); margin-bottom: 22px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid #F3F4F6; }

/* ---- Dashboard layout ---- */
.dash-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); background: var(--dark);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; overflow-y: auto;
  transition: transform .3s;
}
.sidebar-logo {
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Pacifico', cursive; font-size: 1.55rem; color: #fff;
  text-align: center;
}
.sidebar-logo em { color: var(--yellow); font-style: normal; }
.sidebar-badge {
  display: inline-block; margin-top: 4px;
  background: var(--yellow); color: var(--dark);
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: .62rem;
  letter-spacing: 1.5px; padding: 2px 8px; border-radius: 50px; text-transform: uppercase;
}
.sidebar-section {
  padding: 16px 20px 6px;
  font-size: .68rem; font-weight: 800; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 20px; color: rgba(255,255,255,.65);
  font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .18s; border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,.07); color: #fff;
  border-left-color: var(--pink);
}
.sidebar-link .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-user {
  margin-top: auto; padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user-name { color: #fff; font-weight: 800; font-size: .9rem; }
.sidebar-user-sub  { color: var(--yellow); font-size: .72rem; font-weight: 600; margin-top: 2px; }

.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; padding: 28px 32px; }

.mobile-nav-btn {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 200;
  background: var(--purple); color: #fff; border: none; border-radius: 10px;
  padding: 10px 12px; font-size: 1.1rem; cursor: pointer;
}
@media(max-width:768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 16px; }
  .mobile-nav-btn { display: block; }
}

/* ---- Page header ---- */
.page-hdr {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 26px;
}
.page-hdr h1 { font-family: 'Fredoka One', cursive; font-size: 1.9rem; color: var(--dark); }
.page-hdr h1 span { color: var(--pink); }

/* ---- Stat cards ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%; opacity: .12;
}
.stat-card.c-pink::after   { background: var(--pink);   }
.stat-card.c-yellow::after { background: var(--yellow); }
.stat-card.c-mint::after   { background: var(--mint);   }
.stat-card.c-purple::after { background: var(--purple); }
.stat-card.c-coral::after  { background: var(--coral);  }
.stat-card.c-sky::after    { background: var(--sky);    }
.stat-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.stat-val   { font-family: 'Fredoka One', cursive; font-size: 2.1rem; color: var(--dark); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray); font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: .3px; }

/* ---- Section cards ---- */
.section-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; }
.section-card .s-head {
  padding: 18px 22px; border-bottom: 1px solid #F3F4F6;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.section-card .s-title { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--dark); }
.section-card .s-body  { padding: 20px 22px; }

/* ---- Search input ---- */
.search-input {
  padding: 8px 16px; border: 2px solid #E5E7EB; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-size: .88rem; outline: none;
  transition: border-color .18s; width: 210px;
}
.search-input:focus { border-color: var(--purple); }

/* ---- Birthday bar ---- */
.bday-bar { background: #F3F4F6; border-radius: 50px; height: 7px; overflow: hidden; margin-top: 5px; }
.bday-bar-fill { height: 100%; border-radius: 50px; transition: width .6s; }
.bday-bar-fill.ok   { background: var(--mint); }
.bday-bar-fill.warn { background: var(--yellow); }
.bday-bar-fill.over { background: var(--coral); }

/* ---- Birthday alert ---- */
.bday-banner {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: var(--radius); padding: 18px 22px; color: #fff;
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.bday-banner-emoji { font-size: 2.4rem; flex-shrink: 0; }
.bday-banner h4 { font-family: 'Fredoka One', cursive; font-size: 1.05rem; }
.bday-banner p  { font-size: .83rem; opacity: .9; margin-top: 2px; }

/* ---- Sub plan banner ---- */
.plan-banner {
  border-radius: var(--radius); padding: 20px 24px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-bottom: 24px;
}
.plan-banner.starter    { background: linear-gradient(135deg,#6BCB77,#4FC3F7); }
.plan-banner.moderate   { background: linear-gradient(135deg,#A855F7,#FF6B9D); }
.plan-banner.enterprise { background: linear-gradient(135deg,#FF8C61,#FFD93D); }
.plan-banner h3 { font-family: 'Fredoka One', cursive; font-size: 1.35rem; }
.plan-banner p  { font-size: .88rem; opacity: .92; margin-top: 3px; }
.plan-banner .right { text-align: right; }
.plan-banner .price { font-family: 'Fredoka One', cursive; font-size: 1.9rem; }

/* ---- Catalogue grid ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 20px; margin-top: 18px; }
.cake-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.cake-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cake-card .thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; background: linear-gradient(135deg,var(--cream),#FFE4E1);
}
.cake-card .info   { padding: 14px; }
.cake-card .cname  { font-family: 'Fredoka One', cursive; font-size: 1rem; color: var(--dark); }
.cake-card .cdesc  { font-size: .75rem; color: var(--gray); margin: 3px 0 7px; }
.cake-card .cprice { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: var(--purple); }

/* ---- Order card ---- */
.order-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.order-item .oemoji { font-size: 2.6rem; flex-shrink: 0; }
.order-item .oinfo  { flex: 1; min-width: 160px; }
.order-item .oname  { font-family: 'Fredoka One', cursive; font-size: 1.05rem; color: var(--dark); }
.order-item .ometa  { font-size: .82rem; color: var(--gray); margin-top: 3px; }
.order-item .oprice { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: var(--purple); }

/* ---- Request card ---- */
.req-card { background:#fff; border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:14px; }
.req-card h4 { font-family:'Fredoka One',cursive; font-size:1.05rem; color:var(--dark); margin-bottom:6px; }
.req-meta { display:flex; gap:14px; flex-wrap:wrap; font-size:.82rem; color:var(--gray); margin-bottom:10px; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn {
  padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: .85rem;
  cursor: pointer; transition: all .18s; background: #fff; color: var(--gray);
  border: 2px solid #E5E7EB;
}
.tab-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.tab-btn:hover:not(.active) { border-color: var(--purple); color: var(--purple); }

/* ---- Category chips ---- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 7px 16px; border-radius: 50px; font-weight: 700; font-size: .82rem;
  cursor: pointer; transition: all .18s; background: #F3F4F6; color: var(--gray); border: none;
}
.chip.active, .chip:hover { background: var(--pink); color: #fff; }

/* ---- Info grid ---- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; background: #FAFAFA; border-radius: var(--radius-sm); padding: 18px; margin-bottom: 18px; }
.info-item label { font-size: .72rem; color: var(--gray); font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.info-item p { font-weight: 700; color: var(--dark); margin-top: 3px; font-size: .92rem; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .es-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-state h3 { font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: var(--dark); margin-bottom: 6px; }
.empty-state p { color: var(--gray); font-size: .9rem; }

/* ---- Util ---- */
.text-muted { color: var(--gray); }
.text-pink   { color: var(--pink); }
.text-purple { color: var(--purple); }
.fw-bold { font-weight: 800; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media(max-width:900px){ .two-col { grid-template-columns: 1fr; } }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ---- Animations ---- */
@keyframes float { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-18px) rotate(4deg)} }
.float { animation: float 3.2s ease-in-out infinite; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.fade-in { animation: fadeInUp .4s ease both; }

/* ---- Landing-specific ---- */
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.logo-text { font-family: 'Pacifico', cursive; font-size: 1.8rem; color: #fff; }
.logo-text em { color: var(--yellow); font-style: normal; }
.hero-section {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 70px 20px; flex: 1;
}
.hero-section h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.6rem,7vw,5.5rem); color: #fff;
  line-height: 1.12; text-shadow: 2px 2px 0 rgba(0,0,0,.08);
  margin-bottom: 18px;
}
.hero-section h1 span { color: var(--yellow); }
.hero-section p { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 580px; margin: 0 auto 36px; font-weight: 600; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.feat-card {
  background: var(--cream); border-radius: var(--radius); padding: 28px;
  text-align: center; transition: transform .25s;
}
.feat-card:hover { transform: translateY(-6px); }
.feat-card .ficon { font-size: 2.8rem; margin-bottom: 12px; }
.feat-card h3 { font-family: 'Fredoka One', cursive; font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; }
.feat-card p { color: var(--gray); font-size: .88rem; line-height: 1.6; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.price-card {
  background: #fff; border-radius: var(--radius); padding: 36px 28px;
  text-align: center; position: relative; overflow: hidden; transition: transform .25s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.pop::before {
  content: '⭐ Most Popular'; position: absolute; top: 18px; right: -34px;
  background: var(--yellow); color: var(--dark); font-weight: 800; font-size: .65rem;
  padding: 5px 48px; transform: rotate(45deg); letter-spacing: .5px;
}
.price-card .pname { font-family: 'Fredoka One', cursive; font-size: 1.6rem; color: var(--dark); }
.price-card .pprice { font-family: 'Fredoka One', cursive; font-size: 3.2rem; color: var(--purple); margin: 12px 0 2px; }
.price-card .pper  { font-size: .85rem; color: var(--gray); margin-bottom: 18px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 22px; }
.price-card ul li { padding: 7px 0; border-bottom: 1px solid #F3F4F6; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.price-card ul li::before { content: '✓'; color: var(--mint); font-weight: 900; }
.price-extra { font-size: .82rem; color: var(--coral); font-weight: 700; margin-bottom: 18px; }
.section-title { font-family: 'Fredoka One', cursive; font-size: 2.3rem; text-align: center; color: var(--dark); margin-bottom: 40px; }
.section-title span { color: var(--pink); }
.section-title.light { color: #fff; }
.section-title.light span { color: var(--yellow); }
