/* MaxDuit — In-app H5 Customer Support */
:root {
  --navy-950: #06122e;
  --navy-900: #0a1f4d;
  --navy-800: #12306e;
  --navy-700: #1a4494;
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #eef3fb;
  --white: #ffffff;
  --gold: #f5c542;
  --gold-deep: #e8a317;
  --wa: #128c7e;
  --wa-deep: #075e54;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  touch-action: manipulation;
}

.support-page {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(1.1rem + var(--safe-top))
    max(1.15rem, var(--safe-right))
    calc(1.25rem + var(--safe-bottom))
    max(1.15rem, var(--safe-left));
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(245, 197, 66, 0.16), transparent 50%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 48%, #0d2a63 100%);
  color: var(--white);
  overscroll-behavior-y: contain;
}

.support-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.support-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.support-brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.support-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.support-tag {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.support-lang {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.support-lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  min-height: 2.1rem;
  min-width: 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.support-lang-btn.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--navy-950);
}

.support-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  margin-inline: auto;
}

.support-hero {
  text-align: center;
  margin-bottom: 1.6rem;
}

.support-hero-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1.2rem;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  box-shadow:
    0 0 0 6px rgba(245, 197, 66, 0.16),
    0 14px 28px rgba(232, 163, 23, 0.28);
}

.support-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.support-hero p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
  margin-inline: auto;
}

.support-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1.05rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.support-card-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.support-card--mail .support-card-icon {
  background: rgba(26, 68, 148, 0.1);
  color: var(--navy-700);
}

.support-card--phone .support-card-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.support-card--phone .support-copy {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.support-card--wa .support-card-icon {
  background: rgba(18, 140, 126, 0.12);
  color: var(--wa);
}

.support-card-body {
  min-width: 0;
}

.support-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.support-card-value-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.support-card-value {
  display: block;
  min-width: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  word-break: break-word;
}

.support-card-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.support-copy {
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(10, 31, 77, 0.07);
  color: var(--navy-700);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.support-copy:active {
  transform: scale(0.92);
}

.support-card--wa .support-copy {
  color: var(--wa-deep);
  background: rgba(18, 140, 126, 0.12);
}

.support-copy .icon-check {
  display: none;
}

.support-copy.is-copied {
  color: #15803d;
  background: rgba(21, 128, 61, 0.14);
}

.support-copy.is-copied .icon-copy {
  display: none;
}

.support-copy.is-copied .icon-check {
  display: block;
}

.support-hours {
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.support-hours strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}

.support-hours p:nth-child(2),
.support-hours p:last-child {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.support-hours p:nth-child(2) {
  margin-bottom: 0.2rem;
}

@media (min-width: 480px) {
  .support-page {
    padding-inline: 1.5rem;
  }

  .support-card {
    padding: 1.15rem 1.15rem;
  }
}
