/* ===================================================================
   Mobile Public Layout — Landing, Login, Register
   =================================================================== */

.mobile-public-body {
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* ===== Slim Top Navbar (landing/public pages) ===== */
.mp-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mp-navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e2e8f0;
}

.mp-navbar-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.mp-navbar-logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f0c040;
    color: #1a1a2e;
    font-size: 0.85rem;
}

.mp-navbar-title {
    font-weight: 700;
    font-size: 0.95rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.mp-btn-icon:hover {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.mp-navbar-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #f0c040;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
}

.mp-navbar-login-btn:hover {
    background: #e6b530;
    color: #1a1a2e;
}

/* ===== Auth Header (Login/Register) ===== */
.mp-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mp-auth-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
}

.mp-auth-back:hover {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.mp-auth-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.mp-auth-header-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

/* ===== Auth Language Chips ===== */
.mp-auth-lang-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 14px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}

.mp-lang-chip {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #94a3b8;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-lang-chip:hover {
    border-color: rgba(255,255,255,0.3);
    color: #e2e8f0;
}

.mp-lang-chip.active {
    background: #f0c040;
    color: #1a1a2e;
    border-color: #f0c040;
}

/* ===== Auth Pages Styling ===== */
.mobile-public-body .auth-page {
    padding: 20px 0 0;
    min-height: auto;
    display: flex;
    align-items: flex-start;
}

.mobile-public-body .auth-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px 20px;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.mobile-public-body .auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.mobile-public-body .auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0c040, #e6a000);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
}

.mobile-public-body .auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.mobile-public-body .auth-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.mobile-public-body .auth-floating {
    margin-bottom: 14px;
}

.mobile-public-body .auth-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
    border-radius: 10px;
    height: 50px;
    font-size: 0.9rem;
}

.mobile-public-body .auth-input:focus {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.30);
    color: #f1f5f9;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.mobile-public-body .auth-input::placeholder {
    color: #64748b;
}

.mobile-public-body .form-floating > label {
    color: #94a3b8;
}

.mobile-public-body .form-floating > .auth-input:focus ~ label {
    color: #cbd5e1;
}

.mobile-public-body .auth-input-icon {
    color: #64748b;
}

.mobile-public-body .auth-check-label {
    color: #94a3b8;
    font-size: 0.85rem;
}

.mobile-public-body .auth-check {
    border-color: rgba(255,255,255,0.2);
}

.mobile-public-body .landing-btn-gold {
    background: linear-gradient(135deg, #f0c040, #e6a000);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px;
    font-size: 0.95rem;
}

.mobile-public-body .landing-btn-gold:hover {
    background: linear-gradient(135deg, #e6b530, #d99000);
    color: #1a1a2e;
}

.mobile-public-body .auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.mobile-public-body .auth-link a {
    color: #f0c040;
    font-weight: 600;
    text-decoration: none;
}

.mobile-public-body .auth-alert {
    font-size: 0.8rem;
    border-radius: 10px;
    margin-bottom: 14px;
}

.mobile-public-body .captcha-question {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f0c040;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.mobile-public-body .auth-captcha-label {
    color: #94a3b8;
    font-size: 0.8rem;
}

.mobile-public-body .auth-captcha-input {
    max-width: 100px;
    text-align: center;
}

.mobile-public-body .auth-eye-toggle {
    background: transparent;
    border: none;
    color: #64748b;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    font-size: 1rem;
    z-index: 5;
}

[dir="rtl"] .mobile-public-body .auth-eye-toggle {
    right: auto;
    left: 12px;
}

.mobile-public-body .form-check-input:checked {
    background-color: #f0c040;
    border-color: #f0c040;
}

/* ===== Main Content Area ===== */
.mp-main {
    min-height: calc(100vh - 52px);
    padding: 0;
}

/* ===== Mobile Landing Page ===== */
.mp-landing {
    padding-bottom: 70px;
}

.mp-hero {
    text-align: center;
    padding: 30px 20px 24px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f172a 100%);
}

.mp-hero-icon {
    font-size: 3rem;
    color: #f0c040;
    margin-bottom: 12px;
}

.mp-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 8px;
    line-height: 1.2;
}

.mp-hero-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mp-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}

.mp-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0c040, #e6a000);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mp-btn-primary:hover {
    background: linear-gradient(135deg, #e6b530, #d99000);
    color: #1a1a2e;
}

.mp-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mp-btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ===== Feature Strip (horizontal scroll) ===== */
.mp-features {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mp-features-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px;
    scrollbar-width: none;
}

.mp-features-scroll::-webkit-scrollbar {
    display: none;
}

.mp-feature-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    min-width: 110px;
    text-align: center;
}

.mp-feature-chip i {
    font-size: 1.4rem;
    color: #f0c040;
}

.mp-feature-chip span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
}

/* ===== How It Works (steps) ===== */
.mp-steps {
    padding: 24px 14px;
}

.mp-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
    text-align: center;
}

.mp-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.mp-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0c040, #e6a000);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
}

.mp-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-step-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
}

.mp-step-text span {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* ===== Fixed Bottom CTA Bar ===== */
.mp-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 1040;
}

.mp-bottom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mp-bottom-btn-login {
    background: linear-gradient(135deg, #f0c040, #e6a000);
    color: #1a1a2e;
}

.mp-bottom-btn-login:hover {
    background: linear-gradient(135deg, #e6b530, #d99000);
    color: #1a1a2e;
}

.mp-bottom-btn-register {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: #e2e8f0;
}

.mp-bottom-btn-register:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ===== RTL Support ===== */
[dir="rtl"] .mp-auth-back i {
    transform: scaleX(-1);
}

[dir="rtl"] .mp-features-scroll {
    direction: rtl;
}

[dir="rtl"] .mp-step {
    flex-direction: row-reverse;
    text-align: right;
}

/* ===== Dropdown menu dark theme ===== */
.mobile-public-body .dropdown-menu {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}

.mobile-public-body .dropdown-item {
    color: #e2e8f0;
}

.mobile-public-body .dropdown-item:hover,
.mobile-public-body .dropdown-item:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.mobile-public-body .dropdown-item.active {
    background: #f0c040;
    color: #1a1a2e;
}

/* ===== Validation text ===== */
.mobile-public-body .text-danger {
    font-size: 0.75rem;
}
