/* ==================================================
   MY TAP — VERSION 3 DESIGN SYSTEM
   ================================================== */

:root {
  /* Brand colors */
  --mt-primary: #111827;
  --mt-primary-hover: #000000;
  --mt-accent: #f5b700;
  --mt-accent-hover: #dca500;

  /* Page colors */
  --mt-background: #f3f4f6;
  --mt-surface: #ffffff;
  --mt-surface-soft: #f9fafb;

  /* Text */
  --mt-text: #111827;
  --mt-text-muted: #6b7280;
  --mt-border: #e5e7eb;

  /* Feedback */
  --mt-success: #16a34a;
  --mt-danger: #dc2626;

  /* Shape and spacing */
  --mt-radius-small: 10px;
  --mt-radius-medium: 16px;
  --mt-radius-large: 24px;

  /* Shadows */
  --mt-shadow-small:
    0 2px 6px rgba(17, 24, 39, 0.06);

  --mt-shadow-medium:
    0 10px 30px rgba(17, 24, 39, 0.10);

  --mt-shadow-large:
    0 24px 60px rgba(17, 24, 39, 0.16);

  /* Animation */
  --mt-transition: 180ms ease;
}

/* ==================================================
   BASE PAGE
   ================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(245, 183, 0, 0.10),
      transparent 30rem
    ),
    var(--mt-background);

  color: var(--mt-text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
}

/* ==================================================
   CARDS
   ================================================== */

.mt-card {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-large);
  box-shadow: var(--mt-shadow-medium);
  padding: 24px;
}

.mt-card-header {
  margin-bottom: 24px;
}

.mt-card-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.mt-card-description {
  margin: 6px 0 0;
  color: var(--mt-text-muted);
  font-size: 0.95rem;
}

/* ==================================================
   FORM FIELDS
   ================================================== */

.mt-field {
  margin-bottom: 20px;
}

.mt-label {
  display: block;
  margin-bottom: 7px;
  color: var(--mt-text);
  font-size: 0.9rem;
  font-weight: 650;
}

.mt-input,
.mt-select,
.mt-textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-medium);
  background: var(--mt-surface);
  color: var(--mt-text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color var(--mt-transition),
    box-shadow var(--mt-transition),
    background-color var(--mt-transition);
}

.mt-textarea {
  min-height: 110px;
  resize: vertical;
}

.mt-input::placeholder,
.mt-textarea::placeholder {
  color: #9ca3af;
}

.mt-input:focus,
.mt-select:focus,
.mt-textarea:focus {
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.18);
}

/* ==================================================
   STANDARD BUTTONS
   ================================================== */

.mt-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 0;
  border-radius: var(--mt-radius-medium);
  cursor: pointer;

  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 13px 20px;
  text-decoration: none;

  transition:
    transform var(--mt-transition),
    box-shadow var(--mt-transition),
    background-color var(--mt-transition);
}

.mt-button:hover {
  transform: translateY(-2px);
}

.mt-button:active {
  transform: translateY(0) scale(0.98);
}

.mt-button-primary {
  background: var(--mt-primary);
  color: #ffffff;
  box-shadow: var(--mt-shadow-small);
}

.mt-button-primary:hover {
  background: var(--mt-primary-hover);
  box-shadow: var(--mt-shadow-medium);
}

.mt-button-accent {
  background: var(--mt-accent);
  color: #111827;
}

.mt-button-accent:hover {
  background: var(--mt-accent-hover);
}

.mt-button-secondary {
  border: 1px solid var(--mt-border);
  background: var(--mt-surface);
  color: var(--mt-text);
}

.mt-button-secondary:hover {
  background: var(--mt-surface-soft);
}

.mt-button-ghost {
  background: transparent;
  color: var(--mt-text-muted);
}

.mt-button-ghost:hover {
  background: rgba(17, 24, 39, 0.06);
  color: var(--mt-text);
}

.mt-button-full {
  width: 100%;
}

/* ==================================================
   PROFILE LINK BUTTONS
   ================================================== */

.mt-profile-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;

  align-items: center;
  gap: 13px;

  margin-bottom: 12px;
  padding: 10px 15px;

  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;

  background: #ffffff;
  color: var(--mt-text);

  box-shadow:
    0 4px 14px rgba(17, 24, 39, 0.08);

  font-weight: 700;
  text-align: left;
  text-decoration: none;

  overflow: hidden;

  transition:
    transform var(--mt-transition),
    box-shadow var(--mt-transition),
    border-color var(--mt-transition);
}

.mt-profile-link:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow:
    0 10px 24px rgba(17, 24, 39, 0.13);
}

.mt-profile-link:active {
  transform: scale(0.985);
}

.mt-profile-link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  place-items: center;

  border-radius: 13px;
  background: var(--service-color, #111827);
  color: #ffffff;
}

.mt-profile-link-icon svg {
  width: 21px;
  height: 21px;
}

.mt-profile-link-text {
  min-width: 0;
  flex: 1;
}

.mt-profile-link-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mt-profile-link-chevron {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 1.35rem;
  font-weight: 400;
}

/* Service colors */

.mt-cashapp {
  --service-color: #00d632;
}

.mt-venmo {
  --service-color: #008cff;
}

.mt-paypal {
  --service-color: #003087;
}

.mt-zelle {
  --service-color: #6d1ed4;
}

.mt-email {
  --service-color: #4b5563;
}

.mt-website {
  --service-color: #111827;
}

.mt-instagram {
  --service-color: #c13584;
}

.mt-applecash {
  --service-color: #111111;
}

.mt-custom {
  --service-color: #f5b700;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 700px) {
  .mt-card {
    border-radius: 18px;
    padding: 18px;
  }

  .mt-button {
    min-height: 50px;
  }

  .mt-profile-link {
    min-height: 60px;
  }
}
/* ===== Version 3 readability ===== */

.brand h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.brand p {
    color: #cbd5e1;
}

.editor-section h2 {
    color: #ffffff;
}

.editor-section p {
    color: #cbd5e1;
}

label {
    color: #f8fafc;
    font-weight: 600;
}

.field-help {
    color: #94a3b8;
}

}
.preview-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preview-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 36px;
}

.preview-logo {
    width: 140px;
    height: auto;
    display: block;
    margin: 0;
}

#preview-name {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-top: 100px;
}

#preview-message {
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.preview-links {
    margin-top: 0;
}
/* Force preview header into normal stacked layout */
.preview-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
    height: auto !important;
}

.preview-mark {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: auto !important;
    height: auto !important;

    padding: 14px 18px !important;
    margin: 0 !important;

    background: #ffc400 !important;
    border-radius: 22px !important;

    transform: none !important;
}

.preview-logo {
    position: static !important;
    display: block !important;
    width: 140px !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
}

#preview-name {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    color: #ffffff !important;
    z-index: auto !important;
}
/* Shared My Tap logo tile */
.brand-logo-tile {
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
    padding: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        #fac515,
        #f59e0b
    );

    border-radius: 28px;
}

.brand-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}