/* Cellasia — brand theme on top of Bootstrap 5 */

:root {
  --ca-navy:   #10365f;
  --ca-blue:   #046e93;
  --ca-blue-d: #0463a7;
  --ca-orange: #f48c00;
  --ca-dark:   #302f2f;
  --ca-body:   #5a6470;
  --ca-line:   #e4e8ee;
  --ca-soft:   #f5f8fb;
}

body {
  font-family: 'Roboto', -apple-system, "Segoe UI", sans-serif;
  color: var(--ca-body);
  font-size: 15px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--ca-navy);
  font-weight: 600;
}

a { color: var(--ca-blue-d); text-decoration: none; }
a:hover { color: var(--ca-orange); }

.btn-brand {
  background: var(--ca-orange);
  border-color: var(--ca-orange);
  color: #fff;
  font-weight: 500;
  letter-spacing: .4px;
  padding: .65rem 1.6rem;
  border-radius: 2px;
}
.btn-brand:hover { background: #d97c00; border-color: #d97c00; color: #fff; }

.btn-brand-outline {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 500;
  padding: .6rem 1.6rem;
  border-radius: 2px;
}
.btn-brand-outline:hover { background: #fff; color: var(--ca-navy); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ca-navy);
  color: #cfd9e4;
  font-size: 13px;
  padding: 8px 0;
}
.topbar a { color: #cfd9e4; margin-right: 22px; }
.topbar a:hover { color: var(--ca-orange); }
.topbar-social a { margin: 0 0 0 14px; font-size: 15px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 54, 95, .08);
}
.navbar { padding: .5rem 0; }
.navbar-brand img { max-height: 42px; width: auto; }

.navbar-nav .nav-link {
  color: var(--ca-dark);
  font-weight: 500;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: .75rem .85rem !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active > .nav-link { color: var(--ca-orange); }

.navbar-nav .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--ca-orange);
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(16, 54, 95, .14);
  padding: .35rem 0;
  min-width: 265px;
}
.dropdown-item {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: .55rem 1.2rem;
  color: var(--ca-dark);
}
.dropdown-item:hover,
.dropdown-item.active { background: var(--ca-soft); color: var(--ca-orange); }

@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Hero carousel ---------- */
.hero .carousel-item { height: 560px; }
.hero .carousel-item img { height: 100%; width: 100%; object-fit: cover; }
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 28, 50, .78) 0%, rgba(9, 28, 50, .42) 65%, rgba(9, 28, 50, .25) 100%);
}
.hero .carousel-caption {
  left: 0; right: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  text-align: left;
  padding: 0 12%;
}
.hero .hero-kicker {
  color: var(--ca-orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h2 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
  max-width: 780px;
  line-height: 1.35;
  margin-bottom: 26px;
}
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; opacity: .7; }
.hero .carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: transparent; opacity: 1;
}
.hero .carousel-indicators .active { background: var(--ca-orange); border-color: var(--ca-orange); }

@media (max-width: 767px) {
  .hero .carousel-item { height: 420px; }
  .hero h2 { font-size: 1.35rem; }
  .hero .carousel-caption { padding: 0 8%; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--ca-soft); }

.section-title { margin-bottom: 45px; }
.section-title h2 { font-size: 2rem; margin-bottom: 14px; }
.section-title .rule {
  width: 70px; height: 3px;
  background: var(--ca-orange);
  margin: 0 auto;
}
.section-title.text-start .rule { margin: 0; }
.section-title p { max-width: 760px; margin: 16px auto 0; }
.section-title.text-start p { margin-left: 0; }

