/* =========================================================
   MagicBotz • Unified Light Theme — /digitaltwin/style.css
   Mobile-first, responsive, and consistent across all pages
   ========================================================= */

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  /* Palette (soft light) */
  --bg: #F3F4F6;
  --color-bg: #D0D3DA;
  --header-bg: #e5e5e580;
  --xl-card-bg: #fbfbfb7a;
  --input-bg: #fefefe;
  --modal-bg:#dedae7;
  --surface: #dcd5f35e;
  --surface-2: #f4f3f7;
  --surface-white: #fbfbfb7a;
  --text: #464853c1;
  --text-dark:#15181edd;
  --text-mid: #222731bf;
  --text-soft: #475268d1;
  --text-light: #333a48b4;
  --link-btn-text:#222731bf;
  --muted: #98a2b3;
  --border: #ededed8f;
  --btntext:rgb(58, 83, 83);
  --accent0:#c8b9fe2a;
  --accent1: #d6c7ff;
  --accent2: #8664ff;
  --button-text: #2e2461d4;
  --button-bg: #6c7585;
  --button-hover:#ffffff;
  --button-hover-text:#f3f3f3;
  --toast-sucsess:#5fa48e;
  --chart-lines:#ff7300;
  --text-input-bg:#98a2b3;

  /* Brand accents (greens & neutrals in your files) */
  /* --brand: #10a37f;
  --brand-600: #109676; */

--brand: #8664ff;
--brand-600: #453165;
  --brand-50: #fcfcff;
  --info: #3a7bd5;
  --danger: #e6664fd8;
  --danger-50: #fde9e6;
  --warning: #ffb020;

  /* Shadows */
  --shadow-xs: 0 1px 1px rgba(58, 65, 78, 0.377);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.12);

  /* Radius */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 60px;
  /* Sizing */
  --container-w: 720px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t: 200ms ease;

  /* Typography */
  /* --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
    --font: "Satoshi", ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}


/* -------- Fixed header + safe page offset -------- */
:root { --header-h: 64px; }

@media (max-width: 480px){
  :root { --header-h: 56px; }
}


