/* All CSS for the affiliate page */
body {
    background-color: #0d111c;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0.25in;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.locker-box {
    margin: 40px auto;
    padding: 0 20px;
}

.locker-box h1 {
    background: linear-gradient(135deg, #8A3B12, #D2691E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.3); /* Changed from rgba(59, 130, 246, 0.3) */
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Changed from rgba(59, 130, 246, 0.1) */
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 59, 18, 0.6); /* Changed to match orange theme */
    box-shadow: 0 0 25px rgba(138, 59, 18, 0.2); /* Changed to match orange theme */
}

.stat-icon {
    font-size: 2.5rem;
    min-width: 60px;
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(135deg, #8A3B12, #CD853F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-content p {
    margin: 0.5rem 0 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.referral-section {
    margin-bottom: 3rem;
}

.referral-section h2 {
    color: #8A3B12;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.referral-link-container {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.3); /* Changed from rgba(59, 130, 246, 0.3) */
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.referral-link-container:hover {
    border-color: rgba(138, 59, 18, 0.6); /* Changed to match orange theme */
    box-shadow: 0 0 25px rgba(138, 59, 18, 0.2); /* Changed to match orange theme */
}

.link-display {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.link-display input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-family: 'Courier New', monospace;
}

.copy-btn, .connect-btn {
    background: #8A3B12;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.copy-btn:hover {
    background: #6B2D0E;
    box-shadow: 0 0 15px rgba(138, 59, 18, 0.4);
}

.social-share {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #1a91da);
}

.social-btn.discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.social-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tier-card {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(138, 59, 18, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 59, 18, 0.6);
    box-shadow: 0 0 30px rgba(138, 59, 18, 0.3);
}

.tier-card.bronze {
    border-color: rgba(205, 127, 50, 0.5);
}

.tier-card.bronze:hover {
    border-color: rgba(205, 127, 50, 0.8);
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.4);
}

.tier-card.silver {
    border-color: rgba(192, 192, 192, 0.5);
}

.tier-card.silver:hover {
    border-color: rgba(192, 192, 192, 0.8);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4);
}

.tier-card.gold {
    border-color: rgba(255, 215, 0, 0.5);
}

.tier-card.gold:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.tier-card.platinum {
    border-color: rgba(229, 228, 226, 0.5);
}

.tier-card.platinum:hover {
    border-color: rgba(229, 228, 226, 0.8);
    box-shadow: 0 0 30px rgba(229, 228, 226, 0.4);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-icon {
    font-size: 2rem;
}

.tier-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.tier-details ul {
    list-style: none;
    padding: 0;
}

.tier-details li {
    padding: 0.5rem 0;
    color: #94a3b8;
    position: relative;
    padding-left: 1.5rem;
}

.tier-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.activity-list {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.3); /* Changed from rgba(59, 130, 246, 0.3) */
    border-radius: 16px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item:hover {
    background: rgba(51, 65, 85, 0.2); /* Changed from rgba(59, 130, 246, 0.1) */
    border-radius: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    transition: all 0.3s ease;
}

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

.activity-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
}

.activity-time {
    color: #94a3b8;
    font-size: 0.8rem;
}

.activity-reward {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wallet-connection-modal, .wallet-modal {
    background-color: #1a202c;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.cancel-btn {
    width: 100%;
    padding: 12px;
    background: none;
    color: #94a3b8;
    border: 1px solid #4a5568;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.how-it-works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.how-it-works-item {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(138, 59, 18, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.how-it-works-item .tier-icon {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    background: linear-gradient(45deg, #1d4ed8, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works-item h3 {
    margin: 0;
}

.wallet-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    background-color: #3b4453;
    border: 1px solid #4a5568;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    text-align: left;
}

.wallet-btn:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wallet-btn img, .wallet-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #e2e8f0;
}

.wallet-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #1a202c;
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 10px;
}

.wallet-modal h2 {
    margin-top: 0;
    text-align: center;
    color: white;
}

.wallet-modal p {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
}

.wallet-modal-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wallet-modal-link {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
}

.wallet-checkbox-label {
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.wallet-checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.wallet-connection-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3b4453;
}

.wallet-connection-modal .modal-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.wallet-connection-modal .close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    font-size: 16px;
    color: #e2e8f0;
}

.modal-body p {
    text-align: left;
    margin-bottom: 20px;
}

.modal-step-list {
    margin-bottom: 20px;
}

.modal-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-step .step-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.modal-step span {
    display: block;
    color: #94a3b8;
}

.modal-step b {
    color: white;
    font-size: 16px;
}

.ledger-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 14px;
}

.ledger-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.connect-btn {
    width: 100%;
}

.cancel-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: none;
    color: #94a3b8;
    border: 1px solid #4a5568;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #334155;
}

/* How It Works hover effects */
.how-it-works-item {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(138, 59, 18, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.how-it-works-item:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 59, 18, 0.8);
    box-shadow: 0 8px 30px rgba(138, 59, 18, 0.4);
    background: rgba(138, 59, 18, 0.15);
}

.how-it-works-item .tier-icon {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    background: linear-gradient(45deg, #1d4ed8, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.how-it-works-item:hover .tier-icon {
    transform: scale(1.1);
    background: linear-gradient(45deg, #8A3B12, #CD853F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works-item h3 {
    margin: 0;
    transition: color 0.3s ease;
}

.how-it-works-item:hover h3 {
    color: #CD853F;
}
