* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ffffff;
    overflow: hidden;
}

.phone-container {
    width: 100vw;
    height: 100vh;
    background-color: #2b2b2b;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- SPLASH / INTRO SCREEN --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.splash-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.splash-card-wrapper {
    width: 320px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    animation: delayedCardPop 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.base-card {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
}

.overlay-img {
    position: absolute;
    width: 130px;
    height: auto;
    z-index: 3;
}

@keyframes delayedCardPop {
    0% {
        transform: translateY(40px) scale(0.85);
        opacity: 0;
    }
    40% {
        transform: translateY(40px) scale(0.85);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Common Form Controls */
.input-group {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: none;
    border-radius: 30px;
    background-color: #363636;
    font-size: 16px;
    outline: none;
    color: #e0e0e0;
}

.input-group input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

.btn-primary {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(135deg, #f7ebd0, #efdbb2); 
    color: #1a1a1a;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(247, 235, 208, 0.15);
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background-color: #3f3f46;
    color: #a1a1aa;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- LOGIN SCREEN --- */
#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 450px;
    margin: 0 auto;
    justify-content: flex-start;
    padding-top: 40px;
}

.logo-box {
    margin-top: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.logo-box img {
    width: 160px;
    height: auto;
}

.login-options {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    padding: 0 10px;
    margin-bottom: 25px;
    font-size: 15px;
}

.login-options a {
    color: #efdbb2;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* Circular Checkbox with Blue Tick when checked */
.checkbox-label input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #efdbb2;
    border-radius: 50%;
    margin-right: 8px;
    outline: none;
    position: relative;
    cursor: pointer;
    background-color: #363636;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #ffffff;
    position: absolute;
}

.privacy-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin-bottom: 15px;
    font-size: 14px;
}

.privacy-row a {
    color: #3b82f6; 
    text-decoration: underline;
    margin-left: 4px;
}

.forget-password {
    margin-top: 25px;
    color: #efdbb2;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    display: block;
}

.version-tag {
    position: absolute;
    bottom: 20px;
    right: 25px;
    color: #8c8c8c;
    font-size: 13px;
}

/* --- REGISTER / FORGOT SCREEN --- */
#register-screen, #forgot-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 450px;
    margin: 0 auto;
    justify-content: flex-start;
    padding-top: 30px;
}

.reg-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.reg-header .back-btn {
    position: absolute;
    left: 0;
    color: #efdbb2;
    font-size: 24px;
    cursor: pointer;
}

.reg-header h2 {
    color: #efdbb2;
    font-size: 22px;
    font-weight: 600;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 30px;
    background-color: #363636;
    padding: 0 20px;
    margin-bottom: 18px;
}

.phone-input-wrapper i {
    color: #8c8c8c;
    font-size: 18px;
    margin-right: 15px;
}

.country-code {
    color: #efdbb2;
    font-weight: 600;
    font-size: 16px;
    padding-right: 15px;
    border-right: 1px solid #484848;
}

.phone-input-wrapper input {
    width: 100%;
    padding: 16px 0 16px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #e0e0e0;
}

.phone-input-wrapper input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

.otp-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
}

.otp-wrapper input {
    padding-right: 110px;
}

.send-otp-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f7ebd0, #efdbb2);
    color: #1a1a1a;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    height: 36px;
}

.send-otp-btn:hover {
    opacity: 0.9;
}

.send-otp-btn:disabled {
    cursor: not-allowed;
}

.send-otp-btn.timer-active {
    background-color: #3f3f46 !important;
    color: #a1a1aa !important;
    cursor: not-allowed;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(26, 26, 26, 0.3);
    border-radius: 50%;
    border-top-color: #1a1a1a;
    animation: spin 0.8s ease-in-out infinite;
}

.timer-text {
    text-align: center;
    color: #efdbb2;
    font-size: 14px;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}

.timer-text.active {
    display: block;
}

/* --- VERIFICATION POPUP MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    background-color: #363636;
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    padding: 25px 20px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    transform-origin: center center;
    animation: zoomInFromInside 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomInFromInside {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.close-modal-btn {
    background-color: #484848;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #efdbb2;
    font-size: 14px;
}

.modal-body-text {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-subtext {
    color: #efdbb2;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-card .otp-wrapper input {
    border-radius: 30px;
    padding-left: 55px;
    color: #ffffff;
    background-color: #2b2b2b;
}

.modal-card .timer-text {
    margin-top: -5px;
    margin-bottom: 12px;
}