html, body { height: 95%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--color-bg);
overflow-x: hidden;
 
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  letter-spacing: 0.02rem;

  background:
    radial-gradient(circle at 30% 30%, #81cbffc2 0%, rgba(90,170,255,0) 60%),
    radial-gradient(circle at 70% 70%, #e8aac4 0%, rgba(200,120,255,0) 60%);

  filter: blur(80px);   /* MUST be below ~100px for iOS */
}

img { max-width: 100%;  }
/* Optional app header if present */
.app-header, header.app-header {
    position: fixed;
    top: 0;
    left:0;
    right:0;
    z-index: 50;
    background:var(--header-bg);
    backdrop-filter: blur(15px);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0px 2px 20px 2px #a8a8a896;
    margin: 0;  
}

/* Optional: constrain/size header elements */
.header-left { display: flex; align-items: center; gap: 10px; }
.header-logo { height: calc(var(--header-h) - 40px); width: auto; vertical-align: middle;}
.header-title { font-weight: 600; color: var(--text); }

/* User menu positioning so it drops over the page, not pushing layout */
.user-menu { position: relative; }
.user-avatar {
  margin-right: 10px; height: calc(var(--header-h) - 18px); width: auto; 
  border-radius: 50%; cursor: pointer; transition: transform 0.2s ease;vertical-align: middle;
    backdrop-filter: blur(14px); border: 2px solid #321b6377;
}
.user-avatar:hover { transition: transform 0.8s ease; border: 3px solid #636363;}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16,24,40,.12);
  padding: 8px;
}
.user-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.user-dropdown a:hover { background: var(--bg);  text-decoration: none;}


/* Three-section header layout */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Left Section — Back Button */
.header-back {
  width: 60px; /* reserve space equal to right section for true centering */
  display: flex;
  align-items: center;
}

.back-btn {
  height: 30px;
  width: auto;
  cursor: pointer;
  opacity: 0.5;
}

.back-btn:hover {
  opacity: 1;
}

/* Center Section */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


/* Right Section */
.header-right {
  width: 60px; /* ensures symmetry with left side */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* If your header was previously sticky, remove that style */



/* Links */
a { color: var(--text-soft); text-decoration: none; }
a:hover { color: var(--text-dark); text-decoration: none; font-weight: 500;}

/* Headings & text */
h1 { 
  margin: 0 0 8px; 
    background: linear-gradient(135deg, #b56cff, #2f74dbef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

h2, h3 { 
  margin: 0 0 8px; 
}

h1 { font-size: clamp(2.3rem, 2.5vw, 28px); font-weight: 700; letter-spacing: -0.025em;}
h2 { font-size: clamp(20px, 2vw, 22px); font-weight: 450; text-shadow: 1px 1px 1px #e5e5e580;}
h3 { font-size: 1.1rem; font-weight: 450; color: var(--text-soft); text-shadow: 1px 1px 1px #e5e5e580;}
p  { margin: 8px 0 18px; color: var(--text);   font: 350 15px/1.4 var(--font);}
a { letter-spacing:0.01em }
/* -------- Layout Wrappers -------- */
.form-container {
  width: 100%;
  max-width: var(--container-w);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 3vw, 28px);
   backdrop-filter: blur(18px);
  margin: 16px auto;
  text-align: center; 
  margin-top: 80px;
}
  /* Section titles */
    .section-title {
      font-weight: 700;
      font-size: 18px;
      margin-top: 40px;
      margin-bottom: 10px;
    }



/* -------- Inputs -------- */
input, select, textarea {
  width: 100%;
  font: 400 15px/1.4 var(--font);
  color: var(--text-soft);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  margin-bottom: 10px;
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
input:focus, select:focus, textarea:focus {
  background: var(--input-bg);
  border-color: var(--button-bg);
  box-shadow: 0 0 0 3px var(--button-bg);
}
textarea { resize: vertical; min-height: 96px; }
.createCategory {
cursor: pointer;
  transition: all 0.2s ease;
}
/* Inline helper rows */
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .field-row { grid-template-columns: 1fr; }}

/* -------- Buttons (unified) -------- */
button { 
    font: 500 17px var(--font);
    padding: 0 15px;
    height: 40px;
    margin: 10px 0;
    padding-bottom: 3px;
    border-radius: 20px;
    background: #b4a9d550;
    backdrop-filter: blur(14px);
    border: 1px solid #e9e9e9ad;
    font-size: 1rem;
    color: var(--button-text);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;

}

button:hover{
 opacity: 0.95;
  color:#fff;
   background: linear-gradient(135deg, #3880ccce, #b057cab7);
}

button:disabled { opacity: .6; cursor: not-allowed; }

/* Primary (main-btn-00) */
.main-btn-00, .btn-primary {
  width: 100%; 
}
.main-btn-00:hover, .btn-primary:hover { transform: translateY(-1px); }

/* Neutral (main-btn-01) */
.main-btn-01, .btn-neutral {
 width: 50%; 

}
.main-btn-01:hover, .btn-neutral:hover {  transform: translateY(-1px); }

/* Danger (main-btn-02) */
.main-btn-02, .btn-danger {
  width: 50%; 

}
.main-btn-02:hover, .btn-danger:hover {transform: translateY(-1px); }

/* Info/Blue action (btn-edit-0) */
.btn-edit-0, .btn-info {
  width: auto; 
  width: 50%;
}
.btn-edit-0:hover, .btn-info:hover { transform: translateY(-1px); }

/* Accent (main-btn-04) */
.main-btn-04 { width: auto;  border: 1px solid; }
.main-btn-04:hover {transform: translateY(-1px); }

/* Utility row for button groupings */
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.publish-actions { display: flex; gap: 10px; margin-top: 14px; }

/* -------- Cards & Grids -------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  padding: 16px;
  margin-bottom: 10px;
}

.card p {
overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 1;
  line-clamp: 1; /* ✅ Standard property for cross-browser support */
  -webkit-box-orient: vertical;
  box-orient: vertical;
  font-size: 14px;
  line-height: 1.4;
  margin: 6px 0 8px;
}
.card h3 {
color: #000;
 
}

.dashboard-container { margin-top: 14px; }

/* Dashboard Buttons */
.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 16px;
}

.twins-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.twin-card .card-actions { display: flex; gap: 10px; margin-top: 12px; }
/* --- Individual Twin Cards --- */
.twin-card {
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  overflow-wrap: anywhere;
    box-shadow: var(--shadow-sm);
}

.twin-card:hover {
  transform: translateY(-3px);

}
small {
  color:var(--text-light);
  font-size: 12px;
}

/* Share/chat icons in twin status bar */
.share-icon { width: 28px; height: 28px; margin-left: 8px; cursor: pointer; transition: transform var(--t-fast), opacity var(--t-fast); vertical-align: middle; }
.share-icon:hover { transform: translateY(-1px); opacity: .85; }

/* -------- Status Pills / Bars -------- */
.twin-status-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
}
.status {
  width:fit-content;
  display: inline-flex; align-items: center; 
  padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft);
}
.status.published { background: var(--brand-50); color: var(--accent2); border-color:  var(--accent1); }
.status.draft { background: #e2e2e2c2; color: #535966; }

/* -------- Tiles (plans, voices, themes) -------- */
.tile-grid {
  margin-top: 20px;
  margin-bottom: 40px;
  display: grid;
  gap: 12px;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tile, .voice-tile, .voice-name-tile {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), background var(--t);
  user-select: none;
  min-height: 56px;
  display: flex; align-items: center; justify-content: flex-start;
}

.Subscriptiontile {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), background var(--t);
  user-select: none;
  min-height: 56px;
  display: flex; 
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.tile:hover, .voice-tile:hover, .voice-name-tile:hover { transform: translateY(-2px); border-color: var(--brand); }
.tile.active, .voice-tile.active, .voice-name-tile.active { background: var(--brand-50); border-color: var(--brand); }

/* Alternate grid (older pages) */
.tile-grid-container { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* -------- Branding upload (publish) -------- */
    .branding-grid {
      display: grid;
      /* gap: 14px;
      grid-template-columns: 1fr 1fr; */
      margin-top: 10px;
    }
.upload-box h3 { margin-bottom: 8px; }
.upload-area {
  background: #9191914f; border: 1px dashed var(--border); border-radius: var(--r-md);
  padding: 16px; text-align: center; cursor: pointer; transition: border-color var(--t), background var(--t);
}
.upload-area:hover { border-color: var(--brand); background: #c0c0c04f; }
.preview-img { 
box-shadow: var(--shadow-xs); 
max-height: 52px;
max-width:100px;
margin-right: auto;
object-fit: cover;
box-shadow: var(--shadow-sm);
border: 1px solid var(--border);
padding: 2px;
border-radius: var(--r-sm);
 transition: border-color var(--t), background var(--t);
}
.preview-img:hover {border-color: var(--brand); background:#f4fbf8; transform: translateY(-1px);}

/* -------- Quick Manager composer -------- */
.add-post-container {
  background: var(--xl-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.textarea-wrapper { position: relative; }
.char-counter {
  position: absolute; right: 10px;
  font-size: 12px; color: #9aa3af;
}
/* "Add as" section */
.add-as-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-left: 2px;
  overflow-x: auto;
  padding-bottom: 10px;
    scroll-behavior: smooth;
}

.add-as-bar::-webkit-scrollbar {

  height: 6px;
}
.add-as-bar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.add-as-label {
  font-size: 13px;
  color: #777;
  margin-left: 5px;
}

.bubble {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; font-size: 13px;
  border-radius: 999px; border: 1px solid var(--border);
  background: #f6f8fb; color: var(--text);
  cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t);
  user-select: none;
}
.bubble:hover { border-color: var(--brand); }
.bubble.active { background: var(--brand-50); color: var(--brand); border-color: var(--brand); }
.bubble-group {
  display: flex;
  gap: 6px;
    
}
.post-action-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 10px;
}
.upload-icon-btn { display: inline-flex; align-items: center; justify-content: center; 
  padding: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); height: 50px; min-width: 48px;
  background: #f8fafc; cursor: pointer; transition: border-color var(--t), background var(--t), transform var(--t-fast); }
.upload-icon-btn:hover { border-color: var(--brand); background:#f4fbf8; transform: translateY(-1px); }

.add-btn { width: 120px; }

.upload-icon-img {
  

  opacity: 0.8;
}
/* Twin selector scroller */

/* === Quick Manager Avatar Scroll === */
.twin-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 8px 10px 10px 12px;
  scroll-behavior: smooth;

  margin-bottom: 5px;
}

.twin-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.twin-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}


/* Image preview area */
#imagePreviewContainer { margin-top: 10px; }
#imagePreviewContainer.hidden { display: none; }

/* -------- Reports: summary bar -------- */
.summary-bar {
  margin: 10px 0 16px;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.summary-card {
    background: #0000007d;
    border: 1px solid #ffffffe3;
    border-radius: var(--r-md);
    /* box-shadow: var(--shadow-xs); */
    padding: 12px;
    color: #ffffff;
}
.summary-title { font-size: 12px; color: #c8cad7; }
.summary-value { font-size: 18px; font-weight: 700; color:#c8cad7; }

/* -------- Progress (signup/verify, publish) -------- */
.progress-container {
  width: 100%; height: 18px; border-radius: var(--r-sm);
  overflow: hidden; margin: 12px 0 16px; border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
}
.progress-bar {
height: 100%;
    min-width: 8%;
    background: linear-gradient(90deg, #d5864dbf, #7b53f3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 16px;
    border-radius: var(--r-sm);
    transition: width 0.35s 
ease;
    padding: 0 4px;
    box-shadow: 0 2px 14px rgb(0 0 0 / 40%), 0 -6px 5px 0px rgb(255 255 255 / 44%) inset;
}

/* Publish steps list */
.publish-steps { list-style: none; margin: 0; padding: 0; }
.publish-steps li {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 8px; border: 1px dashed var(--border); border-radius: var(--r-sm);
  padding: 10px 12px; background: #fafcff; margin-bottom: 8px;
}
.publish-steps li .subtasks { list-style: none; margin: 8px 0 0; padding-left: 14px; grid-column: 1 / -1; color: var(--text-soft); font-size: 13px; }
.publish-steps li.pending span { color: var(--text-soft); }
.publish-steps li.success { border-style: solid; background: #f2fcf7; }

/* -------- Toasts -------- */
.toast {
  position:sticky; z-index: 99999;
  left: 50%; transform: translateX(-50%);
  bottom: 10px; min-width: 220px; max-width: 10%;
  background: var(--text-soft); color: #fff;
  padding: 12px 16px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), bottom var(--t);
}
.toast.show { opacity: 1; pointer-events: auto;  }
.toast.success { background:var(--toast-sucsess);}
.toast.error { background: var(--danger); }
.toast.info  { background: var(--info); }

/* -------- Loader overlay -------- */
.loader-overlay {
  padding: 30px;
  position: fixed; inset: 0; z-index: 999;
  background: #ffffff2a;
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity var(--t);
  text-align: center;
}
.loader-overlay.hidden { opacity: 1; pointer-events: none; }
.loader {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid #eef2f6; border-top-color: var(--brand);
  animation: spin 1s linear infinite; margin-bottom: 10px;
}
.loader-text { color: var(--text-soft); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); }}

/* -------- Modal -------- */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.38);
  padding: 16px;
}
.modal:not(.hidden) { display: flex; }
.modal.hidden { display: none; }
.modal-content {
  width: min(100%, 920px);
  max-height: min(95vh, 900px);
  overflow: auto;
  border-radius: var(--r-lg);
  background: var(--modal-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: clamp(14px, 2.6vw, 24px);
  overflow: hidden;
}
.btn-close { margin-top: 12px; }

/* -------- Misc/Utilities -------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }

/* -------- Responsive Tweaks -------- */

@media (max-width: 540px){
  .button-row, .publish-actions { flex-direction: column; }
  .main-btn-00, .main-btn-01, .main-btn-02 { width: 100%; }
  .share-icon { width: 26px; height: 26px; }
}

/* Footer Links */
.form-footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.form-footer a {

  font-size: 14px;
  text-decoration: none;
}
.form-footer a:hover {

  text-decoration: none;
}
.toggle-link {
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
  cursor: pointer;
}

.toggle-link:hover {
  text-decoration: underline;
}

.round-border {
 
  border-radius: 50%;
  padding: 1px;              /* space inside circle */
  display: inline-flex;      /* centers the image nicely */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-right: 10px;
  height: 30px; 
  margin-bottom: -9px;
}
.round-border:hover {
 
  transform: scale(1.15);
}
.toggle-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 8px;
  padding-left: 22px;
  padding-right: 10px;
  border-left: 3px solid var(--brand);
  border-radius: 16px;
  margin-left: 12px;
}

.toggle-section.open {
  /* allow smooth expansion to actual height */
  max-height:800px; /* any large enough value */
  overflow-y: auto;
}
.separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #000;
}

.separator:not(:empty)::before {
  margin-right: .25em;
}

.separator:not(:empty)::after {
  margin-left: .25em;
}
.twin-header-inputs label {
  display: block;
  font-weight: 400;
  margin-bottom: 6px;
  margin-left: 5px;
  font-size: 15px;
}
.twin-header-inputs input,
.twin-header-inputs textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
}
.slug-input-container {
  position: relative;
  display: flex;
  align-items: center;
   max-width: 300px;
}

#twinSlug {
  flex: 1;
  padding-right: 90px;
  font-size: 15px;
  margin: 0px;
 
}

.form-container h3{
  margin-bottom: 30px;
  margin-top: 10px;
}
.tile .info-icon {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 13px;
  cursor: pointer;

  opacity: 0.7;

  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}

.tile .info-icon:hover {
  opacity: 1;

  transform: scale(1.05);
}
.tooltip-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:var(--modal-bg);
    border-radius: 10px;
    border: 1px solid #fff;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    z-index: 999;
    display: none;
    text-align: left;
    box-shadow: var(--shadow-md);
}
.tooltip-box p {
  font-size: 15px;

  margin-bottom: 16px;
}
.tooltip-close {

  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.tooltip-overlay {
  position: fixed;
  inset: 0;

  z-index: 998;
  display: none;
}
.question-title{
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-left: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* Ensure text never overlaps the icon */
.tile-text {
    font-size:14px;
  display: inline-block;
  margin-right: 24px;
  word-wrap: break-word;
  flex: 1;
}



    .upload-box {
  text-align: center;
}
#voiceTiles,
#voiceNameTiles,
#themeTiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

#voiceTiles .tile,
#voiceNameTiles .tile,
#themeTiles .tile {
  min-width: 140px;
  text-align: center;
        font-size:14px;
}
    .voice-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #testPlayer {
      width: 100%;
      margin-top: 10px;
    }