/* ---------- What we do ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--ca-line);
  border-radius: 3px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover { box-shadow: 0 14px 34px rgba(16, 54, 95, .14); transform: translateY(-4px); }
.service-card .thumb { overflow: hidden; aspect-ratio: 3 / 2; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .thumb img { transform: scale(1.07); }
.service-card .body { padding: 22px 24px 26px; }
.service-card h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.service-card h3 a { color: var(--ca-navy); }
.service-card:hover h3 a { color: var(--ca-orange); }
.service-card p { font-size: 14px; margin-bottom: 14px; }
.service-card .more { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--ca-orange); }

/* ---------- Stats ---------- */
.stats { background: var(--ca-navy); color: #fff; padding: 55px 0; }
.stats .stat-num { font-family: 'Roboto Slab', serif; font-size: 2.5rem; font-weight: 700; color: var(--ca-orange); line-height: 1; }
.stats .stat-label { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: #cfd9e4; margin-top: 8px; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: #fff;
  border-left: 4px solid var(--ca-orange);
  padding: 30px 34px;
  box-shadow: 0 8px 26px rgba(16, 54, 95, .08);
}
.testimonial .quote-mark { color: var(--ca-orange); font-size: 2rem; line-height: 1; }
.testimonial p { font-size: 16px; font-style: italic; color: var(--ca-dark); }
.testimonial .author { font-weight: 700; color: var(--ca-navy); font-style: normal; }

/* ---------- Client logo marquee ---------- */
.client-strip { overflow: hidden; position: relative; }
.client-track { display: flex; gap: 26px; width: max-content; animation: ca-scroll 60s linear infinite; }
.client-strip:hover .client-track { animation-play-state: paused; }
.client-track img {
  height: 84px; width: 150px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ca-line);
  border-radius: 3px;
  padding: 12px;
  filter: grayscale(1); opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}
.client-track img:hover { filter: none; opacity: 1; }
@keyframes ca-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(rgba(9, 28, 50, .85), rgba(9, 28, 50, .85)), url('../img/slide2.jpg') center/cover no-repeat;
  padding: 62px 0;
  color: #fff;
}
.page-banner h1 { color: #fff; font-size: 2.1rem; margin-bottom: 10px; }
.page-banner .breadcrumb { margin: 0; font-size: 13.5px; }
.page-banner .breadcrumb a { color: #cfd9e4; }
.page-banner .breadcrumb a:hover { color: var(--ca-orange); }
.page-banner .breadcrumb-item.active { color: var(--ca-orange); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #8ea2b8; }

/* ---------- Page content ---------- */
.page-content { padding: 70px 0; }
.page-content h2 { font-size: 1.5rem; margin: 30px 0 12px; }
.page-content h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content .lead-title {
  font-size: 1.75rem;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ca-line);
  position: relative;
}
.page-content .lead-title::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 70px; height: 3px; background: var(--ca-orange);
}
.page-content img.figure-img { width: 100%; border-radius: 3px; margin-bottom: 26px; }

.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
  content: "\F26E";
  font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: 6px;
  color: var(--ca-orange);
  font-size: 14px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--ca-line);
  border-top: 3px solid var(--ca-orange);
  border-radius: 3px;
  padding: 26px 26px 22px;
}
.info-card h3 { margin-top: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .3px; }
.info-card .icon { font-size: 1.6rem; color: var(--ca-orange); margin-bottom: 12px; display: block; }

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: var(--ca-soft);
  border: 1px solid var(--ca-line);
  border-radius: 3px;
  padding: 22px 24px;
  margin-bottom: 26px;
}
.sidebar-widget h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ca-line);
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li + li { border-top: 1px dashed var(--ca-line); }
.sidebar-nav a {
  display: block;
  padding: 9px 0 9px 18px;
  font-size: 13.5px;
  color: var(--ca-dark);
  position: relative;
}
.sidebar-nav a::before {
  content: "\F285";
  font-family: 'bootstrap-icons';
  position: absolute; left: 0;
  color: var(--ca-orange);
  font-size: 11px;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--ca-orange); }

.sidebar-cta {
  background: var(--ca-navy);
  color: #cfd9e4;
  border-radius: 3px;
  padding: 26px 24px;
  text-align: center;
}
.sidebar-cta h4 { color: #fff; font-size: 1.1rem; }
.sidebar-cta .phone { color: var(--ca-orange); font-size: 1.25rem; font-weight: 700; display: block; margin: 10px 0 16px; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 2px;
  border-color: var(--ca-line);
  padding: .65rem .9rem;
  font-size: 14.5px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ca-orange);
  box-shadow: 0 0 0 .18rem rgba(244, 140, 0, .15);
}
.form-label { font-size: 13.5px; font-weight: 500; color: var(--ca-dark); }

