/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Phone Container ===== */
.phone-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    background: #ffffff;
    padding: 0 24px;
    position: relative;
    flex-shrink: 0;
}

@media (min-width: 500px) {
    .phone-container {
        min-height: 860px;
        border-radius: 40px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
        margin: 20px auto;
    }
}

/* ===== Back Arrow ===== */
.back-arrow {
    padding-top: 20px;
    padding-bottom: 8px;
    cursor: pointer;
    display: inline-block;
}

.back-arrow svg {
    display: block;
}

/* ===== Login Title ===== */
.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: none;
}

.tab {
    font-size: 15px;
    font-weight: 500;
    color: #aaa;
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
    transition: color 0.2s ease;
    user-select: none;
}

.tab.active {
    color: #1a1a1a;
    font-weight: 600;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.tab.active .tab-indicator {
    background: #1a1a1a;
}

/* ===== Input Groups ===== */
.input-group {
    margin-bottom: 20px;
}

.input-group.hidden {
    display: none;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    margin-bottom: 8px;
}

.input-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #bbb;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: transparent;
}

.input-wrapper input::placeholder {
    color: #ccc;
    font-weight: 300;
}

/* Password wrapper */
.password-wrapper {
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 0;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    flex-shrink: 0;
}

.toggle-password:hover .eye-icon {
    stroke: #888;
}

.eye-icon.hidden {
    display: none;
}

/* ===== Checkboxes ===== */
.checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark svg circle {
    transition: fill 0.2s ease;
}

/* Unchecked state */
.custom-checkbox input[type="checkbox"]:not(:checked)+.checkmark svg circle {
    fill: #ddd;
}

.custom-checkbox input[type="checkbox"]:not(:checked)+.checkmark svg polyline {
    stroke: #fff;
}