.twin-scroll-item {
  flex: 0 0 auto;
  text-align: center;
  width: 70px;
  cursor: pointer;
  user-select: none;
}

.twin-scroll-item img:hover {
  border: 2px solid var(--accent1);
  box-shadow: 0 0 6px var(--accent2);
  transform: scale(1.05);
}

.twin-scroll-item img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: all 0.2s ease-in-out;
}

.twin-scroll-item.active img {
  border: 2px solid var(--accent1);
  box-shadow: 0 0 6px var(--accent2);
  transform: scale(1.05);
}

.twin-scroll-item span {
  display: block;

  font-size: 12px;
  color: var(--text-dark);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.slug-status {
  position: absolute;
  right: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.slug-status.ok {
  color: var(--toast-sucsess); /* green */
  font-weight: 600;
}

.slug-status.error {
  color: var(--danger); /* red */
  font-weight: 600;
}

.slug-status {
  margin-left: 6px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

/* --- Steps List --- */
.publish-steps {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  padding-right: 10px;
}

.publish-steps li {
  background: var(--list-bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 4px solid var(--platinum);
  transition: border-color 0.3s ease;
  font-size: 14px;
}

.publish-steps li.pending { border-left-color: var(--custom-color-13); }
.publish-steps li.in-progress { border-left-color: var(--green-web); }
.publish-steps li.completed { border-left-color: var(--custom-color-38); }
.publish-steps li.failed { border-left-color: var(--custom-color-39); }

.publish-steps li span {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.publish-steps li small {
  float: right;
  font-size: 13px;
  color: var(--text);
}

.subtasks {
  list-style: none;
  padding-left: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Progress Bar --- */
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: var(--status-bg);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background-color: var(--green-web);
  transition: width 0.3s ease;
  
}

ul#publishStepList {
    padding: 0;
}
.post-content-wrapper {
  display: flex;
  align-items:flex-start;
  gap: 10px;
}


.post-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.post-text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 25px;
}

.post-text {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 8px;
}


.delete-btn{
  max-width:fit-content;
  background: none;
  background-color: #ffffff00;
}

.delete-btn:hover{
  transform: scale(1.5);
  opacity: 0.8;
  background: none;
    background-color: #ffffff00;
}

.qr-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.qr-modal-content {
  background:#9aa1b3;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
  margin-top: 70px;
}
.qr-close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 22px;
  cursor: pointer;
}
.qr-wrapper {
  position: relative;
  width: 340px; /* Adjust as needed */
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-ring {
  position: absolute;
  width: 330px;
  object-fit: contain;
  pointer-events: none; /* allows scanning the QR easily */
  z-index: 1;
  background-color: var(--brand);
   border-radius: 50%;
 clip-path: circle(48.5%);
 background-image: radial-gradient(#ffffff 4px, transparent 7px);
  background-size: 8px 20px;

}

#qrCodeContainer {
  position: relative;
  z-index: 2;
  background: transparent;
}

.page-container {
  padding-top: 70px; /* Space for header */
  text-align: center;
    color: var(--oxford-blue);
}

/* Search Panel */
.search-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.6s ease;
}

.search-panel.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.search-panel.top-fixed {

  top: 70px;
  background: var(--bg);
  padding: 10px 0 15px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.search-bar select {
  width: 180px;
}
/* Continue Bar */
.continue-bar {
position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--border);
  border-top: 1px solid #ddd;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}



.no-results {
  text-align: center;
  color: #666;
  font-size: 15px;
  grid-column: 1 / -1;
}

.hidden { display: none !important; }


/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px 30px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.twin-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* object-fit: cover; */
  flex-shrink: 0;
  margin-right: 10px;
}
@media (max-width: 600px) {
  .search-panel input, .search-panel select {
    width: 85%;
  }

  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 15px;
  }

  .twin-avatar {
    width:100px;
    height:100px;
  }
}
#startChatBtn{
 height: 50px;
 width: 200px;
}
/* --- Selected avatars on the left --- */
.selected-avatars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
}

