.seller-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: #f2f4f7;
}

.seller-login-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.seller-login-card .brand {
  margin-bottom: 26px;
}

.seller-login-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.seller-login-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.seller-login-card form {
  display: grid;
  gap: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border-radius: 999px;
  background: #eef2f8;
}

.auth-tabs a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #4b5871;
  font-size: 14px;
  font-weight: 950;
}

.auth-tabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 28px rgba(255, 62, 125, 0.2);
}

.seller-login-card label,
.seller-field label {
  color: #344058;
  font-size: 13px;
  font-weight: 900;
}

.seller-login-card input,
.seller-field input,
.seller-field select,
.seller-field textarea {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.seller-login-card input,
.seller-field input,
.seller-field select {
  height: 46px;
  padding: 0 13px;
}

.seller-login-card .register-only {
  display: none;
}

.seller-login-card.is-register .register-only {
  display: grid;
}

.role-choice {
  gap: 9px;
}

.role-choice > label {
  margin-bottom: 0;
}

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

.role-choice-grid label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.role-choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.role-choice-grid span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #fff;
  color: #344058;
  font-size: 13px;
  font-weight: 900;
}

.role-choice-grid input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.seller-field textarea {
  min-height: 150px;
  padding: 13px;
  resize: vertical;
}

.seller-login-card .solid-button {
  width: 100%;
  margin-top: 8px;
}

.seller-login-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.seller-login-error {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: #a22a2a;
  background: #fff0f0;
  font-size: 13px;
  font-weight: 800;
}

.seller-login-error.is-visible {
  display: block;
}

.seller-admin {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f5f7fb;
}

.seller-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(34px, 4vw, 76px);
  border-bottom: 1px solid rgba(226, 231, 241, 0.88);
  background: #ffffff;
}

.seller-topbar nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.seller-topbar nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #4d5870;
  font-size: 13px;
  font-weight: 850;
}

.seller-admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px clamp(34px, 4vw, 76px) 60px;
}

.seller-sidebar,
.seller-card-panel,
.seller-preview,
.seller-inbox {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.seller-sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 16px;
}

.seller-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #4d5870;
  font-size: 14px;
  font-weight: 850;
}

.seller-sidebar a.is-active,
.seller-sidebar a:hover {
  color: var(--ink);
  background: #eef2f8;
}

.seller-workspace {
  display: grid;
  gap: 22px;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.seller-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 34px clamp(34px, 4vw, 76px) 0;
}

.seller-hero h1 {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.08;
}

.seller-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.seller-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.seller-card-panel,
.seller-preview,
.seller-inbox {
  min-width: 0;
  padding: 22px;
}

.seller-card-panel h2,
.seller-preview h2,
.seller-inbox h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.seller-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.seller-field {
  display: grid;
  gap: 8px;
}

.seller-field.is-wide {
  grid-column: 1 / -1;
}

.package-editor {
  display: grid;
  gap: 12px;
}

.package-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 130px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.package-editor-row input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7deea;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.media-drop {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed #b9c4d6;
  border-radius: 13px;
  background: #f8fafc;
  color: #5e697d;
  text-align: center;
  font-weight: 850;
}

.seller-preview {
  position: sticky;
  top: 102px;
}

.preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.preview-image {
  min-height: 190px;
  background: url("./assets/card-market.png") center / cover no-repeat;
}

.preview-body {
  padding: 16px;
}

.preview-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.preview-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.preview-price {
  color: #08a957;
  font-size: 24px;
  font-weight: 900;
}

.seller-inbox-list {
  display: grid;
  gap: 10px;
}

.seller-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.seller-message-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 950;
}

.seller-message strong {
  display: block;
  margin-bottom: 3px;
}

.seller-message span {
  color: var(--muted);
  font-size: 13px;
}

