:root{
  --primary-color:#1D4ED8;
  --primary-color-dark:#0b3aa0;
  --background-color:#05070d;
  --surface:#000000;
  --surface-2:rgba(0,0,0,0.72);
  --border-color:rgba(29,78,216,0.22);
  --muted-text:#9aa4b2;
  --text-color:#e5e7eb;
  /* subtle blue aura like login */
  --hero-image:radial-gradient(900px 600px at 18% 10%, rgba(29,78,216,0.22), rgba(0,0,0,0) 60%),
              radial-gradient(800px 520px at 78% 75%, rgba(29,78,216,0.12), rgba(0,0,0,0) 55%);
}

/* Base styles for IA Corp By Ethan. Uses CSS variables for theme colors */
body.bg{
  margin:0;
  padding:0;
  background-color: var(--background-color);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height:100vh;
}

/* ---------- Premium Panels / Forms (match Login DA) ---------- */
.panel{
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.70);
}
.panel-lg{ padding: 22px; }

.text-muted{ color: var(--muted-text); line-height: 1.55; }
.help{ color: var(--muted-text); font-size: 0.95em; margin: 8px 0 16px; }
.label-sub{ color: var(--muted-text); font-weight: 600; }

.form-wide label{ margin-top: 14px; }
.field{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
  color: var(--text-color);
  box-sizing: border-box;
  outline: none;
}
.field:focus{
  border-color: rgba(29,78,216,0.55);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.18);
}
.field-textarea{ min-height: 110px; resize: vertical; }
.field-code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.edit-section{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.45);
  margin-bottom: 14px;
}
.section-title{
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.checkline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top: 14px;
}
.checkline input[type="checkbox"]{
  width:16px;
  height:16px;
  margin-top: 3px;
  accent-color: var(--primary-color);
}
.checklabel{ margin:0; font-weight: 700; }