.selected-avatars img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.selected-avatars img:hover {
  transform: scale(1.2);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  z-index: 100;
}

.user-dropdown a {
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.user-dropdown a:hover {
  background-color: var(--border);
  color: var(--brand-600);
  font-weight: 600;
}
#searchBox{
  width:auto;
  height: 50px;
}

#categorySelect{
    margin: 2px;
    margin-top: 10px;
    margin-bottom: 0px;
    width: 200px;
    height: 50px;
}
#searchBtn{

 height: 49px;
 width: 95px;
}

#showAllBtn{

 height: 49px;
 width: 95px;
}
#startChatBtn{
 height: 50px;
 width: 200px;
}
.twin-info h3 {
  margin: 0 0 4px;
  color: var(--text);
}

.twin-info .category {
  margin: 0 0 4px;
  color: var(--muted);
}

.twin-info p {
  margin: 0 0 4px;
  color: var(--text-soft);
}

/* user activity - chat history*/


/* === User Analytics Modal Layout === */
.user-analytics {
  display: flex;
  height: 70vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.user-list-panel {
  width: 30%;
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 10px;
}

.chat-history-panel {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.user-item {

  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  overflow-wrap: anywhere;
}
.user-item:hover {
  background:var(--bg);
}
.user-item.active {
  background: var(--bg);
  border-color: var(--border);
}

.chat-row {
  margin-bottom: 10px;
  font-size: small;
}
.chat-message {
  padding: 8px 10px;
  border-radius: 6px;
  max-width: 80%;
  margin: 4px 0;
}
.user-message {
  background: var(--surface-2);
  align-self: flex-start;
}
.twin-message {
  background: var(--accent0);
  align-self: flex-end;
}
#reportChart {
  height: 90%;
  width: 100% !important;
  min-height: 200px;
  max-height: 300px;
  transition: opacity 0.5s ease;
}
.separator {
  display: flex;
  align-items: center;
  text-align: center;
 
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #878787;
}

.separator:not(:empty)::before {
  margin-right: .25em;
}

.separator:not(:empty)::after {
  margin-left: .25em;
}

.btn-close {
  margin-top: 16px;
  padding: 8px 16px;
  border: none;
  background-color: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  border: 1px solid var(--border);
}

.btn-close.hidden {
  display: none;
}
/* ===========================
   Composer Lock (Option A)
=========================== */
.composer-locked {
  position: relative;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.composer-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000e8;
  border-radius: var(--r-lg);
  z-index: 5;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  text-align: center;
}

/* Ensure unlocked state becomes fully interactive */
#composerContainer:not(.composer-locked) {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Disabled styles */
.upload-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.add-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.bubble-disabled {
  opacity: 0.5;
  pointer-events: none;
}
/* =========================================================
   APP-LIKE UI ENHANCEMENTS (PURE CSS)
   Drop-in additions only — no overlap with existing rules
   ========================================================= */


/* ---------------------------------------------------------
   1) Composer Unlock Animation (fade + lift + scale)
--------------------------------------------------------- */

#composerContainer {
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

#composerContainer:not(.composer-locked) {
  opacity: 1;
  transform: translateY(0px) scale(1);
  box-shadow: var(--shadow-sm), 0 6px 16px rgba(0,0,0,0.06);
}

