:root {
    --bg-main: #060b13;
    --bg-card: rgba(14, 23, 38, 0.7);
    --primary: #d4af37; /* Gold */
    --primary-hover: #b5952f;
    --secondary: #0a192f;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --border-color: rgba(212, 175, 55, 0.2);
    --error: #ef4444;
    --success: #10b981;
    --whatsapp: #25D366;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.bg-shape {
    position: fixed; /* Fixed prevents shapes from causing scrollbars */
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(6, 11, 19, 0) 70%);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 25, 47, 0.5) 0%, rgba(6, 11, 19, 0) 70%);
    bottom: -200px;
    right: -100px;
}

.container {
    width: 100%;
    max-width: 500px;
    z-index: 1;
    margin: auto; /* Centers when small, aligns top when large */
    padding: 2rem 1rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 130px;
    height: 130px;
    margin-bottom: 1rem;
    border-radius: 50%; /* Circle */
    object-fit: contain;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.portal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.portal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFF;
    text-align: center;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    text-decoration: none;
    margin-top: 1.5rem;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* Join Options */
.join-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.join-options p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.join-buttons {
    display: flex;
    gap: 10px;
}

.btn-outline {
    flex: 1;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* Support Footer */
.support-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.support-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.support-link:hover {
    color: #128c7e;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading .btn-text { display: none; }
.loading .loader { display: block; }

/* Error Section */
.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.error-alert .alert-icon {
    color: var(--error);
    flex-shrink: 0;
    margin-top: 2px;
}

.error-alert p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* CTA Container */
.cta-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

/* Tabs */
.tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.instruction-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Steps for Transfer */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

.step {
    display: flex;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.step-number {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: calc(100% - 36px);
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.tutorial-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: block;
    object-fit: contain;
}

.accent-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.accent-link:hover {
    text-decoration: underline;
}

/* Copy Box */
.copy-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.copy-header {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-copy {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(255,255,255,0.1);
}

.copy-body {
    padding: 12px;
}

.copy-body pre {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--primary);
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #000;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Success Mock State */
.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.status-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

#success-section {
    text-align: center;
}

#success-section h2 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

#success-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .tab-btn {
        font-size: 0.7rem; /* Make text smaller on mobile so it fits side-by-side */
        padding: 0.5rem 0.2rem;
    }
    .join-buttons {
        flex-direction: column;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
