/* Empfehlungsseite – zweispaltig + Einladungscode */

.referral-hero.program-hero {
    min-height: min(58vh, 480px);
}

.referral-proof {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.referral-proof li {
    font-size: 0.75rem;
    font-weight: 750;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #e0f2fe;
}

.referral-split-section {
    padding-top: 2.5rem;
}
.referral-split {
    display: grid;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 960px) {
    .referral-split {
        grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
        gap: 2.5rem;
    }
}
.referral-aside {
    order: -1;
}
@media (min-width: 960px) {
    .referral-aside {
        order: 0;
        position: sticky;
        top: 6.5rem;
    }
}

.referral-duo {
    display: grid;
    gap: 1rem;
}
@media (min-width: 700px) {
    .referral-duo {
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
        gap: 1rem;
    }
}
.referral-duo-card {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    padding: 1.25rem 1.1rem 1.35rem;
    box-shadow: 0 14px 32px -26px rgba(37, 99, 235, 0.5);
}
.referral-duo-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.referral-duo-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}
.referral-duo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.4rem;
    margin-bottom: 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(145deg, #1d4ed8, #06b6d4);
}
.referral-duo-plus {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #38bdf8;
}
@media (min-width: 700px) {
    .referral-duo-plus { display: flex; }
}

.referral-flow--stack {
    display: grid;
    gap: 0.65rem;
}
@media (min-width: 700px) {
    .referral-flow--stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.referral-flow-step {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 1.1rem;
    padding: 1.05rem 1rem 1.15rem;
}
.referral-flow-num {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 850;
    color: #fff;
    background: linear-gradient(145deg, #1d4ed8, #0891b2);
}
.referral-flow-step h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.referral-flow-step p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.referral-reasons--stack {
    display: grid;
    gap: 0.75rem;
}
.referral-reason {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.1rem;
    padding: 1.1rem 1.05rem 1.2rem;
}
.referral-reason-num {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    color: #06b6d4;
}
.referral-reason h3 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
}
.referral-reason p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
}

.referral-faq {
    display: grid;
    gap: 0.65rem;
}
.referral-faq details {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
}
.referral-faq summary {
    cursor: pointer;
    font-weight: 750;
    color: #0f172a;
    list-style: none;
}
.referral-faq summary::-webkit-details-marker { display: none; }
.referral-faq summary::after {
    content: '+';
    float: right;
    color: #2563eb;
    font-weight: 800;
}
.referral-faq details[open] summary::after { content: '−'; }
.referral-faq p {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

/* Sticky invite card */
.referral-invite-card {
    background: var(--glass-milk-bg, #fff);
    backdrop-filter: var(--glass-milk-blur, blur(18px));
    -webkit-backdrop-filter: var(--glass-milk-blur, blur(18px));
    border: var(--glass-milk-border, 1px solid #bfdbfe);
    border-radius: 1.5rem;
    padding: 1.35rem 1.2rem 1.45rem;
    box-shadow: var(--glass-milk-shadow, 0 22px 48px -28px rgba(15, 23, 42, 0.4));
}
.referral-share-label {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}
.referral-code {
    margin: 0 0 1.1rem;
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    font-weight: 850;
    letter-spacing: 0.14em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.referral-invite-lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
}
.referral-link-box {
    margin-bottom: 0.85rem;
}
.referral-link-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 0.8rem;
    color: #0f172a;
    word-break: break-all;
}
.referral-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.referral-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.referral-btn:hover { transform: translateY(-1px); }
.referral-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.referral-btn--block { width: 100%; margin-top: 0.35rem; }
.referral-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.65);
}
.referral-btn--ghost {
    color: #1e3a5f;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.referral-btn--soft {
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.referral-hint {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}
.referral-copied {
    display: none;
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
}
.referral-copied.is-on { display: block; }
.referral-reset {
    display: block;
    margin: 0.9rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.referral-invite-form {
    display: grid;
    gap: 0.75rem;
}
.referral-field {
    display: grid;
    gap: 0.3rem;
}
.referral-field span {
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.referral-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
}
.referral-field input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    border-color: #93c5fd;
}
.referral-field-note {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
.referral-form-error {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 650;
}

.referral-cta-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

/* Chính sách / Richtlinie */
.referral-policy-block {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 44, 58, 0.1);
  background: #fff;
}
.referral-policy-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.referral-policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.referral-policy-table th,
.referral-policy-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(15, 44, 58, 0.08);
  vertical-align: top;
}
.referral-policy-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.referral-policy-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}
.referral-policy-list li { margin: 0.35rem 0; }
.referral-policy-note {
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.8;
}

/* Materialpaket / Bộ công cụ */
.referral-kit-section { padding-top: 0; }
.referral-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.referral-kit-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 44, 58, 0.1);
  background: #fff;
}
.referral-kit-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}
.referral-kit-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  opacity: 0.75;
}
.referral-kit-text {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  border: 1px solid rgba(15, 44, 58, 0.08);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 12rem;
  overflow: auto;
}
.referral-kit-card .referral-btn { align-self: flex-start; }
.referral-kit-copied {
  font-size: 0.8rem;
  font-weight: 650;
  color: #047857;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.referral-kit-copied.is-on { opacity: 1; }
.referral-kit-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}
.referral-kit-stats div {
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 44, 58, 0.08);
}
.referral-kit-stats dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.referral-kit-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.referral-kit-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.referral-kit-qr img {
  width: 200px;
  height: 200px;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 44, 58, 0.08);
  background: #fff;
}