#composerContainer.composer-locked {
  opacity: 0.4;
  transform: translateY(6px) scale(0.985);
  box-shadow: none;
}

.composer-locked-overlay {
  animation: fadeInOverlay 0.4s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ---------------------------------------------------------
   2) Twin Selector: Pulse + Glow + Lift on Active
--------------------------------------------------------- */

.twin-scroll-item.active img {
  animation: twinPulse 0.35s ease-out;
}

@keyframes twinPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1.03); }
}

.twin-scroll-item img {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.twin-scroll-item.active img {
  box-shadow: 0 0 8px var(--accent2);
  border-color: var(--accent1);
}


/* ---------------------------------------------------------
   3) Textarea Focus Animation (smooth grow + glow)
--------------------------------------------------------- */

#postContent:focus {
  animation: focusGrow 0.25s ease;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

@keyframes focusGrow {
  0%   { transform: scale(0.99); }
  100% { transform: scale(1); }
}


/* ---------------------------------------------------------
   4) Better Bubble Interaction (press + ripple + lift)
--------------------------------------------------------- */

.bubble {
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.bubble:active {
  transform: scale(0.94);
}

.bubble.active {
  background: var(--brand-50);
  border-color: var(--brand);
  color: var(--brand);
  animation: bubblePop 0.25s ease;
}

@keyframes bubblePop {
  0%   { transform: scale(0.96); }
  80%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}


/* ---------------------------------------------------------
   5) Ripple Effect for Bubbles (pure CSS, no JS)
--------------------------------------------------------- */

.bubble::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.bubble:active::after {
  opacity: 0.3;
  animation: ripple 0.5s ease-out;
}

@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(14); opacity: 0; }
}