/* ---------- Support tickets ---------- */
.support-intro, .admin-heading, .ticket-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px;
}
.support-intro h2, .admin-heading h2 { font-size: 2rem; margin: 4px 0 8px; }
.support-intro p { margin: 0; color: var(--ca-muted); }
.support-kicker { color: var(--ca-orange); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ticket-panel, .ticket-details, .ticket-reply, .ticket-queue {
  background: #fff; border: 1px solid var(--ca-line); border-radius: 4px; padding: 26px;
}
.ticket-panel h3, .ticket-details h3 { font-size: 1.05rem; margin: 0 0 22px; }
.ticket-panel h3 i { color: var(--ca-orange); margin-right: 8px; }
.ticket-track { background: var(--ca-soft); }
.ticket-number { color: #687a8f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ticket-status { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; padding: 5px 9px; border-radius: 2px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ticket-status-open { background: #e7f1ff; color: #1457a6; }
.ticket-status-progress { background: #fff1d6; color: #945700; }
.ticket-status-waiting { background: #f3e9ff; color: #66339b; }
.ticket-status-resolved { background: #e3f6e9; color: #26733d; }
.ticket-status-closed { background: #edf0f3; color: #586471; }
.ticket-toolbar { align-items: flex-end; }
.ticket-toolbar.compact { align-items: center; border-bottom: 1px solid var(--ca-line); padding-bottom: 18px; }
.ticket-toolbar.compact h2 { font-size: 1.45rem; margin: 4px 0 0; }
.ticket-back, .admin-back { display: inline-flex; gap: 7px; align-items: center; color: var(--ca-muted); font-size: 13px; margin-bottom: 13px; }
.ticket-back:hover, .admin-back:hover { color: var(--ca-orange); }
.ticket-thread { display: grid; gap: 16px; }
.ticket-message { border: 1px solid var(--ca-line); border-left: 3px solid #9aabba; border-radius: 3px; padding: 20px 22px; }
.ticket-message-staff { background: #f6f9fc; border-left-color: var(--ca-orange); }
.ticket-message-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--ca-line); }
.ticket-message-head strong { color: var(--ca-navy); font-size: 14px; }
.ticket-message-head span { color: var(--ca-muted); font-size: 12px; }
.ticket-message-body { color: var(--ca-dark); font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.ticket-details { background: var(--ca-soft); position: sticky; top: 100px; }
.ticket-details dl { margin: 0; }
.ticket-details dt { color: var(--ca-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ticket-details dd { color: var(--ca-dark); font-size: 14px; margin: 2px 0 16px; overflow-wrap: anywhere; }
.admin-auth { max-width: 460px; margin: 0 auto; text-align: center; }
.admin-auth .ticket-panel { padding: 34px; }
.admin-auth h2 { font-size: 1.55rem; margin: 10px 0; }
.admin-auth p { color: var(--ca-muted); }
.admin-auth form { text-align: left; margin-top: 24px; }
.admin-auth-icon { color: var(--ca-orange); font-size: 2rem; }
.admin-back { margin: 22px 0 0; }
.ticket-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 30px; }
.ticket-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--ca-line); border-radius: 3px; padding: 14px 16px; color: var(--ca-dark); background: #fff; }
.ticket-stat span { font-size: 12px; }
.ticket-stat strong { color: var(--ca-navy); font-size: 1.25rem; }
.ticket-stat:hover, .ticket-stat.active { border-color: var(--ca-orange); box-shadow: inset 0 -2px var(--ca-orange); }
.ticket-queue { padding: 0; overflow: hidden; }
.ticket-queue-head { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--ca-soft); border-bottom: 1px solid var(--ca-line); font-size: 13px; }
.ticket-row { display: grid; grid-template-columns: minmax(240px, 1fr) 70px 120px 110px 16px; align-items: center; gap: 16px; padding: 16px 20px; color: var(--ca-dark); border-bottom: 1px solid var(--ca-line); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { color: var(--ca-dark); background: #fbfcfd; }
.ticket-row-main { display: grid; gap: 3px; min-width: 0; }
.ticket-row-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-row-main small, .ticket-row time { color: var(--ca-muted); font-size: 12px; }
.ticket-priority { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.priority-urgent { color: #b72e2e; }
.priority-high { color: #ad6500; }
.customer-summary { display: grid; gap: 3px; border-bottom: 1px solid var(--ca-line); padding-bottom: 18px; margin-bottom: 20px; font-size: 13px; }
.ticket-empty { text-align: center; padding: 54px 20px; color: var(--ca-muted); }
.ticket-empty i { font-size: 2rem; }
.ticket-empty p { margin: 8px 0 0; }
@media (max-width: 991.98px) {
  .ticket-stats { grid-template-columns: repeat(2, 1fr); }
  .ticket-row { grid-template-columns: 1fr auto; }
  .ticket-row .ticket-priority, .ticket-row time, .ticket-row > i { display: none; }
  .ticket-details { position: static; }
}
@media (max-width: 575.98px) {
  .support-intro, .admin-heading, .ticket-toolbar { align-items: flex-start; flex-direction: column; }
  .ticket-panel, .ticket-details, .ticket-reply { padding: 20px; }
  .ticket-message-head { flex-direction: column; gap: 4px; }
  .ticket-stats { grid-template-columns: 1fr; }
}

/* ---------- Staff console ---------- */
.admin-console-body {
  background: #f3f5f7;
  color: #3f4b59;
  font-size: 14px;
  line-height: 1.5;
}
.admin-appbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 66px;
  background: #fff;
  border-bottom: 1px solid #dce2e8;
  box-shadow: 0 2px 8px rgba(31, 45, 61, .04);
}
.admin-appbar-inner {
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.admin-brand { display: flex; align-items: center; min-width: 0; color: var(--ca-navy); }
.admin-brand:hover { color: var(--ca-navy); }
.admin-brand img { width: auto; height: 38px; max-width: 215px; object-fit: contain; }
.admin-brand > span { display: grid; border-left: 1px solid #dce2e8; margin-left: 16px; padding-left: 16px; line-height: 1.1; }
.admin-brand strong { font-family: 'Roboto Slab', Georgia, serif; font-size: 14px; }
.admin-brand small { color: #7a8795; font-size: 10px; margin-top: 4px; text-transform: uppercase; }
.admin-appbar-actions { display: flex; align-items: center; gap: 18px; }
.admin-appbar-link { display: flex; align-items: center; gap: 8px; color: #536170; font-size: 12px; font-weight: 600; }
.admin-appbar-link:hover { color: var(--ca-orange); }
.admin-user { display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid #dce2e8; }
.admin-avatar, .admin-requester-avatar, .admin-list-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: #e8eef5; color: var(--ca-navy); font-weight: 700; text-transform: uppercase;
}
.admin-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; }
.admin-user-copy { display: grid; line-height: 1.1; }
.admin-user-copy strong { color: #263442; font-size: 12px; }
.admin-user-copy small { color: #8a95a1; font-size: 10px; margin-top: 4px; }
.admin-icon-button {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dce2e8; border-radius: 4px; background: #fff; color: #647180;
}
.admin-icon-button:hover { border-color: #c23934; color: #c23934; background: #fff7f6; }
.admin-console-main { min-height: calc(100vh - 112px); }
.admin-workspace { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 54px; }
.admin-console-footer {
  min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  width: min(1440px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid #dce2e8;
  color: #84909c; font-size: 11px;
}
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.admin-page-heading h1 { color: #1e3044; font-size: 1.7rem; line-height: 1.2; margin: 3px 0 5px; }
.admin-page-heading p { color: #778491; margin: 0; }
.admin-eyebrow { color: var(--ca-orange); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.admin-primary-button, .admin-secondary-button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 4px; padding: 9px 16px; font-size: 12px; font-weight: 700; line-height: 1.2;
}
.admin-primary-button { border: 1px solid var(--ca-orange); background: var(--ca-orange); color: #fff; }
.admin-primary-button:hover { background: #d97c00; border-color: #d97c00; color: #fff; }
.admin-secondary-button { border: 1px solid #cfd7df; background: #fff; color: #344454; }
.admin-secondary-button:hover { border-color: var(--ca-blue); color: var(--ca-blue); background: #f7fbfd; }
.admin-toast-success { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 11px 14px; border: 1px solid #b9dfc5; border-radius: 4px; background: #edf8f0; color: #25653a; font-size: 12px; }

.admin-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.admin-metric {
  min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1px solid #dce2e8; border-radius: 5px; background: #fff; color: #374553;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.admin-metric:hover { color: #374553; border-color: #aebac6; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(31, 45, 61, .07); }
.admin-metric.active { border-color: var(--ca-blue); box-shadow: inset 0 -3px var(--ca-blue); }
.admin-metric-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 15px; }
.admin-metric-icon.all { background: #e8eef5; color: #355879; }
.admin-metric-icon.open { background: #e7f1ff; color: #1457a6; }
.admin-metric-icon.progress { background: #fff1d6; color: #945700; }
.admin-metric-icon.waiting { background: #f3e9ff; color: #66339b; }
.admin-metric-icon.resolved { background: #e3f6e9; color: #26733d; }
.admin-metric-icon.closed { background: #edf0f3; color: #586471; }
.admin-metric > span:last-child { min-width: 0; display: grid; }
.admin-metric small { color: #74818e; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-metric strong { color: #203349; font-family: 'Roboto Slab', Georgia, serif; font-size: 1.25rem; line-height: 1.15; margin-top: 4px; }

.admin-queue-panel, .admin-conversation, .admin-side-section {
  background: #fff; border: 1px solid #dce2e8; border-radius: 5px;
}
.admin-queue-panel { overflow: hidden; }
.admin-queue-toolbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border-bottom: 1px solid #dce2e8; }
.admin-queue-toolbar > div { display: flex; align-items: baseline; gap: 10px; }
.admin-queue-toolbar h2 { color: #24374b; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; margin: 0; }
.admin-queue-toolbar > div > span { color: #8a95a1; font-size: 11px; }
.admin-search { width: min(380px, 50%); height: 39px; display: flex; align-items: center; border: 1px solid #cfd7df; border-radius: 4px; background: #fff; overflow: hidden; }
.admin-search:focus-within { border-color: var(--ca-blue); box-shadow: 0 0 0 3px rgba(4, 110, 147, .1); }
.admin-search > i { color: #8894a0; margin-left: 12px; }
.admin-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; padding: 0 10px; color: #334352; font-size: 12px; }
.admin-search button { height: 100%; border: 0; border-left: 1px solid #dce2e8; background: #f6f8fa; color: #455463; padding: 0 14px; font-size: 11px; font-weight: 700; }
.admin-search button:hover { background: #edf1f4; }
.admin-search-clear { flex: 0 0 36px; color: #7b8793; text-align: center; }
.admin-table-head, .admin-ticket-row { display: grid; grid-template-columns: minmax(240px, 1.45fr) minmax(180px, 1fr) 90px 140px 105px 18px; gap: 16px; align-items: center; }
.admin-table-head { min-height: 38px; padding: 0 18px; background: #f7f9fa; border-bottom: 1px solid #e4e8ec; color: #7b8793; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.admin-ticket-row { min-height: 82px; padding: 12px 18px; color: #3c4b59; border-bottom: 1px solid #e8ebee; transition: background .16s ease; }
.admin-ticket-row:last-child { border-bottom: 0; }
.admin-ticket-row:hover { color: #3c4b59; background: #f8fafb; }
.admin-ticket-main, .admin-ticket-requester, .admin-ticket-row time { min-width: 0; }
.admin-ticket-main { display: grid; gap: 3px; }
.admin-ticket-id { color: #698094; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.admin-ticket-main strong { color: #24374b; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-ticket-main small { color: #87929d; font-size: 10px; }
.admin-ticket-requester { display: flex; align-items: center; gap: 9px; }
.admin-list-avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 10px; }
.admin-ticket-requester > span:last-child { min-width: 0; display: grid; gap: 2px; }
.admin-ticket-requester strong, .admin-ticket-requester small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-ticket-requester strong { color: #3b4a58; font-size: 11px; }
.admin-ticket-requester small { color: #8a95a1; font-size: 9px; }
.admin-priority { display: inline-flex; align-items: center; gap: 6px; color: #5b6976; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.admin-priority i { width: 6px; height: 6px; border-radius: 50%; background: #84919e; }
.admin-priority-high, .admin-priority-urgent { color: #a64f22; }
.admin-priority-high i, .admin-priority-urgent i { background: #dc6f36; }
.admin-priority-low { color: #647888; }
.admin-ticket-row time { display: grid; gap: 2px; }
.admin-ticket-row time strong { color: #52606d; font-size: 10px; font-weight: 600; }
.admin-ticket-row time small { color: #8a95a1; font-size: 9px; }
.admin-row-arrow { color: #9ca6af; font-size: 11px; }
.admin-empty { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.admin-empty > span { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef2f5; color: #6f7f8f; font-size: 19px; }
.admin-empty h3 { font-family: 'Roboto', sans-serif; font-size: 14px; margin: 14px 0 5px; }
.admin-empty p { color: #84909c; font-size: 12px; margin: 0 0 10px; }
.admin-empty a { font-size: 11px; font-weight: 700; }

.admin-ticket-heading { align-items: flex-start; margin-bottom: 22px; }
.admin-ticket-heading h1 { max-width: 900px; font-size: 1.55rem; margin-top: 9px; }
.admin-back-link { display: inline-flex; align-items: center; gap: 7px; color: #647484; font-size: 11px; font-weight: 600; margin-bottom: 16px; }
.admin-back-link:hover { color: var(--ca-orange); }
.admin-ticket-title-row { display: flex; align-items: center; gap: 10px; }
.admin-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.admin-conversation { overflow: hidden; }
.admin-section-heading { min-height: 55px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #e2e6ea; }
.admin-section-heading > div { display: flex; align-items: baseline; gap: 9px; }
.admin-section-heading h2 { color: #26394c; font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 700; margin: 0; }
.admin-section-heading span { color: #89949f; font-size: 10px; }
.admin-message-list { display: grid; gap: 0; }
.admin-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 20px; border-bottom: 1px solid #e8ebee; }
.admin-message-avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf1f5; color: #566a7e; }
.admin-message-staff .admin-message-avatar { background: #fff0dc; color: #b56400; }
.admin-message-content { min-width: 0; }
.admin-message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.admin-message-meta strong { color: #293b4d; font-size: 11px; }
.admin-message-meta span { padding: 2px 6px; border-radius: 2px; background: #edf1f4; color: #657381; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.admin-message-staff .admin-message-meta span { background: #fff0dc; color: #9d5904; }
.admin-message-meta time { color: #8a95a1; font-size: 9px; margin-left: auto; }
.admin-message-body { color: #465563; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.admin-reply-box { padding: 18px 20px; background: #f8fafb; }
.admin-reply-box > label { display: block; color: #304254; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.admin-reply-box textarea { resize: vertical; min-height: 104px; background: #fff; font-size: 12px; }
.admin-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; }
.admin-reply-actions > span { color: #83909c; font-size: 9px; }
.admin-reply-actions > span i { margin-right: 4px; }
.admin-closed-note { display: flex; align-items: center; gap: 8px; padding: 17px 20px; background: #f7f9fa; color: #6d7985; font-size: 11px; }
.admin-ticket-sidebar { display: grid; gap: 14px; }
.admin-side-section { overflow: hidden; }
.admin-manage-form { display: grid; gap: 14px; padding: 18px 20px 20px; }
.admin-manage-form .form-label { font-size: 10px; margin-bottom: 5px; }
.admin-manage-form .form-select { font-size: 11px; padding: .55rem .7rem; }
.admin-requester { display: flex; align-items: center; gap: 11px; padding: 18px 20px 14px; }
.admin-requester-avatar { width: 40px; height: 40px; border-radius: 4px; }
.admin-requester > div { min-width: 0; display: grid; gap: 3px; }
.admin-requester strong { color: #2e4051; font-size: 12px; }
.admin-requester span { color: #82909d; font-size: 10px; }
.admin-contact-list { display: grid; padding: 0 20px 18px; }
.admin-contact-list a { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 0; color: #556574; font-size: 10px; }
.admin-contact-list a:hover { color: var(--ca-blue); }
.admin-contact-list a i { color: #83919d; }
.admin-contact-list a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-meta-list { padding: 17px 20px; }
.admin-meta-list > div { display: grid; gap: 3px; }
.admin-meta-list > div + div { margin-top: 13px; padding-top: 13px; border-top: 1px solid #e7eaed; }
.admin-meta-list span { color: #89949f; font-size: 9px; text-transform: uppercase; }
.admin-meta-list strong { color: #475766; font-size: 10px; font-weight: 600; }

.admin-auth-wrap { min-height: calc(100vh - 112px); display: flex; align-items: center; justify-content: center; padding: 44px 20px; }
.admin-auth-panel { width: min(410px, 100%); border: 1px solid #dce2e8; border-radius: 6px; background: #fff; padding: 34px; box-shadow: 0 14px 35px rgba(31, 45, 61, .08); }
.admin-auth-mark { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: #fff0dc; color: #b56500; font-size: 20px; }
.admin-auth-heading { margin: 20px 0 24px; }
.admin-auth-heading > span { color: var(--ca-orange); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.admin-auth-heading h1 { color: #203348; font-size: 1.55rem; margin: 5px 0 7px; }
.admin-auth-heading p { color: #7c8996; font-size: 12px; margin: 0; }
.admin-auth-form { display: grid; gap: 16px; }
.admin-field .form-label { font-size: 10px; margin-bottom: 6px; }
.admin-input-wrap { position: relative; }
.admin-input-wrap > i { position: absolute; left: 12px; top: 50%; z-index: 1; transform: translateY(-50%); color: #8b97a3; }
.admin-input-wrap .form-control { height: 43px; padding-left: 37px; font-size: 12px; }
.admin-auth-form .admin-primary-button { width: 100%; justify-content: space-between; margin-top: 3px; }
.admin-auth-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: #74828f; font-size: 10px; }

@media (max-width: 1199.98px) {
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-table-head, .admin-ticket-row { grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 1fr) 76px 125px 90px 14px; gap: 11px; }
}
@media (max-width: 991.98px) {
  .admin-ticket-layout { grid-template-columns: 1fr; }
  .admin-ticket-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-meta-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .admin-meta-list > div + div { margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid #e7eaed; }
  .admin-table-head { display: none; }
  .admin-ticket-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 104px; }
  .admin-ticket-requester { grid-column: 1; }
  .admin-ticket-row > span:nth-child(3), .admin-ticket-row > span:nth-child(4) { grid-column: 2; grid-row: auto; }
  .admin-ticket-row time, .admin-row-arrow { display: none; }
}
@media (max-width: 767.98px) {
  .admin-appbar-inner, .admin-workspace, .admin-console-footer { width: min(100% - 28px, 1440px); }
  .admin-brand img { height: 32px; max-width: 175px; }
  .admin-brand > span, .admin-user-copy, .admin-appbar-link span { display: none; }
  .admin-appbar-actions { gap: 10px; }
  .admin-appbar-link { width: 36px; height: 36px; justify-content: center; border: 1px solid #dce2e8; border-radius: 4px; }
  .admin-user { padding-left: 10px; gap: 0; }
  .admin-workspace { padding-top: 26px; }
  .admin-page-heading { align-items: flex-start; }
  .admin-metrics { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .admin-metric { min-width: 145px; scroll-snap-align: start; }
  .admin-queue-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-search { width: 100%; }
  .admin-ticket-sidebar { grid-template-columns: 1fr; }
  .admin-meta-list { grid-column: auto; }
}
@media (max-width: 575.98px) {
  .admin-brand > span { display: none; }
  .admin-page-heading { flex-direction: column; gap: 14px; }
  .admin-page-heading > .admin-secondary-button { width: 100%; }
  .admin-ticket-row { padding: 14px; }
  .admin-ticket-requester { display: none; }
  .admin-reply-actions { align-items: stretch; flex-direction: column; }
  .admin-reply-actions .admin-primary-button { width: 100%; }
  .admin-message-meta { align-items: flex-start; flex-wrap: wrap; }
  .admin-message-meta time { width: 100%; margin: 2px 0 0; }
  .admin-meta-list { display: block; }
  .admin-meta-list > div + div { margin-top: 13px; padding: 13px 0 0; border-left: 0; border-top: 1px solid #e7eaed; }
  .admin-auth-panel { padding: 26px 22px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #14263c; color: #9fb0c4; padding: 60px 0 0; font-size: 14px; }
.footer-title {
  color: #fff;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  position: relative;
}
.footer-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 2px; background: var(--ca-orange);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #9fb0c4; display: block; padding: 5px 0; font-size: 12.5px; letter-spacing: .3px; }
.footer-links a:hover { color: var(--ca-orange); padding-left: 5px; transition: padding .2s ease; }

.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; opacity: .85; }
.footer-gallery img:hover { opacity: 1; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; padding: 8px 0; }
.footer-contact i { color: var(--ca-orange); font-size: 16px; margin-top: 3px; }
.footer-contact span { display: block; color: #fff; font-weight: 500; font-size: 13px; }
.footer-contact a { color: #9fb0c4; }
.footer-contact a:hover { color: var(--ca-orange); }

.footer-about { font-size: 13.5px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid #2c4361;
  border-radius: 2px;
  color: #9fb0c4;
  margin-right: 8px;
}
.footer-social a:hover { background: var(--ca-orange); border-color: var(--ca-orange); color: #fff; }

.footer-bottom {
  margin-top: 50px;
  padding: 18px 0;
  border-top: 1px solid #22354e;
  font-size: 13px;
  text-align: center;
}

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 42px; height: 42px;
  background: var(--ca-orange);
  color: #fff;
  border-radius: 2px;
  display: none;
  align-items: center; justify-content: center;
  z-index: 900;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--ca-navy); color: #fff; }
