/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --creator-bg: #f7f8fb;
  --creator-ink: #151922;
  --creator-muted: #667085;
  --creator-line: #d9dee8;
  --creator-panel: #ffffff;
  --creator-sidebar: #101318;
  --creator-sidebar-soft: #1b2028;
  --creator-accent: #00a88f;
  --creator-accent-strong: #007d73;
  --creator-warn: #b54708;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  /*font-family: 'Fira Sans', sans-serif;*/
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #0c0c0c;
  color: #e0e0e0;
  line-height: 1.6;
}

body.creator-shell-page {
  background: var(--creator-bg);
  color: var(--creator-ink);
  min-height: 100vh;
}

body.has-header {
  display: block;
  padding-top: 72px; /* offset for header height */
}


nav .nav-link {
  color: #7fffd4;
  opacity: 1;
  text-decoration: none;
  font-weight: bold;
  margin-right: 18px;
  transition: opacity 0.2s, color 0.2s;
}

nav .nav-link.active {
  color: #00ffcc !important;
  opacity: 1 !important;
  border: 2px solid #00ffcc;
  border-radius: 6px 6px 0 0;
  background-color: #1e1e1e;
  font-weight: bold;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
  padding: 5px 10px 3px 10px;
}

.bright-download {
  background: linear-gradient(90deg, #43ffbb, #11e5ff 80%);
  color: #1a1a1a !important;
  font-weight: bold;
  border: 2px solid #eafffb;
  box-shadow: 0 0 16px 2px #7fffd4bb, 0 4px 16px #13efffaa;
  transition: background 0.2s, box-shadow 0.2s;
}
.bright-download:hover {
  background: linear-gradient(90deg, #a6ffe8, #0cf5ff 80%);
  color: #0f0f0f !important;
  box-shadow: 0 0 24px 4px #aafffd, 0 4px 32px #25f7ff88;
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* we’ll push the right side with auto margin */
  gap: 24px;
  padding: 1rem 2rem;
  background-color: #1a1a1a;
  flex-wrap: nowrap; /* prevent wrapping that causes “left shift” */
}

.site-header .logo img { height: 32px; display:block; }

.primary-nav {
  display: flex;
  gap: 24px;
  flex: 0 0 auto;         /* don’t let the middle nav grab all width */
}

.auth-actions {
  margin-left: auto;      /* <-- pins this block to the right */
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Optional: avoid any page-specific CSS from stretching nav */
.primary-nav, .primary-nav * { white-space: nowrap; }


/* Header Layout */
header {
  background-color: #121212;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #1f1f1f;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


nav a {
  color: #00ffcc;         /* Seafoam green */
  font-weight: bold;
  text-decoration: none;
  margin-left: 1.2rem;    /* spacing between links */
  font-size: 1rem;
}

nav a:first-child {
  margin-left: 0;         /* remove margin on the first link */
}

nav a:hover {
  text-decoration: underline;
  color: #7ffff1;         /* Optional: lighter on hover */
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top left, #1a1a1a, #000);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  /*font-family: 'Fira Sans', sans-serif;*/
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 2.4rem;
  margin: 0 auto 0.5rem auto;
  color: #a6e3d4;
  text-align: center;
}

.hero-subtitle {
  /*font-family: 'Fira Sans', sans-serif;*/
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.2rem;
  max-width: 700px;
  color: #ccc;
  text-align: center;
  margin: 0 auto 2rem auto;
}

.hero-subtitle a {
  color: #00ffcc;          /* seafoam green */
  font-weight: bold;
  text-decoration: none;
}

.hero-subtitle a:hover {
  text-decoration: underline;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  font-size: 1.1rem;
  padding: 0.1rem;
  height: 1.8rem;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #1a1a1a;
  color: #e0e0e0;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.auth-form.shrink input[type="email"],
.auth-form.shrink input[type="password"] {
  font-size: 1rem;
  padding: 0.5rem;
  height: 2rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 4px #00ffcc;
}

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #0c0c0c;
  color: #e0e0e0;
}

.auth-box {
  background-color: #1a1a1a;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.2);
  max-width: 400px;
  width: 100%;
}

.auth-box h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
  color: #00ccb3;
}

.auth-box input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #e0e0e0;
}

.auth-box input:focus {
  outline: none;
  border-color: #00ccb3;
  box-shadow: 0 0 5px #00ccb3;
}

.btn-seafoam {
  background-color: #00ccb3;
  color: black;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.btn-seafoam:hover {
  background-color: #00e6cc;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-social img {
  height: 20px;
  width: 20px;
}

.btn-social span {
  flex-grow: 1;
  text-align: center;
}

/* Google Button Styling */
.btn-social.google {
  background-color: #ffffff;
  color: #444;
  border: 1px solid #ccc;
}

.btn-social.google:hover {
  background-color: #f5f5f5;
}

/* Facebook Button Styling */
.btn-social.facebook {
  background-color: #1877f2;
  color: #ffffff;
}

.btn-social.facebook:hover {
  background-color: #155cc0;
}

.btn-social.twitter {
  background-color: #1da1f2;
}

.btn-social.twitter:hover {
  background-color: #0d8ddb;
}

.rule-text {
  font-size: 0.85rem;
  color: #aaa;
  margin: 6px 0 14px;
  display: block;
}

.message {
  text-align: center;
  margin-top: 10px;
}

.switch-link {
  text-align: center;
  margin-top: 20px;
  font-size: 1.125rem;
}

@keyframes sign-up-link-glow {
  0%,
  100% {
    text-shadow:
      0 0 4px rgba(0, 204, 179, 0.35),
      0 0 10px rgba(0, 204, 179, 0.15);
  }
  50% {
    text-shadow:
      0 0 10px rgba(180, 255, 245, 0.95),
      0 0 22px rgba(0, 255, 220, 0.75),
      0 0 36px rgba(0, 204, 179, 0.5),
      0 0 48px rgba(127, 255, 212, 0.35);
  }
}

.switch-link a {
  color: #00ccb3;  /* Seafoam green */
  text-decoration: none;
  font-weight: bold;
  animation: sign-up-link-glow 2s ease-in-out infinite;
}

.switch-link a:hover {
  text-decoration: underline;
  animation-play-state: paused;
  text-shadow:
    0 0 10px rgba(180, 255, 245, 0.95),
    0 0 22px rgba(0, 255, 220, 0.75),
    0 0 36px rgba(0, 204, 179, 0.5),
    0 0 48px rgba(127, 255, 212, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .switch-link a {
    animation: none;
    text-shadow: 0 0 6px rgba(0, 204, 179, 0.35);
  }
  .switch-link a:hover {
    text-shadow: 0 0 8px rgba(0, 204, 179, 0.45);
  }
}


/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.primary {
  background-color: #a6e3d4;
  color: #000;
}

.primary:hover {
  background-color: #7ed4be;
}

.secondary {
  background-color: transparent;
  border: 1px solid #a6e3d4;
  color: #a6e3d4;
}

.secondary:hover {
  background-color: #1a1a1a;
}

/* Preview Card */
.dooping-preview {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.dooping-card {
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
  width: 320px;
  text-align: center;
  border: 1px solid #333;
}

.lock-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #a6e3d4;
}

.message-preview {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #aaa;
}

.unlock {
  background-color: #444;
  color: #a6e3d4;
  border: none;
}

.unlock:hover {
  background-color: #555;
}

/* Section Blocks */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section.dark {
  background-color: #111;
}

.section.light {
  background-color: #1a1a1a;
}

.section h2 {
  font-size: 2rem;
  color: #a6e3d4;
  margin-bottom: 1rem;
}

.section p {
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background-color: #121212;
  color: #888;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #1f1f1f;
}

.checkbox-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}
.checkbox-row input[type="checkbox"] {
  margin: 0;
  padding: 0;
  width: 16px;
  height: 16px;
  appearance: auto;
}
.checkbox-row label {
  margin-left: 8px;
  font-size: 1rem;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.checkbox-row label.disabled {
  color: #666;
}

label.disabled {
  color: #666;
}

/* Style top-right nav links like Login / Sign Up */
.top-right-links a {
  color: #00ffcc; /* seafoam green */
  font-weight: bold;
  text-decoration: none;
  margin-left: 1rem;
}

.top-right-links a:hover {
  color: #7ffff1;
  text-decoration: underline;
}


/* Dashboard */
.table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  text-align: left;
}

.dashboard-table th {
  background-color: #121212;
  color: #00ffcc;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.dashboard-table tbody tr:hover {
  background-color: #222;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.panel {
  background-color: #1e1e2f;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  color: #e6fef7;
  transition: transform 0.2s ease;
}

.panel:hover {
  transform: translateY(-4px);
}

.panel h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #99fff0;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  margin-top: 1rem;
}

.stat strong {
  font-size: 2rem;
  display: block;
  color: #7fffd4;
}

.subtext {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.animated-slogan {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #00ffcc,
    #f9b758,
    #00ffcc,
    #f38f4f,
    #00ffcc
  );
  background-size: 500% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waveflow 18s linear infinite;
  text-shadow: 0 0 6px rgba(0, 255, 204, 0.2);
  display: inline-block;
}

@keyframes waveflow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.gradient-username {
  background: linear-gradient(
    90deg,
    #00ffcc,
    #f9b758,
    #00ffcc,
    #f38f4f,
    #00ffcc
  );
  background-size: 500% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  display: inline-block;
  animation: shimmerLoop 20s linear infinite;
}

.button-grey,
.cancel-btn {
  background-color: #555 !important;
  color: #ddd !important;
  margin-top: 10px;
  margin-left: 10px;
}

.button-grey:hover,
.cancel-btn:hover {
  background-color: #777 !important;
  color: #fff !important;
}

.cancel-btn.red {
  background-color: #cc4444 !important;
  color: white !important;
  border: 1px solid #ff8888 !important;
}

.cancel-btn.red:hover {
  background-color: #dd2222 !important;
}

.red {
  background-color: #cc4444 !important;
  color: white !important;
  font-weight: bold;
  border: 1px solid #ff8888;
}

.red:hover {
  background-color: #dd2222 !important;
}

.view-btn {
  background-color: #00cccc;
  color: black;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 140px;     /* 🔒 Fixed width */
  height: 48px;     /* 🔒 Fixed height */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap; /* Prevent wrapping */
}

#account-modal input[type="text"] {
  background: #23243a !important;
  color: #ccffef !important;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
#account-modal label {
  color: #aad7cc !important;
}
#account-modal .button {
  color: #0f222b !important;
  font-weight: bold;
}
#account-modal {
  background-color: rgba(0,0,0,0.7) !important;
}
#account-modal > div {
  background: #1e1e2f !important;
  color: white !important;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
}