/* ---------------------------------------------------------
   6) Add Button: App-like Press & Hover
--------------------------------------------------------- */

.add-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.add-btn:not(.add-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.add-btn:not(.add-disabled):active {
  transform: scale(0.96);
}


/* ---------------------------------------------------------
   7) Image Upload Button (lift + glow)
--------------------------------------------------------- */

.upload-icon-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upload-icon-btn:not(.upload-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.upload-icon-btn:not(.upload-disabled):active {
  transform: scale(0.96);
}


/* ---------------------------------------------------------
   8) Post Cards: Depth + Hover Elevation
--------------------------------------------------------- */

.post-card {
  background: var(--xl-card-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
  padding: 10px 20px 0px;
  width: 95%;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}


/* ---------------------------------------------------------
   9) Delete Icon Hover (smooth zoom)
--------------------------------------------------------- */

.delete-btn {
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: none;
}

.delete-btn:hover {
  transform: scale(1.25);
  opacity: 0.75;
}


/* ---------------------------------------------------------
   10) Toggle Section: Slide + Fade
--------------------------------------------------------- */

.toggle-section {
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.toggle-section.open {
  opacity: 1;
}


/* ---------------------------------------------------------
   11) Rotating Smart Placeholder (CSS-only optional)
--------------------------------------------------------- */

.placeholder-rotate span {
  position: absolute;
  opacity: 0;
  animation: placeholderCycle 12s infinite;
}

.placeholder-rotate span:nth-child(1) { animation-delay: 0s; }
.placeholder-rotate span:nth-child(2) { animation-delay: 4s; }
.placeholder-rotate span:nth-child(3) { animation-delay: 8s; }

@keyframes placeholderCycle {
  0%   { opacity: 0; transform: translateY(6px); }
  8%   { opacity: 1; transform: translateY(0); }
  25%  { opacity: 1; }
  33%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; }
}


/* ---------------------------------------------------------
   12) Floating Add Button (FAB style — if used)
--------------------------------------------------------- */

.fab-add-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, box-shadow 0.35s ease;
  z-index: 900;
}

.fab-add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.fab-add-btn:active {
  transform: scale(0.92);
}
/* ===========================================================
   DIGITAL TWIN DASHBOARD — SAFE SCOPED STYLES
   =========================================================== */

.dashboard-page .dashboard-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}


.dashboard-page .twins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 10px;
}

