/* CCID V14 — darker refined UI, order form embed polish, language switch */
:root{
  --v14-bg:#0c0714;
  --v14-surface:rgba(22,12,34,.74);
  --v14-surface-2:rgba(35,20,54,.82);
  --v14-line:rgba(188,136,244,.18);
  --v14-line-strong:rgba(201,149,255,.28);
  --v14-text:#f5effd;
  --v14-muted:#b7a6c8;
  --v14-accent:#b97bff;
  --v14-accent-2:#7f46cd;
  --v14-green:#7ef1bd;
  --v14-yellow:#ffd66f;
  --v14-red:#ff929f;
}
.admin-shell .sidebar.glass,
.admin-shell .admin-main.glass{
  box-shadow:0 10px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.admin-shell .sidebar.glass{
  background:linear-gradient(160deg,rgba(30,18,47,.88),rgba(13,8,24,.86))!important;
  border:1px solid rgba(194,140,250,.14)!important;
  backdrop-filter:blur(18px) saturate(120%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(120%)!important;
}
.admin-shell .admin-main.glass{
  background:linear-gradient(160deg,rgba(28,16,44,.86),rgba(12,7,22,.9))!important;
  border:1px solid rgba(194,140,250,.14)!important;
  backdrop-filter:blur(18px) saturate(120%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(120%)!important;
}
#ccidV13Orders,#ccidV14Orders{
  display:block!important;
  background:linear-gradient(125deg,rgba(173,102,255,.18),rgba(113,58,191,.08))!important;
  border:1px solid rgba(200,145,255,.20)!important;
  font-weight:850!important;
  margin-top:11px!important;
}
#ccidV13Orders.active,#ccidV14Orders.active{
  background:linear-gradient(120deg,#a65df6,#7540c4)!important;
  color:#fff!important;
  box-shadow:0 8px 24px rgba(135,71,223,.22)!important;
}
.ccid-v13-integrated,
.ccid-v14-integrated{
  width:100%;
  border:1px solid var(--v14-line);
  background:linear-gradient(180deg,rgba(25,14,38,.55),rgba(13,8,24,.35));
  border-radius:20px;
  overflow:hidden;
}
.ccid-v13-integrated iframe,
.ccid-v14-integrated iframe{
  display:block;
  width:100%;
  min-height:770px;
  height:min(82dvh,980px);
  border:0;
  background:transparent;
}

/* order form page embedded/admin refinements */
html.ccid-v14, body.ccid-order-page.ccid-v14,
body.ccid-order-page.ccid-v14 .admin-wrap{
  background:transparent!important;
  color:var(--v14-text)!important;
}
body.ccid-order-page.ccid-v14 .ambient{opacity:.22}
body.ccid-order-page.ccid-v14 .panel{
  background:linear-gradient(160deg,rgba(26,14,41,.88),rgba(13,8,24,.92))!important;
  border:1px solid var(--v14-line)!important;
  box-shadow:none!important;
  border-radius:22px!important;
}
body.ccid-order-page.ccid-v14 .filters input,
body.ccid-order-page.ccid-v14 .filters select,
body.ccid-order-page.ccid-v14 .tool-btn,
body.ccid-order-page.ccid-v14 .action-set button,
body.ccid-order-page.ccid-v14 .action-set a,
body.ccid-order-page.ccid-v14 .dialog input,
body.ccid-order-page.ccid-v14 .dialog select,
body.ccid-order-page.ccid-v14 .dialog textarea{
  background:#120b20!important;
  color:#fff!important;
  border:1px solid rgba(186,133,244,.22)!important;
  box-shadow:none!important;
}
body.ccid-order-page.ccid-v14 .scroll-table{
  background:rgba(14,9,23,.58)!important;
  border:1px solid rgba(186,133,244,.16)!important;
}
body.ccid-order-page.ccid-v14 .list-table{background:transparent!important;color:#f4ecfb!important}
body.ccid-order-page.ccid-v14 .list-table th{background:#3b2456!important;color:#fff!important}
body.ccid-order-page.ccid-v14 .list-table td{background:transparent!important;color:#eee3f8!important}
body.ccid-order-page.ccid-v14 .list-table tr:nth-child(even) td{background:rgba(255,255,255,.02)!important}
body.ccid-order-page.ccid-v14 .dialog{background:linear-gradient(145deg,#261539,#120b21)!important}
body.ccid-order-page.ccid-v14 .audit-note,
body.ccid-order-page.ccid-v14 .statline,
body.ccid-order-page.ccid-v14 .list-table td small{color:#c2b1d1!important}
body.ccid-order-page.ccid-v14 .tool-btn{padding:11px 16px;border-radius:13px;font-weight:850}
body.ccid-order-page.ccid-v14 .tool-btn:hover{filter:brightness(1.05)}
body.ccid-order-page.ccid-v14 .action-set .red{background:#6a2b3f!important}
body.ccid-order-page.ccid-v14 .pill.ok{background:rgba(28,92,69,.8)!important;color:#80f0bf!important}
body.ccid-order-page.ccid-v14 .pill.warn{background:rgba(107,82,28,.8)!important;color:#ffd66f!important}
body.ccid-order-page.ccid-v14 .pill.bad{background:rgba(101,35,51,.85)!important;color:#ff9fa8!important}
body.ccid-order-page.ccid-v14 .filters{gap:12px}
body.ccid-order-page.ccid-v14 .tools{gap:10px}
body.ccid-order-page.ccid-v14 .tools label{color:#e8ddf2}

/* public order form language switch */
.ccid-lang-switch{display:flex;gap:10px;justify-content:flex-end;max-width:920px;margin:0 auto 12px;padding:0 8px}
.ccid-lang-switch button{border:1px solid var(--v14-line-strong);background:rgba(22,12,34,.72);color:#f3e9ff;border-radius:12px;padding:10px 14px;font-weight:850;cursor:pointer}
.ccid-lang-switch button.active{background:linear-gradient(120deg,#a863f8,#733fc4);border-color:transparent}
.ccid-inline-help{color:var(--v14-muted);font-size:12px;line-height:1.7}
.ccid-form-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;border:1px solid rgba(193,143,247,.24);background:rgba(174,112,255,.08);font-size:11px;font-weight:850;color:#e8d4ff}

/* import verified form helpers inside order modal */
.ccid-v14-inline-tools{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.ccid-v14-inline-tools .button{margin:0!important}
.ccid-v14-inline-note{margin:10px 0 18px;padding:12px 14px;border-radius:14px;background:rgba(154,93,242,.08);border:1px solid rgba(189,136,244,.18);color:#d9cae8;font-size:12px;line-height:1.7}
.ccid-v14-mini-search{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}
.ccid-v14-result{margin-top:14px;padding:13px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(193,143,247,.16)}
.ccid-v14-result strong{display:block;margin-bottom:6px}
.ccid-v14-tag{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:850;margin-right:7px}
.ccid-v14-tag.ok{background:rgba(28,92,69,.8);color:#7ff1c0}
.ccid-v14-tag.warn{background:rgba(107,82,28,.8);color:#ffd66f}
.ccid-v14-tag.red{background:rgba(101,35,51,.85);color:#ff9fa8}
