: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;
}

.header::after {
    content: 'PRIVATE TRADING COMMUNITY';
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(212, 175, 55, 0.06);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

/* 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);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--primary);
    color: #000000 !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-outline:visited {
    color: var(--primary) !important;
}

.btn-outline:visited:hover {
    color: #000000 !important;
}

/* Join Options (Sleek, Compact & Elegant RHFX Gold Theme) */
.join-options {
    margin-top: 1.4rem;
    padding-top: 0.5rem;
    text-align: center;
}

.join-divider {
    position: relative;
    text-align: center;
    margin-bottom: 12px;
}

.join-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.join-divider span {
    position: relative;
    z-index: 2;
    background: #11151e;
    padding: 0 12px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
}

.join-headline-wrap {
    margin-bottom: 12px;
}

.join-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    margin-bottom: 3px;
}

.join-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.highlight-gold {
    color: var(--primary);
    font-weight: 700;
}

.join-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.join-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    outline: none;
    box-sizing: border-box;
}

.card-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.25s ease;
}

.card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-headline {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.card-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.join-action-card:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.join-action-card:hover .card-icon-wrap {
    background: var(--primary);
    color: #000;
}

.join-action-card:hover .card-headline {
    color: var(--primary);
}

.join-action-card:hover .card-subtext {
    color: #cbd5e1;
}

@media (max-width: 480px) {
    .join-cards-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* 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);
}

#login-section .support-footer {
    display: none;
}

.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);
}

