.majles-tracking-wrapper{
    --mt-blue:#0c4fbf;
    --mt-blue-dark:#062c72;
    --mt-blue-soft:#eaf2ff;
    --mt-green:#22a865;
    --mt-orange:#ef6c26;
    --mt-purple:#7046c8;
    --mt-text:#17315c;
    --mt-muted:#71809a;
    --mt-border:#e5ebf4;
    max-width:1180px;
    margin:38px auto 64px;
    padding:0 18px;
    font-family:"Tajawal","Cairo",Tahoma,Arial,sans-serif;
    color:var(--mt-text);
}

.majles-tracking-wrapper *{box-sizing:border-box}
.majles-tracking-wrapper svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.majles-tracking-shell{
    overflow:hidden;
    border:1px solid #e8edf5;
    border-radius:30px;
    background:#f7f9fd;
    box-shadow:0 28px 85px rgba(18,52,100,.13);
}

.majles-tracking-hero{
    position:relative;
    min-height:410px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:56px 28px 90px;
    background:
        radial-gradient(circle at 18% 20%,rgba(57,125,255,.33),transparent 30%),
        radial-gradient(circle at 82% 8%,rgba(0,208,181,.18),transparent 24%),
        linear-gradient(135deg,#031b48 0%,#073c91 50%,#0c55c7 100%);
    color:#fff;
}

.majles-tracking-hero::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:.15;
    background-image:
        linear-gradient(rgba(255,255,255,.15) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.15) 1px,transparent 1px);
    background-size:46px 46px;
    mask-image:linear-gradient(to bottom,#000,transparent 86%);
}

.majles-hero-decoration{
    position:absolute;
    border-radius:50%;
    filter:blur(2px);
}

.majles-hero-decoration-one{width:280px;height:280px;right:-85px;bottom:-110px;background:rgba(255,255,255,.08)}
.majles-hero-decoration-two{width:180px;height:180px;left:-55px;top:-50px;border:32px solid rgba(255,255,255,.06)}

