/* ============================================
   OLLO Hospitality — Global Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ollo-teal: #d4533c;
  --ollo-teal-light: #e8614d;
  --ollo-teal-dark: #c0432e;
  --ollo-navy: #1e293b;
  --ollo-navy-light: #334155;
  --ollo-amber: #f59e0b;
  --ollo-amber-light: #fbbf24;
  --ollo-purple: #a855f7;
  --ollo-blue: #3b82f6;
  --ollo-rose: #f43f5e;
  --ollo-green: #22c55e;
  --ollo-bg: #fef7f5;
  --ollo-bg-warm: #f8fafc;
  --ollo-surface: #ffffff;
  --ollo-border: #e2e8f0;
  --ollo-text: #0f172a;
  --ollo-text-secondary: #64748b;
  --ollo-text-muted: #94a3b8;
  --ollo-radius: 16px;
  --ollo-radius-sm: 10px;
  --ollo-radius-lg: 24px;
  --ollo-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --ollo-shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --ollo-shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --ollo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ollo-font);
  color: var(--ollo-text);
  background: var(--ollo-bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: var(--ollo-teal); text-decoration: none; }
a:hover { color: var(--ollo-teal-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ollo-text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px; font-size: 0.88rem;
  font-weight: 600; font-family: var(--ollo-font);
  cursor: pointer; border: none; transition: all 0.2s ease;
  text-decoration: none; letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--ollo-navy); color: #fff;
}
.btn--primary:hover { background: var(--ollo-navy-light); transform: translateY(-1px); box-shadow: var(--ollo-shadow-md); }

.btn--teal {
  background: var(--ollo-teal); color: #fff;
}
.btn--teal:hover { background: var(--ollo-teal-dark); transform: translateY(-1px); }

.btn--amber {
  background: var(--ollo-amber); color: var(--ollo-text);
}
.btn--amber:hover { background: var(--ollo-amber-light); transform: translateY(-1px); }

.btn--ghost {
  background: transparent; color: var(--ollo-text-secondary);
  border: 1px solid var(--ollo-border);
}
.btn--ghost:hover { background: var(--ollo-bg); color: var(--ollo-text); }

.btn--outline {
  background: transparent; color: var(--ollo-teal);
  border: 2px solid var(--ollo-teal);
}
.btn--outline:hover { background: var(--ollo-teal); color: #fff; }

.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* --- Product Buttons (landing page) --- */
.btn--create { background: var(--ollo-amber); color: var(--ollo-text); border-radius: 100px; }
.btn--grow { background: var(--ollo-navy); color: #fff; border-radius: 100px; }
.btn--flow { background: var(--ollo-teal); color: #fff; border-radius: 100px; }
.btn--delivery { background: transparent; color: var(--ollo-purple); border: 2px solid var(--ollo-purple); border-radius: 100px; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); border-bottom: 1px solid rgba(226,232,240,.5);
  transition: all 0.3s ease;
}
.navbar--hero {
  background: transparent; border-bottom-color: transparent;
}
.navbar--hero.scrolled {
  background: rgba(255,255,255,.92); border-bottom-color: rgba(226,232,240,.5);
}
.navbar__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__brand {
  font-size: 1.6rem; font-weight: 800; color: var(--ollo-text);
  letter-spacing: -0.04em; text-decoration: none;
}
.navbar__brand span { font-weight: 300; }
.navbar__links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.navbar__links a {
  font-size: 0.88rem; font-weight: 500; color: var(--ollo-text-secondary);
  transition: color 0.15s;
}
.navbar__links a:hover { color: var(--ollo-text); }
.navbar__cta { margin-left: 8px; }
.navbar__mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar__mobile-toggle svg { width: 24px; height: 24px; stroke: var(--ollo-text); }
.navbar__mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff; padding: 24px; z-index: 99; flex-direction: column; gap: 8px;
}
.navbar__mobile-menu.open { display: flex; }
.navbar__mobile-menu a {
  font-size: 1rem; padding: 12px 0; border-bottom: 1px solid var(--ollo-border);
  color: var(--ollo-text); font-weight: 500;
}

@media(max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__mobile-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 40%, #f8fafc 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.08; margin-bottom: 24px;
  text-transform: uppercase;
}
.hero__subtitle {
  font-size: 1.05rem; color: var(--ollo-text-secondary);
  line-height: 1.7; margin-bottom: 32px; max-width: 500px;
}
.hero__label {
  font-size: 0.88rem; font-weight: 700; color: var(--ollo-text);
  margin-bottom: 16px;
}
.hero__buttons {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
}
.hero__consult-label {
  font-size: 0.88rem; font-weight: 700; color: var(--ollo-text);
  margin-bottom: 12px;
}
.hero__visual {
  position: relative; display: flex; justify-content: center;
}
.hero__visual img {
  max-width: 100%; border-radius: var(--ollo-radius-lg);
}
.hero__phone {
  width: 280px; border-radius: 32px; box-shadow: var(--ollo-shadow-lg);
}

