/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Progressive Loading - Show page immediately with fade-in */
body {
    opacity: 0;
}

body.page-loaded {
    opacity: 1;
}

/* Skeleton loading states for components */
[data-component]:empty {
    min-height: 60px;
    background: linear-gradient(90deg, #1a2633 25%, #243342 50%, #1a2633 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    border: none;
}

.no-highlight{
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0B141B;
    color: white;
    line-height: 1.4;
}

.bottom-nav{
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    border: none;
}

/* Global section padding */
.section-container {
    padding: 0.9375rem 1.5rem;
}

/* Reusable Arrow Icon */
.arrow-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem ;
    background-image: url('../images/profile/subpages/arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ========================================
   TABLET & DESKTOP STYLES
   ======================================== */
@media (min-width: 1920px) {
    body {
        padding-left: 3.078vw !important;
    }
}
@media (min-width: 768px) {
    body {
        padding-left: 61.56px;
    }
    
    .page-content {
        width: 95%;
        margin: auto;
    }
    
    .page-content-smaller {
        width: 70%;
        margin: auto;
    }

    .slideshow-container {
        -webkit-mask-image: linear-gradient(to bottom, #0B141B 0%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, #0B141B 80%, rgba(0,0,0,0) 100%);
    }
}

@media (min-width: 1100px) {
    .page-content {
        width: 90%;
        margin: auto;
    }
    
    .page-content-smaller {
        width: 60%;
        margin: auto;
    }
}

@media (min-width: 1500px) {
    .page-content {
        width: 80%;
        margin: auto;
    }
    
    .page-content-smaller {
        width: 50%;
        margin: auto;
    }
}


/* Desktop Register Modal Styles */
.desktop-register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.desktop-register-modal.active {
    display: flex;
}

.desktop-register-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.desktop-register-modal-content {
    position: relative;
    z-index: 2;
    background: #0B141B;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
}

.desktop-register-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.desktop-register-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile styles - hide modal on mobile, use page instead */
@media (max-width: 767px) {
    .desktop-register-modal {
        display: none !important;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .desktop-register-modal-content {
        max-width: 800px;
        display: flex;
    }
    
    .desktop-register-modal-left {
        flex: 0 0 35%;
        position: relative;
        border-radius: 12px 0 0 12px;
        overflow: hidden;
    }
    
    .desktop-register-modal-left .register-slideshow {
        height: 100%;
        border-radius: 0;
    }
    
    .desktop-register-modal-left .slide-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }
    
    .desktop-register-modal-right {
        flex: 0 0 65%;
        background: #0B141B;
        border-radius: 0 12px 12px 0;
        overflow-y: auto;
    }
    
    .desktop-register-modal-right .register-form-container {
        padding: 2rem 2.5rem;
        margin-top: 0;
        background: #0B141B;
    }
}

/* Register Form Styles (used in modal and register page) */
.register-form-container {
    padding: 2rem 1.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 3;
    margin-top: -23%;
}

.register-form-title {
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.9375rem;
}

/* Register Form Fields */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-form-group {
    position: relative;
}

.register-referral-input {
    margin-top: 0.625rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-form-input {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-family: inherit;
    border: none;
}

.register-form-input:focus {
    outline: none;
    border-color: #00ff88;
}

.register-form-input::placeholder {
    color: #888;
}

/* Register Phone Input with Flag */
.register-phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
}

.register-phone-input-container:focus-within {
    border-color: #00ff88;
}

.register-country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    border-right: 1px solid white;
    cursor: pointer;
    position: relative;
}

.register-country-selector:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.register-country-selector.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.register-country-selector.active .register-country-arrow {
    transform: rotate(180deg);
}

.register-flag-icon {
    width: 1.25rem;
    height: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-country-arrow {
    color: #888;
    font-size: 0.75rem;
}

.register-country-code {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.register-phone-input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 0.875rem;
    padding: 1rem 0 1rem 0.75rem;
    font-family: inherit;
}

.register-phone-input::placeholder {
    color: #888;
}

.register-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0B141B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 12.5rem;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.register-country-option {
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.register-country-option:last-child {
    border-bottom: none;
}

.register-country-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Register Password Input with Eye Icon */
.register-password-input-container {
    position: relative;
}

.register-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 1rem;
    height: 1rem;
    color: white;
}

.register-password-strength {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.125rem;
}

.register-strength-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #888;
    border-radius: 50%;
}

.register-strength-dot.active {
    background-color: #00ff88;
}

/* Register Checkbox Styles */
.register-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 5px 0;
}

.register-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    background-color: white;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-checkbox.checked {
    background-color: #00ff88;
    border-color: #00ff88;
}

.register-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0B141B;
    font-size: 0.75rem;
    font-weight: bold;
}

.register-checkbox-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.register-agreement-link {
    color: #7AFF7A;
}

/* Register Button */
.register-main-btn {
    width: 100%;
    padding: 0.75rem 3.75rem;
    background: #00FF90;
    border: none;
    color: #0B181B;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 174, 0.3), 0 5px 0 #03D59A, inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 10px 0;
    letter-spacing: 0;
    position: relative;
}

.register-main-btn:hover {
    background-color: #00cc66;
}

/* Register Divider */
.register-divider {
    display: flex;
    align-items: center;
    margin: 24px auto;
    color: white;
    font-size: 0.875rem;
    width: 90%;
}

.register-divider::before,
.register-divider::after {
    content: '';
    flex: 1;
    height: 0.125rem;
    background-color: #D9D9D9;
}

.register-divider span {
    padding: 0 1rem;
}

/* Register Social Login Buttons */
.register-social-login {
    display: flex;
    gap: 0.3125rem;
    justify-content: center;
    width: 90%;
    margin: auto;
}

.register-social-btn {
    background-color: rgba(217, 217, 217, 0.1);
    border-radius: 2.89px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-basis: 25%;
}

.register-social-btn:hover {
    background-color: #333;
    border-color: #555;
}

.register-social-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Desktop Login Modal Styles */
.desktop-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.desktop-login-modal.active {
    display: flex;
}

.desktop-login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.desktop-login-modal-content {
    position: relative;
    z-index: 2;
    background: #0B141B;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
}

.desktop-login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.desktop-login-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile styles - hide modal on mobile, use page instead */
@media (max-width: 767px) {
    .desktop-login-modal {
        display: none !important;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .desktop-login-modal-content {
        max-width: 800px;
        display: flex;
    }
    
    .desktop-login-modal-left {
        flex: 0 0 35%;
        position: relative;
        border-radius: 12px 0 0 12px;
        overflow: hidden;
    }
    
    .desktop-login-modal-left .register-slideshow {
        height: 100%;
        border-radius: 0;
    }
    
    .desktop-login-modal-left .slide-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .desktop-login-modal-right {
        flex: 0 0 65%;
        background: #0B141B;
        border-radius: 0 12px 12px 0;
        overflow-y: auto;
    }
    
    .desktop-login-modal-right .register-form-container {
        padding: 2rem 2.5rem;
        margin-top: 0;
        background: #0B141B;
    }
}

