/* =========================================================
   IPTVHR Upute - Apple Glass Theme
   ========================================================= */

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

:root {
  --bg: #eef4fb;
  --text: #1d2939;
  --muted: #667085;
  --border: rgba(148, 163, 184, 0.22);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --blue: #3274ff;
  --cyan: #37c5df;
  --green: #38c172;
  --pink: #e9559c;
  --shadow: 0 22px 55px rgba(24, 39, 75, 0.11);
  --soft-shadow: 0 10px 28px rgba(24, 39, 75, 0.08);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 520px at 8% 8%, rgba(50, 116, 255, 0.17), transparent 62%),
    radial-gradient(760px 460px at 92% 10%, rgba(221, 115, 255, 0.15), transparent 58%),
    radial-gradient(720px 470px at 48% 100%, rgba(58, 211, 168, 0.12), transparent 60%),
    linear-gradient(135deg, #edf4fb 0%, #f9fbfd 48%, #eef3fb 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(44px);
}

body::before {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 110px;
  background: rgba(55, 197, 223, 0.20);
}

body::after {
  width: 460px;
  height: 460px;
  right: -140px;
  top: 60px;
  background: rgba(167, 139, 250, 0.18);
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 30px rgba(24, 39, 75, 0.07);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.site-topbar-inner {
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(24, 39, 75, 0.12);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #344054;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #007aff;
  background: rgba(0, 122, 255, 0.10);
  border-color: rgba(0, 122, 255, 0.16);
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.08);
}

.top-nav a:hover {
  transform: translateY(-1px);
}

.container {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 28px));
  margin: 34px auto;
  padding: 30px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.container > h1:first-child,
.form-section > h1:first-child {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: #172033;
  margin: 0 0 14px;
}

h2 {
  margin: 30px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #1d2939;
}

h3 {
  color: #233044;
  font-size: 1.05rem;
  margin: 0 0 8px;
}

p,
ol,
ul,
li {
  color: #475467;
  line-height: 1.65;
  font-size: 1rem;
}

p {
  margin: 10px 0;
}

ol,
ul {
  padding-left: 1.25rem;
}

li {
  margin: 8px 0;
}

strong {
  color: #007aff;
  font-weight: 800;
}

a {
  color: #007aff;
}

.form-section,
.faq-section,
.payment-info {
  margin: 22px 0;
}

.payment-info,
.faq-item,
.upload-form,
video {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.payment-info {
  padding: 18px 20px;
}

.faq-section {
  display: grid;
  gap: 14px;
}

.faq-section > h1 {
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.faq-item {
  padding: 18px 20px;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  padding: 0;
}

label {
  color: #344054;
  font-weight: 700;
  margin-bottom: 7px;
}

select,
.upload-form input[type="text"],
.upload-form input[type="file"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  margin: 6px 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  color: #344054;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa8b8 50%),
    linear-gradient(135deg, #9aa8b8 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:focus,
.upload-form input:focus {
  border-color: rgba(50, 116, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(50, 116, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.upload-form {
  padding: 22px;
}

.upload-form .form-group {
  margin-bottom: 12px;
}

.submit-button,
.form-button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  padding: 12px 22px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2fc56f 0%, #45d58d 50%, #67ddb0 100%);
  box-shadow: 0 14px 28px rgba(47, 197, 111, 0.20);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.submit-button:hover,
.form-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(47, 197, 111, 0.25);
}

.add-second-code,
.add-third-code {
  cursor: pointer;
  padding: 10px 14px;
  color: #007aff;
  font-weight: 800;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.12);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.add-second-code:hover,
.add-third-code:hover {
  transform: translateY(-1px);
  background: rgba(0, 122, 255, 0.12);
}

.success,
.error {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
}

.success {
  color: #067647;
  background: rgba(47, 197, 111, 0.13);
  border: 1px solid rgba(47, 197, 111, 0.22);
}

.error {
  color: #b42318;
  background: rgba(240, 68, 56, 0.12);
  border: 1px solid rgba(240, 68, 56, 0.22);
}

.hidden {
  display: none;
}

br {
  line-height: 1.2;
}

@media (max-width: 760px) {
  .site-topbar {
    padding: 12px 10px;
  }

  .site-topbar-inner {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .top-nav a {
    flex: 1 1 auto;
  }

  .container {
    width: min(100% - 18px, 920px);
    margin: 16px auto;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .upload-form,
  .faq-item,
  .payment-info {
    border-radius: 18px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  p,
  ol,
  ul,
  li {
    font-size: 0.96rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .top-nav a {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .submit-button,
  .form-button {
    width: 100%;
  }
}