@media(max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .hero__visual { margin-top: 40px; }
}

/* --- Section --- */
.section { padding: 80px 0; }
.section--gray { background: var(--ollo-bg-warm); }
.section--teal { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; }
.section__header {
  text-align: center; max-width: 640px; margin: 0 auto 48px;
}
.section__header p {
  color: var(--ollo-text-secondary); margin-top: 12px; font-size: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--ollo-surface); border-radius: var(--ollo-radius);
  padding: 28px; border: 1px solid var(--ollo-border);
  transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--ollo-shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card__icon--teal { background: #ecfdf5; color: var(--ollo-teal); }
.card__icon--amber { background: #fffbeb; color: var(--ollo-amber); }
.card__icon--blue { background: #eff6ff; color: var(--ollo-blue); }
.card__icon--purple { background: #faf5ff; color: var(--ollo-purple); }
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card__desc { font-size: 0.85rem; color: var(--ollo-text-secondary); line-height: 1.6; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* --- Stats Cards (Dashboard) --- */
.stat-card {
  background: var(--ollo-surface); border-radius: var(--ollo-radius);
  padding: 24px; border: 1px solid var(--ollo-border);
}
.stat-card__header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px;
}
.stat-card__label { font-size: 0.78rem; font-weight: 600; color: var(--ollo-text); }
.stat-card__sublabel { font-size: 0.68rem; color: var(--ollo-text-muted); margin-bottom: 12px; }
.stat-card__value { font-size: 1.8rem; font-weight: 700; color: var(--ollo-text); letter-spacing: -0.02em; }
.stat-card__change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600; padding: 3px 8px;
  border-radius: 100px; margin-left: 8px;
}
.stat-card__change--up { background: #ecfdf5; color: #16a34a; }
.stat-card__change--down { background: #fef2f2; color: #dc2626; }
.stat-card__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.stat-card__icon--blue { background: #dbeafe; }
.stat-card__icon--teal { background: #ccfbf1; }
.stat-card__icon--amber { background: #fef3c7; }
.stat-card__icon--rose { background: #ffe4e6; }

/* --- Dashboard Grid --- */
.dash-grid { display: grid; gap: 20px; }
.dash-grid--stats { grid-template-columns: repeat(3, 1fr); }
.dash-grid--2col { grid-template-columns: 1fr 1fr; }
.dash-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
.dash-grid--main { grid-template-columns: 2fr 1fr; }

@media(max-width: 1024px) {
  .dash-grid--stats { grid-template-columns: 1fr; }
  .dash-grid--2col { grid-template-columns: 1fr; }
  .dash-grid--3col { grid-template-columns: 1fr; }
  .dash-grid--main { grid-template-columns: 1fr; }
}

/* --- Dashboard Panel --- */
.dash-panel {
  background: var(--ollo-surface); border-radius: var(--ollo-radius);
  padding: 24px; border: 1px solid var(--ollo-border);
}
.dash-panel__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.dash-panel__title { font-size: 0.92rem; font-weight: 700; }
.dash-panel__subtitle { font-size: 0.72rem; color: var(--ollo-text-muted); }

/* --- Chart Placeholder --- */
.chart-area {
  width: 100%; height: 200px; border-radius: var(--ollo-radius-sm);
  background: linear-gradient(180deg, rgba(13,148,136,.04) 0%, rgba(13,148,136,.01) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.chart-area canvas { width: 100% !important; height: 100% !important; }

/* --- Social Bar --- */
.social-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--ollo-border);
}
.social-bar:last-child { border-bottom: none; }
.social-bar__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-bar__info { flex: 1; }
.social-bar__name { font-size: 0.82rem; font-weight: 600; }
.social-bar__followers { font-size: 0.68rem; color: var(--ollo-text-muted); }
.social-bar__pct { font-size: 0.88rem; font-weight: 700; color: var(--ollo-text); }

/* --- Booking Table --- */
.booking-table {
  width: 100%; border-collapse: collapse;
}
.booking-table th {
  text-align: left; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ollo-text-muted); padding: 8px 12px;
  border-bottom: 1px solid var(--ollo-border);
}
.booking-table td {
  font-size: 0.82rem; padding: 12px; border-bottom: 1px solid var(--ollo-border);
}
.booking-table tr:hover { background: rgba(13,148,136,.02); }

/* --- Status Badge --- */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 100px; font-size: 0.68rem; font-weight: 600;
}
.badge--confirmed { background: #ecfdf5; color: #16a34a; }
.badge--pending { background: #fffbeb; color: #d97706; }
.badge--cancelled { background: #fef2f2; color: #dc2626; }
.badge--hot { background: #fef2f2; color: #dc2626; }
.badge--warm { background: #fffbeb; color: #d97706; }
.badge--cold { background: #eff6ff; color: #3b82f6; }
.badge--pro { background: linear-gradient(135deg, var(--ollo-teal), var(--ollo-teal-dark)); color: #fff; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ollo-text); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px; border-radius: var(--ollo-radius-sm);
  border: 1px solid var(--ollo-border); font-size: 0.88rem;
  font-family: var(--ollo-font); color: var(--ollo-text);
  background: var(--ollo-surface); transition: border-color 0.15s;
  outline: none;
}
.form-input:focus { border-color: var(--ollo-teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.form-input::placeholder { color: var(--ollo-text-muted); }

textarea.form-input { min-height: 120px; resize: vertical; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

/* --- Toast --- */
.toast {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 12px; font-size: 0.85rem;
  font-weight: 500; z-index: 9999; transition: bottom 0.3s ease;
  box-shadow: var(--ollo-shadow-lg);
}
.toast.show { bottom: 24px; }
.toast--success { background: var(--ollo-teal); color: #fff; }
.toast--error { background: var(--ollo-rose); color: #fff; }
.toast--info { background: var(--ollo-navy); color: #fff; }

/* --- Loader --- */
.loader {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-radius: 50%;
  border-top-color: #fff; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Auth Page --- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #f8fafc 100%);
  padding: 24px;
}
.auth-card {
  background: var(--ollo-surface); border-radius: var(--ollo-radius-lg);
  padding: 48px 40px; max-width: 440px; width: 100%;
  box-shadow: var(--ollo-shadow-lg);
}
.auth-card__brand {
  font-size: 1.8rem; font-weight: 800; text-align: center;
  margin-bottom: 8px; letter-spacing: -0.04em;
}
.auth-card__subtitle {
  text-align: center; font-size: 0.88rem; color: var(--ollo-text-secondary);
  margin-bottom: 32px;
}

/* --- Pricing --- */
.pricing-card {
  background: var(--ollo-surface); border-radius: var(--ollo-radius-lg);
  padding: 40px; border: 2px solid var(--ollo-border); text-align: center;
  transition: all 0.2s ease;
}
.pricing-card--featured {
  border-color: var(--ollo-teal); position: relative;
  box-shadow: 0 8px 32px rgba(13,148,136,.12);
}
.pricing-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card__price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-card__period { font-size: 0.82rem; color: var(--ollo-text-secondary); margin-bottom: 24px; }
.pricing-card__features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-card__features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 0.85rem; color: var(--ollo-text-secondary);
  border-bottom: 1px solid var(--ollo-border);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li svg { width: 18px; height: 18px; color: var(--ollo-teal); flex-shrink: 0; }

/* --- Footer --- */
.footer {
  padding: 60px 0 32px; background: var(--ollo-navy); color: rgba(255,255,255,.7);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.04em; }
.footer__desc { font-size: 0.82rem; line-height: 1.7; max-width: 280px; }
.footer__title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 0.85rem; color: rgba(255,255,255,.7); transition: color 0.15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 0.78rem; text-align: center; }

@media(max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- Animate on Scroll --- */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.animate-in { opacity: 1; transform: translateY(0); }

/* --- Dashboard Header Bar --- */
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.dash-topbar__left h1 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.dash-topbar__left p {
  font-size: 0.82rem; color: var(--ollo-text-muted);
}
.dash-topbar__actions {
  display: flex; align-items: center; gap: 10px;
}

/* --- Filter Pills --- */
.filter-pills {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.filter-pill {
  padding: 7px 16px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; border: 1px solid var(--ollo-border); background: #fff;
  cursor: pointer; transition: all 0.15s; font-family: var(--ollo-font);
  color: var(--ollo-text-secondary);
}
.filter-pill:hover { border-color: var(--ollo-teal); color: var(--ollo-teal); }
.filter-pill.active { background: var(--ollo-teal); color: #fff; border-color: var(--ollo-teal); }

/* --- Influencer Avatars --- */
.influencer-row {
  display: flex; align-items: center; gap: -8px;
}
.influencer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
  background: var(--ollo-border);
}
.influencer-avatar:first-child { margin-left: 0; }

/* --- Product Sale Bar Chart --- */
.bar-chart {
  display: flex; align-items: flex-end; justify-content: center; gap: 12px;
  height: 160px; padding-top: 20px;
}
.bar-group {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.bar {
  width: 40px; border-radius: 6px 6px 0 0; transition: height 0.6s ease;
}
.bar--a { background: var(--ollo-blue); }
.bar--b { background: var(--ollo-teal); }
.bar--c { background: var(--ollo-amber); }
.bar-label { font-size: 0.68rem; color: var(--ollo-text-muted); font-weight: 500; }
.bar-value { font-size: 0.72rem; font-weight: 600; color: var(--ollo-text); }

/* --- Tool Page --- */
.tool-page { padding-top: 0; }
.tool-body { padding: 0; }
.tool-body > .container { max-width: 1400px; padding: 32px 40px; }

/* --- Responsive --- */
@media(max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .tool-body > .container { padding: 16px; }
}
