/* SYNDICATE SELLER — Plugins & Rockstar Games AutoReg V3 Styles */

/* 1. Catalog Styles */
.v3-catalog-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 85% 20%, #301f28 0%, transparent 65%), linear-gradient(135deg, #18191f 0%, #131418 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  gap: 24px;
}

.v3-catalog-banner-text {
  flex: 1;
  max-width: 820px;
}

.v3-catalog-banner h2 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 10px;
  color: var(--white);
}

.v3-catalog-banner p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.v3-catalog-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.v3-catalog-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  min-width: 105px;
}

.v3-catalog-stat-item strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 850;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.v3-catalog-stat-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Category Filters */
.v3-catalog-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.v3-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.v3-filter-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: #202127;
}

.v3-filter-btn.active {
  color: var(--white);
  background: #23252d;
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(255, 66, 76, 0.12);
}

/* Catalog Cards Grid */
.v3-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 460px));
  gap: 20px;
  margin-bottom: 30px;
}

.v3-catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.v3-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.v3-catalog-card.installed {
  border-color: rgba(248, 187, 53, 0.35);
  background: radial-gradient(ellipse at 100% 0%, rgba(248, 187, 53, 0.06) 0%, transparent 60%), var(--panel);
}

.v3-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.v3-card-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.v3-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.v3-card-version {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.v3-card-body {
  flex: 1;
}

.v3-card-category {
  font-size: 0.74rem;
  font-weight: 750;
  color: #f8bb35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.v3-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin: 0 0 10px;
}

.v3-card-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  min-height: 54px;
}

.v3-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.v3-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #b4b6c2;
}

.v3-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.v3-open-plugin-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* 2. Detail Breadcrumbs & Back Link */
.v3-detail-wrap {
  animation: v3FadeIn 0.2s ease-out;
}

.v3-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

.v3-back-link {
  background: none;
  border: none;
  color: #f8bb35;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.v3-back-link:hover {
  text-decoration: underline;
}

.v3-bread-sep {
  color: rgba(255, 255, 255, 0.2);
}

.v3-breadcrumb-bar b {
  color: var(--white);
}

/* 3. Hero Card Styles */
.v3-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 90% 0%, #3d2010 0%, transparent 60%), linear-gradient(135deg, #18191f 0%, #15161b 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.v3-hero-left {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.v3-rockstar-badge {
  width: 58px;
  height: 58px;
  background: #f8bb35;
  color: #121214;
  font-size: 2.3rem;
  font-weight: 900;
  font-style: italic;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(248, 187, 53, 0.25);
  user-select: none;
}

.v3-rockstar-badge span {
  font-size: 1.1rem;
  margin-top: -12px;
  margin-left: -1px;
}

.v3-hero-info {
  flex: 1;
  min-width: 0;
}

.v3-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.v3-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f8bb35;
  text-transform: uppercase;
}

.v3-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.v3-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.v3-pill-green {
  color: var(--green);
  border-color: rgba(134, 208, 161, 0.3);
  background: rgba(134, 208, 161, 0.08);
}
.v3-pill-green i { background: var(--green); }

.v3-pill-blue {
  color: #70b4ff;
  border-color: rgba(112, 180, 255, 0.3);
  background: rgba(112, 180, 255, 0.08);
}
.v3-pill-blue i { background: #70b4ff; }

.v3-pill-gold {
  color: #f8bb35;
  border-color: rgba(248, 187, 53, 0.3);
  background: rgba(248, 187, 53, 0.08);
}
.v3-pill-gold i { background: #f8bb35; }

.v3-pill-gray {
  color: var(--muted);
  border-color: var(--line);
}

.v3-hero-info h2 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--white);
}

.v3-hero-info p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 820px;
}

/* Nav Tabs */
.v3-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  padding-bottom: 2px;
}

.v3-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.v3-tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.v3-tab-btn.active {
  color: var(--white);
  border-bottom-color: #f8bb35;
  background: rgba(248, 187, 53, 0.05);
}

.v3-tab-count {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.v3-tab-btn.active .v3-tab-count {
  background: #f8bb35;
  color: #121214;
}

.v3-tab-content {
  display: none;
}

.v3-tab-content.active {
  display: block;
  animation: v3FadeIn 0.2s ease-out;
}

@keyframes v3FadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toggle Card */
.v3-toggle-panel {
  padding: 24px 28px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #18191f 0%, #1c1d24 100%);
  border: 1px solid var(--line);
}

.v3-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.v3-toggle-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--white);
}

.v3-toggle-header p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Metrics Grid */
.v3-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.v3-metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform 0.15s, border-color 0.15s;
}

.v3-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.v3-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b0b2be;
}

.v3-metric-card strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.v3-metric-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Badges */
.v3-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.v3-badge-gray {
  background: rgba(255, 255, 255, 0.06);
  color: #a0a2ad;
  border: 1px solid var(--line);
}

.v3-badge-info {
  background: rgba(112, 180, 255, 0.12);
  color: #70b4ff;
  border: 1px solid rgba(112, 180, 255, 0.25);
}

