/* Base Styles */
:root {
    --primary: #009393;
    --primary-hover: #0093939c;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #0b0e11;
    --text-secondary: #707a8a;
    --border-color: #eaecef;
    --success: #02c076;
    --error: #f6465d;
    --radius: 8px;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Simple White Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
}

/* Floating coins animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.coin {
    position: absolute;
    color: rgba(0, 147, 147, 0.2);
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 24px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #009393, #00c5c5);
    height: 100%;
    width: 70%;
    border-radius: 20px;
    position: relative;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 147, 147, 0.5);
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #009393;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eaecef;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-join {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-join:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    line-height: 0; /* Remove extra space below image */
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 48px 32px;
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.card-body {
    padding: 20px;
}

.reward-badge {
    display: inline-block;
    background-color: rgba(38, 161, 123, 0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Footer Styles */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer-copyright {
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    padding: 0 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2f3b;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.social-links i {
    display: block;
    line-height: 1;
}

/* Heading with Logo */
.heading-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.heading-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Notification Styles */
.notification-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.notification-container.show {
    opacity: 1;
    transform: translateY(0);
}

.notification {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #2ecc71;
}

.notification-icon {
    color: #2ecc71;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-text {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification-usdt {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
    }
    
    .social-links {
        gap: 10px;
        padding: 0 15px;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
        margin: 0;
    }
    
    .social-links img {
        width: 20px;
        height: 20px;
    }
}

.reward-amount {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.reward-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    border: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 161, 123, 0.3);
}

.btn-disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.popup-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 161, 123, 0.2);
}

/* Result States */
.result {
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    display: none;
}

.result.success {
    background-color: rgba(2, 192, 118, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.result.error {
    background-color: rgba(246, 70, 93, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        margin: 20px auto;
    }
}