@keyframes shimmerLoop {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Notification bell & dropdown (dark theme friendly) */
:root {
  --accent: #7fffd4;         /* seafoam you’re using */
  --fg: #ccffef;
  --muted: #94b8ab;
  --panel: #1a1a1a;
  --panel-2: #121212;
  --border: #2b2b2b;
}

.notif {
  position: relative;
  margin-left: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif svg path {
  fill: var(--fg);
}
.notif:hover svg path {
  fill: var(--accent);
}

.notif .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  font-size: 11px;
  color: #0f0f0f;
  background: var(--accent);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

.notif-menu {
  position: absolute;
  right: 16px;
  top: 60px;
  width: 320px;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  z-index: 1000;
}

.notif-menu-header,
.notif-menu-footer {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.notif-menu-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
}

#notif-list {
  max-height: 340px;
  overflow: auto;
  background: var(--panel-2);
}

.notif-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #222;
  object-fit: cover;
  border: 1px solid var(--border);
}
.notif-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notif-meta .who {
  font-weight: 600;
}
.notif-meta .when {
  color: var(--muted);
  font-size: 12px;
}
.notif-actions {
  display: flex;
  gap: 8px;
}
.notif-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--fg);
  cursor: pointer;
  font-size: 13px;
}
.notif-btn:hover { filter: brightness(1.15); }
.notif-accept { border-color: var(--accent); }
.notif-reject { opacity: 0.85; }