/* Responsive — show 2 cards on larger screens */
@media (min-width: 600px) {
  .dashboard-page .twins-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card styling */
.dashboard-page .twin-card {
  background: #00000024;
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.08),
    0 6px 14px rgba(0,0,0,0.06);
  border: 1px solid  #ecececa1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-page .twin-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.12),
    0 8px 24px rgba(0,0,0,0.08);
}

/* Title */
.dashboard-page .twin-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-mid);
      justify-self: center;
}

.two-cell-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-top: 1px solid #c9c9c957;
}

.two-cell-row .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 3px;
}

.two-cell-row .cell:first-child {
  border-right: 1px solid #c9c9c957;
}



/* Description */
.dashboard-page .twin-card p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 12px;
  min-height: 42px;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: #1fef78e3; /* green */
  border-radius: 50%;
  display: inline-block;
}

/* Pulse ring */
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.6);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
      color: var(--text-mid);
    font-size: 12px;
}

.live-dot.online {
  background: #1fef78;
}

.live-dot.offline {
  background: #b0b0b0;
}

.live-dot.offline::after {
  display: none;
}

.live-dot.busy {
  background: #f1c40f;
}

.live-dot.busy::after {
  background: rgba(241, 196, 15, 0.5);
}

.live-dot.premium {
  box-shadow: 0 0 6px #1fef78;
}

.live-dot.premium::after {
  background: #00ff6c;
}


/* Status row */
.dashboard-page .twin-status-bar {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 5px 0 3px;
      justify-content: space-around;
}

/* Icons row */
.dashboard-page .share-icon {
  opacity: 0.8;
  margin-right: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dashboard-page .share-icon:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* Actions (Edit / Publish) */
.dashboard-page .card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

/* Edit button */




/* QR Modal Enhancements */
.dashboard-page .qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
/* Highlight current active plan */
.tile.current-plan {
  border: 2px solid #00a15e;
  background: rgba(0, 161, 94, 0.1);
  box-shadow: 0 0 14px rgba(0, 161, 94, 0.35);
}

/* Disabled plan tile */
.tile.disabled-plan {
  opacity: 0.45;
  pointer-events: none;
}

/* Action button under current plan */
.current-plan-label {
  background: #9478d3fa;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 500;
}
/* Toggle Switch Wrapper */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  margin-right: 8px;
  margin-top: 10px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #a1a1a1;
  transition: 0.3s ease;
  border-radius: 24px;
}

/* Circle */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s ease;
  border-radius: 50%;
}

/* When checked */
.switch input:checked + .slider {
  background-color: #4CAF50; /* green highlight */
}

/* Move circle when checked */
.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Rounded slider */
.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}
.input-wrapper {
  position: relative;
  width: 100%;
}

#email {
  padding-right: 34px; /* space for the icon */
}

.input-icon {
  position: absolute;
  right: 10px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.input-valid {
  border: 2px solid #2ecc71 !important;
}

.input-invalid {
  border: 2px solid #e74c3c !important;
}
/* Password icon spacing */
#password {
  padding-right: 34px;
}
    button:disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* Example Questions Section */
.example-questions-list {
  margin-top: 12px;
  margin-bottom: 20px;
}

.example-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.example-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.example-delete {
  background: #ff4d4d;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 0px;
}

.example-delete:hover {
  background: #e64545;
}

.btn-add-example {
  width: 100%;
  padding: 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 20px;
}

.btn-add-example:hover {
  background: #e8e8e8;
}

.btn-save-example {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.btn-save-example:hover {
  background: #45a047;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;

}

.flash-highlight {
  background: rgba(131, 255, 220, 0.762) !important;
  transition: background 0.6s ease;
}
.textarea-mirror {
  position: absolute;
  visibility: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border: 1px solid transparent;
  padding: 10px; /* match your textarea padding */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  width: 90%;
}
.quick-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-tile {
    background: #ffffff12;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 5px #0000002e;
    text-align: center;
    cursor: pointer;
    border: 1px solid #fff;
}

.quick-tile:hover {
  background: #f5f5f5;
}

.tile-icon {
  font-size: 26px;
  margin-bottom: 0px;
}

.tile-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 5px;
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 320px;
}