.majles-hero-content{position:relative;z-index:2;width:100%;max-width:860px;text-align:center}
.majles-hero-kicker{display:inline-flex;padding:8px 16px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.10);font-size:14px;font-weight:800;backdrop-filter:blur(8px)}
.majles-hero-content h2{margin:18px 0 9px;color:#fff;font-size:47px;line-height:1.15;font-weight:900;letter-spacing:-1px}
.majles-hero-content p{max-width:680px;margin:0 auto;color:rgba(255,255,255,.82);font-size:17px;line-height:1.9}

.majles-tracking-form{
    position:relative;
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    max-width:790px;
    margin:33px auto 0;
    padding:10px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:20px;
    background:rgba(255,255,255,.97);
    box-shadow:0 22px 55px rgba(0,16,50,.28);
}

.majles-form-icon{display:flex;align-items:center;justify-content:center;color:#4d6d9f;font-size:23px}
.majles-tracking-form input{width:100%;height:58px;padding:0 6px;border:0;outline:0;background:transparent;color:#122c56;font:800 18px/1 inherit;direction:ltr;text-align:left;letter-spacing:.7px}
.majles-tracking-form input::placeholder{color:#9aa9bf}
.majles-tracking-form button{height:58px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 26px;border:0;border-radius:14px;background:linear-gradient(135deg,#0b65e8,#0a49b6);color:#fff;font:900 15px/1 inherit;cursor:pointer;box-shadow:0 10px 24px rgba(10,80,190,.28);transition:transform .2s,box-shadow .2s}
.majles-tracking-form button:hover{transform:translateY(-2px);box-shadow:0 15px 30px rgba(10,80,190,.35)}
.majles-tracking-form button svg{font-size:18px}

.majles-result{position:relative;z-index:5;margin:-53px 42px 38px}
.majles-result.success{animation:majlesRise .55s ease both}
.majles-result.error{padding:25px 28px;border:1px solid #f0c8c8;border-radius:18px;background:#fff5f5;color:#a52b2b;text-align:center;box-shadow:0 16px 35px rgba(92,26,26,.08)}
.majles-result.error strong{display:block;font-size:17px}.majles-result.error small{display:block;margin-top:7px;color:#8b5c5c}

.majles-result-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:25px 30px;
    border:1px solid rgba(255,255,255,.7);
    border-radius:22px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 45px rgba(20,53,101,.16);
    backdrop-filter:blur(12px);
}

.majles-tracking-number-box{display:flex;align-items:center;gap:17px;min-width:0}
.majles-summary-icon{width:54px;height:54px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:16px;background:linear-gradient(135deg,#e7f0ff,#f4f8ff);color:var(--mt-blue);font-size:27px}
.majles-result-label{display:block;margin-bottom:5px;color:var(--mt-muted);font-size:13px;font-weight:700}
.majles-result-summary h3{margin:0;color:#0d4cb5;font-size:29px;font-weight:950;direction:ltr;text-align:right;overflow-wrap:anywhere;letter-spacing:.5px}

.majles-status-badge{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:999px;font-size:14px;font-weight:900;white-space:nowrap}
.majles-status-check{display:flex;font-size:17px}.status-new{background:#eef2f7;color:#53647d}.status-study{background:#fff3d4;color:#966600}.status-sent{background:#e6efff;color:#1757b7}.status-done{background:#def8e9;color:#13804a}

.majles-timeline-card{margin-top:20px;padding:30px 34px 26px;border:1px solid var(--mt-border);border-radius:22px;background:#fff;box-shadow:0 13px 32px rgba(18,52,100,.07)}
.majles-timeline{position:relative;display:grid;grid-template-columns:repeat(4,1fr)}
.majles-timeline::before{content:"";position:absolute;top:23px;right:12.5%;left:12.5%;height:3px;border-radius:999px;background:linear-gradient(90deg,#dfe7f3,#b9d6ff)}
.majles-timeline-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;color:#92a0b4}
.majles-timeline-dot{width:48px;height:48px;display:flex;align-items:center;justify-content:center;margin-bottom:11px;border:5px solid #fff;border-radius:50%;background:#e8edf4;color:#8492a7;font-size:14px;font-weight:900;box-shadow:0 0 0 2px #dfe6ef}
.majles-timeline-dot svg{font-size:20px}
.majles-timeline-step.is-complete .majles-timeline-dot,.majles-timeline-step.is-current .majles-timeline-dot{background:linear-gradient(135deg,#25b26e,#139257);color:#fff;box-shadow:0 0 0 2px #25aa69}
.majles-timeline-step.is-current .majles-timeline-dot{transform:scale(1.07);box-shadow:0 0 0 2px #25aa69,0 0 0 8px rgba(37,178,110,.12)}
.majles-timeline-step.is-complete,.majles-timeline-step.is-current{color:#168b54}
.majles-timeline-label{font-size:14px;font-weight:950}.majles-timeline-description{max-width:150px;margin-top:4px;color:#8a98aa;font-size:12px;line-height:1.5}

.majles-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
.majles-panel,.majles-attachment-panel{position:relative;overflow:hidden;border:1px solid var(--mt-border);border-radius:22px;background:#fff;box-shadow:0 13px 32px rgba(18,52,100,.07);transition:transform .25s,box-shadow .25s}
.majles-panel:hover,.majles-attachment-panel:hover{transform:translateY(-3px);box-shadow:0 20px 42px rgba(18,52,100,.11)}
.majles-panel::before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:linear-gradient(90deg,#0f67e8,#67a6ff)}
.majles-referral-panel::before{background:linear-gradient(90deg,#ef6c26,#ffb26b)}
.majles-note-panel::before{background:linear-gradient(90deg,#7046c8,#af8ff4)}

.majles-panel-heading{display:flex;align-items:center;gap:11px;padding:24px 25px 15px;color:var(--mt-blue)}
.majles-panel-heading>span{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--mt-blue-soft);font-size:20px}
.majles-panel-heading h4{margin:0;color:#104aab;font-size:18px;font-weight:950}
.majles-panel-heading.orange{color:var(--mt-orange)}.majles-panel-heading.orange>span{background:#fff0e7}.majles-panel-heading.orange h4{color:#df5c19}
.majles-panel-heading.purple{color:var(--mt-purple)}.majles-panel-heading.purple>span{background:#f1ebff}.majles-panel-heading.purple h4{color:#6339b8}

.majles-data-list{padding:0 25px 22px}.majles-data-list.compact{padding-bottom:28px}
.majles-data-row{display:grid;grid-template-columns:36px 105px minmax(0,1fr);align-items:center;gap:9px;min-height:58px;border-bottom:1px solid #edf1f6}
.majles-data-row:last-child{border-bottom:0}
.majles-data-icon{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#edf4ff;color:#1d63d5;font-size:16px}.majles-data-icon.orange{background:#fff0e8;color:#e76825}
.majles-data-label{color:#8190a6;font-size:13px;font-weight:700}
.majles-data-row strong{color:#243b61;font-size:14px;font-weight:850;line-height:1.6;overflow-wrap:anywhere}

.majles-panel-text{min-height:165px;padding:4px 26px 20px;color:#3e506d;font-size:15px;line-height:2}
.majles-panel-footer-date{display:flex;align-items:center;gap:7px;margin:0 25px 23px;padding-top:14px;border-top:1px solid #edf1f6;color:#8a98ac;font-size:12px}.majles-panel-footer-date svg{font-size:15px}

.majles-attachment-panel{margin-top:20px;padding-bottom:24px}.majles-attachment-panel::before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:linear-gradient(90deg,#0f67e8,#4ecbc4)}
.majles-attachment-content{display:flex;align-items:center;gap:24px;padding:0 25px}
.majles-attachment-preview{width:270px;height:155px;display:block;overflow:hidden;flex:0 0 auto;border-radius:16px;border:1px solid #dce4ef;background:#eef3f9}.majles-attachment-preview img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.majles-attachment-preview:hover img{transform:scale(1.04)}
.majles-file-placeholder{width:120px;height:120px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:20px;background:#edf4ff;color:#175ecb;font-size:44px}
.majles-attachment-info{display:flex;flex-direction:column;align-items:flex-start}.majles-attachment-info strong{color:#20395f;font-size:17px;overflow-wrap:anywhere}.majles-attachment-info span{margin-top:6px;color:#8a98ab;font-size:13px}.majles-attachment-info a{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:11px 16px;border-radius:11px;background:#0c55c7;color:#fff;text-decoration:none;font-size:13px;font-weight:900;box-shadow:0 9px 20px rgba(12,85,199,.22)}

.majles-success-note{display:flex;align-items:center;gap:15px;margin-top:20px;padding:18px 22px;border:1px solid #ccebdc;border-radius:18px;background:linear-gradient(135deg,#effbf5,#f8fffb);color:#1f8050}
.majles-success-note>span{width:45px;height:45px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%;background:#20a762;color:#fff;font-size:24px;box-shadow:0 8px 18px rgba(32,167,98,.22)}
.majles-success-note strong{display:block;font-size:14px;font-weight:900}.majles-success-note small{display:block;margin-top:4px;color:#609276;font-size:12px}

@keyframes majlesRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:900px){
    .majles-content-grid{grid-template-columns:1fr}
    .majles-result{margin-left:22px;margin-right:22px}
    .majles-tracking-hero{min-height:390px}
}

@media(max-width:700px){
    .majles-tracking-wrapper{margin:20px auto 40px;padding:0 10px}
    .majles-tracking-shell{border-radius:22px}
    .majles-tracking-hero{min-height:430px;padding:42px 16px 78px}
    .majles-hero-content h2{font-size:34px}
    .majles-hero-content p{font-size:14px}
    .majles-tracking-form{grid-template-columns:40px minmax(0,1fr);padding:9px}
    .majles-tracking-form button{grid-column:1/-1;width:100%;margin-top:2px}
    .majles-result{margin:-45px 12px 24px}
    .majles-result-summary{align-items:flex-start;flex-direction:column;padding:22px 18px}
    .majles-result-summary h3{font-size:22px}
    .majles-summary-icon{width:48px;height:48px}
    .majles-timeline-card{padding:24px 18px}
    .majles-timeline{grid-template-columns:1fr;gap:0}
    .majles-timeline::before{top:24px;bottom:36px;right:23px;left:auto;width:3px;height:auto}
    .majles-timeline-step{min-height:78px;display:grid;grid-template-columns:50px 1fr;grid-template-rows:auto auto;align-items:center;text-align:right}
    .majles-timeline-dot{grid-row:1/3;margin:0}
    .majles-timeline-label{align-self:end}.majles-timeline-description{align-self:start;max-width:none}
    .majles-data-row{grid-template-columns:34px 88px minmax(0,1fr)}
    .majles-panel-heading{padding-left:18px;padding-right:18px}.majles-data-list{padding-left:18px;padding-right:18px}.majles-panel-text{padding-left:20px;padding-right:20px}
    .majles-attachment-content{align-items:stretch;flex-direction:column}.majles-attachment-preview{width:100%;height:190px}.majles-file-placeholder{width:100%;height:130px}
    .majles-success-note{align-items:flex-start}
}
.majles-panel-footer-date{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:20px;
    padding:14px 18px;
    background:#f8fafc;
    border-radius:12px;
    border:1px solid #e5e7eb;
}

.majles-update-icon svg{
    width:24px;
    height:24px;
    color:#0b5f47;
}

.majles-update-text small{
    display:block;
    color:#6b7280;
    font-size:12px;
    margin-bottom:3px;
}

.majles-update-text strong{
    font-size:15px;
    color:#111827;
}