.seller-files {
  color: #266feb;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .seller-admin-layout,
  .seller-grid {
    grid-template-columns: 1fr;
  }

  .seller-sidebar,
  .seller-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .seller-topbar,
  .seller-hero,
  .seller-form-grid,
  .package-editor-row,
  .seller-message {
    grid-template-columns: 1fr;
  }

  .seller-topbar nav {
    justify-content: flex-start;
    overflow: auto;
  }

  .seller-admin-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .seller-hero {
    margin-left: 18px;
    margin-right: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

}

/* Author cabinet */
.seller-admin {
  background: #f2f4f7;
}

.seller-topbar {
  min-height: 78px;
  background: #fff;
}

.seller-topbar nav a.is-active {
  color: var(--ink);
  background: #eef2f8;
}

.seller-account-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.seller-dashboard,
.seller-editor-page {
  width: 100%;
  padding: 40px clamp(34px, 4vw, 76px) 64px;
  box-sizing: border-box;
}

.seller-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.seller-dashboard-head > div {
  min-width: 0;
}

.seller-dashboard-head > div > span,
.panel-heading > div > span {
  display: block;
  margin-bottom: 8px;
  color: #68748a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seller-dashboard-head h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.08;
}

.seller-dashboard-head p {
  max-width: 760px;
  margin: 0;
  color: #68748a;
  font-size: 16px;
  line-height: 1.5;
}

.seller-empty {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  padding: 48px 24px;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.seller-empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: 30px;
}

.seller-empty h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.seller-empty p {
  max-width: 560px;
  margin: 0 0 24px;
  color: #68748a;
  line-height: 1.55;
}

.author-listings {
  display: grid;
  gap: 16px;
}

.author-listing {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  background: #fff;
}

.author-listing-image {
  min-height: 230px;
  background-position: center;
  background-size: cover;
}

.author-listing-body {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 22px;
}

.author-listing-top,
.author-listing-meta,
.author-listing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-listing-top {
  justify-content: space-between;
  color: #68748a;
  font-size: 12px;
  font-weight: 850;
}

.listing-status {
  padding: 6px 9px;
  border-radius: 999px;
  color: #68748a;
  background: #eef2f7;
}

.listing-status.is-published {
  color: #087a43;
  background: #e7f8ef;
}

.author-listing h2 {
  margin: 16px 0 8px;
  font-size: 25px;
  line-height: 1.18;
}

.author-listing p {
  margin: 0 0 18px;
  color: #68748a;
  line-height: 1.5;
}

.author-listing-meta {
  padding: 14px 0;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  color: #4e5a71;
  font-size: 13px;
}

.author-listing-meta strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 18px;
}

.author-listing-actions {
  margin-top: 16px;
}

.author-listing-actions a,
.author-listing-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #fff;
  color: #26324a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.author-listing-actions a {
  display: inline-flex;
  align-items: center;
}

.author-listing-actions .is-danger {
  color: #b52a42;
}

.listing-editor {
  display: grid;
  gap: 18px;
}

.listing-editor .seller-card-panel {
  padding: 26px;
  border-radius: 10px;
  box-shadow: none;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}

.panel-heading h2 {
  margin: 0;
}

.panel-heading p {
  max-width: 460px;
  margin: 0;
  color: #68748a;
  line-height: 1.5;
}

.listing-editor .seller-form-grid {
  gap: 18px;
}

.listing-editor .seller-field input[readonly] {
  color: #69758b;
  background: #f4f6f9;
}

.listing-editor .seller-field textarea {
  min-height: 130px;
  line-height: 1.5;
}

.listing-editor #offer-description {
  min-height: 210px;
}

.listing-editor .media-drop {
  min-height: 180px;
  padding: 24px;
  cursor: pointer;
}

.listing-editor .media-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.listing-editor .media-drop span {
  color: var(--ink);
  font-size: 16px;
}

.listing-editor .media-drop small {
  display: block;
  max-width: 560px;
  margin-top: 8px;
  font-weight: 500;
}

.media-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.media-file-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #4e5a71;
  font-size: 12px;
  font-weight: 850;
}

.listing-editor-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 34px rgba(28, 38, 80, 0.08);
}

.listing-form-error {
  display: none;
  margin: 0 auto 0 0;
  color: #ae2941;
  font-size: 13px;
  font-weight: 850;
}

.listing-form-error.is-visible {
  display: block;
}

@media (max-width: 900px) {
  .author-listing {
    grid-template-columns: 1fr;
  }

  .author-listing-image {
    min-height: 220px;
  }

  .panel-heading,
  .seller-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .seller-topbar {
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .seller-topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .seller-dashboard,
  .seller-editor-page {
    padding: 28px 18px 48px;
  }

  .seller-dashboard-head h1 {
    font-size: 34px;
  }

  .listing-editor-actions {
    position: static;
    flex-wrap: wrap;
  }

  .listing-form-error {
    width: 100%;
  }
}