.v3-badge-active {
  background: rgba(248, 187, 53, 0.12);
  color: #f8bb35;
  border: 1px solid rgba(248, 187, 53, 0.3);
}

.v3-badge-success {
  background: rgba(134, 208, 161, 0.12);
  color: var(--green);
  border: 1px solid rgba(134, 208, 161, 0.25);
}

.v3-badge-warning {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.v3-badge-danger {
  background: rgba(255, 66, 76, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 66, 76, 0.3);
}

/* Info Grid */
.v3-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.v3-info-card {
  padding: 22px 24px;
}

.v3-info-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--white);
}

.v3-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v3-info-card li {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.v3-info-card li:last-child {
  border-bottom: 0;
}

.v3-info-card li b {
  color: #d8dae2;
}

.v3-info-card li code {
  background: #111216;
  padding: 2px 6px;
  border-radius: 4px;
  color: #f8bb35;
  font-size: 0.8rem;
}

/* Listings Panel */
.v3-panel-inner {
  padding: 24px 28px;
}

.v3-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.v3-panel-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--white);
}

.v3-panel-title p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.v3-listing-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.v3-listing-form input {
  flex: 1;
  background: #111216;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.v3-listing-form input:focus {
  border-color: #f8bb35;
  outline: none;
}

.v3-listings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v3-listing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s;
}

.v3-listing-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.v3-listing-info {
  flex: 1;
  min-width: 0;
}

.v3-listing-slug {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.v3-listing-slug b {
  font-size: 0.95rem;
  color: var(--white);
}

.v3-listing-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-listing-link:hover {
  color: #f8bb35;
  text-decoration: underline;
}

.v3-remove-btn {
  font-size: 0.78rem;
  padding: 7px 12px;
}

/* Orders Table */
.v3-orders-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v3-order-row {
  display: grid;
  grid-template-columns: 140px 180px 1fr 130px 95px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.85rem;
}

.v3-restart-btn {
  font-size: 0.75rem;
  padding: 6px 10px;
  white-space: nowrap;
}

.v3-order-header {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 18px;
}

.v3-order-id strong {
  color: var(--white);
  font-family: ui-monospace, monospace;
}

.v3-order-detail {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-order-time small {
  color: var(--muted);
}

/* Flow Grid */
.v3-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.v3-flow-card {
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.v3-flow-num {
  width: 32px;
  height: 32px;
  background: rgba(248, 187, 53, 0.15);
  color: #f8bb35;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(248, 187, 53, 0.3);
}

.v3-flow-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--white);
}

.v3-flow-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.v3-flow-card code {
  background: #1c1d23;
  padding: 2px 5px;
  border-radius: 4px;
  color: #f8bb35;
  font-size: 0.78rem;
}

/* Feature Preview Cards */
.v3-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.v3-feature-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.v3-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(134, 208, 161, 0.15);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-feature-card p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
}

/* Note Box */
.v3-note-box {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(248, 187, 53, 0.05);
  border: 1px solid rgba(248, 187, 53, 0.2);
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #d8cfc0;
}

.v3-note-box code {
  background: #121216;
  padding: 2px 7px;
  border-radius: 4px;
  color: #f8bb35;
  font-family: ui-monospace, monospace;
}

/* Responsive */
@media (max-width: 1200px) {
  .v3-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .v3-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v3-info-grid {
    grid-template-columns: 1fr;
  }
  .v3-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v3-order-row {
    grid-template-columns: 110px 160px 1fr 110px 88px;
  }
  .v3-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .v3-catalog-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .v3-catalog-stats {
    width: 100%;
  }
  .v3-catalog-stat-item {
    flex: 1;
  }
  .v3-catalog-grid {
    grid-template-columns: 1fr;
  }
  .v3-hero-left {
    flex-direction: column;
    gap: 14px;
  }
  .v3-metrics-grid {
    grid-template-columns: 1fr;
  }
  .v3-flow-grid {
    grid-template-columns: 1fr;
  }
  .v3-listing-form {
    flex-direction: column;
  }
  .v3-listing-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .v3-remove-btn {
    width: 100%;
  }
  .v3-order-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .v3-order-header {
    display: none;
  }
  .v3-form-grid,
  .v3-token-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* Dolphin Anty & Proxy Settings */
.v3-dolphin-form {
  display: flex;
  flex-direction: column;
}

.v3-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.v3-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v3-field > span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #d8dae2;
}

.v3-field input,
.v3-field select,
.v3-field textarea {
  width: 100%;
  background: #111216;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
}

.v3-field textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  resize: vertical;
}

.v3-field input:focus,
.v3-field select:focus,
.v3-field textarea:focus {
  border-color: #f8bb35;
  outline: none;
}

.v3-token-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.v3-token-row input {
  flex: 1;
}

.v3-proxy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.v3-proxy-chips code {
  background: #1a1b22;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  color: #86d0a1;
  font-size: 0.78rem;
}
