/* ============================================================
   JAHUSS LINKS — Main Stylesheet
   Admin uses LIGHT theme. Login/preview use DARK theme.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

/* ============================================================
   ADMIN LIGHT THEME
   ============================================================ */

.admin-body {
  background: #F2F2F0;
  min-height: 100vh;
}

/* TOP BAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 0 32px;
  height: 60px;
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-name {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

.btn-logout {
  background: none;
  border: 1px solid #CCCCCC;
  color: #444;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 14px;
  transition: background 0.15s;
}

.btn-logout:hover {
  background: #F5F5F5;
}

/* MAIN LAYOUT */
.admin-main {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  gap: 32px;
  align-items: flex-start;
}

/* CENTER COLUMN */
.admin-center {
  flex: 1;
  min-width: 0;
}

/* BIO SECTION */
.bio-section {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Editable bio name */
.bio-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  cursor: text;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px;
  transition: background 0.15s;
  line-height: 1.3;
}

.bio-name:hover {
  background: #F5F5F5;
}

/* Editable bio text */
.bio-text {
  font-size: 14px;
  color: #444;
  cursor: text;
  border-radius: 4px;
  padding: 4px;
  margin: 4px -4px 0;
  line-height: 1.5;
  transition: background 0.15s;
}

.bio-text:hover {
  background: #F5F5F5;
}

/* Inline edit inputs */
.bio-name-input {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  border: 2px solid #FF2372;
  border-radius: 4px;
  padding: 2px 4px;
  width: 100%;
  outline: none;
  background: #FFF;
  line-height: 1.3;
}

.bio-text-input {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 14px;
  color: #444;
  border: 2px solid #FF2372;
  border-radius: 4px;
  padding: 4px;
  width: 100%;
  min-height: 60px;
  outline: none;
  resize: vertical;
  background: #FFF;
  line-height: 1.5;
  margin-top: 4px;
  display: block;
}

/* Saving indicator */
.saving-indicator {
  font-size: 11px;
  color: #B9A88E;
  margin-top: 4px;
  height: 16px;
  min-height: 16px;
}

