:root {
  color-scheme: dark;
  --bg: #050b18;
  --surface: #091327;
  --surface-2: #0d1a32;
  --line: #1d3152;
  --text: #f5f8ff;
  --muted: #8ca0c2;
  --blue: #4388ff;
  --green: #35d6a2;
  --amber: #f3b940;
  --red: #ff667a;
  --violet: #a680ff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 12%, rgba(198, 161, 91, .3), transparent 25rem),
    linear-gradient(145deg, #003f2d, #006039 62%, #163f31);
}
.auth-card {
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid rgba(229, 202, 126, .55);
  border-radius: 20px;
  background: rgba(255, 253, 247, .98);
  box-shadow: 0 28px 70px rgba(0, 35, 24, .35);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { color: #17382b; }
.auth-brand small { margin-top: 3px; color: #7a817b; }
.auth-card h1 { color: #17382b; }
.auth-card form > p:not(.eyebrow) { color: #718077; line-height: 1.55; }
.auth-card label, .team-user-form label {
  display: block;
  margin-top: 13px;
  color: #647269;
  font-size: 11px;
  font-weight: 700;
}
.auth-card input, .team-user-form input, .team-user-form select {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid #d8cfbc;
  border-radius: 9px;
  background: #fffef9;
  color: #17382b;
  outline: none;
}
.auth-card input:focus, .team-user-form input:focus, .team-user-form select:focus {
  border-color: #a98945;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .12);
}
.auth-card button { width: 100%; margin-top: 18px; }
.auth-card form > span, .team-user-form > span {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: #b84a50;
  font-size: 11px;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(49, 67, 150, .14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  background: rgba(5, 11, 24, .94);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 24px; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #214b9a, #0d244c);
  color: #6ba1ff; font-size: 12px; font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 3px; font-size: 11px; }

nav { display: grid; gap: 7px; }
nav a { padding: 12px; border-radius: 10px; color: #aec0dc; font-size: 14px; }
nav a span { display: inline-block; width: 26px; color: #81a1ce; }
.hungary-flag {
  display: inline-block;
  width: 22px;
  height: 14px;
  border: 1px solid rgba(16, 35, 63, .15);
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    #ce2939 0 33.33%,
    #fff 33.33% 66.66%,
    #477050 66.66% 100%
  );
  box-shadow: 0 2px 5px rgba(35, 55, 80, .12);
  vertical-align: middle;
}
nav a .hungary-flag { width: 22px; margin-right: 4px; }
.country-heading { display: flex; align-items: center; gap: 8px; }
nav a:hover, nav a.active { background: #10264e; color: #62a0ff; }
nav b {
  float: right; min-width: 20px; padding: 2px 6px; border-radius: 12px;
  background: rgba(255, 102, 122, .17); color: var(--red); text-align: center; font-size: 11px;
}

.system-card {
  margin-top: auto; padding: 13px; border: 1px solid #163363; border-radius: 12px;
  background: #0c2044; display: flex; gap: 10px; align-items: flex-start;
}
.team-user-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(214, 184, 108, .35);
  border-radius: 12px;
  background: rgba(1, 42, 30, .42);
}
.team-user-card strong, .team-user-card small { display: block; }
.team-user-card strong { color: #fff; font-size: 12px; }
.team-user-card small { margin-top: 3px; color: #d4c184; font-size: 10px; }
.team-user-card button {
  width: 100%;
  margin-top: 10px;
  padding: 7px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
}
.system-card strong, .system-card small { display: block; }
.system-card strong { color: var(--green); font-size: 12px; }
.system-card small { color: #9bb2d6; margin-top: 5px; font-size: 10px; line-height: 1.5; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(53,214,162,.08); margin-top: 3px; }

main { margin-left: 232px; padding: 34px 32px 56px; max-width: 1700px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.as-visa-heading { display: flex; align-items: center; gap: 16px; }
.as-visa-logo {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(23, 42, 91, .18);
}
.as-visa-heading h1 { margin-bottom: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 27px; margin-bottom: 6px; }
.topbar p:not(.eyebrow), .hero p { color: var(--muted); margin-bottom: 0; }
.eyebrow { color: #6384b7; letter-spacing: .12em; font-size: 10px; font-weight: 800; margin-bottom: 7px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.live-pill, button {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: #b8c8e1; padding: 10px 13px; font-size: 12px;
}
.live-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; }
button { cursor: pointer; border-color: #285cae; background: #153d7c; color: white; font-weight: 700; }
button:hover { background: #1c4e9b; }
button:disabled { opacity: .6; cursor: wait; }

.hero {
  min-height: 148px; padding: 26px 28px; border: 1px solid #253963; border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(8, 25, 57, .97), rgba(24, 20, 78, .82) 58%, rgba(85, 22, 102, .68)),
    repeating-linear-gradient(35deg, transparent 0 42px, rgba(89,136,255,.08) 43px 45px);
}
.hero h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 10px; }
.hero p { max-width: 710px; line-height: 1.65; }
.hero-status { min-width: 170px; padding: 16px; border-radius: 12px; background: rgba(5, 11, 24, .52); text-align: right; }
.hero-status span, .hero-status strong { display: block; }
.hero-status span { color: var(--muted); font-size: 11px; }
.hero-status strong { margin-top: 7px; font-size: 13px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.metrics article, .panel { border: 1px solid var(--line); background: rgba(9, 19, 39, .82); border-radius: 14px; }
.metrics article { min-height: 142px; padding: 19px; position: relative; }
.metrics small, .metrics strong, .metrics em { display: block; }
.metrics small { color: var(--muted); margin-top: 16px; }
.metrics strong { font-size: 27px; margin-top: 5px; }
.metrics em { position: absolute; right: 17px; top: 20px; color: var(--green); font-size: 10px; font-style: normal; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.blue { color: #67a4ff; background: rgba(67,136,255,.12); }
.green { color: var(--green); background: rgba(53,214,162,.1); }
.violet { color: var(--violet); background: rgba(166,128,255,.12); }
.amber { color: var(--amber); background: rgba(243,185,64,.1); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .8fr); gap: 16px; }
.panel { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.panel-heading h3 { margin-bottom: 0; font-size: 15px; }
.panel-heading span { color: var(--muted); font-size: 11px; }
.target-list { display: grid; gap: 11px; }
.target {
  border: 1px solid #1a2e4e; border-radius: 12px; background: var(--surface-2);
  padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.target-title { display: flex; gap: 12px; align-items: center; }
.flag { display: grid; place-items: center; width: 42px; height: 42px; background: #172846; border-radius: 11px; font-weight: 800; color: #93b3e3; }
.target h4 { margin: 0 0 5px; font-size: 14px; }
.target p { color: var(--muted); font-size: 11px; margin: 0; }
.target-meta { display: flex; gap: 18px; margin-top: 13px; color: #7087ab; font-size: 10px; }
.verification {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid #1c3153;
  color: #7890b5; font-size: 10px;
}
.verification-badge { padding: 4px 7px; border-radius: 12px; background: #17253c; }
.verification-badge.verified { color: var(--green); background: rgba(53,214,162,.1); }
.verification a { color: #70a7ff; font-weight: 700; }
.verification a:hover { text-decoration: underline; }
.status { min-width: 128px; border-radius: 20px; padding: 8px 11px; text-align: center; font-size: 11px; font-weight: 800; }
.status.closed { color: #9cb0ce; background: #17253c; }
.status.open { color: var(--green); background: rgba(53,214,162,.1); border: 1px solid rgba(53,214,162,.3); }
.status.error { color: var(--red); background: rgba(255,102,122,.1); }
.status.unknown, .status.pending { color: var(--amber); background: rgba(243,185,64,.1); }
.skeleton { height: 112px; border-radius: 12px; background: linear-gradient(90deg, #0c1830, #12223e, #0c1830); background-size: 200% 100%; animation: loading 1.3s infinite; }
@keyframes loading { to { background-position: -200% 0; } }

.side-column { display: grid; gap: 16px; align-content: start; }
.health-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #172945; color: var(--muted); font-size: 12px; }
.health-row:last-child { border-bottom: 0; }
.positive { color: var(--green); }
.muted { color: var(--muted); }
.rules-panel { background: linear-gradient(145deg, rgba(14,31,61,.9), rgba(22,19,55,.88)); }
.rules-panel h3 { margin-bottom: 9px; }
.rules-panel > p:last-child { color: var(--muted); line-height: 1.6; font-size: 12px; margin-bottom: 0; }
.settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.settings-form label { color: var(--muted); font-size: 11px; }
.settings-form input {
  width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line);
  border-radius: 9px; background: #08152b; color: var(--text); outline: none;
}
.settings-form input:focus { border-color: var(--blue); }
.settings-form button { grid-column: 1 / -1; }
.settings-form span { grid-column: 1 / -1; min-height: 16px; color: var(--green); font-size: 11px; }
.team-panel > p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.team-user-form { display: grid; gap: 2px; }
.team-user-form button { margin-top: 12px; }
.team-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #ddd4bf;
}

.activity-panel { margin-top: 16px; }
.customers-panel { margin-top: 16px; }
.customers-view.customers-panel { margin-top: 0; }
.customers-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 18px; }
.customer-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
  padding: 16px; border-radius: 12px; background: var(--surface-2);
}
.customer-form label { color: var(--muted); font-size: 11px; }
.customer-form input, .customer-form select {
  width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line);
  border-radius: 9px; background: #08152b; color: var(--text); outline: none;
}
.customer-form input:focus, .customer-form select:focus { border-color: var(--blue); }
.customer-actions { grid-column: 1 / -1; display: flex; gap: 9px; }
.customer-actions button { flex: 1; }
.secondary-button { background: #101e35; border-color: var(--line); }
.customer-form > span { grid-column: 1 / -1; min-height: 16px; color: var(--green); font-size: 11px; }
.customer-directory { min-width: 0; }
.customer-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #f8fafd;
}
.customer-search span, .city-filter span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.customer-search input, .city-filter select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d4dfec;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.customer-search input:focus, .city-filter select:focus { border-color: var(--blue); }
.country-filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.customer-search { grid-column: 1 / -1; }
.filter-button {
  min-height: 68px;
  padding: 11px 12px;
  border-color: #d4dfec;
  background: #fff;
  color: #536983;
  box-shadow: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.filter-button img {
  width: 42px;
  height: 28px;
  border: 1px solid #d7e0eb;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(39, 61, 91, .12);
}
.filter-button strong, .filter-button small { display: block; }
.filter-button strong { color: #17304f; font-size: 12px; }
.filter-button small { margin-top: 4px; color: #7b8da5; font-size: 9px; font-weight: 500; }
.filter-button b {
  display: inline-block;
  min-width: 20px;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #edf2f8;
  font-size: 10px;
  text-align: center;
}
.filter-button.active {
  color: #fff;
  background: linear-gradient(135deg, #2469d4, #184d9e);
  border-color: #2869d8;
  box-shadow: 0 8px 18px rgba(35, 103, 209, .18);
}
.filter-button.active strong, .filter-button.active small { color: #fff; }
.filter-button.active b { color: #1d57ac; background: #fff; }
.all-countries-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9f1ff;
  color: #2869d8;
  font-size: 16px;
  font-weight: 900;
}
.filter-button.active .all-countries-icon { background: rgba(255,255,255,.18); color: #fff; }
.customer-list { display: grid; gap: 10px; align-content: start; }
.customer-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 15px; border: 1px solid #1a2e4e; border-radius: 12px; background: var(--surface-2);
}
.customer-card.country-hungary { border-left: 5px solid #c92a3a; }
.customer-card.country-portugal { border-left: 5px solid #198754; }
.customer-card.country-slovenia { border-left: 5px solid #3569bd; }
.customer-card.active { border-color: rgba(53,214,162,.55); box-shadow: inset 3px 0 var(--green); }
.customer-identity { display: flex; align-items: center; gap: 12px; }
.customer-flag {
  flex: 0 0 44px;
  width: 44px;
  height: 30px;
  border: 1px solid #d5deea;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 3px 9px rgba(34, 58, 88, .12);
}
.customer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.customer-tags span {
  padding: 4px 7px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}
.country-name { color: #294866; background: #eaf0f7; }
.city-tag { color: #5b4a98; background: #f0edff; }
.passport-tag { color: #566b84; background: #edf2f7; }
.customer-email { margin: 9px 0 0 54px !important; }
.customer-card h4 { margin: 0 0 5px; font-size: 14px; }
.customer-card p { margin: 0; color: var(--muted); font-size: 11px; }
.customer-card small { display: block; margin-top: 7px; color: #7087ab; }
.customer-card-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.customer-card-actions button { padding: 8px 10px; }
.danger-button { color: var(--red); background: rgba(255,102,122,.08); border-color: rgba(255,102,122,.25); }
.activity-list { display: grid; gap: 8px; }
.activity {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #6d8ebd; }
.activity-dot.open { background: var(--green); }
.activity-dot.error { background: var(--red); }
.activity-dot.unknown { background: var(--amber); }
.activity strong, .activity small { display: block; }
.activity strong { font-size: 12px; }
.activity small, .activity time { color: var(--muted); font-size: 10px; margin-top: 3px; }
.empty { color: var(--muted); text-align: center; padding: 24px; margin: 0; }

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .customers-grid { grid-template-columns: 1fr; }
  .country-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; }
  .sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .system-card { margin-top: 18px; }
  main { margin-left: 0; padding: 24px 16px; }
  .topbar, .hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-status { width: 100%; text-align: left; }
  .team-user-card { margin-top: 12px; }
  .customers-panel { padding: 12px; }
  .customers-grid { gap: 12px; }
  .customer-card-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .topbar-actions { width: 100%; }
  .topbar-actions button { flex: 1; }
  .target { grid-template-columns: 1fr; }
  .status { width: fit-content; }
  .activity { grid-template-columns: auto 1fr; }
  .activity time { grid-column: 2; }
  .customer-form { grid-template-columns: 1fr; }
  .customer-form label, .customer-actions, .customer-form > span { grid-column: 1; }
  .customer-card { grid-template-columns: 1fr; }
  .customer-card-actions button { flex: 1; }
  .as-visa-heading { align-items: flex-start; }
  .as-visa-logo { width: 64px; height: 64px; border-radius: 11px; }
  .customer-toolbar { grid-template-columns: 1fr; }
  .country-filters { grid-column: 1; }
  .country-filters { grid-template-columns: 1fr; }
  .customer-email { margin-left: 0 !important; }
  .panel-heading { align-items: flex-start; gap: 8px; }
  .settings-form { grid-template-columns: 1fr; }
  .settings-form label, .settings-form button, .settings-form span { grid-column: 1; }
}

/* Kilic Vize Bot light corporate theme */
:root {
  color-scheme: light;
  --bg: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --line: #d9e3f0;
  --text: #10233f;
  --muted: #657892;
  --blue: #2869d8;
  --green: #0caf83;
  --amber: #e9a20c;
  --red: #dc5368;
  --violet: #7658d6;
}

body {
  background:
    radial-gradient(circle at 82% 4%, rgba(42, 112, 220, .12), transparent 26rem),
    linear-gradient(180deg, #f5f8fc 0%, #edf3f9 100%);
}

.sidebar {
  background: rgba(255, 255, 255, .96);
  border-right-color: #dce5f1;
  box-shadow: 8px 0 30px rgba(40, 74, 118, .05);
}
.brand-mark {
  background: linear-gradient(145deg, #2367d1, #163e83);
  color: #fff;
  box-shadow: 0 8px 20px rgba(35, 103, 209, .24);
}
.brand small, nav a, nav a span { color: #71839c; }
nav a:hover, nav a.active {
  background: linear-gradient(90deg, #e8f1ff, #f1f6ff);
  color: #1f61c7;
}
.system-card {
  background: linear-gradient(145deg, #eafaf5, #f5fffb);
  border-color: #bde8d9;
}
.system-card small { color: #5a7b70; }

.topbar p:not(.eyebrow), .hero p { color: #d5e3f8; }
.topbar > div > p:not(.eyebrow) { color: var(--muted); }
.live-pill {
  background: #fff;
  border-color: #d7e2f0;
  color: #435a77;
  box-shadow: 0 6px 20px rgba(41, 69, 104, .06);
}
button {
  background: linear-gradient(135deg, #2d72dd, #1b56b0);
  border-color: #2864c3;
  box-shadow: 0 7px 16px rgba(35, 103, 209, .16);
}
button:hover { background: linear-gradient(135deg, #2367d1, #174a9b); }

.hero {
  border: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(53, 216, 162, .23), transparent 18rem),
    linear-gradient(120deg, #174a91 0%, #246fd0 58%, #493d9c 100%);
  box-shadow: 0 18px 45px rgba(28, 78, 147, .2);
}
.hero .eyebrow { color: #9ee8d2; }
.hero h2 { color: #fff; }
.hero-status { background: rgba(12, 43, 91, .46); }

.metrics article, .panel {
  background: rgba(255, 255, 255, .94);
  border-color: #d8e3ef;
  box-shadow: 0 10px 26px rgba(46, 73, 107, .07);
}
.metrics em { color: var(--green); }
.target, .activity, .customer-form, .customer-card {
  background: #f8fafd;
  border-color: #dce6f2;
}
.target { box-shadow: inset 0 1px #fff; }
.flag { background: #e5eefc; color: #2c62ad; }
.target-meta, .verification, .activity small, .activity time { color: #71849e; }
.verification { border-top-color: #dce5f0; }
.verification-badge { background: #e9eef5; }
.status.closed { color: #516986; background: #e9eff6; }
.status.open { color: #087a5c; background: #e3f8f0; border-color: #9de1ca; }

.health-row { border-bottom-color: #e3eaf3; }
.rules-panel {
  background:
    linear-gradient(145deg, rgba(237, 244, 255, .98), rgba(242, 239, 255, .98));
}
.settings-form input, .customer-form input, .customer-form select {
  background: #fff;
  border-color: #d4dfec;
  color: var(--text);
}
.secondary-button {
  background: #eef3f9;
  border-color: #d4dfec;
  color: #415a78;
  box-shadow: none;
}
.danger-button {
  color: var(--red);
  background: #fff1f3;
  border-color: #f3c8cf;
  box-shadow: none;
}
.customer-card.active {
  background: linear-gradient(90deg, #effbf7, #f9fffd);
  border-color: #9edbc7;
}

/* Kilic Vize premium green and champagne theme */
:root {
  --bg: #f3f0e7;
  --surface: #fffdf7;
  --surface-2: #f8f5ec;
  --line: #ddd4bf;
  --text: #17382b;
  --muted: #718077;
  --blue: #006039;
  --green: #087a4e;
  --amber: #c6a15b;
  --red: #b84a50;
  --violet: #8b7040;
}

body {
  background:
    radial-gradient(circle at 82% 3%, rgba(198, 161, 91, .2), transparent 27rem),
    linear-gradient(180deg, #faf8f1 0%, #f0ede3 100%);
}

.sidebar {
  background: linear-gradient(180deg, #063c2b 0%, #005438 58%, #003f2d 100%);
  border-right-color: rgba(198, 161, 91, .5);
  box-shadow: 8px 0 32px rgba(0, 63, 45, .16);
}

.brand { color: #fff; }
.brand-mark {
  background: linear-gradient(145deg, #d8b86c, #a77d2c);
  color: #17382b;
  border: 1px solid #ead394;
  box-shadow: 0 8px 20px rgba(12, 32, 25, .28);
}
.brand small, nav a, nav a span { color: #d7e3dc; }
nav a:hover, nav a.active {
  background: linear-gradient(90deg, rgba(198, 161, 91, .23), rgba(255, 255, 255, .08));
  color: #f4d889;
}
nav a.active { box-shadow: inset 3px 0 #d4b260; }

.system-card {
  background: rgba(1, 42, 30, .55);
  border-color: rgba(214, 184, 108, .4);
}
.system-card strong { color: #f1d37e; }
.system-card small { color: #c3d4ca; }
.pulse {
  background: #e0bf68;
  box-shadow: 0 0 0 5px rgba(224, 191, 104, .13);
}

.eyebrow { color: #9b7938; }
.as-visa-logo { box-shadow: 0 10px 24px rgba(0, 68, 46, .2); }
.live-pill {
  background: #fffdf8;
  border-color: #dcd1b9;
  color: #315e4c;
  box-shadow: 0 6px 20px rgba(58, 71, 54, .07);
}

button {
  background: linear-gradient(135deg, #08784d, #005638);
  border-color: #006039;
  box-shadow: 0 7px 16px rgba(0, 96, 57, .2);
}
button:hover { background: linear-gradient(135deg, #0a8958, #006744); }

.hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(224, 191, 104, .34), transparent 19rem),
    linear-gradient(120deg, #003f2d 0%, #006039 60%, #174d38 100%);
  box-shadow: 0 18px 45px rgba(0, 74, 49, .24);
}
.hero .eyebrow { color: #efd58d; }
.hero-status {
  background: rgba(1, 42, 30, .48);
  border: 1px solid rgba(231, 204, 130, .2);
}

.metrics article, .panel {
  background: rgba(255, 253, 247, .96);
  border-color: #ddd4bf;
  box-shadow: 0 10px 26px rgba(56, 68, 48, .08);
}
.blue, .green {
  color: #08784d;
  background: rgba(0, 96, 57, .1);
}
.violet, .amber {
  color: #a77d2c;
  background: rgba(198, 161, 91, .14);
}

.target, .activity, .customer-form, .customer-card, .customer-toolbar {
  background: #faf8f1;
  border-color: #e1d8c4;
}
.flag {
  background: #e7efe9;
  color: #006039;
  border: 1px solid #ceddce;
}
.target-meta, .verification, .activity small, .activity time { color: #77837b; }
.verification { border-top-color: #e2dac8; }
.verification-badge { background: #ece8dc; }
.verification a { color: #006039; }
.status.closed { color: #66756d; background: #e9ece6; }
.status.open { color: #006039; background: #e0f2e9; border-color: #9dcbb5; }

.rules-panel {
  background: linear-gradient(145deg, #f0f5ef, #fbf4e4);
  border-color: #d9ccb0;
}
.health-row { border-bottom-color: #e6dfd1; }

.settings-form input,
.customer-form input,
.customer-form select,
.customer-search input,
.city-filter select {
  background: #fffef9;
  border-color: #d8cfbc;
  color: var(--text);
}
.settings-form input:focus,
.customer-form input:focus,
.customer-form select:focus,
.customer-search input:focus,
.city-filter select:focus {
  border-color: #a98945;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .12);
}

.filter-button {
  background: #fffef9;
  border-color: #ddd3bd;
}
.filter-button strong { color: #214435; }
.filter-button small { color: #7f8a82; }
.filter-button b { background: #eee9dd; color: #526259; }
.filter-button.active {
  background: linear-gradient(135deg, #08784d, #005638);
  border-color: #006039;
  box-shadow: 0 8px 18px rgba(0, 96, 57, .2);
}
.filter-button.active b { color: #806021; background: #f4df9d; }
.all-countries-icon {
  background: #eee6d3;
  color: #8b6928;
}
.filter-button.active .all-countries-icon {
  background: rgba(239, 213, 141, .2);
  color: #f4d889;
}

.secondary-button {
  background: #f0ece1;
  border-color: #d8cfbc;
  color: #345548;
  box-shadow: none;
}
.secondary-button:hover { background: #e5dfd0; }
.customer-card.active {
  background: linear-gradient(90deg, #eef7f1, #fffaf0);
  border-color: #bfa360;
  box-shadow: inset 3px 0 #c6a15b;
}
.country-name { color: #315746; background: #e6eee8; }
.city-tag { color: #80652f; background: #f3ead3; }
.passport-tag { color: #59675f; background: #ece9df; }

.team-hub-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 112px;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 17px;
}
.team-hub-toggle b {
  min-width: 23px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #654b17;
  background: #f3d785;
}
.team-hub-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #70e2ac;
  box-shadow: 0 0 0 5px rgba(112, 226, 172, .14);
}
.team-hub {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 49;
  width: min(350px, calc(100vw - 32px));
  height: min(510px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  color: var(--text);
  background: rgba(255, 253, 247, .98);
  border: 1px solid #d7c9aa;
  border-radius: 16px;
  box-shadow: 0 24px 65px rgba(0, 52, 36, .24);
  backdrop-filter: blur(14px);
}
.team-hub[hidden] { display: none; }
.team-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 11px;
  border-bottom: 1px solid #e4dccb;
}
.team-hub-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
.team-hub-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  color: #315746;
  background: #f0ece1;
  border-color: #d8cfbc;
  box-shadow: none;
}
.online-team {
  padding: 10px 14px;
  border-bottom: 1px solid #e4dccb;
  background: #f8f5ec;
}
.online-team-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--muted);
}
.online-user-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.online-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 145px;
  padding: 6px 8px;
  border: 1px solid #ddd4bf;
  border-radius: 12px;
  background: #fffdf7;
}
.online-user.current { border-color: #bfa360; }
.online-user > span:last-child {
  display: grid;
  min-width: 0;
}
.online-user strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-user small { color: var(--muted); font-size: 10px; }
.online-avatar {
  position: relative;
  display: grid;
  flex: 0 0 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #006039;
  font-size: 11px;
  font-weight: 800;
}
.online-avatar i {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fffdf7;
  border-radius: 50%;
  background: #2ac67f;
}
.team-chat {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}
.team-message-list {
  min-height: 0;
  overflow-y: auto;
  padding: 11px 12px;
}
.team-message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid #e0d7c3;
  border-radius: 4px 14px 14px;
  background: #f5f1e7;
}
.team-message.own {
  margin-left: auto;
  color: #fff;
  background: #006039;
  border-color: #006039;
  border-radius: 14px 4px 14px 14px;
}
.team-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  font-size: 10px;
}
.team-message-meta time { color: var(--muted); }
.team-message.own .team-message-meta time { color: #b9d8ca; }
.team-message p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.4;
}
.team-message-form {
  padding: 9px 10px;
  border-top: 1px solid #e4dccb;
  background: #fffdf7;
}
.team-message-form textarea {
  width: 100%;
  resize: none;
  min-height: 42px;
  max-height: 72px;
  padding: 9px 10px;
  color: var(--text);
  background: #fffef9;
  border: 1px solid #d8cfbc;
  border-radius: 12px;
  font: inherit;
}
.team-message-form textarea:focus {
  outline: none;
  border-color: #a98945;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .12);
}
.team-message-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.team-message-form span {
  color: var(--red);
  font-size: 11px;
}
.team-message-form button { padding: 7px 13px; }

@media (max-width: 760px) {
  .team-hub-toggle { right: 16px; bottom: 16px; }
  .team-hub {
    right: 8px;
    bottom: 70px;
    width: calc(100vw - 16px);
    height: min(500px, calc(100vh - 84px));
  }
}
