/* Professional graphics layer — E HOTLING */

/* Typography */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Hero (home & inner pages) ===== */
.header-hero {
    padding: 3rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.header-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.header-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-hero .header-content {
    text-align: left;
}

.header-hero .header-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.header-hero .header-content p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.hero-btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Trust / feature strip */
.trust-strip {
    background: white;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06);
}

.trust-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
}

.trust-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.trust-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.trust-item strong {
    display: block;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.trust-item span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Decorative wave band */
.graphics-wave-band {
    background: linear-gradient(180deg, #faf8ff 0%, #f5f3ff 100%);
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.graphics-wave-band svg {
    width: 100%;
    height: 48px;
    display: block;
}

/* Service cards — graphic accent */
.card-graphic-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.35;
    pointer-events: none;
}

.card.has-accent {
    padding-top: 2.25rem;
}

/* Section with side illustration */
.section-with-graphic {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.section-graphic-mini {
    width: 120px;
    height: 120px;
    opacity: 0.9;
}

.section-graphic-mini svg {
    width: 100%;
    height: 100%;
}

/* Page banner (inner pages) */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d28d9 50%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -100px;
    right: -80px;
}

.page-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.page-banner-text h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.page-banner-text p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.page-banner-graphic {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.page-banner-graphic svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

/* Auth split layout */
.auth-split {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 2rem;
    align-items: stretch;
    min-height: calc(100vh - 180px);
}

.auth-illustration-panel {
    background: linear-gradient(160deg, #5b21b6 0%, #7c3aed 40%, #a78bfa 100%);
    border-radius: 20px 0 0 20px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-illustration-panel::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -60px;
    right: -60px;
}

.auth-illustration-panel h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.auth-illustration-panel p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    position: relative;
}

.auth-illustration-svg {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.2));
}

.auth-split .auth-card {
    border-radius: 0 20px 20px 0;
    max-width: none;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.auth-feature-list {
    list-style: none;
    position: relative;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.auth-feature-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Floating shapes (subtle) */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.shape-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation: shapeDrift 8s ease-in-out infinite; }
.shape-2 { width: 40px; height: 40px; bottom: 25%; right: 15%; animation: shapeDrift 6s ease-in-out infinite reverse; }
.shape-3 { width: 60px; height: 60px; top: 60%; left: 5%; animation: shapeDrift 10s ease-in-out infinite 1s; }

@keyframes shapeDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -15px); }
}

/* About section graphic */
.about-graphic-wrap {
    max-width: 200px;
    margin: 0 auto 1.5rem;
}

.about-graphic-wrap svg {
    width: 100%;
    height: auto;
}

@media (max-width: 968px) {
    .header-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-hero .header-content {
        text-align: center;
    }

    .header-hero .header-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .trust-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-illustration-panel {
        border-radius: 20px 20px 0 0;
        padding: 2rem;
    }

    .auth-split .auth-card {
        border-radius: 0 0 20px 20px;
    }

    .page-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .section-with-graphic {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-graphic-mini {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .trust-strip-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== Referral card ===== */
.referral-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.12);
    border: 2px solid var(--light-color);
}

.referral-login-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-color);
    border-radius: 12px;
    font-size: 1.1rem;
}

.referral-hint {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.referral-link-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.referral-link-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 16px;
    border: 2px solid var(--light-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: monospace;
    background: #f9f7ff;
}

.referral-copy-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.referral-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.referral-copy-msg {
    text-align: center;
    color: #10b981;
    font-weight: 600;
    min-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.referral-share-title,
.referral-list-title {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.15rem;
}

.referral-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.referral-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: transform 0.2s;
}

.referral-share-btn:hover {
    transform: translateY(-2px);
}

.referral-share-whatsapp { background: #25d366; }
.referral-share-facebook { background: #1877f2; }
.referral-share-telegram { background: #0088cc; }
.referral-share-twitter { background: #000; }
.referral-share-email { background: #6b7280; }

.referral-reward-rule {
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(124, 58, 237, 0.1));
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.referral-stats {
    margin: 2rem 0 1rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.referral-stat {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.15));
    border-radius: 12px;
}

.referral-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.referral-stat-label {
    font-size: 0.9rem;
    color: #666;
}

.referral-list {
    border: 2px solid var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.referral-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.referral-list-item-4 {
    grid-template-columns: 0.8fr 1fr 1fr 1fr;
}

.referral-list-item:last-child {
    border-bottom: none;
}

.referral-list-item:nth-child(odd) {
    background: #fafafa;
}

.referral-list-header {
    font-weight: 700;
    background: var(--light-color) !important;
    color: var(--primary-color);
}

.referral-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.referral-card-admin {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.referral-admin-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.referral-admin-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.referral-admin-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 600px) {
    .referral-list-item {
        grid-template-columns: 1fr;
    }
}
