/* ============================================================
   Page-specific styles
   ============================================================ */

/* ===================== HOME ===================== */
/* ===================== HOME HERO (FIXED RESPONSIVE) ===================== */

.hero-home {
  padding: clamp(2.5rem, 6vw, 6rem) 0 2.5rem;
}

.hero-home .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* Text block */
.hero-home h1 {
  text-transform: uppercase;
}

.hero-home p {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* CTA buttons */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image */
.hero-home .hero-image .media {
  aspect-ratio: 5 / 4;
  min-height: 320px;
}

/* ===================== TABLET ===================== */
@media (max-width: 900px) {
  .hero-home .grid {
    grid-template-columns: 1fr;
  }

  .hero-home .hero-image {
    order: -1;
  }
}

/* ===================== MOBILE ===================== */
@media (max-width: 600px) {
  .hero-home {
    padding: 2.5rem 0 2rem;
  }

  .hero-home .hero-image .media {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}

/* ===================== SMALL PHONES (iPhone 14 safe) ===================== */
@media (max-width: 430px) {
  .hero-home {
    padding: 2.2rem 0 1.8rem;
  }

  .hero-home .grid {
    gap: 1.25rem;
  }

  .hero-home h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .hero-home p {
    font-size: 1rem;
  }

  .hero-home .hero-image .media {
    min-height: 200px;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}

/* Behind the Lens */
.behind-lens {
  text-align: center;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.behind-lens .content {
  max-width: 720px;
  margin: 0 auto;
}

.behind-lens h2 {
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.behind-lens p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Why Soo Kedai — feature grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-grid .card.highlight {
  grid-row: span 2;
  background: linear-gradient(160deg, #1a1a1a 0%, #141414 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-grid .card h3 {
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.why-grid .card p {
  margin: 0;
  font-size: .93rem;
}

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

  .why-grid .card.highlight {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Selected Works */
.works-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.works-header h2 {
  text-transform: uppercase;
  margin: 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.work-item:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, .5);
}

.work-item .img-placeholder {
  border-radius: 0;
  aspect-ratio: 4/3;
}

.work-item .meta {
  padding: 1.1rem 1.25rem;
}

.work-item .meta h4 {
  margin: 0 0 .25rem;
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .02em;
}

.work-item .meta span {
  color: var(--text-dim);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* Client Stories */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial p {
  color: #ddd;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial .author {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .85rem;
  text-transform: uppercase;
}

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

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  transition: border-color .2s;
}

.faq details[open] {
  border-color: var(--accent);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .88rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

/* ===================== STORY ===================== */
.story-hero {
  padding: 5rem 0;
}

.story-hero .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-hero .img-placeholder {
  aspect-ratio: 4/5;
  min-height: 420px;
}

.story-hero h1 {
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.story-hero blockquote {
  border-left: 3px solid var(--accent);
  padding: .25rem 0 .25rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0 0;
}

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

/* Philosophy */
.philosophy {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy .grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.philosophy h2 {
  text-transform: uppercase;
}

.philosophy-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

  .philosophy-values {
    grid-template-columns: 1fr;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-member .img-placeholder {
  aspect-ratio: 3/4;
  margin-bottom: 1rem;
}

.team-member h4 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: .04em;
}

.team-member .role {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: .25rem;
}

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

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ===================== SERVICES ===================== */
.services-hero {
  padding: 5rem 0;
}

.services-hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.services-hero h1 {
  text-transform: uppercase;
}

.services-hero h1 .blue {
  color: #6dd3ff;
}

.services-hero .img-placeholder {
  aspect-ratio: 5/4;
  min-height: 340px;
}

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

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.step-card .step-num {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .22em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.step-card h3 {
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.step-card .img-placeholder {
  margin-top: 1.25rem;
  aspect-ratio: 16/9;
}

@media (max-width: 800px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Pricing tiers */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier .eyebrow {
  margin-bottom: .75rem;
  font-size: .72rem;
}

.tier h3 {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.tier .price {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.tier ul li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: .93rem;
  color: #d0d0d0;
}

.tier ul li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.tier.featured {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-8px);
}

.tier.featured .eyebrow {
  color: var(--accent);
}

.tier.featured ul li {
  color: #222;
  border-bottom-color: rgba(0, 0, 0, .08);
}

.tier.featured .tier-badge {
  position: absolute;
  top: -12px;
  right: 1.75rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 4px;
  font-weight: 700;
}

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

  .tier.featured {
    transform: none;
  }
}

/* Services final CTA */
.services-final {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.services-final .grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.services-final h2 {
  margin: 0;
  text-transform: uppercase;
}

.services-final .btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .services-final .grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== WORK / PORTFOLIO ===================== */
.work-hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

@media (max-width: 600px) {
  .work-hero {
    padding: 3rem 0 2rem;
  }
}

.work-hero h1 {
  text-transform: uppercase;
}

.work-hero h1 .accent {
  display: block;
}

.work-hero p {
  max-width: 620px;
  margin: 1rem auto 2rem;
}

.work-feature {
  max-width: var(--container);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.work-feature .img-placeholder {
  aspect-ratio: 21/9;
  border-radius: var(--radius);
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-toolbar h2 {
  margin: 0;
  text-transform: uppercase;
}

.gallery-toolbar .filters {
  display: flex;
  gap: .5rem;
  background: var(--bg-card);
  padding: .35rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.gallery-toolbar .filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: .55rem 1rem;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
  transition: transform .25s;
}

.gallery-item:hover {
  transform: scale(1.01);
}

.gallery-item .img-placeholder,
.gallery-item .media {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ===================== CONTACT ===================== */
.contact-hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.contact-hero h1 {
  text-transform: uppercase;
}

.contact-hero p {
  max-width: 560px;
  margin: 1rem auto 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
}

@media (max-width: 600px) {
  .contact-card {
    padding: 1.5rem;
  }
}

.contact-card h2 {
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.form-control {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  color: #fff;
  min-height: 46px;
  transition:
    border-color .3s var(--ease-smooth),
    background .3s var(--ease-smooth),
    box-shadow .3s var(--ease-smooth);
  font-size: 1rem;
}

.form-control:focus {
  outline: 0;
  border-color: var(--accent);
  background: #121212;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, .15);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-control.invalid {
  border-color: #ff6b6b;
}

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

/* Studio Info list */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list .info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(230, 57, 70, .1);
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.info-list svg {
  width: 18px;
  height: 18px;
}

.info-list strong {
  display: block;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.info-list span {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.map-card {
  margin-top: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.map-card .img-placeholder {
  aspect-ratio: 16/9;
  border-radius: 0;
}

.map-card a.map-open {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

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

/* What happens next */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.next-steps .step h4 {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
  margin: 1rem 0 .5rem;
}

.next-steps .step p {
  font-size: .92rem;
}

@media (max-width: 800px) {
  .next-steps {
    grid-template-columns: 1fr;
  }
}

/* ===================== ADMIN DASHBOARD ===================== */

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.admin-sidebar h3 {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .9rem;
  margin-bottom: 2rem;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu li {
  margin-bottom: .5rem;
}

.admin-menu a {
  display: block;
  padding: .8rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: var(--accent);
  color: #fff;
}


/* Main */
.admin-main {
  padding: 2rem;
  min-width: 0;
}

/* Top bar */
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-top h2 {
  text-transform: uppercase;
  margin: 0;
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
}

.stat-card h4 {
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
}

/* Messages table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.admin-table th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .75rem;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Admin Filters */
.admin-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-input,
.filter-select {
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  flex: 1;
  min-width: 140px;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    padding: 1.5rem 1rem;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .admin-top {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    flex-direction: column;
  }

  .filter-input,
  .filter-select {
    width: 100%;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
}


.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #000000;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  border-radius: 16px;
}

.login-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 2rem;
}

.login-btn {
  width: 100%;
  margin-top: 1rem;
}

#errorMsg {
  color: #e53935;
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.login-card {
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure chart canvas doesn't overflow */
#messageChart {
  max-width: 100%;
  width: 100% !important;
}

/* Fixed height message section */
#messagesSection {
  height: 500px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

/* Keep title fixed */
#messagesSection h3 {
  flex-shrink: 0;
}

/* Table wrapper scrolls internally */
.table-scroll {
  overflow-y: auto;
  overflow-x: auto;
  flex: 1;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}

/* Optional smoother scrollbar */
.table-scroll::-webkit-scrollbar {
  width: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 20px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #e53935;
}