*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0d0f1a;
    overflow: hidden;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: #0d0f1a;
    position: relative;
    overflow: hidden;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px 8px 18px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.top-bar-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8px;
}

.topbar-logo-text {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lang-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #00c8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: rgba(0, 200, 248, 0.12);
}

.lang-btn span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.80);
    font-size: 17px;
    position: relative;
    transition: background 0.2s;
}

.top-icon-btn:hover {
    background: rgba(255,255,255,0.13);
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e8003d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50px;
    padding: 1px 4px;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
    border: 1.5px solid #0d0f1a;
}
.category-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 4px 10px 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    white-space: nowrap;
}

.category-row::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 68px;
    cursor: pointer;
    vertical-align: top;
}

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s, background 0.2s;
}

.cat-icon.active-cat {
    border-color: #00c8f8;
    color: #00c8f8;
    background: rgba(0, 200, 248, 0.08);
}

.category-item:hover .cat-icon {
    border-color: rgba(0, 200, 248, 0.6);
    color: #00c8f8;
}

.category-item span {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.login-card {
    background: transparent;
    margin: 14px 18px 0 18px;
    padding: 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.account-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
}

.type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 12px;
    transition: background 0.2s;
    opacity: 0.45;
}

.type-btn.active {
    opacity: 1;
}

.type-btn:hover {
    background: rgba(255,255,255,0.05);
    opacity: 0.85;
}

.type-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.type-btn.active .type-icon {
    border-color: #00c8f8;
    color: #00c8f8;
    background: rgba(0, 200, 248, 0.08);
}

.type-btn span {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.type-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
}
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
    border-radius: 6px;
    overflow: visible;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 13px 44px 13px 18px;
    border: 1.5px solid rgba(255,255,255,0.35);
    outline: none;
    background: rgba(80, 90, 110, 0.45);
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-input:focus {
    border-color: #00c8f8;
    background: rgba(80, 90, 110, 0.60);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: rgba(255,255,255,0.10);
}

.input-group:last-child .input-line {
    display: none;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.45);
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: #00c8f8;
}
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #00b8f0 0%, #00d4ff 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(0, 200, 248, 0.35);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-bottom: 10px;
    font-family: inherit;
    text-transform: uppercase;
}

.login-btn:hover {
    background: linear-gradient(90deg, #00d4ff 0%, #00b8f0 100%);
    box-shadow: 0 6px 28px rgba(0, 200, 248, 0.50);
}

.login-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 200, 248, 0.25);
}
.forgot-area {
    text-align: center;
    padding-top: 2px;
}

.forgot-link {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1px;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #00c8f8;
    text-decoration: underline;
}
.promo-section {
    display: flex;
    align-items: stretch;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
    flex-grow: 0;
}

.promo-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-item:hover {
    background: rgba(255,255,255,0.04);
}

.promo-right {
    border-left: 1px solid rgba(255,255,255,0.08);
}

.promo-icon {
    font-size: 28px;
    color: #00c8f8;
}

.promo-label {
    color: rgba(255,255,255,0.80);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.promo-label-pink {
    color: #e8003d;
    font-weight: 600;
}

.promo-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #e8003d;
    letter-spacing: -0.5px;
    font-style: italic;
    line-height: 1;
}

.promo-x {
    color: #ff4d7a;
}
.bottom-nav {
    position: relative;
    width: 100%;
    background: #0d0f1a;
    z-index: 100;
    flex-shrink: 0;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: rgba(255,255,255,0.70);
    transition: color 0.2s;
    min-width: 60px;
}

.nav-item:hover {
    color: #fff;
}

.nav-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.nav-icon-cyan {
    background: rgba(0, 200, 248, 0.15);
    color: #00c8f8;
}

.nav-icon-blue {
    background: rgba(60, 120, 220, 0.18);
    color: #5599ff;
}

.nav-icon-dark {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.70);
}

.nav-item:hover .nav-icon-dark {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.3;
    color: rgba(255,255,255,0.65);
}
.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
    gap: 8px;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #00c8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00c8f8;
    margin-bottom: 4px;
    background: rgba(0, 200, 248, 0.08);
}

.step-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.step-desc {
    color: rgba(255,255,255,0.60);
    font-size: 13px;
    line-height: 1.5;
}
.success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 6px 0;
    gap: 10px;
}

.success-icon {
    font-size: 52px;
    color: #4ade80;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(74,222,128,0.35));
}

.success-title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.success-msg {
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    line-height: 1.7;
}

.success-msg strong {
    color: #fff;
    font-weight: 700;
}

.success-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.20);
    margin: 2px 0;
}

.success-sub {
    color: rgba(255,255,255,0.50);
    font-size: 12px;
    font-style: italic;
}
.input-error {
    border-color: #e74c3c !important;
    color: #fff !important;
}

.group-error .form-input {
    background: rgba(231, 76, 60, 0.15) !important;
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 4px;
    font-size: 11px;
    color: #e74c3c;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 25, 40, 0.97);
    color: #fff;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.40);
    max-width: 90vw;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.10);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-success {
    background: rgba(0, 140, 80, 0.95);
}

.toast.toast-error {
    background: rgba(180, 30, 30, 0.92);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.45s ease;
}
@media (max-width: 400px) {
    .login-card {
        margin: 16px 12px 0 12px;
    }
    .category-item {
        min-width: 62px;
    }
    .cat-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

@media (min-width: 481px) {
    html, body {
        background: #060810;
    }
}
