@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0b0c0e;
  --bg-panel: #14161a;
  --gold: #c8a862;
  --gold-soft: #8f7a4d;
  --ink: #eae7df;
  --ink-dim: #a6a49c;
  --border: #26282e;
  --success: #6fae7e;
  --warn: #c88a5c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #14161a 0%, #0b0c0e 60%);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.brand {
  text-align: center;
  margin-bottom: 36px;
}
.brand .mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-panel {
  background: linear-gradient(180deg, var(--bg-panel), #101216);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.status-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  margin-bottom: 20px;
}

.title-xl {
  font-size: 32px;
  margin: 0 0 8px;
}

.subtle { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.optional-label { font-weight: 400; color: var(--ink-dim); }
.field-help { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }

label {
  display: block;
  font-size: 13px;
  color: var(--ink-dim);
  margin: 20px 0 6px;
}

input[type=text], input:not([type]), input[type=email], input[type=password], input[type=url], input[type=date], input[type=file], select, textarea {
  width: 100%;
  background: #0e0f12;
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.file-picker {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #0e0f12;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.file-picker:focus-within { border-color: var(--gold-soft); }
.file-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-picker-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  color: #14100a;
  background: var(--ink);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.file-picker-name {
  min-width: 0;
  color: var(--ink-dim);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.checkbox-row input { margin-top: 3px; }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold), var(--gold-soft));
  color: #14100a;
  border: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 26px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-inline { width: auto; margin: 0; }

.error-box {
  background: rgba(200,90,60,0.12);
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.photo-preview {
  width: 100%;
  border-radius: 10px;
  margin-top: 18px;
  border: 1px solid var(--border);
}

.footer-note {
  text-align: center;
  color: #4d4f55;
  font-size: 11px;
  margin-top: 30px;
  letter-spacing: 0.04em;
}

.credentials-box {
  max-width: 640px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: rgba(200, 168, 98, 0.10);
  color: var(--ink);
  line-height: 1.7;
}

.success-box {
  padding: 10px 14px;
  border: 1px solid var(--success);
  border-radius: 8px;
  color: var(--success);
  background: rgba(65, 140, 90, .12);
  margin: 0 0 18px;
}

.plan-picker { border: 0; padding: 0; margin: 0 0 22px; }
.plan-picker legend { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.plan-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
}
.plan-option:hover { border-color: var(--gold-soft); }
.plan-option input { width: auto; margin-top: 4px; }
.plan-option strong, .plan-option small { display: block; }
.plan-option small { color: var(--ink-dim); margin-top: 4px; line-height: 1.4; }
.plan-option-detailed { align-items: flex-start; }
.plan-option-detailed > span { flex: 1; }
.plan-option-featured {
  position: relative;
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(200, 168, 98, .14), rgba(200, 168, 98, .035));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.plan-option-featured:hover { border-color: var(--gold-soft); box-shadow: 0 12px 32px rgba(200, 168, 98, .12); }
.plan-featured-badge {
  display: inline-block !important;
  margin: 0 0 9px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #17130b !important;
  background: var(--gold);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.plan-option-detailed ul { list-style: none; padding: 0; margin: 12px 0 0; color: var(--ink); font-size: 13px; line-height: 1.55; }
.plan-option-detailed .plan-limits { color: var(--ink-dim); }
.plan-option:has(input:checked) { border-color: var(--gold); background: rgba(200, 168, 98, .08); }
.plan-monthly { color: var(--gold-soft) !important; font-weight: 600; }
.setup-section-title { margin: 28px 0 14px; font-size: 17px; }
.form-separator { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.field-counter { margin-top: -8px; font-size: 12px; }
.plan-notice {
  border-left: 3px solid var(--gold);
  background: rgba(200, 168, 98, .08);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 13px;
  margin: 2px 0 20px;
}
.professional-fields {
  border: 1px solid var(--gold-soft);
  background: rgba(200, 168, 98, .05);
  border-radius: 10px;
  padding: 4px 18px 18px;
  margin: 0 0 24px;
}
.gallery-picker {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 10px;
  background: #0e0f12;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gallery-picker:focus-within { border-color: var(--gold-soft); }
.gallery-picker-copy { color: var(--ink-dim); font-size: 13px; line-height: 1.35; }
.gallery-status { margin: 8px 0 0; font-size: 13px; }
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}
.gallery-preview:empty { display: none; }
.gallery-preview-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 5px;
  background: #0e0f12;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gallery-preview-item img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 5px;
}
.gallery-document-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
  border: 1px dashed var(--gold-soft);
  border-radius: 5px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
}
.gallery-preview-item figcaption {
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-preview-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: #16120a;
  background: var(--gold);
  font-size: 21px;
  line-height: 20px;
  cursor: pointer;
}
.gallery-preview-remove:hover, .gallery-preview-remove:focus-visible { background: var(--gold-soft); }
@media (max-width: 440px) {
  .gallery-picker { align-items: flex-start; flex-direction: column; }
  .gallery-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-preview-item img { height: 78px; }
}

.subscription-active { border-color: var(--success); color: var(--success); }
.subscription-paused { border-color: var(--warn); color: var(--warn); }
.subscription-inactive { border-color: #b96363; color: #df8585; }
.client-wrap { max-width: 760px; }
.client-summary { max-width: 760px; margin-bottom: 18px; }
.client-summary h3 { margin: 0 0 10px; }
.client-card-list { list-style: none; padding: 0; margin: 0; }
.client-card-list li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.client-card-list li:last-child { border-bottom: 0; }
.client-card-list strong, .client-card-list .subtle { display: block; }
.client-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.client-actions .btn { margin: 0; }
@media (max-width: 620px) {
  .client-card-list li { align-items: flex-start; flex-direction: column; gap: 6px; }
  .client-actions { grid-template-columns: 1fr; }
}

/* --- Студия --- */
.studio-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.studio-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 18px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--ink-dim); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
tr:hover td { background: rgba(255,255,255,0.02); }
a { color: var(--gold); text-decoration: none; }
.filters { display: flex; gap: 10px; margin-bottom: 20px; }
.filters select { width: auto; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.form-inline { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.form-inline input, .form-inline select { width: auto; }
code { background: #0e0f12; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
