.apa-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(18, 73, 68, 0.2);
}
.apa-tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: #124944;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.apa-tab-btn.active {
    border-bottom: 3px solid #124944;
    color: #0a2d2a;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.partner-notice {
    background: rgba(18, 73, 68, 0.1);
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #124944;
    line-height: 1.8;
}
header, footer, #header, #footer, .site-header, .site-footer, .header, .footer {
    display: none !important;
}

body {
    background-color: #f8db9e61;
    margin: 0;
    padding: 0;
}

.apa-login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    position: relative;
    box-sizing: border-box;
}

.apa-login-wrapper * {
    box-sizing: border-box;
    font-family: Tahoma, 'IRANSans', 'Segoe UI', sans-serif;
}

.apa-login-card {
    width: 100%;
    max-width: 400px;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.apa-logo-container {
    margin-bottom: 25px;
}

.apa-logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #124944, #0a2d2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(18, 73, 68, 0.35);
    border: 3px solid #fff;
}

.apa-logo-icon svg {
    width: 45px;
    height: 45px;
    fill: #ffffff;
}

.apa-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #124944;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.apa-step {
    transition: all 0.3s ease;
}

.apa-step.hidden {
    display: none;
}

.apa-input-group {
    position: relative;
    margin-top: 25px;
    margin-bottom: 15px;
}

.apa-input-field {
    width: 100%;
    padding: 12px 42px 12px 15px;
    border-radius: 12px;
    border: 1.5px solid #124944;
    background: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    color: #222;
    font-family: inherit;
}

.apa-input-field:focus {
    border-color: #0a2d2a;
    box-shadow: 0 0 12px rgba(18, 73, 68, 0.3);
    background: #ffffff;
}

.apa-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #124944;
    font-family: inherit;
    font-size: 18px;
}

.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 20px 0 15px;
    direction: ltr;
}

.otp-input {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid #124944;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #124944;
    outline: none;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: #0a2d2a;
    box-shadow: 0 0 8px rgba(18, 73, 68, 0.4);
    background: #fff;
}

.apa-phone-edit {
    font-size: 13px;
    color: #124944;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.apa-btn-edit {
    background: none;
    border: none;
    color: #b81414;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.resend-timer {
    font-size: 12px;
    color: #555;
    margin-bottom: 15px;
}

.resend-link {
    color: #124944;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.resend-link.disabled {
    color: #888;
    cursor: not-allowed;
    text-decoration: none;
}

.apa-btn-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background-color: #124944;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(18, 73, 68, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apa-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 73, 68, 0.45);
    background-color: #0e3b37;
}

.apa-error-msg {
    color: #b81414;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.apa-divider {
    height: 1px;
    background: rgba(18, 73, 68, 0.25);
    margin: 18px 0;
}

.apa-designer-info {
    font-size: 12px;
    color: #124944;
    line-height: 1.6;
}

.apa-designer-info strong {
    color: #0a2d2a;
}

/* APA GOLD PWA INSTALL POPUP */

.apa-pwa-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility .3s ease;
}

.apa-pwa-popup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.apa-pwa-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.apa-pwa-modal {
    position: relative;
    width: calc(100% - 40px);
    max-width: 390px;
    padding: 30px 24px 24px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    direction: rtl;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    transform: translateY(0) scale(1);
    animation: apaPwaPopupIn .35s ease;
}

@keyframes apaPwaPopupIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.apa-pwa-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 25px;
    font-family: inherit;
    line-height: 30px;
    cursor: pointer;
    color: #555;
}

.apa-pwa-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: #124944;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apa-pwa-icon svg {
    width: 42px;
    height: 42px;
    fill: #f8db9e;
}

.apa-pwa-content h3 {
    margin: 0 0 10px;
    color: #124944;
    font-size: 21px;
    font-weight: 700;
    font-family: inherit;
}

.apa-pwa-content p {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
    font-family: inherit;
}

.apa-pwa-install-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: #124944;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
    font-family: inherit;
}

.apa-pwa-install-btn:hover {
    background: #0a2d2a;
    transform: translateY(-1px);
}

.apa-pwa-install-btn span {
    margin-left: 6px;
}

.apa-pwa-later {
    margin-top: 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}