/* Checked state */
.custom-checkbox input[type="checkbox"]:checked+.checkmark svg circle {
    fill: #333;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* ===== Forgot Password ===== */
.forgot-password {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 20px;
    margin-top: 2px;
}

.forgot-password:hover {
    color: #555;
}

/* ===== Agreement Row ===== */
.agreement-row {
    margin-top: 8px;
    margin-bottom: 24px;
}

.agreement-row .checkbox-label {
    font-size: 13.5px;
    font-weight: 400;
    color: #888;
}

.agreement-link {
    color: #4a7fff;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== Login Button ===== */
.login-btn {
    width: 100%;
    height: 52px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.login-btn:hover {
    background: #333;
}

.login-btn:active {
    transform: scale(0.985);
    background: #000;
}

/* ===== Download App ===== */
.download-app {
    display: block;
    text-align: center;
    margin-top: 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-app:hover {
    color: #555;
}

/* ===== Sign Up Row ===== */
.signup-row {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 60px;
}

.signup-text {
    font-size: 14px;
    color: #999;
}

.signup-link {
    font-size: 14px;
    color: #4a7fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

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

/* ===== Bottom Bar (iPhone Home Indicator) ===== */
.bottom-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
}

.bottom-bar-line {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 3px;
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1a1a1a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 10001;
    pointer-events: none;
}

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

.toast-icon {
    width: 22px;
    height: 22px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast.error .toast-icon {
    background: #f44336;
}

/* ===== Verification Code (Sign Up) ===== */
.verify-wrapper {
    display: flex;
    align-items: center;
}

.verify-wrapper input {
    flex: 1;
    padding-right: 0;
}

.get-code-btn {
    background: none;
    border: none;
    border-left: 1px solid #e0e0e0;
    cursor: pointer;
    padding: 0 16px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    color: #4a7fff;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.get-code-btn:hover {
    color: #3366dd;
}

/* ===== Rating Page ===== */
.rating-subtitle {
    font-size: 15px;
    color: #888;
    margin-bottom: 32px;
    margin-top: -12px;
}

.stars-container {
    text-align: center;
    margin-bottom: 32px;
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.star {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star svg {
    width: 100%;
    height: 100%;
    fill: #e0e0e0;
    stroke: #e0e0e0;
    stroke-width: 1;
    transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.star.filled svg {
    fill: #FFD700;
    stroke: #e6b800;
}

.star:hover {
    transform: scale(1.2);
}

@keyframes starBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.star-bounce {
    animation: starBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-label {
    font-size: 14px;
    color: #bbb;
    height: 22px;
    transition: color 0.2s ease;
    font-weight: 400;
}

.rating-label.active-label {
    color: #1a1a1a;
    font-weight: 600;
}

.optional-tag {
    font-size: 12px;
    color: #bbb;
    font-weight: 400;
}

.textarea-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    position: relative;
}

.textarea-wrapper:focus-within {
    border-color: #bbb;
}

.textarea-wrapper textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 16px 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: transparent;
    resize: none;
    display: block;
    line-height: 1.5;
}

.textarea-wrapper textarea::placeholder {
    color: #ccc;
    font-weight: 300;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #bbb;
    padding: 2px 14px 10px;
}

.char-count-warn {
    color: #f44336;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

.shake {
    animation: shake 0.5s ease;
}

/* ===== Congratulations Screen ===== */
.congrats-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.congrats-screen.show {
    opacity: 1;
    visibility: visible;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        top: -20px;
        transform: rotate(0deg) translateX(0);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 110%;
        transform: rotate(760deg) translateX(80px);
        opacity: 0;
    }
}

.congrats-content {
    text-align: center;
    z-index: 1;
    padding: 24px;
    position: relative;
}

.congrats-trophy {
    font-size: 88px;
    display: block;
    line-height: 1;
    opacity: 0;
    animation: trophyEntrance 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.4) 0.1s forwards;
}

@keyframes trophyEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.congrats-title {
    font-size: 36px;
    font-weight: 800;
    color: #FFD700;
    margin-top: 18px;
    opacity: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.6s ease 0.6s forwards;
}

.congrats-subtitle {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 14px;
    line-height: 1.65;
    opacity: 0;
    animation: slideUp 0.6s ease 0.9s forwards;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.congrats-stars-row {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.congrats-stars-row span {
    font-size: 30px;
    opacity: 0;
    display: inline-block;
    animation: starPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.4) forwards;
}

.congrats-stars-row span:nth-child(1) {
    animation-delay: 1.1s;
}

.congrats-stars-row span:nth-child(2) {
    animation-delay: 1.25s;
}

.congrats-stars-row span:nth-child(3) {
    animation-delay: 1.4s;
}

.congrats-stars-row span:nth-child(4) {
    animation-delay: 1.55s;
}

.congrats-stars-row span:nth-child(5) {
    animation-delay: 1.7s;
}

@keyframes starPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }

    60% {
        transform: scale(1.35) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===== RXDT Wizard (Congratulations Screen) ===== */
.congrats-replay {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.congrats-replay:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: rotate(-180deg);
}

.congrats-replay:active {
    transform: scale(0.9);
}

.wizard-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    max-height: 88vh;
    padding: 56px 22px 28px;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wizard-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* Progress Dots */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
}

.progress-dot.active {
    background: #FFD700;
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Wizard Steps */
.wizard-step {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: stepFadeIn 0.5s ease forwards;
}

.wizard-step.active {
    display: flex;
}

@keyframes stepFadeIn {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-emoji {
    font-size: 64px;
    display: block;
    line-height: 1;
    margin-bottom: 14px;
    animation: emojiPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

.wizard-emoji.small {
    font-size: 40px;
    margin-top: 18px;
    margin-bottom: 8px;
}

@keyframes emojiPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.wizard-title {
    font-size: 26px;
    font-weight: 800;
    color: #FFD700;
    letter-spacing: -0.3px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
    line-height: 1.2;
}

.wizard-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-top: 18px;
    margin-bottom: 14px;
}

.wizard-text {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin-bottom: 22px;
}

.wizard-text strong {
    color: #FFD700;
    font-weight: 700;
}

/* Tier Cards */
.tier-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

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

.tier-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tier-medal {
    font-size: 20px;
}

.tier-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.tier-price {
    font-size: 13px;
    font-weight: 700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
}

.tier-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Bonus Box */
.bonus-box {
    width: 100%;
    background: rgba(255, 215, 0, 0.08);
    border: 1.5px dashed rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.bonus-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin: 0;
}

.bonus-text strong {
    color: #FFD700;
}

/* Bonchat Box */
.bonchat-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.bonchat-text {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0;
}

.bonchat-text strong {
    color: #FFD700;
}

/* Telegram Links */
.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    background: rgba(0, 136, 204, 0.15);
    border: 1.5px solid rgba(0, 136, 204, 0.5);
    border-radius: 10px;
    color: #4db8ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.telegram-link:hover {
    background: rgba(0, 136, 204, 0.3);
    border-color: rgba(0, 136, 204, 0.8);
    transform: translateY(-1px);
}

.telegram-link:active {
    transform: scale(0.98);
}

.telegram-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* WhatsApp Link */
.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    background: rgba(37, 211, 102, 0.12);
    border: 1.5px solid rgba(37, 211, 102, 0.45);
    border-radius: 10px;
    color: #25d366;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.75);
    transform: translateY(-1px);
}

.whatsapp-link:active {
    transform: scale(0.98);
}

.whatsapp-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Continue Button */
.wizard-btn {
    min-width: 180px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #e5b610);
    color: #1a1a1a;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    margin-top: 6px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    animation: btnPulse 2.2s ease-in-out infinite;
}

.wizard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 215, 0, 0.5);
}

.wizard-btn:active {
    transform: scale(0.97);
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
    }

    50% {
        box-shadow: 0 6px 28px rgba(255, 215, 0, 0.6);
    }
}

/* Final CTA Button */
.wizard-cta {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #FFD700, #e5b610);
    color: #1a1a1a;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    animation: btnPulse 1.8s ease-in-out infinite;
}

.wizard-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(255, 215, 0, 0.65);
}

.wizard-cta:active {
    transform: scale(0.97);
}

/* Previous Button */
.wizard-btn-prev {
    min-width: 130px;
    height: 50px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wizard-btn-prev:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.wizard-btn-prev:active {
    transform: scale(0.97);
}

/* Button Row (Previous + Continue side by side) */
.wizard-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

.wizard-btn-row .wizard-btn {
    margin-top: 0;
}

/* Splash Screen Overlay */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.splash-screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Success Screen Overlay */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.success-screen.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-screen.show .success-content {
    transform: scale(1);
}

.success-text {
    margin-top: 20px;
    font-size: 24px;
    color: #333;
    font-weight: 600;
    opacity: 0;
    animation: fadeInText 0.5s ease forwards 0.5s;
}

/* Checkmark Animation */
.checkmark-animation {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4caf50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4caf50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px rgba(76, 175, 80, 0.1);
    }
}

@keyframes fadeInText {
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    0% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ===== Dashboard Styles ===== */
.dashboard-container {
    padding: 0 20px;
    padding-bottom: 90px;
    overflow-y: auto;
}

/* ===== Dashboard Container Overrides ===== */
.dashboard-container {
    background-color: #12161f !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Yellow Header Card */
.dash-header-card {
    background-color: #f7e61e;
    /* Bright yellow */
    padding: 24px 20px 20px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    color: #1a1a1a;
}

.dash-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-logo-icon {
    width: 32px;
    height: 32px;
    background-color: #1a1a1a;
    color: #f7e61e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.dash-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.dash-user-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a1a1a;
}

.dash-assets-title {
    font-size: 14px;
    color: rgba(26, 26, 26, 0.6);
    margin-bottom: 8px;
    font-weight: 500;
}

.dash-login-btn {
    background-color: #e5b610;
    /* darker gold-yellow */
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    transition: background-color 0.2s;
    text-decoration: none;
}

.dash-login-btn:hover {
    background-color: #d1a40c;
}

/* Header Quick Actions Grid */
.dash-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.dash-action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dash-action-circle {
    width: 44px;
    height: 44px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7e61e;
    font-size: 18px;
    transition: transform 0.2s;
}

.dash-action-item:hover .dash-action-circle {
    transform: scale(1.08);
}

.dash-action-label {
    font-size: 11px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
}

/* Promo Banner */
.dash-promo-banner {
    margin: 16px 16px 20px;
    background: linear-gradient(135deg, #1c222e 0%, #151a24 100%);
    border-radius: 12px;
    border: 1px solid #2a3243;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-promo-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 200, 150, 0.1);
    color: #00c896;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dash-promo-text {
    flex: 1;
}

.dash-promo-text h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dash-promo-text p {
    color: #8492a6;
    font-size: 11px;
    line-height: 1.3;
}

/* Market List Container */
.dash-market-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 16px;
}

.dash-market-title {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
}

.dash-table-header {
    display: flex;
    justify-content: space-between;
    padding: 0 4px 8px;
    color: #8492a6;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #2a3243;
}

.dash-col-coin {
    flex: 2;
}

.dash-col-trend {
    flex: 1.5;
    text-align: center;
}

.dash-col-price {
    flex: 2;
    text-align: right;
}

.dash-coin-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    /* Space for sticky bottom navigation */
}

/* Hide scrollbars but keep functionality */
.dash-coin-list::-webkit-scrollbar {
    display: none;
}

/* Coin row styling */
.dash-coin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(42, 50, 67, 0.4);
    cursor: pointer;
}

.dash-coin-row:active {
    background-color: rgba(255, 255, 255, 0.02);
}

.dash-coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 2;
}

.dash-coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-color: #2a3243;
}

