/* بداية كود صفحات حسابات الطريق دوت كوم العادية */
.ag-auth-page,
.ag-account-page{
    position:relative;
    min-height:calc(100vh - 92px);
    padding:56px 5vw 50px;
    overflow:hidden;
    direction:rtl;
    background:
        radial-gradient(circle at 14% 18%, rgba(25,199,255,.10), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(124,58,237,.10), transparent 32%),
        linear-gradient(135deg,#fbfdff 0%,#f4f8ff 52%,#ffffff 100%);
}

html[data-theme="dark"] .ag-auth-page,
html[data-theme="dark"] .ag-account-page{
    background:
        radial-gradient(circle at 15% 14%, rgba(25,199,255,.14), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(124,58,237,.18), transparent 34%),
        linear-gradient(135deg,#030817 0%,#071426 55%,#050516 100%);
}

.ag-auth-shell{
    --ag-auth-side-x:0px;
    --ag-auth-side-y:0px;
    --ag-auth-card-x:0px;
    --ag-auth-card-y:0px;
    width:min(1250px,100%);
    min-height:430px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(270px,.78fr) minmax(520px,1.22fr);
    align-items:center;
    gap:28px;
    direction:rtl;
}

.ag-auth-side{
    position:relative;
    z-index:2;
    transform:translate(var(--ag-auth-side-x),var(--ag-auth-side-y));
    color:#07111f;
}

html[data-theme="dark"] .ag-auth-side{color:#ffffff;}

.ag-auth-kicker{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:30px;
    padding:0 13px;
    margin-bottom:12px;
    border-radius:999px;
    color:#0b6bff;
    background:rgba(37,99,235,.08);
    font-size:12px;
    font-weight:900;
    letter-spacing:.16em;
}

html[data-theme="dark"] .ag-auth-kicker{
    color:#52dcff;
    background:rgba(82,220,255,.11);
}

.ag-auth-side h1{
    margin:0 0 12px;
    color:inherit;
    font-size:clamp(38px,3.3vw,56px);
    line-height:1.08;
    font-weight:900;
    letter-spacing:-1px;
}

.ag-auth-side p{
    width:min(430px,100%);
    margin:0;
    color:#61708a;
    font-size:16px;
    line-height:1.85;
    font-weight:800;
}

html[data-theme="dark"] .ag-auth-side p{color:rgba(255,255,255,.70);}

.ag-auth-side-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:22px;
}

.ag-auth-side-actions a{
    height:42px;
    padding:0 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    text-decoration:none;
    color:#0f63d8;
    background:rgba(37,99,235,.08);
    font-size:13px;
    font-weight:900;
    transition:transform .22s ease,background .22s ease,color .22s ease;
}

.ag-auth-side-actions a:hover{
    transform:translateY(-2px);
    color:#ffffff;
    background:linear-gradient(135deg,#2563eb,#19c7ff);
}

html[data-theme="dark"] .ag-auth-side-actions a{
    color:#73e5ff;
    background:rgba(255,255,255,.07);
}

html[data-theme="dark"] .ag-auth-side-actions a:hover{
    color:#ffffff;
    background:linear-gradient(135deg,#7c3aed,#19c7ff);
}

.ag-auth-card{
    position:relative;
    z-index:3;
    transform:translate(var(--ag-auth-card-x),var(--ag-auth-card-y));
    padding:26px;
    border-radius:34px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(37,99,235,.10);
    box-shadow:0 26px 70px rgba(15,23,42,.10);
    backdrop-filter:blur(18px);
}

html[data-theme="dark"] .ag-auth-card{
    background:rgba(8,18,38,.72);
    border-color:rgba(148,163,184,.13);
    box-shadow:0 28px 80px rgba(0,0,0,.30);
}

.ag-auth-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    direction:rtl;
}

.ag-auth-form-login{
    grid-template-columns:1fr 1fr;
    align-items:end;
}

.ag-auth-field,
.ag-auth-form label{
    position:relative;
    display:block;
    min-width:0;
}

.ag-auth-field-wide{grid-column:1 / -1;}
.ag-auth-form-login .ag-auth-field-wide{grid-column:auto;}
.ag-auth-form-login .ag-auth-row,
.ag-auth-form-login .ag-auth-submit{grid-column:1 / -1;}

.ag-auth-field span,
.ag-auth-form label>span{
    display:block;
    margin:0 0 8px;
    color:#26364d;
    font-size:13px;
    font-weight:900;
}

html[data-theme="dark"] .ag-auth-field span,
html[data-theme="dark"] .ag-auth-form label>span{color:rgba(255,255,255,.82);}

.ag-auth-field i,
.ag-auth-form label>i{
    position:absolute;
    left:18px;
    bottom:15px;
    z-index:2;
    color:#2563eb;
    font-size:23px;
    pointer-events:none;
}

html[data-theme="dark"] .ag-auth-field i,
html[data-theme="dark"] .ag-auth-form label>i{color:#48d8ff;}

.ag-auth-form input[type="text"],
.ag-auth-form input[type="email"],
.ag-auth-form input[type="password"]{
    width:100%;
    height:56px;
    padding:0 18px 0 56px;
    border:0;
    outline:0;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#07111f;
    font-family:inherit;
    font-size:15px;
    font-weight:800;
    box-shadow:inset 0 0 0 1px rgba(37,99,235,.12),0 12px 28px rgba(15,23,42,.055);
    transition:box-shadow .22s ease,transform .22s ease,background .22s ease;
}

.ag-auth-form input:focus{
    transform:translateY(-1px);
    box-shadow:inset 0 0 0 2px rgba(37,99,235,.26),0 16px 34px rgba(37,99,235,.10);
}

html[data-theme="dark"] .ag-auth-form input[type="text"],
html[data-theme="dark"] .ag-auth-form input[type="email"],
html[data-theme="dark"] .ag-auth-form input[type="password"]{
    background:rgba(10,22,48,.78);
    color:#fff;
    box-shadow:inset 0 0 0 1px rgba(72,216,255,.16),0 16px 36px rgba(0,0,0,.20);
}

html[data-theme="dark"] .ag-auth-form input:focus{
    box-shadow:inset 0 0 0 2px rgba(72,216,255,.30),0 18px 40px rgba(25,199,255,.08);
}

.ag-auth-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:2px 0 0;
}

.ag-auth-row a{
    color:#2563eb;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
}

html[data-theme="dark"] .ag-auth-row a{color:#48d8ff;}

.ag-auth-check{
    display:inline-flex!important;
    align-items:center;
    gap:8px;
    margin:0!important;
    cursor:pointer;
}

.ag-auth-check input{
    width:17px;
    height:17px;
    accent-color:#22c55e;
}

.ag-auth-check span{margin:0!important;}

.ag-auth-submit{
    height:58px;
    border:0;
    outline:0;
    cursor:pointer;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#fff;
    background:linear-gradient(135deg,#22c55e,#22c7ff);
    box-shadow:0 20px 44px rgba(34,197,94,.20);
    font-family:inherit;
    font-size:16px;
    font-weight:900;
    transition:transform .22s ease,box-shadow .22s ease;
}

.ag-auth-submit:hover{
    transform:translateY(-3px);
    box-shadow:0 26px 54px rgba(34,197,94,.27);
}

html[data-theme="dark"] .ag-auth-submit{
    background:linear-gradient(135deg,#7c3aed,#19c7ff);
    box-shadow:0 22px 50px rgba(25,199,255,.16);
}

.ag-auth-notice{
    margin:0 0 16px;
    padding:12px 15px;
    border-radius:18px;
    background:rgba(34,197,94,.10);
    color:#166534;
    font-size:13px;
    line-height:1.6;
    font-weight:900;
}

.ag-auth-notice.is-error{
    background:rgba(239,68,68,.10);
    color:#b91c1c;
}

html[data-theme="dark"] .ag-auth-notice{
    background:rgba(34,197,94,.14);
    color:#86efac;
}

html[data-theme="dark"] .ag-auth-notice.is-error{
    background:rgba(239,68,68,.16);
    color:#fecaca;
}

/* بداية كود الداشبورد القديم كما هو */
.ag-account-shell{width:min(1260px,100%);margin:0 auto;display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;direction:rtl;}
.ag-account-sidebar,.ag-account-card{border-radius:30px;background:rgba(255,255,255,.82);border:1px solid rgba(37,99,235,.10);box-shadow:0 24px 70px rgba(15,23,42,.08);backdrop-filter:blur(18px);}
html[data-theme="dark"] .ag-account-sidebar,html[data-theme="dark"] .ag-account-card{background:rgba(8,18,38,.76);border-color:rgba(148,163,184,.14);box-shadow:0 28px 80px rgba(0,0,0,.30);}
.ag-account-sidebar{padding:20px;align-self:start;position:sticky;top:110px;}
.ag-account-user{text-align:center;padding:8px 0 18px;border-bottom:1px solid rgba(37,99,235,.10);}
html[data-theme="dark"] .ag-account-user{border-bottom-color:rgba(255,255,255,.10);}
.ag-account-avatar{width:74px;height:74px;margin:0 auto 12px;border-radius:24px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#2563eb,#19c7ff);font-size:34px;}
.ag-account-user h2{margin:0 0 5px;color:#07111f;font-size:19px;font-weight:900;} html[data-theme="dark"] .ag-account-user h2{color:#fff;}
.ag-account-user p{margin:0;color:#64748b;font-size:12px;font-weight:800;} html[data-theme="dark"] .ag-account-user p{color:#94a3b8;}
.ag-account-menu{display:grid;gap:8px;margin-top:16px;}
.ag-account-menu a{height:46px;padding:0 14px;display:flex;align-items:center;gap:10px;border-radius:16px;text-decoration:none;color:#26364d;background:transparent;font-weight:900;transition:.22s ease;} html[data-theme="dark"] .ag-account-menu a{color:#dbeafe;}
.ag-account-menu a:hover,.ag-account-menu a.is-active{color:#fff;background:linear-gradient(135deg,#2563eb,#19c7ff);}
.ag-account-content{display:grid;gap:18px;}
.ag-account-card{padding:22px;}
.ag-account-card h2{margin:0 0 16px;color:#07111f;font-size:22px;font-weight:900;} html[data-theme="dark"] .ag-account-card h2{color:#fff;}
.ag-account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.ag-account-stat{padding:18px;border-radius:22px;background:rgba(37,99,235,.07);}
html[data-theme="dark"] .ag-account-stat{background:rgba(255,255,255,.06);}
.ag-account-stat strong{display:block;color:#07111f;font-size:28px;font-weight:900;} html[data-theme="dark"] .ag-account-stat strong{color:#fff;}
.ag-account-stat span{color:#64748b;font-size:12px;font-weight:900;} html[data-theme="dark"] .ag-account-stat span{color:#94a3b8;}
.ag-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.ag-account-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border-radius:20px;text-decoration:none;color:inherit;background:rgba(255,255,255,.64);border:1px solid rgba(37,99,235,.08);} html[data-theme="dark"] .ag-account-item{background:rgba(15,23,42,.62);border-color:rgba(148,163,184,.10);}
.ag-account-item img{width:64px;height:52px;border-radius:15px;object-fit:cover;background:#e2e8f0;}
.ag-account-item strong{display:block;color:#07111f;font-size:13px;font-weight:900;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} html[data-theme="dark"] .ag-account-item strong{color:#fff;}
.ag-account-item small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:800;} html[data-theme="dark"] .ag-account-item small{color:#94a3b8;}
.ag-account-empty{padding:18px;border-radius:20px;text-align:center;color:#64748b;background:rgba(37,99,235,.06);font-weight:900;} html[data-theme="dark"] .ag-account-empty{color:#94a3b8;background:rgba(255,255,255,.06);}
.ag-account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.ag-account-form label{display:block;}
.ag-account-form span{display:block;margin-bottom:8px;color:#26364d;font-size:13px;font-weight:900;} html[data-theme="dark"] .ag-account-form span{color:#dbeafe;}
.ag-account-form input{width:100%;height:52px;border:0;border-radius:18px;padding:0 16px;background:rgba(255,255,255,.92);box-shadow:inset 0 0 0 1px rgba(37,99,235,.10);font-family:inherit;font-weight:800;} html[data-theme="dark"] .ag-account-form input{background:rgba(15,23,42,.72);color:#fff;box-shadow:inset 0 0 0 1px rgba(148,163,184,.14);}
.ag-account-form button{grid-column:1/-1;height:54px;border:0;border-radius:18px;color:#fff;background:linear-gradient(135deg,#22c55e,#22c7ff);font-family:inherit;font-weight:900;cursor:pointer;}
.ag-single-favorite{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 15px;border:0;border-radius:999px;color:#2563eb;background:rgba(37,99,235,.08);font-family:inherit;font-size:13px;font-weight:900;cursor:pointer;transition:.22s ease;}
.ag-single-favorite.is-active{color:#fff;background:linear-gradient(135deg,#ef4444,#f97316);} html[data-theme="dark"] .ag-single-favorite{color:#73e5ff;background:rgba(255,255,255,.08);} html[data-theme="dark"] .ag-single-favorite.is-active{color:#fff;background:linear-gradient(135deg,#ef4444,#f97316);}
/* نهاية كود الداشبورد القديم كما هو */

@media (max-width:1180px){
    .ag-auth-page{padding:38px 18px 42px;}
    .ag-auth-shell{grid-template-columns:1fr;gap:20px;min-height:0;}
    .ag-auth-side{text-align:center;}
    .ag-auth-side p{margin:0 auto;}
    .ag-auth-side-actions{justify-content:center;}
    .ag-auth-card{padding:20px;}
    .ag-account-shell{grid-template-columns:1fr;}
    .ag-account-sidebar{position:relative;top:auto;}
}

@media (max-width:680px){
    .ag-auth-page{padding:24px 12px 34px;}
    .ag-auth-side h1{font-size:31px;}
    .ag-auth-side p{font-size:13px;line-height:1.75;}
    .ag-auth-card{padding:15px;border-radius:24px;}
    .ag-auth-form,.ag-auth-form-login,.ag-auth-form-register{grid-template-columns:1fr;gap:12px;}
    .ag-auth-form-login .ag-auth-field-wide{grid-column:1 / -1;}
    .ag-auth-form input[type="text"],.ag-auth-form input[type="email"],.ag-auth-form input[type="password"]{height:52px;font-size:13px;}
    .ag-auth-submit{height:52px;font-size:14px;}
    .ag-auth-row{align-items:flex-start;flex-direction:column;}
    .ag-account-stats,.ag-account-grid,.ag-account-form{grid-template-columns:1fr;}
}
/* نهاية كود صفحات حسابات الطريق دوت كوم العادية */

/* بداية كود ضبط صفحة استعادة كلمة المرور بشكل أفقي */
.ag-auth-shell-lost{
    min-height:360px;
    grid-template-columns:minmax(310px,.85fr) minmax(520px,1.15fr);
    gap:34px;
}

.ag-auth-card-lost{
    padding:26px;
}

.ag-auth-form-lost{
    grid-template-columns:minmax(260px,1fr) auto;
    align-items:end;
    gap:14px;
}

.ag-auth-form-lost .ag-auth-field-wide{
    grid-column:auto;
}

.ag-auth-form-lost .ag-auth-submit{
    min-width:210px;
    padding:0 22px;
    white-space:nowrap;
}

.ag-auth-lost-page .ag-auth-side h1{
    font-size:clamp(34px,3vw,50px);
}

.ag-auth-lost-page .ag-auth-side p{
    width:min(470px,100%);
}

@media (max-width:1180px){
    .ag-auth-shell-lost{
        grid-template-columns:1fr;
        min-height:0;
        gap:18px;
    }

    .ag-auth-form-lost{
        grid-template-columns:1fr;
    }

    .ag-auth-form-lost .ag-auth-field-wide,
    .ag-auth-form-lost .ag-auth-submit{
        grid-column:1 / -1;
    }

    .ag-auth-form-lost .ag-auth-submit{
        width:100%;
        min-width:0;
    }
}

@media (max-width:680px){
    .ag-auth-shell-lost{
        gap:14px;
    }

    .ag-auth-card-lost{
        padding:15px;
    }

    .ag-auth-lost-page .ag-auth-side h1{
        font-size:30px;
    }
}
/* نهاية كود ضبط صفحة استعادة كلمة المرور بشكل أفقي */

/* بداية كود زر المفضلة الشريطي داخل المقال */
.ag-single-account-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 14px !important;
    flex-wrap: wrap !important;
}

.ag-favorite-btn {
    --ag-fav-x: 0px;
    --ag-fav-y: 0px;
    --ag-fav-scale: 1;
    --ag-fav-main-1: #061a44;
    --ag-fav-main-2: #0b4db8;
    --ag-fav-main-3: #22c7ff;
    --ag-fav-circle-bg: #ffffff;
    --ag-fav-circle-border: #0b4db8;
    --ag-fav-heart: #0b8cff;
    position: relative !important;
    isolation: isolate !important;
    width: 245px !important;
    height: 62px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
    cursor: pointer !important;
    font-family: inherit !important;
    line-height: 1 !important;
    overflow: visible !important;
    transform: translate(var(--ag-fav-x), var(--ag-fav-y)) scale(var(--ag-fav-scale)) !important;
    transition: transform .24s ease, filter .24s ease !important;
}

.ag-favorite-btn::before {
    content: "" !important;
    position: absolute !important;
    top: 9px !important;
    right: 46px !important;
    left: 0 !important;
    height: 44px !important;
    z-index: -1 !important;
    border-radius: 10px 30px 30px 10px !important;
    background: linear-gradient(135deg, var(--ag-fav-main-1), var(--ag-fav-main-2) 52%, var(--ag-fav-main-3)) !important;
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%, 0 0) !important;
    box-shadow: 0 14px 30px rgba(11, 77, 184, .24), inset 0 1px 0 rgba(255,255,255,.22) !important;
    transition: box-shadow .24s ease, filter .24s ease, transform .24s ease !important;
}

.ag-favorite-btn::after {
    content: "" !important;
    position: absolute !important;
    top: 11px !important;
    left: 20px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255,255,255,.55), transparent 62%) !important;
    opacity: .0 !important;
    transform: scale(.6) !important;
    transition: opacity .24s ease, transform .24s ease !important;
    pointer-events: none !important;
}

.ag-favorite-btn i {
    position: relative !important;
    z-index: 3 !important;
    flex: 0 0 62px !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: var(--ag-fav-heart) !important;
    background: var(--ag-fav-circle-bg) !important;
    border: 5px solid var(--ag-fav-circle-border) !important;
    box-shadow: 0 13px 28px rgba(11, 77, 184, .20), inset 0 0 0 2px rgba(255,255,255,.82) !important;
    font-size: 31px !important;
    line-height: 1 !important;
    transition: transform .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease !important;
}

.ag-favorite-btn i::after {
    content: "+" !important;
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    width: 15px !important;
    height: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ag-fav-main-2), var(--ag-fav-main-3)) !important;
    border: 2px solid #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.ag-favorite-btn span {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 18px 0 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
}

.ag-favorite-btn:hover {
    transform: translate(var(--ag-fav-x), calc(var(--ag-fav-y) - 3px)) scale(var(--ag-fav-scale)) !important;
    filter: brightness(1.04) !important;
}

.ag-favorite-btn:hover::before {
    box-shadow: 0 18px 38px rgba(34, 199, 255, .26), inset 0 1px 0 rgba(255,255,255,.30) !important;
    transform: translateX(-2px) !important;
}

.ag-favorite-btn:hover::after {
    opacity: .7 !important;
    transform: scale(1) !important;
}

.ag-favorite-btn:hover i {
    transform: scale(1.06) rotate(-4deg) !important;
    box-shadow: 0 16px 34px rgba(34, 199, 255, .27), inset 0 0 0 2px rgba(255,255,255,.86) !important;
}

.ag-favorite-btn.is-active {
    --ag-fav-main-1: #08255f;
    --ag-fav-main-2: #1187e8;
    --ag-fav-main-3: #38d9ff;
    --ag-fav-circle-border: #16a8f5;
    --ag-fav-heart: #0b8cff;
}

.ag-favorite-btn.is-active i::after {
    content: "✓" !important;
}

.ag-favorite-btn.is-active i {
    animation: agFavHeartPop .34s ease both !important;
}

.ag-favorite-btn.is-loading {
    pointer-events: none !important;
    opacity: .72 !important;
}

html[data-theme="dark"] .ag-favorite-btn {
    --ag-fav-main-1: #07111f;
    --ag-fav-main-2: #0a3d91;
    --ag-fav-main-3: #16d4ff;
    --ag-fav-circle-bg: #07111f;
    --ag-fav-circle-border: #1ca8ff;
    --ag-fav-heart: #55ddff;
}

html[data-theme="dark"] .ag-favorite-btn::before {
    box-shadow: 0 16px 35px rgba(22, 212, 255, .16), inset 0 1px 0 rgba(255,255,255,.16) !important;
}

html[data-theme="dark"] .ag-favorite-btn i {
    box-shadow: 0 13px 30px rgba(22, 212, 255, .18), inset 0 0 0 2px rgba(255,255,255,.05) !important;
}

html[data-theme="dark"] .ag-favorite-btn:hover::before {
    box-shadow: 0 20px 42px rgba(22, 212, 255, .25), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

@keyframes agFavHeartPop {
    0% { transform: scale(.86) rotate(0deg); }
    55% { transform: scale(1.15) rotate(-8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (max-width: 560px) {
    .ag-favorite-btn {
        width: 215px !important;
        height: 56px !important;
    }

    .ag-favorite-btn::before {
        right: 42px !important;
        top: 8px !important;
        height: 40px !important;
    }

    .ag-favorite-btn i {
        flex-basis: 56px !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 27px !important;
        border-width: 4px !important;
    }

    .ag-favorite-btn span {
        height: 40px !important;
        font-size: 15px !important;
    }
}
/* نهاية كود زر المفضلة الشريطي داخل المقال */

/* بداية كود لوحة الحساب المتقدمة + Gmail فقط */
.ag-auth-notice-error{
    background:rgba(239,68,68,.10)!important;
    color:#b91c1c!important;
}
html[data-theme="dark"] .ag-auth-notice-error{
    background:rgba(239,68,68,.16)!important;
    color:#fecaca!important;
}
.ag-account-pro-page{
    padding:42px 5vw 54px!important;
}
.ag-account-pro-shell{
    width:min(1320px,100%);
    margin:0 auto;
    direction:rtl;
}
.ag-account-welcome{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
    margin-bottom:18px;
    padding:18px;
    border-radius:28px;
    background:linear-gradient(135deg,rgba(34,197,94,.14),rgba(25,199,255,.10));
    border:1px solid rgba(34,197,94,.18);
    box-shadow:0 20px 55px rgba(15,23,42,.07);
}
html[data-theme="dark"] .ag-account-welcome{
    background:linear-gradient(135deg,rgba(34,197,94,.13),rgba(25,199,255,.08));
    border-color:rgba(34,197,94,.18);
}
.ag-account-welcome-icon{
    width:64px;
    height:64px;
    border-radius:22px;
    display:grid;
    place-items:center;
    color:#fff;
    background:linear-gradient(135deg,#22c55e,#19c7ff);
    font-size:34px;
    box-shadow:0 18px 38px rgba(34,197,94,.22);
}
.ag-account-welcome span,
.ag-account-pro-head span,
.ag-account-pro-user span{
    display:block;
    color:#0b8cff;
    font-size:12px;
    font-weight:1000;
    letter-spacing:.12em;
    text-transform:uppercase;
}
html[data-theme="dark"] .ag-account-welcome span,
html[data-theme="dark"] .ag-account-pro-head span,
html[data-theme="dark"] .ag-account-pro-user span{
    color:#52dcff;
}
.ag-account-welcome h1{
    margin:4px 0 6px;
    color:#07111f;
    font-size:28px;
    font-weight:1000;
}
.ag-account-welcome p{
    margin:0;
    color:#475569;
    font-size:14px;
    line-height:1.8;
    font-weight:800;
}
html[data-theme="dark"] .ag-account-welcome h1{color:#fff;}
html[data-theme="dark"] .ag-account-welcome p{color:#cbd5e1;}
.ag-account-welcome-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
}
.ag-account-welcome-actions a,
.ag-account-pro-actions a{
    height:42px;
    padding:0 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:999px;
    text-decoration:none;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#19c7ff);
    font-size:12px;
    font-weight:1000;
    box-shadow:0 14px 30px rgba(37,99,235,.18);
}
.ag-account-pro-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    min-height:170px;
    padding:28px;
    border-radius:34px;
    background:
        radial-gradient(circle at 12% 18%,rgba(25,199,255,.16),transparent 30%),
        radial-gradient(circle at 86% 20%,rgba(124,58,237,.12),transparent 34%),
        rgba(255,255,255,.78);
    border:1px solid rgba(37,99,235,.10);
    box-shadow:0 28px 80px rgba(15,23,42,.08);
    backdrop-filter:blur(18px);
}
html[data-theme="dark"] .ag-account-pro-hero{
    background:
        radial-gradient(circle at 14% 18%,rgba(25,199,255,.14),transparent 30%),
        radial-gradient(circle at 88% 20%,rgba(124,58,237,.18),transparent 34%),
        rgba(8,18,38,.72);
    border-color:rgba(148,163,184,.13);
    box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.ag-account-pro-user{
    display:flex;
    align-items:center;
    gap:16px;
}
.ag-account-pro-avatar{
    flex:0 0 86px;
    width:86px;
    height:86px;
    border-radius:28px;
    display:grid;
    place-items:center;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#19c7ff);
    box-shadow:0 22px 46px rgba(37,99,235,.20);
    font-size:42px;
}
.ag-account-pro-user h1{
    margin:5px 0 8px;
    color:#07111f;
    font-size:clamp(30px,3vw,46px);
    line-height:1.15;
    font-weight:1000;
}
.ag-account-pro-user p{
    margin:0;
    color:#64748b;
    font-size:15px;
    line-height:1.8;
    font-weight:800;
}
html[data-theme="dark"] .ag-account-pro-user h1{color:#fff;}
html[data-theme="dark"] .ag-account-pro-user p{color:#cbd5e1;}
.ag-account-pro-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}
.ag-account-pro-actions .is-logout{
    background:linear-gradient(135deg,#ef4444,#f97316);
}
.ag-account-pro-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:18px 0;
}
.ag-account-pro-stat{
    min-height:116px;
    padding:18px;
    border-radius:28px;
    display:grid;
    align-content:center;
    gap:4px;
    color:#07111f;
    text-decoration:none;
    background:rgba(255,255,255,.78);
    border:1px solid rgba(37,99,235,.10);
    box-shadow:0 20px 55px rgba(15,23,42,.065);
    transition:transform .22s ease,box-shadow .22s ease;
}
.ag-account-pro-stat:hover{transform:translateY(-4px);box-shadow:0 28px 70px rgba(15,23,42,.10);}
html[data-theme="dark"] .ag-account-pro-stat{
    color:#fff;
    background:rgba(8,18,38,.74);
    border-color:rgba(148,163,184,.13);
    box-shadow:0 22px 60px rgba(0,0,0,.24);
}
.ag-account-pro-stat i{
    width:42px;
    height:42px;
    border-radius:16px;
    display:grid;
    place-items:center;
    color:#fff;
    font-size:24px;
    margin-bottom:4px;
}
.ag-account-pro-stat strong{font-size:28px;font-weight:1000;line-height:1;}
.ag-account-pro-stat span{color:#64748b;font-size:12px;font-weight:900;}
html[data-theme="dark"] .ag-account-pro-stat span{color:#94a3b8;}
.ag-account-pro-stat.is-blue i{background:linear-gradient(135deg,#2563eb,#19c7ff);}
.ag-account-pro-stat.is-pink i{background:linear-gradient(135deg,#ef4444,#f43f8a);}
.ag-account-pro-stat.is-green i{background:linear-gradient(135deg,#16a34a,#22c55e);}
.ag-account-pro-stat.is-purple i{background:linear-gradient(135deg,#7c3aed,#19c7ff);}
.ag-account-pro-layout{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:18px;
}
.ag-account-pro-nav{
    position:sticky;
    top:110px;
    align-self:start;
    display:grid;
    gap:9px;
    padding:14px;
    border-radius:28px;
    background:rgba(255,255,255,.78);
    border:1px solid rgba(37,99,235,.10);
    box-shadow:0 24px 65px rgba(15,23,42,.07);
    backdrop-filter:blur(18px);
}
html[data-theme="dark"] .ag-account-pro-nav{
    background:rgba(8,18,38,.74);
    border-color:rgba(148,163,184,.13);
    box-shadow:0 24px 65px rgba(0,0,0,.24);
}
.ag-account-pro-nav a{
    height:48px;
    padding:0 14px;
    border-radius:17px;
    display:flex;
    align-items:center;
    gap:9px;
    color:#26364d;
    text-decoration:none;
    font-size:13px;
    font-weight:1000;
    transition:.22s ease;
}
html[data-theme="dark"] .ag-account-pro-nav a{color:#dbeafe;}
.ag-account-pro-nav a:hover,
.ag-account-pro-nav a.is-active{
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#19c7ff);
}
.ag-account-pro-nav b{
    margin-inline-start:auto;
    min-width:22px;
    height:22px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.18);
    color:inherit;
    font-size:11px;
}
.ag-account-pro-content{display:grid;gap:18px;min-width:0;}
.ag-account-pro-card{
    padding:22px;
    border-radius:30px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(37,99,235,.10);
    box-shadow:0 24px 70px rgba(15,23,42,.07);
    backdrop-filter:blur(18px);
}
html[data-theme="dark"] .ag-account-pro-card{
    background:rgba(8,18,38,.74);
    border-color:rgba(148,163,184,.13);
    box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.ag-account-pro-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}
.ag-account-pro-head h2{
    margin:4px 0 0;
    color:#07111f;
    font-size:24px;
    font-weight:1000;
}
.ag-account-pro-head p{
    margin:0;
    color:#64748b;
    font-size:13px;
    line-height:1.7;
    font-weight:800;
}
html[data-theme="dark"] .ag-account-pro-head h2{color:#fff;}
html[data-theme="dark"] .ag-account-pro-head p{color:#94a3b8;}
.ag-account-pro-form{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.ag-account-pro-form label{display:block;min-width:0;}
.ag-account-pro-form label span{
    display:block;
    margin-bottom:8px;
    color:#26364d;
    font-size:12px;
    font-weight:1000;
}
html[data-theme="dark"] .ag-account-pro-form label span{color:#dbeafe;}
.ag-account-pro-form input{
    width:100%;
    height:54px;
    border:0;
    outline:0;
    border-radius:18px;
    padding:0 16px;
    background:rgba(255,255,255,.94);
    color:#07111f;
    box-shadow:inset 0 0 0 1px rgba(37,99,235,.12);
    font-family:inherit;
    font-size:14px;
    font-weight:900;
}
html[data-theme="dark"] .ag-account-pro-form input{
    background:rgba(15,23,42,.72);
    color:#fff;
    box-shadow:inset 0 0 0 1px rgba(148,163,184,.14);
}
.ag-account-pro-meta{
    grid-column:1 / 3;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
}
.ag-account-pro-meta span{
    height:38px;
    padding:0 12px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#2563eb;
    background:rgba(37,99,235,.08);
    font-size:12px;
    font-weight:1000;
}
html[data-theme="dark"] .ag-account-pro-meta span{color:#73e5ff;background:rgba(255,255,255,.07);}
.ag-account-pro-form button{
    grid-column:3 / 4;
    height:54px;
    align-self:end;
    border:0;
    border-radius:18px;
    cursor:pointer;
    color:#fff;
    background:linear-gradient(135deg,#22c55e,#22c7ff);
    box-shadow:0 18px 40px rgba(34,197,94,.18);
    font-family:inherit;
    font-size:14px;
    font-weight:1000;
}
.ag-account-pro-posts,
.ag-account-pro-history{display:grid;gap:10px;}
.ag-account-pro-post,
.ag-account-pro-history-item{
    min-height:68px;
    padding:10px;
    border-radius:20px;
    display:grid;
    grid-template-columns:62px minmax(0,1fr) 32px;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#07111f;
    background:rgba(37,99,235,.055);
    border:1px solid rgba(37,99,235,.08);
    transition:.22s ease;
}
.ag-account-pro-history-item{grid-template-columns:44px minmax(0,1fr);}
html[data-theme="dark"] .ag-account-pro-post,
html[data-theme="dark"] .ag-account-pro-history-item{color:#fff;background:rgba(255,255,255,.055);border-color:rgba(148,163,184,.10);}
.ag-account-pro-post:hover,
.ag-account-pro-history-item:hover{transform:translateY(-3px);background:rgba(37,99,235,.09);}
.ag-account-pro-post span{
    width:62px;
    height:50px;
    border-radius:15px;
    overflow:hidden;
    background:rgba(37,99,235,.10);
}
.ag-account-pro-post img{width:100%;height:100%;display:block;object-fit:cover;}
.ag-account-pro-post strong,
.ag-account-pro-history-item strong{font-size:13px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ag-account-pro-history-item > i{
    width:44px;
    height:44px;
    border-radius:15px;
    display:grid;
    place-items:center;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#19c7ff);
    font-size:24px;
}
.ag-account-pro-history-item small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:800;}
html[data-theme="dark"] .ag-account-pro-history-item small{color:#94a3b8;}
.ag-account-pro-empty{
    min-height:86px;
    padding:18px;
    border-radius:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    color:#64748b;
    background:rgba(37,99,235,.06);
    font-size:14px;
    font-weight:1000;
}
html[data-theme="dark"] .ag-account-pro-empty{color:#94a3b8;background:rgba(255,255,255,.06);}
@media (max-width:1180px){
    .ag-account-pro-layout{grid-template-columns:1fr;}
    .ag-account-pro-nav{position:relative;top:auto;grid-template-columns:repeat(4,minmax(0,1fr));}
    .ag-account-pro-nav a{justify-content:center;text-align:center;}
    .ag-account-pro-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
    .ag-account-pro-hero,.ag-account-welcome{grid-template-columns:1fr;}
    .ag-account-pro-form{grid-template-columns:1fr 1fr;}
    .ag-account-pro-meta,.ag-account-pro-form button{grid-column:1 / -1;}
}
@media (max-width:680px){
    .ag-account-pro-page{padding:24px 12px 34px!important;}
    .ag-account-pro-hero{padding:18px;border-radius:26px;}
    .ag-account-pro-user{align-items:flex-start;}
    .ag-account-pro-avatar{width:62px;height:62px;flex-basis:62px;border-radius:20px;font-size:30px;}
    .ag-account-pro-actions,.ag-account-welcome-actions{width:100%;}
    .ag-account-pro-actions a,.ag-account-welcome-actions a{flex:1 1 auto;}
    .ag-account-pro-stats{grid-template-columns:1fr;}
    .ag-account-pro-nav{grid-template-columns:1fr;}
    .ag-account-pro-card{padding:16px;border-radius:24px;}
    .ag-account-pro-head{display:block;}
    .ag-account-pro-head p{margin-top:6px;}
    .ag-account-pro-form{grid-template-columns:1fr;}
    .ag-account-welcome{padding:15px;border-radius:24px;}
    .ag-account-welcome h1{font-size:23px;}
}
/* نهاية كود لوحة الحساب المتقدمة + Gmail فقط */

/* بداية كود ضغط رأس لوحة الحساب ورفع صورة المستخدم */
.ag-account-pro-hero-compact{
    min-height:auto!important;
    padding:16px 18px!important;
    border-radius:28px!important;
    display:grid!important;
    grid-template-columns:minmax(260px,1fr) auto auto!important;
    align-items:center!important;
    gap:14px!important;
}

.ag-account-pro-hero-compact .ag-account-pro-user{
    min-width:0!important;
}

.ag-account-pro-hero-compact .ag-account-pro-avatar{
    flex:0 0 62px!important;
    width:62px!important;
    height:62px!important;
    border-radius:20px!important;
    font-size:31px!important;
    overflow:hidden!important;
}

.ag-account-pro-avatar img{
    width:100%!important;
    height:100%!important;
    display:block!important;
    object-fit:cover!important;
}

.ag-account-pro-hero-compact .ag-account-pro-user h1{
    margin:3px 0 4px!important;
    font-size:clamp(24px,2.2vw,34px)!important;
    line-height:1.1!important;
}

.ag-account-pro-hero-compact .ag-account-pro-user p{
    font-size:13px!important;
    line-height:1.55!important;
}

.ag-account-pro-mini-stats{
    display:grid!important;
    grid-template-columns:repeat(4,auto)!important;
    align-items:center!important;
    gap:8px!important;
}

.ag-account-pro-mini-stat{
    min-width:92px!important;
    height:60px!important;
    padding:8px 10px!important;
    display:grid!important;
    grid-template-columns:28px auto!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:0 7px!important;
    border-radius:18px!important;
    color:#07111f!important;
    text-decoration:none!important;
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(37,99,235,.10)!important;
    box-shadow:0 14px 35px rgba(15,23,42,.055)!important;
}

html[data-theme="dark"] .ag-account-pro-mini-stat{
    color:#ffffff!important;
    background:rgba(15,23,42,.62)!important;
    border-color:rgba(148,163,184,.13)!important;
}

.ag-account-pro-mini-stat i{
    grid-row:1 / 3!important;
    width:28px!important;
    height:28px!important;
    border-radius:11px!important;
    display:grid!important;
    place-items:center!important;
    color:#fff!important;
    background:linear-gradient(135deg,#2563eb,#19c7ff)!important;
    font-size:17px!important;
}

.ag-account-pro-mini-stat b{
    display:block!important;
    font-size:14px!important;
    line-height:1.1!important;
    font-weight:1000!important;
    white-space:nowrap!important;
}

.ag-account-pro-mini-stat span{
    display:block!important;
    color:#64748b!important;
    font-size:10px!important;
    line-height:1.1!important;
    font-weight:900!important;
    white-space:nowrap!important;
}

html[data-theme="dark"] .ag-account-pro-mini-stat span{color:#94a3b8!important;}

.ag-account-pro-stats{display:none!important;}

.ag-account-pro-actions{
    justify-content:flex-end!important;
}

.ag-account-avatar-upload{
    position:relative!important;
}

.ag-account-avatar-upload input[type="file"]{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    opacity:0!important;
    cursor:pointer!important;
}

.ag-account-avatar-upload em{
    height:54px!important;
    padding:0 16px!important;
    border-radius:18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    color:#2563eb!important;
    background:rgba(37,99,235,.08)!important;
    box-shadow:inset 0 0 0 1px rgba(37,99,235,.13)!important;
    font-style:normal!important;
    font-size:13px!important;
    font-weight:1000!important;
    transition:.22s ease!important;
}

.ag-account-avatar-upload:hover em{
    color:#ffffff!important;
    background:linear-gradient(135deg,#2563eb,#19c7ff)!important;
}

html[data-theme="dark"] .ag-account-avatar-upload em{
    color:#73e5ff!important;
    background:rgba(255,255,255,.07)!important;
    box-shadow:inset 0 0 0 1px rgba(148,163,184,.14)!important;
}

.ag-account-pro-form{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

.ag-account-pro-meta{
    grid-column:1 / 4!important;
}

.ag-account-pro-form button{
    grid-column:4 / 5!important;
}

@media(max-width:1180px){
    .ag-account-pro-hero-compact{
        grid-template-columns:1fr!important;
    }
    .ag-account-pro-mini-stats{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        width:100%!important;
    }
    .ag-account-pro-mini-stat{
        min-width:0!important;
    }
    .ag-account-pro-form{
        grid-template-columns:1fr 1fr!important;
    }
    .ag-account-pro-meta,
    .ag-account-pro-form button{
        grid-column:1 / -1!important;
    }
}

@media(max-width:680px){
    .ag-account-pro-hero-compact{
        padding:15px!important;
        border-radius:24px!important;
    }
    .ag-account-pro-mini-stats{
        grid-template-columns:1fr 1fr!important;
    }
    .ag-account-pro-mini-stat{
        height:56px!important;
    }
    .ag-account-pro-form{
        grid-template-columns:1fr!important;
    }
}
/* نهاية كود ضغط رأس لوحة الحساب ورفع صورة المستخدم */
