@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

* { box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: linear-gradient(160deg, #f4f7fb 0%, #e9eef5 100%);
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #2c3345;
}

.wp-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wp-card {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(30, 40, 60, .12);
    padding: 32px 28px;
}

.wp-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #3b6fe0;
}

.wp-logo {
    display: block;
    max-height: 56px;
    max-width: 200px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.wp-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wp-subtitle {
    text-align: center;
    font-size: 14px;
    color: #7b8394;
    margin-bottom: 24px;
}

.wp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e4e8f0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-family: inherit;
}

.wp-input:focus {
    outline: none;
    border-color: #3b6fe0;
}

.wp-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #3b6fe0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}

.wp-btn:hover { background: #2e5cc4; }

.wp-btn.secondary {
    background: #fff;
    color: #3b6fe0;
    border: 2px solid #3b6fe0;
}

.wp-error {
    background: #fdeceb;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.wp-success {
    background: #e9f9ee;
    color: #1e8449;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.wp-progress-wrap {
    background: #eef1f6;
    border-radius: 20px;
    height: 14px;
    overflow: hidden;
    margin: 18px 0 8px;
}

.wp-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #3b6fe0, #6fa8ff);
    transition: width .4s;
}

.wp-progress-bar.warn { background: linear-gradient(90deg, #e6a23c, #f3c98a); }
.wp-progress-bar.danger { background: linear-gradient(90deg, #e0533b, #f08b7a); }

.wp-days-label {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.wp-days-label b { color: #2c3345; font-size: 22px; }

.wp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f6;
    font-size: 14px;
}

.wp-info-row span:first-child { color: #8a92a3; }
.wp-info-row span:last-child { font-weight: 500; }

.wp-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.wp-status-badge.active { background: #e9f9ee; color: #1e8449; }
.wp-status-badge.expired { background: #fdeceb; color: #c0392b; }
.wp-status-badge.void { background: #f1f2f4; color: #666; }

.wp-footer-link {
    text-align: center;
    margin-top: 18px;
}

.wp-footer-link a { color: #3b6fe0; font-size: 14px; text-decoration: none; }

.wp-photo-field {
    margin: 26px 0 28px;
    text-align: right;
}

.wp-photo-label {
    display: block;
    font-size: 13.5px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.8;
}

.wp-file-input {
    width: 100%;
    padding: 16px 12px;
    border: 2px dashed #d7dce6;
    border-radius: 12px;
    font-size: 13px;
    font-family: inherit;
    background: #fafbfc;
}

.wp-terms-box {
    max-height: 140px;
    overflow-y: auto;
    background: #f7f8fa;
    border: 1px solid #e4e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #555;
    text-align: right;
    margin-bottom: 10px;
}

.wp-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #333;
    margin: 4px 0 26px;
    cursor: pointer;
    text-align: right;
}

.wp-terms-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wp-terms-check a {
    color: #3b6fe0;
    text-decoration: underline;
}

.wp-activate-form {
    margin-top: 6px;
}

.wp-activate-form .wp-btn {
    margin-top: 4px;
}

.wp-service-box {
    background: #f7f9fc;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    text-align: right;
}

.wp-service-title {
    font-size: 12.5px;
    color: #8a92a3;
    margin-bottom: 4px;
}

.wp-service-status {
    font-size: 15px;
    font-weight: 700;
    color: #2c3345;
    margin-bottom: 6px;
}

.wp-service-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.7;
}

.wp-service-rated {
    font-size: 18px;
    color: #f0ad4e;
    letter-spacing: 2px;
}

.wp-feedback-form {
    margin-top: 10px;
}

.wp-stars {
    text-align: center;
    font-size: 34px;
    letter-spacing: 8px;
    margin-bottom: 10px;
    direction: ltr;
    user-select: none;
}

.wp-star {
    display: inline-block;
    color: #dcdfe6;
    cursor: pointer;
    transition: color .15s, transform .1s;
}

.wp-star:hover {
    transform: scale(1.15);
}

.wp-star.active {
    color: #f0ad4e;
}

.wp-stars-label {
    text-align: center;
    font-size: 12.5px;
    color: #8a92a3;
    margin-bottom: 8px;
}

.wp-terms-full {
    text-align: right;
    font-size: 14px;
    line-height: 2;
    color: #444;
    margin-bottom: 20px;
    white-space: pre-line;
}
