/* ===== REGISTER PROFILE LAYOUT ===== */

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .register-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.register-left,
.register-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* reuse card look */
.reg-card,
.reg-info-card {
  padding: 14px;
}

.reg-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #f9fafb;
}

/* form rows / fields */

.reg-row {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .reg-row {
    flex-direction: column;
  }
}

.reg-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reg-field label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reg-field input,
.reg-field select,
.reg-field textarea {
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #f9fafb;
}

.reg-field textarea {
  resize: vertical;
  min-height: 120px;
}

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

/* checkbox / radio groups */

.reg-checkbox-group,
.reg-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: #e5e7eb;
}

.reg-checkbox-group label,
.reg-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reg-checkbox-wrap {
  row-gap: 4px;
}

/* rates table in form */

.reg-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}

.reg-rates-table th,
.reg-rates-table td {
  padding: 6px 4px;
  text-align: left;
}

.reg-rates-table thead th {
  border-bottom: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.reg-rates-table tbody tr:nth-child(odd) td {
  background: #020617;
}

.reg-rates-table input {
  width: 100%;
  box-sizing: border-box;
}

/* uploads */

.photo-upload-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.upload-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.photo-upload-box input[type="file"] {
  padding: 8px;
  background: #020617;
}

/* info text */

.reg-info-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #d1d5db;
}

.reg-info-text {
  font-size: 13px;
  color: #d1d5db;
}

/* submit button */

.reg-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.reg-submit-btn:hover {
  background: #be123c;
}

/* ===== SMALL HINT + ERROR STATES (for Username / Password / Email etc.) ===== */

.reg-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

.reg-error-msg {
  font-size: 11px;
  color: #fca5a5;
  margin-top: 4px;
}

.reg-field input.reg-error,
.reg-field select.reg-error,
.reg-field textarea.reg-error {
  border-color: #f87171;
  background-color: rgba(248, 113, 113, 0.06);
}

/* ===== PASSWORD TOGGLE (EYE ICON) ===== */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 34px; /* space for eye icon */
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle .password-eye {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.password-toggle:hover .password-eye {
  color: #e5e7eb;
}

/* ===== UPGRADE PAID PROFILE (EDIT PAGE SIDEBAR) ===== */

.upgrade-card .reg-info-text {
  margin-bottom: 10px;
}

.upgrade-plan {
  border-radius: 12px;
  padding: 10px 11px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 10px;
}

.upgrade-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.upgrade-plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
}

.upgrade-plan-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
}

.upgrade-plan-desc {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 6px;
}

.upgrade-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11px;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.upgrade-duration-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* buttons */

.upgrade-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: #e11d48;
  color: #ffffff;
}

.upgrade-btn:hover {
  background: #be123c;
}

.upgrade-btn--outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #f9fafb;
}

.upgrade-btn--outline:hover {
  border-color: #e11d48;
}

/* subtle plan accent variations */

.upgrade-plan--diamond {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.upgrade-plan--gold .upgrade-plan-tag {
  background: rgba(249, 115, 22, 0.2);
  color: #fed7aa;
}
/* ==== UPGRADE SIDEBAR CARD ==== */

.upgrade-card {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), transparent 55%),
    #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.upgrade-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.current-plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

/* individual plans */

.upgrade-plan {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.upgrade-plan--diamond {
  border-color: #f97316;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.26), transparent 60%),
    #020617;
}

.upgrade-plan--gold {
  margin-top: 10px;
  border-color: rgba(234, 179, 8, 0.7);
  background:
    radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.18), transparent 60%),
    #020617;
}

.upgrade-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.upgrade-plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
}

.upgrade-plan-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 250, 252, 0.3);
  color: #facc15;
}

.upgrade-plan--diamond .upgrade-plan-tag {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.7);
}

.upgrade-plan-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #e5e7eb;
}

/* durations */

.upgrade-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 9px;
  font-size: 12px;
}

.upgrade-duration-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid transparent;
  cursor: pointer;
}

.upgrade-duration-row input[type="radio"] {
  accent-color: #e11d48;
}

/* buttons */

.upgrade-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #e11d48;
  color: #f9fafb;
}

.upgrade-btn:hover {
  background: #be123c;
}

.upgrade-btn--outline {
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.55);
}

.upgrade-btn--outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* free option */

.upgrade-free {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  text-align: center;
}

.upgrade-free-btn {
  margin-top: 4px;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.85);
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}

.upgrade-free-btn:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* small screens: stack header row */
@media (max-width: 640px) {
  .upgrade-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.photo-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}

.photo-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* =========================================
   EDIT PROFILE – PHOTO PREVIEW + SUBMIT
   ========================================= */

/* Row that holds the thumbnails */
.photo-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 18px;
}

/* Individual thumbnail container */
.photo-preview-box {
  position: relative;
  width: 120px;
  min-height: 120px;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  background: var(--surface-soft, #050814);
  border: 1px solid var(--border-subtle, #1e293b);
  box-shadow: var(--shadow-soft, 0 24px 60px rgba(0,0,0,0.65));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thumbnail image */
.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Delete checkbox label */
.photo-preview-box .delete-photo {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--muted, #9ca3af);
  font-size: 11px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid rgba(248, 113, 113, 0.7);
}

.photo-preview-box .delete-photo input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #ef4444;
  cursor: pointer;
}

/* Slight hover feedback */
.photo-preview-box .delete-photo:hover {
  color: #fecaca;
  border-color: #f97373;
}

/* File inputs under previews */
.sp-card.reg-card input[type="file"] {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted, #9ca3af);
}

/* Submit row under the form */
.center-submit {
  margin-top: 28px;
  text-align: center;
}

.center-submit .btn-pill {
  min-width: 220px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .photo-preview-row {
    justify-content: flex-start;
    gap: 10px;
  }

  .photo-preview-box {
    width: 100px;
    min-height: 100px;
  }

  .photo-preview-box .delete-photo {
    font-size: 10px;
    padding: 3px 7px;
  }

  .center-submit {
    margin-top: 24px;
  }

  .center-submit .btn-pill {
    width: 100%;
  }
}
/* SUCCESS BOX ANIMATION */
.reg-success-box {
    margin-top:15px;
    background:#022c22;
    padding:14px 18px;
    border-radius:10px;
    color:#bbf7d0;
    font-size:14px;
    line-height:1.4;
    opacity:0;
    transform: translateY(-8px);
    transition: all .45s ease;
}

.reg-success-box.fade-slide-in.is-visible {
    opacity:1;
    transform: translateY(0);
}
/* Sticky success notification */
.reg-success-box {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -12px);
  z-index: 9999;

  background: #022c22;
  color: #bbf7d0;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 14px;
  line-height: 1.4;
}

.reg-success-box.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Inner layout */
.reg-success-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reg-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #bbf7d0;
  flex-shrink: 0;
}

.reg-success-icon svg {
  width: 18px;
  height: 18px;
}

/* Text + link */
.reg-success-text a {
  color: #ffffff;
  text-decoration: underline;
}

.reg-success-text a:hover {
  text-decoration: none;
}

/* Mobile width */
@media (max-width: 640px) {
  .reg-success-box {
    width: calc(100% - 24px);
    max-width: 480px;
  }
}