/* Creator workspace redesign */
.creator-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 340px;
  min-height: 100vh;
}

.creator-sidebar {
  background: var(--creator-sidebar);
  color: #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.creator-brand img {
  display: block;
  max-width: 126px;
  height: auto;
}

.sidebar-create,
.sidebar-nav a,
.sidebar-nav span,
.sidebar-footer a {
  color: #cfd6e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 650;
}

.sidebar-create {
  background: var(--creator-accent);
  color: #041411;
  justify-content: center;
}

.sidebar-create.active,
.sidebar-create:hover {
  background: #2dd4bf;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-nav a:hover,
.sidebar-footer a:hover {
  background: var(--creator-sidebar-soft);
  color: #fff;
  text-decoration: none;
}

.sidebar-nav span {
  color: #777f8c;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 4px;
  border-top: 1px solid #29303a;
  padding-top: 16px;
}

.creator-workspace {
  min-width: 0;
  padding: 32px;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.workspace-header h1 {
  color: var(--creator-ink);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 6px;
}

.workspace-header p,
.builder-section p,
.form-status {
  color: var(--creator-muted);
}

.eyebrow {
  color: var(--creator-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.builder-stack {
  display: grid;
  gap: 16px;
}

.builder-section {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  background: var(--creator-panel);
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.section-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f7f4;
  color: var(--creator-accent-strong);
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  color: var(--creator-ink);
  font-size: 1.08rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.good {
  background: #dcfae6;
  color: #067647;
}

.status-pill.muted {
  background: #f2f4f7;
  color: #667085;
}

.creator-shell label {
  display: block;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.creator-shell input[type="text"],
.creator-shell input[type="number"],
.creator-shell input[type="file"],
.creator-shell textarea,
.creator-shell select {
  width: 100%;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #fff;
  color: var(--creator-ink);
  padding: 10px 11px;
  font: inherit;
  margin-bottom: 14px;
}

.creator-shell textarea {
  resize: vertical;
}

.creator-shell input:focus,
.creator-shell textarea:focus,
.creator-shell select:focus {
  outline: 2px solid rgba(0, 168, 143, 0.18);
  border-color: var(--creator-accent);
  box-shadow: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-option {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  background: #fbfcfe;
  margin: 0 0 12px;
}

.field-option input {
  width: auto;
  margin: 0;
}

.inline-choice {
  display: inline-flex;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  padding: 3px;
  background: #f2f4f7;
  margin-bottom: 14px;
}

.choice-tab {
  border: none;
  background: transparent;
  color: #475467;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.choice-tab.active {
  background: #fff;
  color: var(--creator-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.inline-create-panel {
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #fff;
  color: var(--creator-ink);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.action-button.primary {
  border-color: var(--creator-accent);
  background: var(--creator-accent);
  color: #031b17;
}

.action-button.secondary {
  background: #f2f4f7;
}

.action-button.danger {
  border-color: #fecdca;
  background: #fee4e2;
  color: #b42318;
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cancel-btn.changed {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.cancel-btn.red {
  border-color: #fecdca;
  background: #fee4e2;
  color: #b42318;
}

.publish-actions {
  display: flex;
  gap: 10px;
}

.form-status {
  margin-top: 10px;
  min-height: 22px;
  font-size: 0.92rem;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.inline-hint {
  color: var(--creator-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.currency-field {
  position: relative;
}

.currency-field span {
  color: var(--creator-muted);
  font-weight: 800;
  left: 12px;
  position: absolute;
  top: 10px;
}

.currency-field input {
  padding-left: 28px !important;
}

.total-value {
  color: var(--creator-accent-strong);
  font-weight: 800;
  margin: 0 0 16px;
  text-align: right;
}

.creator-toast {
  background: #101318;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  bottom: 20px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.18);
  color: #d1f7ef;
  display: none;
  font-size: 0.92rem;
  padding: 12px 14px;
  position: fixed;
  right: 20px;
  z-index: 10000;
}

.upload-status {
  margin-top: 18px;
}

.upload-status progress {
  width: 100%;
  height: 12px;
  accent-color: var(--creator-accent);
}

.friends-list {
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.friends-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.text-button {
  border: none;
  background: transparent;
  color: var(--creator-accent-strong);
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.friend-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 8px 0 !important;
}

.friend-row input {
  width: auto;
  margin: 0;
}

.creator-preview-panel {
  border-left: 1px solid var(--creator-line);
  background: #eef2f6;
  padding: 32px 24px;
}

.preview-sticky {
  position: sticky;
  top: 28px;
}

.dooping-preview-card {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.dooping-preview-card h2 {
  color: var(--creator-ink);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 16px 0 8px;
}

.dooping-preview-card p {
  color: var(--creator-muted);
  margin-bottom: 18px;
}

.dooping-preview-card dl {
  display: grid;
  gap: 12px;
}

.dooping-preview-card dl div {
  border-top: 1px solid var(--creator-line);
  padding-top: 12px;
}

.dooping-preview-card dt {
  color: var(--creator-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dooping-preview-card dd {
  color: var(--creator-ink);
  margin: 2px 0 0;
}

.dashboard-overview {
  display: grid;
  gap: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  padding: 16px;
}

.metric-card span {
  color: var(--creator-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  color: var(--creator-ink);
  font-size: 1.9rem;
  line-height: 1.2;
  margin-top: 8px;
}

.management-list {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  overflow: hidden;
}

.management-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--creator-line);
  color: var(--creator-ink);
}

.management-row:first-child {
  border-top: none;
}

.management-panel,
.dookeys-workspace .grid {
  display: grid;
  gap: 18px;
}

.management-toolbar {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  padding: 14px;
}

.creator-shell .searchbar {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.creator-shell .searchbar span {
  color: var(--creator-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-shell .searchbar input,
.creator-shell .input {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  color: var(--creator-ink);
  flex: 1;
  font: inherit;
  min-height: 40px;
  min-width: 0;
  padding: 0 11px;
}

.creator-shell .card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 14px 0;
}

.creator-shell .card {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  color: var(--creator-ink);
  padding: 16px;
}

.creator-shell .card .hd {
  align-items: center;
  border-bottom: 1px solid var(--creator-line);
  color: var(--creator-ink);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin: -16px -16px 14px;
  padding: 14px 16px;
}

.creator-shell .card .bd {
  padding: 0;
}

.creator-shell .btn,
.creator-shell .btn.small {
  align-items: center;
  background: var(--creator-accent);
  border: 1px solid var(--creator-accent);
  border-radius: 8px;
  color: #031b17;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

.creator-shell .btn-ghost,
.creator-shell .btn-secondary {
  align-items: center;
  background: #f2f4f7;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  color: var(--creator-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  text-decoration: none;
}

.creator-shell .dooping-phrase {
  background: #e7f7f4;
  border-radius: 6px;
  color: var(--creator-accent-strong);
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin: 4px 0 8px;
  padding: 4px 8px;
}

.creator-shell .dooping-meta,
.creator-shell .meta,
.creator-shell .empty-state,
.creator-shell .card p {
  color: var(--creator-muted);
}

.creator-shell .dooping-actions,
.creator-shell .publish-actions {
  flex-wrap: wrap;
}

.creator-shell .count-badge,
.creator-shell .pill {
  background: #e7f7f4;
  border-radius: 999px;
  color: var(--creator-accent-strong);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 24px;
  padding: 2px 8px;
}

.section-heading.compact {
  align-items: center;
  margin: 22px 0 10px;
}

.section-heading.compact h2 {
  color: var(--creator-ink);
  font-size: 1.15rem;
}

.management-two-column,
.dookeys-workspace .grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.management-column {
  display: grid;
  gap: 18px;
}

.table-wrap,
.dookeys-workspace .card .bd > div[style*="overflow"] {
  border: 1px solid var(--creator-line) !important;
  border-radius: 8px !important;
  max-height: 320px !important;
  overflow: auto !important;
}

.creator-shell table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.creator-shell th,
.creator-shell td {
  border-bottom: 1px solid var(--creator-line);
  color: var(--creator-ink);
  padding: 10px;
  vertical-align: top;
}

.creator-shell th {
  color: var(--creator-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-shell td.actions {
  text-align: right;
}

.local-key-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.local-key-row p,
#unlock-hint {
  color: var(--creator-muted) !important;
  margin: 0;
}

.unlock-form {
  display: grid;
  gap: 10px;
}

.unlock-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.creator-shell textarea#decrypted-message {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  color: var(--creator-ink);
  min-height: 180px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.vault-list {
  margin-top: 18px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(16, 24, 40, 0.46);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 1000;
}

.modal {
  background: #fff;
  border: 1px solid var(--creator-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.22);
  color: var(--creator-ink);
  width: min(520px, 92vw);
}

.modal .hd,
.modal .ft {
  border-color: var(--creator-line);
}

.modal .hd {
  border-bottom: 1px solid var(--creator-line);
  color: var(--creator-ink);
  font-weight: 800;
  padding: 14px 16px;
}

.modal .bd {
  padding: 16px;
}

.modal .ft {
  border-top: 1px solid var(--creator-line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
}

.modal p {
  color: var(--creator-muted);
}

@media (max-width: 1120px) {
  .management-two-column,
  .dookeys-workspace .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .creator-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .creator-preview-panel {
    grid-column: 2;
    border-left: none;
    border-top: 1px solid var(--creator-line);
  }
}

@media (max-width: 760px) {
  .creator-shell {
    display: block;
  }

  .creator-sidebar {
    position: static;
    height: auto;
  }

  .creator-workspace,
  .creator-preview-panel {
    padding: 20px;
  }

  .workspace-header,
  .section-heading,
  .management-row {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-section {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