.popup-content {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.4em;
  white-space: normal;
}

.popup-title {
  font-size: 1.5rem;
}

#subList{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card-qr{
    background: #00000024;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    padding: 16px;
    margin-bottom: 10px;
    display: inline-grid;
  width: 345px;
    justify-items: stretch;
align-content: center;
justify-items: center;
}
.card-qr p {
max-width: 200px;
}

.btn-plaque-qr{width: auto; width: 100%;}

.btn-edit-qr{
    position: absolute;
    justify-self: right;
    background: #0000002b;
    border: none;
    box-shadow: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 0px;
}

.btn-edit-qr:hover{
    background: #e62f2fd8;
}

.main-btn-rq {width: auto; width: 100%;}

.qr-loading {
  padding: 12px;
  text-align: center;
  color: #888;
  font-size: 14px;
  font-style: italic;
}

.qr-holder{
  justify-items: center;
  width: 100%;
  margin-top: 10px;
}

.main-btn-qr {
  margin-top: 20px;
}

.main-img-qr{
    border: 3px solid #c28aed8f;
    padding: 15px;
    border-radius: 16px;
    background-color: #ffffff;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 5px #0000002e;
}

.createSteps{
  border: 1px solid #efefef; 
     padding: 10px 5px 0px;
  border-radius: 16px;
   box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
   background-color: #7960d11a;
       backdrop-filter: blur(15px);
       margin-bottom: 25px;
}

.createSteps label {
    display: block;
    font-weight: 400;
    margin-bottom: 6px;
    margin-left: 5px;
    font-size: 15px;
}
/* Spotlight for dashboard */

/* ===============================
   Twiin Spotlight Walkthrough
   =============================== */

.spotlight-overlay {
  position: fixed;
  inset: 0;
  background:#00000043;
  z-index: 9998;
  pointer-events: auto;
}

.spotlight-hole {

  position: fixed;
  border-radius: 45px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.119),
    0 0 0 4px rgba(255,255,255,0.15),
    0 0 20px rgba(170,140,255,0.9);
  animation: spotlightPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spotlightPulse {
  0%, 100% {
    box-shadow:
      0 0 0 9999px rgba(0,0,0,0.55),
      0 0 0 4px rgba(255,255,255,0.15),
      0 0 18px rgba(170,140,255,0.6);
  }
  50% {
    box-shadow:
      0 0 0 9999px rgba(0,0,0,0.55),
      0 0 0 6px rgba(255,255,255,0.25),
      0 0 26px rgba(170,140,255,1);
  }
}

.spotlight-tooltip {
  display: none;
  position: fixed;
  max-width: 280px;
  background:#b8bfdbfa;
  color: #1a1a1a;
  border-radius: 14px;
  padding: 14px 16px;
  z-index: 9999;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 -6px 5px 0px rgba(255, 255, 255, 0.4) inset;
  font-size: 14px;
      backdrop-filter: blur(15px);
      border: 1px solid #efefef; 
}

.spotlight-tooltip h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.spotlight-tooltip p {
  color: #464853;
  margin: 0;
  line-height: 1.4;
}

.spotlight-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.spotlight-actions button {

height: 30px;
width: 50%;
margin: 0 10px;
font-weight: 350;
}

.spotlight-actions button.primary {
  font-weight: 600;
 
}


/* Subscription */

.hero {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease-out forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headline */
.hero-title {
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;

  opacity: 0;
  transform: translateY(-30px);
  animation: titleDrop 0.7s ease-out forwards;
  animation-delay: 0.1s;
}

@keyframes titleDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subheadline */
.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-top: -0.5rem;

  opacity: 0;
  transform: translateY(-15px);
  animation: subtitleDrop 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes subtitleDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Body text */
.hero-body {
  max-width: 400px;
  margin-top: 1rem;
  color: #777;

  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 0.35s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Feature list */
.hero-list {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.hero-list li {
  opacity: 0;
  transform: translateX(-12px);
  animation: listSlide 0.5s ease-out forwards;
}

.hero-list li:nth-child(1) { animation-delay: 0.45s; }
.hero-list li:nth-child(2) { animation-delay: 0.55s; }
.hero-list li:nth-child(3) { animation-delay: 0.65s; }
.hero-list li:nth-child(4) { animation-delay: 0.75s; }
.hero-list li:nth-child(5) { animation-delay: 0.85s; }

@keyframes listSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Price */
.hero-price {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.2rem;

  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 1s;
}

.hero-price span {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.7;
}

/* CTA */
.hero-cta {
  margin-top: 1rem;
  padding: 14px 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #f8a23c, #9b5cffee, #5c6cff);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;

  opacity: 0;
  transform: scale(0.96);
  animation: ctaPop 0.5s ease-out forwards;
  animation-delay: 1.1s;
}

@keyframes ctaPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optional polish */
.gradient-text {
  background: linear-gradient(135deg, #b56cff, #6b7cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
