:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe2ea;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

body {
  padding: 28px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0 0 6px 0;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

a.button,
button,
input[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s ease;
}

a.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

a.button.secondary,
button.secondary {
  background: #e5e7eb;
  color: #111827;
}

a.button.secondary:hover,
button.secondary:hover {
  background: #d1d5db;
}

a.button.danger,
button.danger {
  background: var(--danger);
}

a.button.danger:hover,
button.danger:hover {
  background: var(--danger-hover);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-size: 14px;
}

tr:hover td {
  background: #fafcff;
}

dl {
  margin: 0;
}

dt {
  font-weight: 700;
  margin-top: 12px;
}

dd {
  margin: 4px 0 0 0;
  color: var(--text);
}

.notice,
.ok,
.success {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 10px 0 16px;
}

.ok,
.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.err,
.error {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 10px 0 16px;
  background: var(--error-bg);
  color: var(--error-text);
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}

.section-title {
  margin-top: 0;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 16px;
  }

  th, td {
    padding: 10px;
  }
}
.profile-accordion {
  margin: 1rem 0;
}

.profile-accordion details {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.profile-accordion summary {
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 700;
  background: #f7f7f7;
  list-style: none;
}

.profile-accordion summary::-webkit-details-marker {
  display: none;
}

.profile-accordion summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 0.25rem;
}

.profile-accordion details[open] summary::before {
  content: "▾ ";
}

.profile-accordion .panel-body {
  padding: 1rem;
}

.profile-public-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ddd;
  background: #f2f2f2;
}

.profile-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-chip {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f2f2f2;
  margin: 0.15rem;
  font-size: 0.9rem;
}

.dashboard-accordion {
  margin-top: 1.25rem;
}

.dashboard-accordion details {
  border: 1px solid #d8dee9;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background: #fff;
  overflow: hidden;
}

.dashboard-accordion summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  background: #f5f7fb;
  color: #1f2937;
  list-style: none;
  border-bottom: 1px solid transparent;
}

.dashboard-accordion details[open] summary {
  border-bottom-color: #d8dee9;
}

.dashboard-accordion summary::-webkit-details-marker {
  display: none;
}

.dashboard-accordion summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 1rem;
}

.dashboard-accordion details[open] summary::before {
  content: "▾";
}

.dashboard-accordion .panel-body {
  padding: 1rem 1.1rem 1.2rem;
}

.seminicraft-fixed-logo {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seminicraft-fixed-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  text-decoration: none;
}

.seminicraft-fixed-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 700px) {
  .seminicraft-fixed-logo {
    width: 46px;
    height: 46px;
    top: 10px;
    right: 10px;
    border-radius: 14px;
  }
}


.profile-media-preview {
  position: relative;
  margin: 1rem 0 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  background: #eef6f7;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.profile-banner-preview {
  height: 180px;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-banner-placeholder {
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.profile-avatar-preview {
  position: absolute;
  left: 28px;
  bottom: 18px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  overflow: hidden;
  background: white;
  border: 4px solid white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-preview span {
  font-size: 2rem;
  font-weight: 800;
  color: #0f766e;
}



/* SeminiCraft media cards / visual thumbnails */
.media-hero-card {
  margin: 1rem 0 1.4rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .45);
  background: #eef6f7;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.media-hero-card img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.media-hero-caption {
  padding: .8rem 1rem;
  color: #475569;
  font-size: .95rem;
}

.media-preview-grid {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1rem 0;
}

.media-preview-box {
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-box img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
}

.media-placeholder {
  padding: 1rem;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}

.media-thumb {
  width: 88px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: #f8fafc;
  display: inline-block;
}

.media-thumb-placeholder {
  width: 88px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  font-size: .8rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .media-preview-grid {
    grid-template-columns: 1fr;
  }
}


.media-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.media-edit-card {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.media-edit-card h3 {
  margin-top: 0;
}

.media-edit-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.5rem;
}

.media-edit-hero {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.media-placeholder {
  min-height: 110px;
  border-radius: 16px;
  border: 1px dashed rgba(100, 116, 139, 0.55);
  background: rgba(241, 245, 249, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.advanced-url-fields {
  margin: 0.75rem 0 1.25rem;
  color: #64748b;
}



/* SeminiCraft polished visual editor */
.visual-editor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  margin: 1rem 0 1.5rem;
}

.visual-editor-hero {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, #0f766e, #0284c7);
}

.visual-editor-hero img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.visual-editor-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  color: #ffffff;
  text-align: center;
}

.visual-editor-placeholder strong {
  font-size: 1.35rem;
}

.visual-editor-placeholder span {
  opacity: 0.86;
}

.visual-editor-body {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.visual-editor-logo {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  margin-top: -54px;
  z-index: 2;
}

.visual-editor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.visual-editor-logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
}

.visual-editor-text {
  flex: 1;
  min-width: 0;
}

.visual-editor-text h2 {
  margin: 0 0 0.25rem;
}

.visual-file-button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  width: auto;
  cursor: pointer;
  gap: 0;
}

.visual-file-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.20);
  backdrop-filter: blur(8px);
}

.visual-file-button.secondary {
  position: static;
  margin-top: 0.25rem;
}

.visual-file-button.secondary span {
  background: #e5e7eb;
  color: #111827;
  box-shadow: none;
}

.visual-file-button input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.advanced-url-fields.compact {
  margin: 0.7rem 0 0;
}

.advanced-url-fields.compact summary {
  cursor: pointer;
  color: #64748b;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .visual-editor-body {
    align-items: flex-start;
  }

  .visual-editor-logo {
    width: 86px;
    height: 86px;
    margin-top: -43px;
  }

  .visual-file-button {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
