/* ======================================================
   Sarekam CSS — refer-earn.css
   Extracted from index.html | Phase 1 Refactor
   DO NOT add styles from other sections to this file.
   ====================================================== */

.refer-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.25); z-index: 4400;
    opacity: 0; transition: opacity 0.3s;
}
.refer-backdrop.active { opacity: 1; }
.refer-overlay {
    position: fixed;
    top: 0; right: 0;
    width: 420px; max-width: 100%;
    height: 100%;
    background: #f7f7fb;
    z-index: 4500;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1);
    overflow: hidden;
}
.refer-overlay.active { transform: translateX(0); }
.refer-header {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 52px 20px 16px;
    background: #fff; flex-shrink: 0;
    border-bottom: 1.5px solid #f0f0f0;
}
.refer-back-btn {
    background: none; border: none; cursor: pointer;
    color: #1c1c1c; font-size: 1.1rem;
    padding: 4px 6px 0 0; margin-top: 2px; flex-shrink: 0;
}
.refer-title-wrap { display: flex; flex-direction: column; }
.refer-title { font-size: 22px; font-weight: 900; color: #1c1c1c; margin: 0 0 6px; }
.refer-underline { width: 44px; height: 3px; background: #7c3aed; border-radius: 2px; }

.refer-body {
    flex: 1; overflow-y: auto; padding: 20px 18px 0;
}
.refer-body::-webkit-scrollbar { width: 4px; }
.refer-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

/* Hero */
.refer-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 60%, #4c1d95 100%);
    border-radius: 20px; padding: 30px 24px;
    text-align: center; margin-bottom: 18px;
    box-shadow: 0 8px 32px rgba(124,58,237,0.28);
}
.refer-hero-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 2rem; color: #fff;
    animation: refer-pulse 2.4s ease-in-out infinite;
}
@keyframes refer-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
.refer-hero-title {
    font-size: 19px; font-weight: 900; color: #fff; margin: 0 0 8px;
}
.refer-hero-sub {
    font-size: 13px; color: rgba(255,255,255,0.82); margin: 0; line-height: 1.5;
}

/* Code card */
.refer-code-card {
    background: #fff; border-radius: 16px;
    border: 2px dashed #c4b5fd;
    padding: 18px 20px; margin-bottom: 14px;
    text-align: center;
}
.refer-code-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    color: #9ca3af; margin-bottom: 10px;
}
.refer-code-row {
    display: flex; align-items: center;
    justify-content: center; gap: 14px;
}
.refer-code-text {
    font-size: 26px; font-weight: 900;
    color: #7c3aed; letter-spacing: 3px;
    font-family: monospace;
}
.refer-copy-btn {
    background: #ede9fe; border: none; cursor: pointer;
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #7c3aed; font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
}
.refer-copy-btn:hover { background: #ddd6fe; transform: scale(1.08); }
.refer-copy-btn.copied { background: #d1fae5; color: #059669; }

/* Share button */
.refer-share-btn {
    width: 100%; padding: 14px;
    background: #1c1c1c; color: #fff;
    border: none; border-radius: 14px;
    font-size: 15px; font-weight: 800;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 22px;
    transition: transform 0.15s, background 0.2s;
}
.refer-share-btn:hover { background: #2d2d2d; transform: scale(1.01); }
.refer-share-btn:active { transform: scale(0.98); }

/* How it works */
.refer-how {
    background: #fff; border-radius: 16px;
    padding: 20px; margin-bottom: 16px;
}
.refer-how-title {
    font-size: 15px; font-weight: 900; color: #1c1c1c;
    margin-bottom: 18px;
}
.refer-step {
    display: flex; align-items: flex-start; gap: 14px;
    padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 1px solid #f3f3f3;
}
.refer-step:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.refer-step-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #ede9fe; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    font-size: 1rem; color: #7c3aed;
}
.refer-step-name { font-size: 14px; font-weight: 800; color: #1c1c1c; margin-bottom: 3px; }
.refer-step-desc { font-size: 12px; color: #888; line-height: 1.4; }

/* Earnings card */
.refer-earnings {
    background: #fff; border-radius: 16px;
    border: 1.5px solid #ede9fe;
    padding: 20px; margin-bottom: 6px;
}
.refer-earn-title {
    font-size: 15px; font-weight: 900; color: #1c1c1c; margin-bottom: 16px;
}
.refer-earn-row { display: flex; align-items: center; justify-content: space-around; }
.refer-earn-item { text-align: center; flex: 1; }
.refer-earn-val { font-size: 28px; font-weight: 900; color: #7c3aed; line-height: 1; margin-bottom: 6px; }
.refer-earn-lbl { font-size: 11px; color: #888; font-weight: 600; }
.refer-earn-divider { width: 1px; height: 48px; background: #ede9fe; flex-shrink: 0; }

/* ======================================================
   COMING SOON OVERLAY — shared by Refer & Earn + Vouchers
   ====================================================== */
.cs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}
.cs-back-btn {
    position: absolute;
    top: 52px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1c1c1c;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: background 0.18s, transform 0.15s;
    z-index: 10;
}
.cs-back-btn:hover  { background: #f3f4f6; transform: scale(1.08); }
.cs-back-btn:active { transform: scale(0.95); }
.cs-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    max-width: 320px;
    width: 100%;
    border: 1.5px solid rgba(255,255,255,0.8);
}
.cs-rocket {
    font-size: 52px;
    display: block;
    margin-bottom: 16px;
    animation: cs-bounce 1.8s ease-in-out infinite;
}
@keyframes cs-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.cs-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.cs-title {
    font-size: 22px;
    font-weight: 900;
    color: #1c1c1c;
    margin: 0 0 10px;
    line-height: 1.2;
}
.cs-desc {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.55;
    margin: 0 0 24px;
}
.cs-notify-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}
.cs-notify-btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.cs-notify-btn:active { opacity: 0.8;  transform: scale(0.98); }

