/* Referral Join Landing Page Styles */

@font-face {
    font-family: 'SpoqaHanSansNeo-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SpoqaHanSansNeo-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'SpoqaHanSansNeo-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

.referral-join-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text .shorts {
    color: #ff6b00;
}

.logo-text .craft {
    color: #fff;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b00;
}

.nav-link:hover svg,
.nav-link.active svg {
    stroke: #ff6b00;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn,
.dashboard-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.2);
    text-decoration: none;
}

.login-btn:hover,
.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 0, 0.3);
    border-top-color: #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    background: radial-gradient(ellipse at center top, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ff6b00;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #fff;
}

.hero-title .highlight {
    color: #ff6b00;
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
}

.hero-subtitle strong {
    color: #ff6b00;
}

/* Referral Start Button */
.referral-start-btn {
    margin-top: 32px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    padding: 18px 48px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.referral-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

/* Partner Payment Text */
.partner-payment-text {
    margin-top: 32px;
    font-size: 1.5rem;
    color: #aaa;
    font-weight: 600;
}

/* Hero Image */
.hero-image-container {
    margin-top: 40px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.hero-referral-image {
    max-width: 100%;
    width: 900px;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Stats Section */
.stats-section {
    padding: 40px 20px 80px;
    display: flex;
    justify-content: center;
}

.stats-card {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.02));
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    padding: 24px 48px;
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #888;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    stroke: #888;
}

.benefit-icon.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 140, 0, 0.1));
}

.benefit-icon.highlight svg {
    stroke: #ff6b00;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

/* Join CTA Text */
.join-cta-text {
    text-align: center;
    font-size: 1.3rem;
    color: #ff6b00;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Terms Section */
.terms-section {
    padding: 60px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.terms-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
}

.terms-content {
    padding: 32px;
    max-height: 400px;
    overflow-y: auto;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terms-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 3px;
}

.terms-item {
    margin-bottom: 28px;
}

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

.terms-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-item ul {
    list-style: none;
    padding: 0;
}

.terms-item li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.terms-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #ff6b00;
    border-radius: 50%;
}

.terms-item li strong {
    color: #ff6b00;
}

.terms-footer {
    background: rgba(255, 107, 0, 0.05);
    border-top: 1px solid rgba(255, 107, 0, 0.2);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #ff6b00;
    cursor: pointer;
}

.terms-checkbox span {
    font-size: 0.95rem;
    color: #fff;
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.cta-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 0, 0.5);
}

.cta-button:disabled {
    background: #333;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-line.open:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-line.open:nth-child(2) {
    opacity: 0;
}

.hamburger-line.open:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
}

.mobile-nav-link:hover svg,
.mobile-nav-link.active svg {
    stroke: #ff6b00;
}

.mobile-user-section {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-login-btn,
.mobile-dashboard-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
}

/* Desktop Only */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .nav-center {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .hero-section {
        padding: 50px 16px 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-section {
        padding: 20px 16px 50px;
    }

    .stats-card {
        padding: 20px 30px;
    }

    .stat-item .stat-value {
        font-size: 1.5rem;
    }

    .benefits-section {
        padding: 40px 16px 60px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    .terms-section {
        padding: 40px 16px 60px;
    }

    .terms-content {
        padding: 24px 20px;
        max-height: 350px;
    }

    .terms-footer {
        padding: 20px;
    }

    .cta-button {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
}

/* Terms Modal */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terms-modal {
    background: #111;
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.terms-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.terms-modal-close svg {
    stroke: #888;
    transition: stroke 0.2s ease;
}

.terms-modal-close:hover svg {
    stroke: #fff;
}

.terms-modal-content {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.terms-modal-content::-webkit-scrollbar {
    width: 6px;
}

.terms-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terms-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 3px;
}

.terms-modal-footer {
    background: rgba(255, 107, 0, 0.05);
    border-top: 1px solid rgba(255, 107, 0, 0.2);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 0 0 24px 24px;
}

/* Mobile Terms Modal */
@media (max-width: 768px) {
    .terms-modal {
        max-height: 90vh;
    }

    .terms-modal-header {
        padding: 20px;
    }

    .terms-modal-header h2 {
        font-size: 1.1rem;
    }

    .terms-modal-content {
        padding: 20px;
    }

    .terms-modal-footer {
        padding: 20px;
    }

    .referral-start-btn {
        padding: 16px 36px;
        font-size: 1.1rem;
    }

    .partner-payment-text {
        font-size: 1.2rem;
    }
}