.dash-coin-meta {
    display: flex;
    flex-direction: column;
}

.dash-coin-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.dash-coin-pair {
    color: #8492a6;
    font-size: 11px;
    margin-top: 1px;
}

.dash-coin-trend {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dash-trend-canvas {
    width: 72px;
    height: 28px;
    display: block;
}

.dash-coin-price-block {
    flex: 2;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.dash-price-val {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s ease;
}

.dash-price-change {
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.dash-change-up {
    color: #00c896;
}

.dash-change-down {
    color: #ff4a5a;
}

/* Sticky Bottom Navigation overrides */
.dashboard-container .bottom-nav {
    background-color: #1c222e !important;
    border-top: 1px solid #2a3243 !important;
    max-width: 420px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 8px 8px 12px;
    z-index: 100;
}

@media (min-width: 500px) {
    .dashboard-container .bottom-nav {
        border-radius: 0 0 40px 40px;
    }
}

.dashboard-container .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    color: #8492a6;
    transition: color 0.2s ease;
}

.dashboard-container .nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.dashboard-container .nav-item.active {
    color: #f7e61e !important;
}

.dashboard-container .nav-item.active svg {
    stroke: #f7e61e !important;
}

.dashboard-container .nav-trade-btn {
    margin-top: -20px;
}

.dashboard-container .nav-trade-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f7e61e, #e5b610);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.dashboard-container .nav-trade-circle svg {
    stroke: #1a1a1a !important;
}

.dashboard-container .nav-trade-btn:hover .nav-trade-circle {
    transform: scale(1.05);
}

.dashboard-container .nav-trade-btn:active .nav-trade-circle {
    transform: scale(0.95);
}

.dashboard-container .nav-trade-btn span {
    color: #8492a6;
    font-weight: 500;
}

.dashboard-container .nav-trade-btn.active span {
    color: #f7e61e;
    font-weight: 600;
}