/* SOCIAL ICONS in admin bio */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-icon-btn {
  background: none;
  border: none;
  padding: 0;
  color: #CCCCCC;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.social-icon-btn:hover,
.social-icon-btn.active {
  color: #FF2372;
}

.social-icon-btn.has-url {
  color: #444;
}

.social-icon-btn.has-url:hover,
.social-icon-btn.has-url.active {
  color: #FF2372;
}

/* Social URL edit bar */
.social-url-edit {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.social-url-label {
  font-size: 12px;
  color: #B9A88E;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.social-url-input {
  flex: 1;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 13px;
  color: #444;
  border: 2px solid #FF2372;
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  background: #FFF;
}

/* + ADD BUTTON */
.btn-add-link {
  display: block;
  width: 100%;
  padding: 18px;
  background: #FF2372;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}

.btn-add-link:hover {
  opacity: 0.88;
}

/* SECONDARY ACTIONS ROW */
.secondary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.btn-add-collection {
  background: none;
  border: 1.5px solid #CCCCCC;
  color: #333;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 14px;
  cursor: pointer;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}

.btn-add-collection:hover {
  border-color: #FF2372;
  background: #FFF0F5;
  color: #FF2372;
}


/* EMPTY LINK LIST */
.link-list-empty {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #999;
  font-size: 15px;
  border: 2px dashed #E0E0E0;
}

/* ============================================================
   RIGHT SIDEBAR — PHONE PREVIEW
   ============================================================ */

.admin-sidebar {
  flex-shrink: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

/* PHONE FRAME */
.phone-frame {
  width: 280px;
  background: #1A1A1A;
  border-radius: 40px;
  border: 8px solid #2A2A2A;
  box-shadow: 0 0 0 2px #111, 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.phone-frame::before {
  content: '';
  display: block;
  width: 80px;
  height: 12px;
  background: #2A2A2A;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}

.phone-screen {
  background: #0F0F0F;
  min-height: 500px;
  overflow: hidden;
}

/* Hero image in preview */
.preview-hero-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.preview-body {
  padding: 16px 16px 24px;
}

.preview-name {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 18px;
  color: #F7F7E6;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.2;
}

.preview-bio {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 11px;
  color: #F7F7E6;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 12px;
  opacity: 0.9;
}

.preview-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #F7F7E6;
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* ============================================================
   AUTH PAGES — DARK THEME
   (login.ejs, forgot_password.ejs, reset_password.ejs)
   ============================================================ */

.login-body {
  background: #0F0F0F;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.login-card {
  background: #1B1A1A;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}

.login-title {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 32px;
  color: #FF2372;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1;
}

.login-subtitle {
  font-size: 13px;
  color: #B9A88E;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: #B9A88E;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: #0F0F0F;
  border: 1px solid #595958;
  border-radius: 8px;
  padding: 12px 14px;
  color: #F7F7E6;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #FF2372;
}

.form-input::placeholder {
  color: #595958;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #B9A88E;
  text-decoration: none;
  margin-bottom: 24px;
  margin-top: -8px;
}

.forgot-link:hover {
  color: #FF919C;
}

.btn-login {
  width: 100%;
  background: #FF2372;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  background: #FE4B73;
}

.alert-error {
  background: rgba(255, 35, 114, 0.12);
  border: 1px solid rgba(255, 35, 114, 0.3);
  color: #FF919C;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: #34C759;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* .btn-primary — used on forgot_password and reset_password */
.btn-primary {
  width: 100%;
  background: #FF2372;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.btn-primary:hover {
  background: #FE4B73;
}

.page-heading {
  font-size: 18px;
  color: #F7F7E6;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.instructions {
  font-size: 13px;
  color: #B9A88E;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.back-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #B9A88E;
  text-decoration: none;
  margin-top: 8px;
}

.back-link:hover {
  color: #FF919C;
}

/* ============================================================
   LINK CARDS
   ============================================================ */

#link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list-empty {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #999;
  font-size: 15px;
  border: 2px dashed #E0E0E0;
}

.link-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8E8E8;
  overflow: visible;
  position: relative;
}

.card-main-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.card-drag-handle {
  display: flex;
  align-items: center;
  padding: 16px 10px 16px 14px;
  color: #CCCCCC;
  cursor: grab;
  font-size: 16px;
  flex-shrink: 0;
  touch-action: none;
}

.card-drag-handle:active {
  cursor: grabbing;
}

.card-drag-handle:hover {
  color: #999;
}

.card-body {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 10px 0;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.card-thumb-mini {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
}

.card-fields {
  flex: 1;
  min-width: 0;
}

.card-field {
  display: block;
  width: 100%;
  cursor: text;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px;
  border: none;
  background: transparent;
  transition: background 0.15s;
  word-break: break-all;
}

.card-field:hover {
  background: #F5F5F5;
}

.link-title-field {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  line-height: 1.3;
}

.link-title-field:empty::before {
  content: 'Link title';
  color: #AAAAAA;
}

.link-url-field {
  font-size: 13px;
  color: #888;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  line-height: 1.3;
  margin-top: 2px;
}

.link-url-field:empty::before {
  content: 'https://';
  color: #BBBBBB;
}

.card-field-input {
  display: block;
  width: calc(100% + 8px);
  margin: 0 -4px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  border: 2px solid #FF2372;
  border-radius: 4px;
  padding: 2px 4px;
  outline: none;
  background: #FFF;
}

.card-field-input.title-input {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
}

.card-field-input.url-input {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

/* Toggle button */
.card-right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.btn-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  background: #CCCCCC;
}

.btn-toggle.on {
  background: #34C759;
}

.btn-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-toggle.on::after {
  transform: translateX(20px);
}

/* Icon row */
.card-icon-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid #F0F0F0;
  margin-top: 8px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #999;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: #F5F5F5;
  color: #444;
}

.icon-btn.panel-active {
  background: #FFF0F5;
  color: #FF2372;
}

.icon-btn.has-value {
  color: #FF2372;
}

.icon-btn.danger:hover {
  background: #FFF0F0;
  color: #E53E3E;
}

.click-count-badge {
  font-size: 12px;
  color: #999;
  padding: 0 8px;
  margin-left: 4px;
  white-space: nowrap;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.card-icon-row .spacer {
  flex: 1;
}

/* ============================================================
   PANELS (Layout, Thumbnail, Sparkle)
   ============================================================ */

.card-panel {
  border-top: 1px solid #F0F0F0;
  padding: 16px 16px 16px 52px; /* indent to align with card body */
  background: #FAFAFA;
  border-radius: 0 0 12px 12px;
}

.card-panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.panel-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close:hover {
  background: #EEEEEE;
  color: #333;
}

/* Layout panel */
.layout-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layout-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid #E8E8E8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #FFF;
}

.layout-option:hover {
  border-color: #FF919C;
}

.layout-option.selected {
  border-color: #FF2372;
  background: #FFF0F5;
}

.layout-option input[type="radio"] {
  accent-color: #FF2372;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.layout-option-info strong {
  display: block;
  font-size: 13px;
  color: #1A1A1A;
  margin-bottom: 2px;
}

.layout-option-info span {
  font-size: 12px;
  color: #888;
}

/* Sparkle panel */
.sparkle-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sparkle-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid #E8E8E8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #FFF;
}

.sparkle-option:hover {
  border-color: #FF919C;
}

.sparkle-option.selected {
  border-color: #FF2372;
  background: #FFF0F5;
}

.sparkle-option input[type="radio"] {
  accent-color: #FF2372;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sparkle-option-info strong {
  display: block;
  font-size: 13px;
  color: #1A1A1A;
  margin-bottom: 2px;
}

.sparkle-option-info span {
  font-size: 12px;
  color: #888;
}

/* Thumbnail panel */
.thumb-panel-has {
  display: flex;
  align-items: center;
  gap: 16px;
}

.thumb-preview-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E8E8E8;
}

.thumb-panel-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-thumb-change {
  background: #FF2372;
  color: #FFF;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-thumb-change:hover { background: #FE4B73; }

.btn-thumb-remove {
  background: #FFF;
  color: #444;
  border: 1.5px solid #CCCCCC;
  border-radius: 6px;
  padding: 7px 18px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 13px;
  cursor: pointer;
}

.btn-thumb-remove:hover { background: #F5F5F5; }

/* Upload dropzone */
.upload-dropzone {
  border: 2px dashed #CCCCCC;
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #FFF;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #FF2372;
  background: #FFF5F8;
}

.upload-dropzone i {
  font-size: 32px;
  color: #CCCCCC;
  margin-bottom: 8px;
  display: block;
}

.upload-dropzone p {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.upload-dropzone .file-types {
  font-size: 11px;
  color: #BBBBBB;
  margin-top: 6px;
}

.upload-file-input {
  display: none;
}

/* Cropper */
.cropper-container-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cropper-mode-btns {
  display: flex;
  gap: 6px;
}

.btn-crop-mode {
  padding: 6px 14px;
  border: 1.5px solid #CCCCCC;
  background: #FFF;
  border-radius: 6px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #444;
  transition: border-color 0.15s, background 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-crop-mode:hover {
  border-color: #FF919C;
  background: #FFF5F8;
}

.btn-crop-mode.active {
  border-color: #FF2372;
  background: #FF2372;
  color: #FFF;
}

.btn-crop-reset {
  padding: 6px 14px;
  border: 1.5px solid #CCCCCC;
  background: #FFF;
  border-radius: 6px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-crop-reset:hover { background: #F5F5F5; }

.cropper-img-wrap {
  max-height: 280px;
  overflow: hidden;
  border-radius: 8px;
}

.cropper-img-wrap img {
  max-width: 100%;
  display: block;
}

.cropper-save-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-crop-save {
  background: #1A1A1A;
  color: #FFF;
  border: none;
  border-radius: 6px;
  padding: 9px 24px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-crop-save:hover { background: #333; }

.btn-crop-cancel {
  background: #FFF;
  color: #666;
  border: 1.5px solid #CCC;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 14px;
  cursor: pointer;
}

.btn-crop-cancel:hover { background: #F5F5F5; }

/* ============================================================
   PHONE PREVIEW — LINK CARDS
   ============================================================ */

.preview-link-classic {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FF2372;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.preview-link-classic .preview-link-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.preview-link-classic .preview-link-title {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 11px;
  color: #0F0F0F;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.preview-link-featured {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #FF2372;
  position: relative;
}

.preview-link-featured .preview-link-feat-img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-link-featured .preview-link-feat-placeholder {
  width: 100%;
  height: 100px;
  background: #FF2372;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-link-featured .preview-link-feat-title {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 11px;
  color: #0F0F0F;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
}

/* Sparkle canvas overlay */
.sparkle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: inherit;
}

/* Sortable drag ghost */
.sortable-ghost {
  opacity: 0.4;
  background: #FFF0F5 !important;
}

.spacer-left {
  margin-left: 4px;
}

/* ============================================================
   COLLECTION CARDS
   ============================================================ */

.collection-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8E8E8;
  overflow: visible;
  position: relative;
}

.collection-header-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.collection-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px 10px 0;
}

.collection-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.collection-title-field {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  cursor: text;
  border-radius: 4px;
  padding: 2px 6px;
  transition: background 0.15s;
}

.collection-title-field:hover {
  background: #F5F5F5;
}

.collection-title-field:empty::before {
  content: 'Add collection title';
  color: #AAAAAA;
  font-weight: 400;
}

.collection-title-input {
  flex: 1;
  min-width: 0;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  border: 2px solid #FF2372;
  border-radius: 4px;
  padding: 2px 6px;
  outline: none;
  background: #FFF;
}

.btn-coll-add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #999;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.btn-coll-add-icon:hover {
  background: #F5F5F5;
  color: #FF2372;
}

.btn-coll-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #CCCCCC;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.btn-coll-delete:hover {
  background: #FFF0F0;
  color: #E53E3E;
}

/* Collection children area */
.collection-children {
  border-top: 1px solid #F0F0F0;
  margin-top: 10px;
  padding: 12px 14px 12px 52px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 48px;
}

.collection-empty-body {
  color: #999;
  font-size: 13px;
  padding: 8px 0 4px;
  line-height: 1.5;
}

.btn-coll-add-link {
  align-self: flex-start;
  background: none;
  border: 1.5px solid #CCCCCC;
  color: #555;
  border-radius: 8px;
  padding: 6px 16px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-coll-add-link:hover {
  border-color: #FF2372;
  color: #FF2372;
}


/* Child link cards — slight indent via parent padding */
.collection-children .link-card {
  border-color: #EEEEEE;
}

/* Sortable drag-over state for collection children */
.collection-children.drag-over {
  background: #FFF5F8;
  border-radius: 8px;
}

/* Sortable ghost within collections */
.collection-children .sortable-ghost {
  opacity: 0.4;
  background: #FFF0F5 !important;
}

/* ============================================================
   PHONE PREVIEW — COLLECTIONS
   ============================================================ */

.preview-collection {
  margin-bottom: 10px;
}

.preview-collection-header {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 10px;
  font-weight: 700;
  color: #FF2372;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 6px 0 4px;
  border-bottom: 1px solid #2A2020;
  margin-bottom: 6px;
}

.preview-collection-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .bio-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .secondary-actions {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
