
:root{--primary:#0c6359;--primary-dark:#084c45;--primary-light:#e9f5f3;--text:#17201f;--muted:#65716f;--bg:#f6faf9;--white:#fff;--border:#dce8e5;--shadow:0 12px 35px rgba(12,99,89,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:"Tajawal",sans-serif;line-height:1.95}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}
.container{width:min(1120px,calc(100% - 32px));margin:auto}.site-header{background:var(--primary);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 5px 18px rgba(0,0,0,.12)}
.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:#fff;font-weight:800;font-size:24px;white-space:nowrap}.brand:hover{text-decoration:none}
.nav-links{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.nav-links a{color:#fff;padding:9px 12px;border-radius:9px;font-weight:600}.nav-links a:hover{background:rgba(255,255,255,.12);text-decoration:none}
.hero{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:58px 0 52px}.hero h1{margin:0 0 14px;font-size:clamp(30px,5vw,48px);line-height:1.25}.hero p{max-width:850px;margin:0;color:rgba(255,255,255,.9);font-size:18px}
.page{padding:42px 0 70px}.content-card{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:clamp(20px,4vw,42px)}
.article h2,.content-card h2{font-size:30px;color:var(--primary);margin:42px 0 15px;line-height:1.45}.article h2:first-child{margin-top:0}.article h3,.content-card h3{font-size:22px;color:#154d47;margin:30px 0 10px}.article h4,.content-card h4{font-size:18px;margin:22px 0 8px}
.article p,.content-card p{font-size:17px;margin:0 0 16px}.article ul,.content-card ul{padding-right:22px;margin:10px 0 24px}.article li,.content-card li{margin:8px 0}
.table-wrap{overflow:auto;margin:22px 0}table{width:100%;border-collapse:collapse;min-width:650px}th,td{border:1px solid var(--border);padding:12px;text-align:right}th{background:var(--primary);color:#fff}tr:nth-child(even) td{background:#f7fbfa}
.tool-wrap{margin:28px 0 42px}.tool-card{box-shadow:var(--shadow)!important}.site-footer{background:#073f3a;color:#dcebe9;margin-top:40px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;padding:42px 0}.site-footer h3{color:#fff;margin:0 0 12px}.site-footer a{color:#dcebe9}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;text-align:center;font-size:14px}
.faq{margin-top:35px}.faq-item{border:1px solid var(--border);border-radius:12px;background:#fff;margin:10px 0;overflow:hidden}.faq-item summary{cursor:pointer;padding:15px 18px;font-weight:700;color:var(--primary)}.faq-answer{padding:0 18px 16px}
@media(max-width:760px){.nav{align-items:flex-start;padding:13px 0;flex-direction:column}.nav-links{width:100%;justify-content:flex-start}.hero{padding:40px 0}.footer-grid{grid-template-columns:1fr}.article p,.content-card p{font-size:16px}}

:root {
    --primary: #0c6359;
    --primary-dark: #084c45;
    --primary-light: #e9f5f3;
    --border: #d8e6e3;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --danger: #c0392b;
}

* {
    box-sizing: border-box;
}
.numberbook-tool {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(12, 99, 89, 0.08);
}

.tool-header {
    text-align: center;
    margin-bottom: 24px;
}

.tool-header h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}

.tool-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Search Tabs */

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    background: #f0f5f4;
    padding: 5px;
    border-radius: 12px;
}

.search-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.search-tab.active {
    background: var(--primary);
    color: white;
}

/* Search Form */

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
    direction: ltr;
    text-align: left;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 99, 89, 0.08);
}

.search-input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.search-button {
    min-width: 120px;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.search-button:hover {
    background: var(--primary-dark);
}

.search-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Validation Message */

.validation-message {
    display: none;
    margin-top: 10px;
    color: var(--danger);
    font-size: 14px;
    line-height: 1.7;
}

.validation-message.show {
    display: block;
}

/* Loading */

.loading-box {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.loading-box.show {
    display: block;
}

.loading-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.loading-count {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #e7efed;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 20px;
    transition: width 0.1s linear;
}

.loading-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    min-height: 22px;
}

/* Results */

.result-box {
    display: none;
    margin-top: 25px;
}

.result-box.show {
    display: block;
}

.result-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.result-top {
    padding: 20px;
    background: var(--primary-light);
}

.result-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.result-name {
    font-size: 23px;
    color: var(--primary);
    font-weight: 800;
}

.details-toggle {
    width: 100%;
    border: 0;
    background: white;
    padding: 15px 20px;
    font-family: inherit;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    border-top: 1px solid var(--border);
}

.details-toggle span {
    display: inline-block;
    transition: transform 0.2s;
}

.details-toggle.open span {
    transform: rotate(180deg);
}

.full-details {
    display: none;
    padding: 20px;
    background: #fcfdfd;
}

.full-details.show {
    display: block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f1;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-key {
    color: var(--muted);
    font-weight: 600;
}

.detail-value {
    color: var(--text);
    font-weight: 700;
    text-align: left;
    direction: ltr;
}

/* Not Found */

.not-found {
    padding: 22px;
    border: 1px solid #f1d5d2;
    background: #fff8f7;
    border-radius: 14px;
    text-align: center;
}

.not-found-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.not-found h3 {
    margin: 0 0 7px;
    color: var(--danger);
}

.not-found p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

/* Mobile */

@media (max-width: 600px) {

    .numberbook-tool {
        margin: 20px auto;
        padding: 12px;
    }

    .tool-card {
        padding: 20px;
        border-radius: 14px;
    }

    .tool-header h2 {
        font-size: 23px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-value {
        text-align: right;
    }
}