.form-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Layout for the new admin dashboard */
/* Sidebar for the admin dashboard. The sidebar can be collapsed or expanded. */
.sidebar {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 80px; /* collapsed width */
  height: calc(100vh - 32px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(29,78,216,0.16);
  box-shadow: 0 18px 60px rgba(0,0,0,0.75);
  transition: width 0.38s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
}

/* Expanded sidebar increases width. */
.sidebar.expanded{
  width: 220px;
}

/* Each menu item inside the sidebar */
.sidebar .menu-item {
  width: 100%;
  text-decoration: none;
}

/* Container for icon and optional label */
.sidebar .icon-container {
  display: flex;
  align-items: center;
  /* Center icons horizontally when collapsed; label hidden */
  justify-content: center;
  padding: 10px;
  margin: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  /* Inherit the sidebar's dark background so icons appear on a seamless dark backdrop */
  background-color: inherit;
}

/* Hover effect for menu items */
.sidebar .icon-container:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Icon images inside menu items */
.sidebar .icon-container img {
  /* Use larger icons for better visibility */
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Label text hidden by default for collapsed sidebar */
.sidebar .icon-container .label {
  display: none;
  margin-left: 12px;
  color: #ffffff;
  font-size: 14px;
  text-transform: none;
  white-space: nowrap;
}

/* When sidebar is expanded, show the labels */
.sidebar.expanded .icon-container .label {
  display: inline-block;
}

/* When sidebar is expanded, align icons and labels to the start */
.sidebar.expanded .icon-container {
  justify-content: flex-start;
  /* Ensure expanded state also inherits the sidebar background */
  background-color: inherit;
}

/* Toggle button at the bottom of the sidebar */
/* Toggle button at the bottom of the sidebar */
.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: auto;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  font-size: 26px;
  line-height: 1;
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.toggle-btn:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Slightly shift the profile picture inside the sidebar to the right */
.sidebar .profile-pic {
  margin-left: 0;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile pages layout */
/* Container for the profile sections. Uses a dark translucent panel with rounded corners. */
.profile-container {
  display: flex;
  flex-direction: row;
  max-width: 900px;
  margin: 40px auto;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Left column in the profile page with avatar and quick actions */
.profile-left {
  width: 220px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-left img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.profile-left h3 {
  margin-top: 0;
  color: #fff;
  font-size: 18px;
}

.profile-left .detail {
  color: #bbb;
  font-size: 14px;
  margin-top: 4px;
}

.profile-left .profile-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-left .profile-actions a {
  margin-top: 12px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.profile-left .profile-actions a:hover{text-decoration:none;}

/* Right column in the profile page where account info and tools live */
.profile-right {
  flex-grow: 1;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
}

.profile-right h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.profile-right p {
  margin: 6px 0;
  color: #ddd;
  font-size: 14px;
}

/* List of clients displayed in the admin profile when toggled */
.client-list {
  margin-top: 10px;
  border-left: 2px solid var(--primary-color);
  padding-left: 20px;
  max-height: 200px;
  overflow-y: auto;
}

.client-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #eee;
  font-size: 14px;
}

.client-entry .subscription-status {
  margin-left: 10px;
  color: var(--primary-color);
}

.client-entry button {
  padding: 4px 8px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.client-entry button:hover {
  opacity: 0.85;
}

/* Lists in the admin clients management page */
.active-list,
.subscriptions-list,
.invoice-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0 0 20px 0;
}

.active-list li,
.subscriptions-list li,
.invoice-list li {
  margin-bottom: 6px;
  color: #ddd;
  font-size: 14px;
}

/* Command input box for the admin profile */
.command-input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  background-color: #1a1a1a;
  color: #fff;
  margin-top: 6px;
}

.countdown {
  margin-top: 8px;
  font-size: 14px;
  color: var(--primary-color);
}

/* Small link at bottom right of profile-right to edit profile */
.edit-profile-link {
  margin-top: auto;
  text-align: right;
}

.edit-profile-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.edit-profile-link a:hover{text-decoration:none;}

/* Round toggle button for clients list */
.client-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 6px;
  font-size: 20px;
  transition: background-color 0.2s;
}

.client-toggle:hover {
  background-color: var(--primary-color);
  color: #000;
}

/* Back arrow in profile sidebar */
.back-arrow {
  /* Simplify the back arrow to remove the red circle effect. Remove fixed
     dimensions and rounded background so it appears as plain text. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.2s;
  background-color: transparent;
}

.back-arrow a {
  color: var(--primary-color);
  text-decoration: none;
}

.back-arrow:hover {
  /* Do not show a coloured circle on hover; only adjust the colour slightly */
  background-color: transparent;
  color: #fff;
}

/* A simple back arrow component used on content pages to navigate back.
   This class avoids the circular background entirely. */
.back-arrow-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 20px;
}
.back-arrow-simple a {
  color: var(--primary-color);
  text-decoration: none;
}
.back-arrow-simple a:hover {
  color: #fff;
}

/* Place the simple back arrow inside the sidebar neatly */
.sidebar .back-arrow-simple {
  margin-left: 6px;
  margin-bottom: 20px;
}

/* Manage clients header clickable to toggle the list */
/* Manage clients link. No underline; changes colour on hover */
.manage-clients {
  margin-top: 30px;
  color: var(--primary-color);
  cursor: pointer;
  display: inline-block;
}

.manage-clients a {
  color: var(--primary-color);
  text-decoration: none;
}

.manage-clients a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Remove legacy .icon styles used previously for text-only icons */

/* Main content area to the right of the sidebar. Adjusts its left margin based on sidebar state. */
.main{
  margin-left: 112px; /* 80px sidebar + 32px gutter */
  padding: 22px;
  min-height: 100vh;
  background: transparent;
  transition: margin-left 0.32s ease;
}

/* When sidebar is expanded, shift the main content accordingly */
.main.sidebar-expanded{
  margin-left: 252px; /* expanded sidebar width + gutter */
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.search-bar {
  width: 180px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.6);
  color: #ddd;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar:focus {
  border-color: var(--primary-color);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.project-card .project-name {
  padding: 10px;
  font-weight: bold;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.project-card .dots {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 22px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.project-card .dots:hover {
  color: var(--primary-color);
}

/* Enhance project cards on hover */
.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* Context menu for project cards. Hidden by default and revealed when the
   corresponding ellipsis icon is clicked. Appears above the dots with a
   subtle animation. */
.project-card .project-menu {
  position: absolute;
  bottom: 36px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1000;
}
.project-card .project-menu.menu-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.project-card .project-menu .menu-item {
  padding: 6px 16px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.project-card .project-menu .menu-item.delete {
  color: var(--primary-color);
}
.project-card .project-menu .menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.add-project {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 2px dashed var(--primary-color);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.add-project:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Text inside the new project card */
.add-project span {
  font-size: 18px;
  margin-top: 8px;
  font-weight: bold;
}

/* Forms for new pages */
.form-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-container label {
  margin-top: 12px;
  display: block;
}

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="file"],
.form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-container textarea {
  height: 120px;
  resize: vertical;
}

.form-container button {
  margin-top: 16px;
  padding: 10px 20px;
  background-image: linear-gradient(90deg, var(--primary-color) 0%, #0b3aa0 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
}

.form-container button:hover {
  opacity: 0.85;
}

/* Focus state for form inputs */
.form-container input[type="text"]:focus,
.form-container input[type="password"]:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.container{
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 22px;
}
h1, h2, h3 {
  color: var(--primary-color);
  margin-top: 0;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: bold;
}

input[type="text"], input[type="password"], input[type="color"], textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: #1a1a1a;
  color: #ffffff;
  box-sizing: border-box;
}

button {
  margin-top: 16px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0066cc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #111111;
}

table th, table td {
  padding: 10px;
  border: 1px solid #222222;
  text-align: left;
  color: #ffffff;
}

table th {
  background-color: var(--primary-color);
  color: #ffffff;
}

.ai-card {
  background-color: #111111;
  padding: 20px;
  margin-bottom: 12px;
  border-left: 5px solid var(--primary-color);
  border-radius: 4px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover{text-decoration:none;}

/* ===============================================================
 * Login page layout and custom classes
 * Provides a centered card with a prominent icon, dark backgrounds
 * and primary color accents consistent with the rest of the dashboard.
 * =============================================================== */
.login-wrapper {
  max-width: 400px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.login-card {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 60px 40px 40px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  position: relative;
  border-top: 4px solid var(--primary-color);
}

.login-card .login-icon {
  width: 90px;
  height: 90px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin: -90px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.login-card .login-icon svg {
  width: 50px;
  height: 50px;
  fill: #fff;
}

.login-card .input-group {
  position: relative;
  margin-top: 20px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.login-card .lock-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
  pointer-events: none;
}

.login-card button {
  margin-top: 30px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  background-image: linear-gradient(90deg, var(--primary-color) 0%, #0b3aa0 100%);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-card button:hover {
  opacity: 0.85;
}

/* Remember-me checkbox and label on the login page */
.remember-me {
  margin-top: 10px;
  color: #bbb;
  font-size: 14px;
  text-align: left;
}

.remember-me input {
  margin-right: 6px;
}

/* ===============================================================
 * Top navigation bar used in the dashboard header
 * Shows active link underline and colour transitions
 * =============================================================== */
.top-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-right: auto;
}

.top-nav a {
  color: #bbb;
  text-decoration: none;
  padding-bottom: 8px;
  position: relative;
  transition: color 0.2s;
}

.top-nav a.active{
  background: rgba(29,78,216,0.16);
  border: 1px solid rgba(29,78,216,0.35);
  border-radius: 999px;
}


.top-nav a.active,
.top-nav a:hover {
  color: #fff;
}

.top-nav a.active::after{display:none;}

/*
 * New top bar used in the admin dashboard. Combines the page title, a large
 * search field and a menu arrow on a single line with a red accent line
 * underneath. This bar replaces the previous top navigation and search box.
 */
.top-bar{
  border-radius: 18px;
  border: 1px solid rgba(29,78,216,0.18);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(0,0,0,0.60);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.top-bar .page-title,
.top-bar-title {
  font-size: 20px;
  color: #fff;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.top-bar-title{
  font-weight: 700;
  letter-spacing: 0.2px;
}
.top-bar-search{
  flex: 1;
  display: flex;
}

.top-bar .search-input {
  flex-grow: 1;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--primary-color);
  background-color: rgba(0, 0, 0, 0.6);
  color: #ddd;
  outline: none;
  transition: border-color 0.2s;
}

.top-bar .search-input:focus {
  border-color: var(--primary-color);
  color: #fff;
}

.top-bar .menu-arrow {
  margin-left: 20px;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 720px){
  .top-bar{
    flex-wrap: wrap;
  }
  .top-bar-search{
    width: 100%;
  }
}

/* ===============================================================
 * Script management styles
 * Defines the look and feel of the scripts list on the configuration page.
 * =============================================================== */

/* List container for scripts */
.scripts-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
}

/* Each script entry with name, minus icon and code preview */
.script-item {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.script-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* Script name */
.script-item .script-name {
  font-weight: bold;
  color: #fff;
  font-size: 16px;
}

.script-link{
  background: rgba(29,78,216,0.18);
  border: 1px solid rgba(29,78,216,0.35);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}
.script-link:hover{
  background: rgba(29,78,216,0.28);
}

/* Minus icon to trigger the context menu */
.script-item .script-minus {
  color: var(--primary-color);
  cursor: pointer;
  font-size: 24px;
  margin-left: auto;
  transition: color 0.2s;
}
.script-item .script-minus:hover {
  color: var(--primary-color);
}

/* Preview of the script code */
.script-item .script-preview {
  color: #aaa;
  font-size: 12px;
  white-space: pre-line;
}

/* Context menu for script actions */
.script-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1000;
}
.script-menu.menu-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.script-menu .menu-item {
  padding: 6px 16px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.script-menu .menu-item.delete {
  color: var(--primary-color);
}
.script-menu .menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Phase 11: subscription status badge on project cards */
.project-card{position:relative;}
.sub-badge{
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.06em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.sub-badge.badge-active{
  background:rgba(16,185,129,0.25);
  color:#d1fae5;
  border-color:rgba(16,185,129,0.45);
}
.sub-badge.badge-grace{
  background:rgba(245,158,11,0.25);
  color:#ffedd5;
  border-color:rgba(245,158,11,0.45);
}
.sub-badge.badge-inactive{
  background:rgba(239,68,68,0.22);
  color:#fee2e2;
  border-color:rgba(239,68,68,0.45);
}

/* Phase 11: subscription summary pills */
.sub-summary{display:flex;gap:10px;align-items:center;margin:12px 0 18px 0;flex-wrap:wrap}
.pill{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.3px}
.pill-active{background:rgba(0,255,140,.12);border:1px solid rgba(0,255,140,.35);color:#bfffe3}
.pill-grace{background:rgba(255,196,0,.12);border:1px solid rgba(255,196,0,.35);color:#fff0b3}
.pill-inactive{background:rgba(29,78,216,.10);border:1px solid rgba(29,78,216,.28);color:#dbeafe}

/* ------------------------------------------------------------------
   Admin edit: segmented ON/OFF switches + notice banner
   ------------------------------------------------------------------ */
.edit-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.edit-actions{
  display:flex;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.seg-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.seg-label{
  font-size:12px;
  font-weight:700;
  opacity:.85;
}
.seg-toggle{
  display:flex;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.55);
}
.seg-toggle form{margin:0;}
.seg-btn{
  border:none;
  padding:8px 14px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  background:transparent;
  color:#111;
  min-width:56px;
  transition:all .15s ease;
}
.seg-btn:hover{filter:brightness(.95);}
.seg-on.seg-active{
  background:var(--primary-color);
  color:#fff;
}
.seg-off.seg-active{
  background:#e53935;
  color:#fff;
}
.btn-soft{
  display:inline-block;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.65);
  font-weight:800;
  text-decoration:none;
  color:#111;
  transition:transform .15s ease, filter .15s ease;
}
.btn-soft:hover{transform:translateY(-1px);filter:brightness(.98);}
.notice-banner{
  margin:10px 0 18px 0;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(29,78,216,.10);
  border:1px solid rgba(29,78,216,.25);
  color:#0f172a;
  font-weight:700;
}

/* ------------------------------------------------------------------
   Admin edit: segmented ON/OFF switches + notice banner
   ------------------------------------------------------------------ */
.edit-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.edit-actions{
  display:flex;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.edit-quick{
  display:flex;
  gap:10px;
  align-items:center;
}
.seg-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.seg-label{
  font-size:12px;
  opacity:.8;
}
.seg-toggle{
  display:flex;
  align-items:center;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,0.04);
}
.seg-toggle form{
  margin:0;
}
.seg-btn{
  border:none;
  padding:9px 14px;
  font-weight:700;
  cursor:pointer;
  background:transparent;
  color:#fff;
  min-width:56px;
}
.seg-btn.seg-on{ color:#fff; }
.seg-btn.seg-off{ color:#fff; }
.seg-btn.seg-active.seg-on{ background: var(--primary-color); }
.seg-btn.seg-active.seg-off{ background: #d12b2b; }
.notice-banner{
  margin-top:12px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:#fff;
  font-weight:600;
}
.btn-soft{
  display:inline-block;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.05);
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.btn-soft:hover{
  background:rgba(255,255,255,0.10);
}

/* ACBE PHASE 3 - Client premium status badges */
.badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.3px;
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,0.14);
}
.badge-good{
  background:rgba(29,78,216,0.18);
  border-color:rgba(29,78,216,0.45);
  color:#dbe7ff;
}
.badge-warn{
  background:rgba(29,78,216,0.12);
  border-color:rgba(29,78,216,0.35);
  color:#cfe0ff;
}
.badge-bad{
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.18);
  color:#e6e6e6;
}


/* ===============================================================
 * Public landing + login (auth-shell)
 * =============================================================== */
.auth-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
}

.auth-left {
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  backdrop-filter: none;
}

.brand-row { display:flex; align-items:center; gap:10px; }
.brand-dot { width:10px; height:10px; border-radius:999px; background: var(--primary-color); box-shadow: 0 0 24px rgba(29,78,216,0.55); }
.brand-name { color:#fff; font-weight:800; letter-spacing:0.2px; }

.hero-title {
  margin: 18px 0 10px 0;
  font-size: 42px;
  line-height: 1.08;
  color: #fff;
}

.accent { color: var(--primary-color); }

.hero-subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  max-width: 62ch;
}

.hero-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
}


.hero-card-link {
  display: block;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.14);
}

.hero-card.recommended {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 0 1px rgba(29,78,216,0.10), 0 18px 60px rgba(29,78,216,0.18);
  position: relative;
  overflow: hidden;
  animation: heroGlow 1.8s ease-in-out infinite;
}

@keyframes heroGlow {
  0% { box-shadow: 0 0 0 1px rgba(29,78,216,0.10), 0 14px 44px rgba(29,78,216,0.16); }
  50% { box-shadow: 0 0 0 1px rgba(29,78,216,0.18), 0 20px 70px rgba(29,78,216,0.26); }
  100% { box-shadow: 0 0 0 1px rgba(29,78,216,0.10), 0 14px 44px rgba(29,78,216,0.16); }
}

.hc-title { color:#fff; font-weight:800; font-size:14px; }
.hc-desc { color: rgba(255,255,255,0.72); font-size: 12.5px; margin-top: 6px; min-height: 38px; }
.hc-price { margin-top: 10px; color: #fff; font-weight: 900; font-size: 13px; }

.proof-row {
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.proof-pill {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}

/* Onboarding stepper (3 steps) */
.stepper{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 14px;
  flex-wrap: nowrap;
}
.step{
  display:flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.step-dot{
  width:10px;
  height:10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
}
.step-line{
  flex:1;
  height:1px;
  background: rgba(255,255,255,0.10);
  min-width: 26px;
}
.step.active{
  color:#fff;
  font-weight: 800;
}
.step.active .step-dot{
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.12);
  animation: stepPulse 1.8s ease-in-out infinite;
}
.step.done{
  color: rgba(255,255,255,0.78);
  font-weight: 700;
}
.step.done .step-dot{
  background: rgba(34,197,94,0.95);
  border-color: rgba(34,197,94,0.95);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
@keyframes stepPulse{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.22); }
  100%{ transform: scale(1); }
}

.cta-row {
  display:flex;
  gap: 12px;
  margin-top: 18px;
}

.cta-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(29,78,216,0.25);
}

.cta-btn:hover { opacity: 0.92; text-decoration:none; }

.cta-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
  background: rgba(0,0,0,0.25);
}

.cta-secondary:hover { background: rgba(255,255,255,0.05); text-decoration:none; }

.tiny-note { margin-top: 10px; color: rgba(255,255,255,0.55); font-size: 12px; }

.auth-right { display:flex; align-items:center; justify-content:center; }

.login-title { color:#fff; font-weight:900; font-size: 18px; margin-top: 8px; }
.login-subtitle { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 2px; }
.login-foot { margin-top: 14px; display:flex; justify-content:center; gap: 10px; color: rgba(255,255,255,0.65); font-size: 12px; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; padding: 34px 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .auth-right { margin-top: 12px; }
}


/* Yearly price under monthly (login only) */
.hc-price-year{font-size:16px;opacity:0.95;margin-top:6px;}



/* =========================================================
   IA CORP — Premium Blue/Black UI Overhaul (v12)
   Keeps the login page intact, upgrades Admin + Client UI
   Palette: #1D4ED8 + deep black
   ========================================================= */

/* Smooth rendering */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }

/* App layout (non-login pages mainly use .container/.main/.sidebar) */
.page-title{
  margin: 6px 0 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main{
  margin-left: 112px; /* 80px sidebar + 32px gutter */
  padding: 22px;
  min-height: 100vh;
  background: transparent;
  transition: margin-left 0.32s ease;
}

/* Top bar */
.top-bar{
  border-radius: 18px;
  border: 1px solid rgba(29,78,216,0.18);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(0,0,0,0.60);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-row{
  gap: 10px;
}

.brand-name{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.notice-banner{
  border-radius: 16px;
  border: 1px solid rgba(29,78,216,0.22);
  background: rgba(29,78,216,0.08);
  color: rgba(229,231,235,0.92);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 80px; /* collapsed width */
  height: calc(100vh - 32px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(29,78,216,0.16);
  box-shadow: 0 18px 60px rgba(0,0,0,0.75);
  transition: width 0.38s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
}

.sidebar .menu-item{
  border-radius: 14px;
  padding: 10px 12px;
  margin: 6px 10px;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.sidebar .menu-item:hover{
  background: rgba(29,78,216,0.08);
  border-color: rgba(29,78,216,0.18);
  transform: translateY(-1px);
}

.sidebar .menu-item.active{
  background: rgba(29,78,216,0.14);
  border-color: rgba(29,78,216,0.28);
}

/* Cards */
.card,
.form-container,
.profile-container,
.project-card{
  border-radius: 18px !important;
  border: 1px solid rgba(29,78,216,0.18) !important;
  background: var(--surface) !important;
  box-shadow: 0 14px 44px rgba(0,0,0,0.62) !important;
}

.form-container{
  padding: 18px 18px 16px;
}

.label{
  color: rgba(229,231,235,0.92);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(29,78,216,0.18);
  background: rgba(5,7,13,0.65);
  color: rgba(229,231,235,0.95);
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(29,78,216,0.55);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.18);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder{
  color: rgba(154,164,178,0.75);
}

/* Buttons */
.btn{
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  border: 1px solid rgba(29,78,216,0.25) !important;
  background: rgba(29,78,216,0.12) !important;
  color: rgba(229,231,235,0.95) !important;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn:hover{
  background: rgba(29,78,216,0.18) !important;
  border-color: rgba(29,78,216,0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.btn:active{
  transform: translateY(0px);
}

.btn-soft{
  background: rgba(29,78,216,0.10) !important;
  border-color: rgba(29,78,216,0.18) !important;
}

.btn-primary{
  background: linear-gradient(180deg, rgba(29,78,216,0.95), rgba(11,58,160,0.95)) !important;
  border-color: rgba(29,78,216,0.65) !important;
}

.btn-primary:hover{
  background: linear-gradient(180deg, rgba(29,78,216,1), rgba(11,58,160,1)) !important;
  box-shadow: 0 18px 45px rgba(29,78,216,0.22), 0 18px 55px rgba(0,0,0,0.55);
}

/* Status pills */
.pill{
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(29,78,216,0.18);
  background: rgba(29,78,216,0.10);
  color: rgba(229,231,235,0.92);
}

.pill-active{
  border-color: rgba(29,78,216,0.35);
  background: rgba(29,78,216,0.14);
}

.pill-inactive{
  border-color: rgba(154,164,178,0.18);
  background: rgba(154,164,178,0.06);
  color: rgba(229,231,235,0.75);
}

.pill-grace{
  border-color: rgba(29,78,216,0.28);
  background: rgba(29,78,216,0.10);
}

/* Projects grid */
.projects-grid{
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.project-card{
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.project-card:hover{
  transform: translateY(-4px);
  border-color: rgba(29,78,216,0.40) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.60) !important;
}

.project-card img{
  height: 150px !important;
  object-fit: cover;
  filter: saturate(1.05);
  background: radial-gradient(circle at 30% 20%, rgba(29,78,216,0.18), rgba(0,0,0,0));
}

.project-card .project-name{
  padding: 14px 14px 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(229,231,235,0.95);
}

/* Menu dots / dropdown */
.dots{
  border-radius: 12px;
  border: 1px solid rgba(29,78,216,0.12);
  background: rgba(5,7,13,0.45);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.dots:hover{
  background: rgba(29,78,216,0.10);
  border-color: rgba(29,78,216,0.25);
  transform: translateY(-1px);
}

.project-menu{
  border-radius: 14px;
  border: 1px solid rgba(29,78,216,0.18);
  background: rgba(8,11,20,0.92);
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
  overflow: hidden;
}

/* Tables (logs etc.) */
table{
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(29,78,216,0.16);
  background: rgba(10,14,25,0.40);
}

th, td{
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(29,78,216,0.10);
}

th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(154,164,178,0.95);
  background: rgba(29,78,216,0.06);
}

tr:hover td{
  background: rgba(29,78,216,0.06);
}

/* Small helpers */
.detail{
  color: rgba(154,164,178,0.90);
}

/* Footer links / subtle */
a{
  color: rgba(201,220,255,0.95);
}

a:hover{
  color: #ffffff;
}

/* Reduce harsh outlines */
:focus{ outline: none; }


/* --- IA CORP: premium surfaces overrides (fluid + clean) --- */
.input, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea{
  background: #000 !important;
  border: 1px solid rgba(29,78,216,0.16) !important;
  color: #fff !important;
}
input:focus, select:focus, textarea:focus{
  outline: none !important;
  border-color: rgba(29,78,216,0.55) !important;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.20) !important;
}
.btn, button{
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover, button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.55);
}
.sidebar .icon-container{
  border-radius: 14px;
}
.sidebar .icon-container:hover{
  background: rgba(29,78,216,0.14);
}

/* Top bar back link (clean, no underline) */
.top-bar .back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9aa3b2;
  text-decoration:none;
  margin-right:10px;
}
.top-bar .back-link:hover{
  color:#fff;
  border-color: rgba(29,78,216,0.25);
  background: rgba(29,78,216,0.10);
}

/* Stats rows (premium, like status card) */
.stat-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat-k{ color: #cfd6e6; font-weight: 600; }
.stat-v{ color: #ffffff; font-weight: 700; }


/* ===== IA CORP Premium: compact module toggles on Edit Project ===== */
.seg-grid{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.seg-card{
  background:#000;
  border:1px solid rgba(29,78,216,.22);
  border-radius:16px;
  padding:10px 12px;
  min-width:150px;
}
.seg-title{
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,.82);
  margin-bottom:8px;
}
.seg-toggle{
  display:flex;
  border:1px solid rgba(29,78,216,.18);
  border-radius:999px;
  overflow:hidden;
  background:#070b14;
}
.seg-btn{
  display:inline-block;
  padding:7px 12px;
  font-weight:900;
  font-size:12px;
  color:rgba(255,255,255,.72);
  text-decoration:none;
}
.seg-btn.active{
  background:#1D4ED8;
  color:#fff;
}
.edit-actions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.edit-actions-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.btn-secondary{
  background:#0b1220;
  border:1px solid rgba(29,78,216,.25);
  color:#fff;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
}
.btn-ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
}



/* ===== Edit project actions: clean blue bold text links (no underline) ===== */
.edit-actions-right a,
.edit-actions-right a.btn-primary,
.edit-actions-right a.btn-secondary,
.edit-actions-right a.btn-ghost{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.edit-actions-right a:hover{
  text-decoration: none !important;
  opacity: .92;
}

.btn-link{
  background:transparent;
  border:none;
  padding:10px 6px;
  color:var(--accent);
  font-weight:800;
  text-decoration:none;
}
.btn-link:hover{opacity:.9;text-decoration:none;}


/* ===============================================================
 * Onboarding (3 steps) - centered cards
 * =============================================================== */
.onboard-wrap{
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 16px;
}
.onboard-wide{ max-width: 1100px; }
.onboard-card{
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
.onboard-card-wide{ padding: 26px 22px; }
.onboard-title{
  margin: 14px 0 6px 0;
  color:#fff;
  font-size: 34px;
  line-height: 1.1;
}
.onboard-sub{
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

/* Visual progress bar (more explicit than the stepper) */
.onboard-progress{
  margin-top: 14px;
}
.onboard-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}
.onboard-progressbar{
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow:hidden;
}
.onboard-progressfill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(29,78,216,0.65), rgba(29,78,216,0.18));
  box-shadow: 0 0 0 1px rgba(29,78,216,0.35) inset, 0 0 18px rgba(29,78,216,0.22);
  transition: width 0.55s ease;
}
.onboard-text{
  margin-top: 10px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  font-size: 14px;
}
.onboard-form{
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}
.onboard-form label{
  display:block;
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 700;
}
.field-hint{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-top: 6px;
}
.onboard-actions{
  margin-top: 16px;
}
.options-panel{
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}
.options-title{
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 16px;
}
.option-row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}
.option-row input{
  margin-top: 4px;
}
.option-label{
  color: #fff;
  font-weight: 600;
}
.option-desc{
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 4px;
}

.status-stamp{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16,185,129,0.16);
  color: #bbf7d0;
  border: 1px solid rgba(16,185,129,0.4);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.status-stamp::before{
  content: "✓";
  font-weight: 900;
}
.hero-card-option{
  cursor: pointer;
  position: relative;
  padding-left: 42px;
}
.hero-card-option input[type='radio']{
  position: absolute;
  top: 18px;
  left: 18px;
}
.hero-card-muted{
  border: 1px dashed rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
}
.onboard-callout{
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,132,255,0.08);
}
.onboard-callout-title{
  font-weight: 700;
  color: #fff;
}
.onboard-callout-desc{
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  margin-top: 4px;
}
.banner-placeholder{
  margin: 16px 0;
  border-radius: 18px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px dashed rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.35);
}
.banner-title{
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.banner-sub{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-top: 6px;
}
.onboard-foot{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.link-muted{ color: rgba(255,255,255,0.65); text-decoration:none; }
.link-muted:hover{ color:#fff; }
.link-accent{ color: var(--primary-color); text-decoration:none; font-weight:800; }
.sep{ color: rgba(255,255,255,0.30); }
.onboard-alert{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(29,78,216,0.10);
  border: 1px solid rgba(29,78,216,0.35);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}
.onboard-badge{
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  display:inline-flex;
  gap:8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}
.onboard-badge b{ color:#fff; }

.onboard-proof{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.onboard-note{
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  line-height: 1.5;
}

/* Summary page (final confirmation) */
.summary-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 16px;
}
.summary-box{
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
}
.summary-kv{ color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.55; }
.summary-kv b{ color: #fff; }
.summary-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration:none;
  font-weight: 800;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.06); }
@media (max-width: 920px){
  .summary-grid{ grid-template-columns: 1fr; }
}

/* Offers grid inside onboarding card */
.offers-grid{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 980px){
  .offers-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .offers-grid{ grid-template-columns: 1fr; }
  .onboard-title{ font-size: 28px; }
}

/* --- Fix Chrome/Edge autofill on dark inputs (prevents white fields) --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #e5e7eb !important;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px rgba(0,0,0,0.85) inset !important;
  caret-color: #e5e7eb;
}