.social-contact {
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.social-heading {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.social-subheading {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.7rem 0.6rem;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.5);
}

.social-card svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.social-card span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.social-card strong,
.social-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card strong { font-size: 0.75rem; }
.social-card small { color: var(--text-muted); font-size: 0.65rem; }
.social-whatsapp { color: #25d366; }
.social-telegram { color: #2aabee; }
.social-tiktok { color: #f0f4f8; }

/* 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.75rem 0.5rem;
    font-size: 0.84rem;
    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;
}

.journey-heading {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.journey-heading h3 {
    color: var(--text-main);
    font-size: 1.12rem;
    margin-bottom: .35rem;
}

.journey-heading .instruction-text strong,
.step-content > p strong {
    color: var(--primary);
}

.journey-heading .instruction-text {
    margin-bottom: 0;
}

.journey-heading-left {
    text-align: left;
}

.tutorial-details {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tutorial-details[open] {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.2);
}

.tutorial-details summary {
    padding: 10px 14px;
    color: #ffd700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(20, 24, 33, 0.8) 100%);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
    outline: none;
    transition: all 0.25s ease;
}

.tutorial-details summary::-webkit-details-marker,
.tutorial-details summary::marker {
    display: none;
}

.tutorial-details summary:hover {
    background: rgba(212, 175, 55, 0.25);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.tutorial-details[open] summary {
    background: var(--primary);
    color: #000000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.tutorial-details summary .tutorial-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-details summary .tutorial-chevron {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
    font-weight: 800;
    color: currentColor;
}

.tutorial-details[open] .tutorial-img {
    margin: 0;
    border: 0;
    border-radius: 0;
}

/* Back to Home Button in Tutorial Section */
.btn-back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.btn-back-home:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    color: #ffd700;
    transform: translateY(-1px);
}

.valetax-register-embed {
    width: 100%;
    margin-top: .85rem;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 10px;
    background: #fff;
}

.valetax-register-embed iframe {
    display: block;
    width: 100%;
    min-height: 490px;
    border: 0;
}

.valetax-fallback-link {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: .7rem;
    text-decoration: none;
}

.registration-followup,
.link-registration-option {
    margin-top: .85rem;
    padding: .85rem;
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 9px;
    background: rgba(212,175,55,.05);
}

.registration-followup strong,
.link-registration-option strong {
    color: var(--primary);
    font-size: .88rem;
}

.registration-followup p,
.link-registration-option p {
    margin: .35rem 0;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.45;
}

.registration-followup a {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}

.method-divider {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1rem 0 .85rem;
    color: var(--text-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.method-divider::before,
.method-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(255,255,255,.1);
}

.valetax-link-button {
    display: flex;
    margin-top: .65rem;
    padding: .72rem;
    text-decoration: none;
    font-size: .85rem;
}

.link-registration-option small {
    display: block;
    margin-top: .55rem;
    color: var(--text-muted);
    font-size: .72rem;
    line-height: 1.4;
}

.registration-methods {
    display: flex;
    flex-direction: column;
}

.registration-method-divider { order: 1; }
.registration-link-first { order: 2; }
.registration-form-divider { order: 3; }
.registration-form-intro { order: 4; }
.registration-form-embed { order: 5; }
.registration-form-fallback { order: 6; }
.registration-form-followup { order: 7; }

.tutorial-img {
    cursor: zoom-in;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tutorial-img:hover {
    opacity: 0.95;
}

.tutorial-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.tutorial-lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #fff;
}

.tutorial-lightbox::after {
    content: '✕ Klik di mana saja untuk menutup';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    pointer-events: none;
}

/* 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;
}

/* Deposit Summary Box (Clean, Cohesive & Modern Card) */
.deposit-summary-box {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.deposit-summary-box:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.06);
}

.deposit-header-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.deposit-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Copy Box */
.copy-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    transition: border-color 0.2s;
}

.copy-box:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

.mt-3 { margin-top: 0.85rem; }
.mt-4 { margin-top: 1.25rem; }

.copy-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 7px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.copy-body {
    padding: 10px 12px;
}

.copy-body pre {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    color: #f8fafc;
    white-space: pre-wrap;
    line-height: 1.55;
    margin: 0;
}

/* 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);
}

.status-icon.pending {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
}

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

#pending-section h2 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

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

#pending-section .pending-note {
    margin-bottom: 1.25rem;
}

#pending-section .btn-whatsapp {
    display: inline-flex;
    text-decoration: none;
}

#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-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* 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;
}

.registration-request-form {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.05);
}

.registration-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.registration-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.registration-pending {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 12px;
    background: rgba(37, 211, 102, 0.08);
    color: var(--text-main);
}

.registration-pending p {
    color: var(--text-muted);
    line-height: 1.5;
}

.registration-pending .btn-whatsapp {
    display: inline-flex;
    text-decoration: none;
    margin-top: 0.5rem;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 767px) {
    .container {
        padding: 0.8rem 0.7rem;
    }

    #login-section {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }

    #login-section .social-contact {
        order: initial;
        margin-top: 1.2rem;
        margin-bottom: 0;
        padding-top: 1rem;
        padding-bottom: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        border-bottom: 0;
    }

    .header {
        margin-bottom: 1rem;
    }

    /* The Valetax form has a minimum internal width on mobile. Give the
       iframe that room, then scale it back into the card so the CAPTCHA
       remains fully visible without horizontal page scrolling. */
    .valetax-register-embed {
        height: 500px;
    }

    .valetax-register-embed iframe {
        width: 125%;
        max-width: none;
        height: 620px;
        transform: scale(.8);
        transform-origin: top left;
    }

    .logo {
        width: 88px;
        height: 88px;
        margin-bottom: 0.45rem;
    }

    .portal-title {
        font-size: 1.15rem;
    }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
    }

    .social-card {
        flex-direction: column;
        justify-content: center;
        gap: 0.3rem;
        min-height: 62px;
        padding: 0.4rem 0.2rem;
        text-align: center;
    }

    .social-card svg {
        width: 17px;
        height: 17px;
    }

    .social-card::after {
        margin-left: 0;
        align-self: auto;
    }

    .social-card strong {
        font-size: 0.68rem;
    }

    .social-card small {
        font-size: 0.56rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
