.hidden {
    display: none !important;
}

.alert {
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert.info {
    background: rgba(0, 212, 255, 0.1);
    color: #96ecff;
    border-color: rgba(0, 212, 255, 0.3);
}

.alert.ok,
.alert.success {
    background: rgba(0, 255, 136, 0.12);
    color: #96ffd2;
    border-color: rgba(0, 255, 136, 0.35);
}

.alert.warn,
.alert.warning {
    background: rgba(255, 204, 0, 0.12);
    color: #ffe9a6;
    border-color: rgba(255, 204, 0, 0.3);
}

.alert.danger,
.alert.error {
    background: rgba(255, 75, 114, 0.12);
    color: #ffc0cd;
    border-color: rgba(255, 75, 114, 0.32);
}

.empty {
    text-align: center;
    padding: 1.2rem;
    color: var(--text-secondary);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 100001;
    max-width: min(94vw, 640px);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toast.info {
    background: #0e7490;
}

.toast.ok,
.toast.success {
    background: #0f8d58;
}

.toast.warn,
.toast.warning {
    background: #b45309;
}

.toast.danger,
.toast.error {
    background: #b91c1c;
}

.page-modal-note {
    position: fixed;
    top: 14px;
    left: 18px;
    z-index: 100000;
    background: rgba(4, 12, 32, 0.85);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.page-modal-note a {
    color: #00e0ff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-modal-note a::before {
    content: '→';
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.page-modal-note:hover {
    border-color: rgba(0, 200, 255, 0.45);
    box-shadow: 0 4px 24px rgba(0, 200, 255, 0.12);
}

.page-modal-note:hover a {
    color: #fff;
}

.page-modal-note:hover a::before {
    transform: translateX(3px);
}

.app-shell {
    min-height: 100vh;
}

.legacy-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legacy-footer-links li {
    margin-bottom: 0.75rem;
}

.legacy-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legacy-footer-links a:hover {
    color: var(--primary-light);
}

.inline-help {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.selected-order-service {
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(145deg, rgba(7, 17, 34, 0.9), rgba(9, 21, 42, 0.85));
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.9rem;
}

.selected-order-service-head {
    color: var(--primary-light);
    font-size: 0.86rem;
    margin-bottom: 0.4rem;
}

.selected-order-service-name {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 0.45rem;
}

.selected-order-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.form-input-static {
    display: flex;
    align-items: center;
    min-height: 46px;
    user-select: none;
    pointer-events: none;
    cursor: default;
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

.auth-page-wrap {
    min-height: 100vh;
}

.auth-page-wrap .modal-overlay {
    opacity: 1;
    visibility: visible;
}

.auth-page-wrap .modal {
    max-width: 460px;
    width: min(460px, 94vw);
}

.profile-page-wrap .modal-overlay,
.orders-page-wrap .modal-overlay,
.wallet-page-wrap .modal-overlay,
.order-page-wrap .modal-overlay {
    opacity: 1;
    visibility: visible;
}

.profile-page-wrap .modal,
.orders-page-wrap .modal,
.wallet-page-wrap .modal,
.order-page-wrap .modal {
    transform: scale(1);
}

.profile-page-wrap .modal-overlay {
    padding: 16px;
    align-items: flex-start;
    overflow-y: auto;
}

.profile-page-wrap .modal {
    width: min(1180px, 98vw);
    max-width: min(1180px, 98vw);
    max-height: calc(100vh - 32px);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-page-wrap #profileModal {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100svh !important;
        display: block !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .profile-page-wrap #profileModal .modal {
        transform: none !important;
    }

    body.profile-page-wrap {
        height: auto !important;
        min-height: 100svh;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-page-wrap {
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
    }

    .profile-page-wrap .modal-overlay {
        position: static;
        display: block;
        min-height: auto;
        height: auto !important;
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        align-items: stretch;
        justify-content: stretch;
        overflow-x: hidden;
        overflow-y: visible;
        background: transparent;
    }

    .profile-page-wrap .modal-overlay::before,
    .profile-page-wrap .modal-overlay::after {
        content: none;
    }

    .profile-page-wrap .modal {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;
        height: auto !important;
        max-height: none;
        margin: 0;
        border-radius: 0;
        overflow: visible;
        box-sizing: border-box;
    }

    .profile-page-wrap .account-shell,
    .profile-page-wrap .account-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;
        height: auto !important;
        border-radius: 0;
        box-sizing: border-box;
    }

    .profile-page-wrap .account-card {
        overflow: visible;
    }

    .profile-page-wrap .account-card-body {
        overflow: visible;
    }
}

.order-page-wrap .modal {
    max-width: 760px;
}

.orders-page-wrap .modal {
    max-width: 760px;
}

.wallet-page-wrap .modal {
    max-width: 620px;
}

.static-page {
    max-width: 1000px;
    margin: 120px auto 40px;
    padding: 0 1rem;
}

.static-page .modal {
    width: 100%;
    max-width: 100%;
}

.static-page .modal-overlay {
    position: static;
    width: 100%;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    display: block;
}

.static-page .modal-body {
    line-height: 1.9;
}
