﻿:root {
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --indigo: #4f46e5;
    --violet: #7c3aed;
    --amber: #f59e0b;
    --red-100: #fef2f2;
    --red-400: #f87171;
    --red-700: #b91c1c;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 12px 48px rgba(15,23,42,0.12);
    --font: 'Noto Naskh Arabic', serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--slate-100);
    color: var(--slate-800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / Nav */
.site-header {
    background: var(--slate-900);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}
.site-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    height: 56px;
    padding: 0 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--slate-900);
    background-image: url('images/logo.png');
    background-size: cover;
    background-position: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.site-title:hover { text-decoration: none; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 2px;
}
.nav-list a {
    color: rgba(255,255,255,0.75);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
}
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .nav-list {
        display: none;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: var(--slate-900);
        flex-direction: column;
        padding: 8px 12px 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .nav-list.open { display: flex; }
    .nav-list a { padding: 12px 14px; }
}

/* Banner */
.banner, .hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero {
    min-height: 240px;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}
.banner {
    min-height: 160px;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
}
.banner--green {
    background: linear-gradient(135deg, #059669, #10b981);
}
.banner--orange {
    background: linear-gradient(135deg, #ea580c, #f97316);
}
.banner-overlay, .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}
.hero-bg-slider, .banner-bg-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.slider-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2.5s ease;
}
.slider-img.active {
    opacity: 1;
}
.banner-content, .hero-content {
    position: relative;
    z-index: 2;
    padding: 32px 20px;
    max-width: 700px;
}
.banner-content h1, .hero-content h1 {
    color: var(--white);
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}
.banner-content p, .hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}
/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px;
    flex: 1;
}

/* Home grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    color: inherit;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}
.tool-card__icon { font-size: 2.8rem; }
.tool-card h2 { font-size: 1.2rem; font-weight: 700; }
.tool-card p { font-size: 0.95rem; color: #64748b; line-height: 1.7; }
.tool-card__btn {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}
.tool-card:hover .tool-card__btn {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(79,70,229,0.35);
}

/* Service layout */
.service-layout {
    max-width: 700px;
    margin: 0 auto;
}

/* Form card */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--slate-800);
}
.field input,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    text-align: center;
    direction: ltr;
}
.field select { direction: rtl; text-align: right; }
.field input:focus,
.field select:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
    outline: none;
    background: var(--white);
}
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.captcha-row img {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px;
    background: #fafafa;
    max-width: 160px;
}
#reloadBtn {
    background: var(--slate-100);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}
#reloadBtn:hover { background: #e2e8f0; }

.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result area */
.result-area {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    text-align: center;
    animation: fadeUp 0.35s ease;
}
.result-area h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--slate-900);
}
.result-area p {
    font-size: 1rem;
    line-height: 2;
    margin: 8px 0;
}
.result-area a:not(.dubara-btn) { color: var(--indigo); font-weight: 600; }
.result-area .dubara-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-area .dubara-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.3);
}
.result-area.error {
    background: var(--red-100);
    border-color: var(--red-400);
}
.result-area.error p { color: var(--red-700); }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error card */
.error-card {
    background: var(--red-100);
    border: 2px solid var(--red-400);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 20px;
    color: var(--red-700);
    font-size: 0.95rem;
    text-align: center;
}

/* Info card */
.info-card {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 8px 28px rgba(15,23,42,0.15);
    font-size: 0.95rem;
    line-height: 2.1;
}
.info-card p { margin-bottom: 14px; }
.info-card strong {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.info-card--green {
    background: linear-gradient(135deg, #065f46, #059669);
}
.info-card--green strong {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.info-card--orange {
    background: linear-gradient(135deg, #7c2d12, #9a3412);
}
.info-card--orange strong {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer info section */
.footer-info {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 28px;
}

/* Legal page */
.legal-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    line-height: 2.2;
    font-size: 1rem;
}
.legal-page h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; text-align: center; }
.legal-page p { margin-bottom: 14px; }
.legal-page strong { color: var(--indigo); }

/* Footer */
.site-footer {
    background: var(--slate-900);
    color: rgba(255,255,255,0.65);
    padding: 18px 16px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}
.site-footer a {
    color: rgba(255,255,255,0.65);
    margin: 0 6px;
    transition: color 0.2s;
}
.site-footer a:hover { color: var(--white); }

/* PMT Meter (horizontal bar) */
.pmt-meter-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 20px 14px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}
.pmt-meter-wrap h4 {
    font-size: 1rem;
    color: var(--slate-700);
    margin-bottom: 10px;
}
.pmt-bar {
    height: 24px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    direction: ltr;
}
.pmt-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: none;
}
.pmt-fill.m-green { background: linear-gradient(90deg, #10b981, #34d399); }
.pmt-fill.m-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pmt-fill.m-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.pmt-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 6px;
    color: var(--slate-700);
    direction: rtl;
}
.pmt-score-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--slate-900);
    direction: ltr;
}

/* calculating pulse */
@keyframes pmt-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.pmt-calculating {
    animation: pmt-pulse 0.8s ease-in-out infinite;
    color: var(--indigo);
    font-weight: 600;
}
