:root {
    --gold: #e5b35c;
    --gold-border: rgba(229, 179, 92, 0.45);
    --surface: #050302;
    --muted: #a8a8a8;
    --font: 'Cairo', 'Roboto', sans-serif;
}


/* Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}


body {
    background: #000;
    min-height: 100vh;
    min-height: var(--app-h, 100vh);

    display: flex;
    justify-content: center;
    align-items: center;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}


/* الإطار الخارجي */

.outer-gold-frame {
    width: 100%;
    max-width: 426px;

    height: 100vh;
    height: var(--app-h, 100vh);
    max-height: 908px;

    padding: 6px;

    border: 2px solid var(--gold);
    border-radius: 46px;

    background: #000;

    box-shadow: 0 0 25px rgba(229, 179, 92, 0.4);

    display: flex;
}


/* التطبيق */

.app-container {
    width: 100%;
    height: 100%;

    background: var(--surface);

    border: 1.5px solid var(--gold);
    border-radius: 40px;

    overflow: hidden;
    position: relative;

    display: flex;
    flex-direction: column;
}


/* زر الرجوع */

.back-btn-floating {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 30;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(15, 10, 6, 0.88);

    border: 1px solid var(--gold);

    color: var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 14px;
}


/* الإعلان */

.ad-banner {
    min-height: 38px;

    padding: 8px 12px;

    border-bottom: 1px solid var(--gold-border);

    background: linear-gradient(
        90deg,
        #1b1007,
        #3a2410,
        #1b1007
    );
}


.ad-tag {
    color: var(--gold);

    border: 1px solid var(--gold-border);

    border-radius: 20px;

    padding: 1px 8px;

    font-size: 9px;
}


/* منطقة التمرير */

.moments-scroll-area {
    flex: 1;

    overflow-y: auto;

    scroll-behavior: smooth;
}


/* المنشور */

.post-card {
    background: var(--surface);

    border-bottom: 1px solid var(--gold-border);
}


/* Header المنشور */

.post-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;
}


.profile-head {
    display: flex;

    align-items: center;

    gap: 9px;
}


/* صورة Robaty مع Story Ring */

.story-avatar {
    width: 43px;
    height: 43px;

    border: 0;
    padding: 3px;

    border-radius: 50%;

    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );

    cursor: pointer;

    box-shadow: 0 0 13px rgba(229, 179, 92, 0.22);
}


.story-avatar img {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #050302;
}


.profile-meta {
    display: flex;

    flex-direction: column;

    gap: 0;
}


.username-line {
    display: flex;

    align-items: center;

    gap: 5px;

    direction: ltr;
}


.username,
.caption-username {
    color: #fff;

    font-weight: 700;

    font-size: 13px;

    text-decoration: none;
}


.verify-icon {
    color: #1d9bf0;

    font-size: 11px;
}


.post-time {
    color: var(--muted);

    font-size: 10px;
}


.icon-btn,
.action-item {
    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;
}


.icon-btn {
    font-size: 17px;

    padding: 5px;
}


/* زر "حمّلي التطبيق الآن" فالهيدر */

.app-download-banner {
    flex: 1;

    margin: 0 10px;

    display: flex;

    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 38px;

    padding: 7px 12px;

    border-radius: 20px;

    /* خلفية داكنة بلمسة ذهبية خافتة تتماشى مع الهيدر */
    background: linear-gradient(
        135deg,
        rgba(229, 179, 92, 0.16),
        rgba(229, 179, 92, 0.05)
    );

    /* حدود ذهبية بنفس سماكة إطار الصفحة */
    border: 1.5px solid var(--gold);

    /* نص أبيض دافئ واضح فوق الخلفية الداكنة */
    color: #fff3cf;

    font-size: 12.5px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    -webkit-tap-highlight-color: transparent;

    animation: banner-glow 6s ease-in-out infinite;
}

.app-download-banner:active {
    background: rgba(229, 179, 92, 0.28);
}


/* نبضتان ضوئيتان متتاليتان خلال 3 ثوان، تتكرران كل 6 ثوان (التوهج أخف بـ 30%) */
@keyframes banner-glow {
    0%, 25%, 50%, 100% {
        box-shadow:
            0 0 4px rgba(229, 179, 92, 0.25),
            inset 0 0 3px rgba(229, 179, 92, 0.07);
        border-color: rgba(229, 179, 92, 0.75);
    }

    12.5%, 37.5% {
        box-shadow:
            0 0 7px 1px rgba(255, 214, 130, 0.67),
            0 0 18px 3.5px rgba(229, 179, 92, 0.49),
            inset 0 0 8px rgba(229, 179, 92, 0.27);
        border-color: #ffd98a;
    }
}


/* الأيقونة وحدها تتحرك (النص يبقى ثابتا) */

.app-download-icon {
    display: inline-block;

    transform-origin: 50% 60%;

    animation: icon-wiggle 3s ease-in-out infinite;
}

/* حركتان خفيفتان (كل واحدة 0.43 ثانية)، تتكرران كل 3 ثوان */
@keyframes icon-wiggle {
    0%         { transform: rotate(0deg) scale(1); }
    4.8%       { transform: rotate(-16deg) scale(1.12); }
    9.6%       { transform: rotate(16deg) scale(1.12); }
    14.4%      { transform: rotate(0deg) scale(1); }
    19.2%      { transform: rotate(-16deg) scale(1.12); }
    24%        { transform: rotate(16deg) scale(1.12); }
    28.8%, 100% { transform: rotate(0deg) scale(1); }
}


/* عند لمس الزر: كل الحركة تتوقف للأبد ويبقى توهج هادئ ثابت */

html.dl-btn-calm .app-download-banner {
    animation: none;

    box-shadow:
        0 0 7px rgba(229, 179, 92, 0.45),
        inset 0 0 5px rgba(229, 179, 92, 0.12);

    border-color: var(--gold);
}

html.dl-btn-calm .app-download-icon {
    animation: none;
}


@media (prefers-reduced-motion: reduce) {
    .app-download-banner,
    .app-download-icon {
        animation: none;
    }
}


/* الصورة بنسبة 4:5 */

.post-image-container {
    width: 100%;

    aspect-ratio: 4 / 5;

    position: relative;

    overflow: hidden;

    background: #000;
}


.post-main-img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* مكان الصورة */

.location-pill {
    position: absolute;

    right: 12px;
    bottom: 12px;

    color: #fff;

    background: rgba(8, 7, 5, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 18px;

    padding: 5px 10px;

    font-size: 10px;

    backdrop-filter: blur(6px);
}


.location-pill i {
    color: var(--gold);

    margin-right: 4px;
    margin-left: 0;
}


/* شريط التفاعل */

.post-actions-bar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    direction: ltr;

    padding: 10px 14px 6px;
}


.left-actions {
    display: flex;

    align-items: center;

    gap: 15px;
}


.action-item {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 20px;
}


.action-item span {
    font-size: 13px;

    color: #ddd;
}


.action-item.liked i {
    color: #ff3040;
}


.action-item.saved i {
    color: var(--gold);
}


/* النص */

.post-caption-section {
    padding: 0 14px 16px;
}


.caption-username {
    direction: ltr;

    text-align: right;

    margin-bottom: 3px;
}


.six-line-caption {
    color: #fff;

    font-size: 14px;

    line-height: 1.75;

    overflow-wrap: anywhere;

    max-height: 98px;

    overflow: hidden;

    transition: max-height 0.25s ease;
}


.post-card.caption-expanded .six-line-caption {
    max-height: 500px;
}


.caption-more-btn {
    display: block;

    margin-top: 4px;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    text-align: right;
}


.post-card.caption-expanded .caption-more-btn {
    display: none;
}


/* Story Modal */

.story-modal {
    position: absolute;

    inset: 0;

    z-index: 100;

    display: none;
}


.story-modal.active {
    display: block;
}


.story-backdrop {
    position: absolute;

    inset: 0;

    background: #000;
}


.story-content {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    padding: 12px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


/* Story Progress */

.story-progress-bar {
    height: 3px;
    width: 100%;

    background: rgba(255, 255, 255, 0.28);

    border-radius: 4px;

    overflow: hidden;

    z-index: 4;
}


.progress-fill {
    width: 100%;
    height: 100%;

    background: var(--gold);
}


/* Story Header */

.story-header {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 8px;

    z-index: 4;
}


.story-mini-avatar {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    border: 1px solid var(--gold);

    object-fit: cover;
}


.story-username {
    color: #fff;

    font-size: 12px;

    font-weight: 700;
}


.story-time {
    color: var(--muted);

    font-size: 10px;
}


.close-story-btn {
    margin-inline-start: auto;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 20px;

    cursor: pointer;
}


/* صورة Story */

.story-bg-img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}


/* مناطق التنقل بين الـ Stories */

.story-nav-zone {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 30%;

    z-index: 3;

    cursor: pointer;
}

.story-nav-left {
    left: 0;
}

.story-nav-right {
    right: 0;
}


.story-content::after {
    content: '';

    position: absolute;

    inset: 0;

    z-index: 2;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.22),
        transparent 35%,
        rgba(0, 0, 0, 0.72)
    );

    pointer-events: none;
}


/* بطاقة Story */

.story-caption-card {
    position: relative;

    z-index: 4;

    margin-bottom: 8px;

    padding: 14px;

    background: rgba(10, 6, 3, 0.86);

    border: 1px solid var(--gold);

    border-radius: 17px;

    backdrop-filter: blur(8px);
}


.story-kicker {
    color: var(--gold);

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 5px;
}


.story-caption-card h3 {
    color: #fff;

    font-size: 14px;

    margin-bottom: 10px;
}


.story-options {
    display: grid;

    gap: 8px;
}


.story-option {
    width: 100%;

    padding: 9px 11px;

    border-radius: 18px;

    border: 1px solid var(--gold-border);

    background: rgba(0, 0, 0, 0.32);

    color: #fff;

    text-align: right;

    cursor: pointer;

    font-size: 11px;
}


.story-option.selected {
    background: linear-gradient(
        90deg,
        rgba(229, 179, 92, 0.28),
        rgba(229, 179, 92, 0.08)
    );

    border-color: var(--gold);
}


.story-result {
    color: #f5d28c;

    font-size: 10px;

    margin-top: 9px;

    min-height: 16px;
}


/* نافذة عامة فارغة: تعليق / إعادة نشر / مشاركة */

.simple-modal {
    position: absolute;

    inset: 0;

    z-index: 110;

    display: none;
}


.simple-modal.active {
    display: block;
}


.simple-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.62);
}


.simple-modal-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    max-height: 55%;

    background: var(--surface);

    border: 1px solid var(--gold);
    border-bottom: none;

    border-radius: 20px 20px 0 0;

    padding: 14px;

    display: flex;

    flex-direction: column;
}


.simple-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 10px;

    border-bottom: 1px solid var(--gold-border);

    margin-bottom: 14px;

    color: #fff;

    font-weight: 700;

    font-size: 14px;
}


.simple-modal-body {
    flex: 1;

    min-height: 120px;

    overflow-y: auto;

    display: flex;

    align-items: center;
    justify-content: center;
}


.simple-modal-empty {
    color: var(--muted);

    font-size: 13px;
}


.share-fallback {
    display: grid;

    gap: 10px;

    width: 100%;
}


.share-fallback-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 14px;

    border-radius: 18px;

    border: 1px solid var(--gold-border);

    background: rgba(255, 255, 255, 0.04);

    color: #fff;

    font-size: 13px;

    text-decoration: none;

    cursor: pointer;
}


.share-fallback-btn i {
    font-size: 15px;
}


.share-fallback-btn .fa-whatsapp {
    color: #25d366;
}


/* نافذة التعليقات */

.comments-wrap {
    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;

    gap: 10px;
}


.comments-auth-bar {
    flex-shrink: 0;
}


.comments-signin-btn {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid var(--gold-border);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.05);

    color: #fff;

    font-size: 12.5px;

    font-weight: 700;

    cursor: pointer;
}


.comments-user {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12.5px;

    color: #ddd;
}


.comments-user-avatar {
    width: 26px;

    height: 26px;

    border-radius: 50%;

    object-fit: cover;
}


.comments-signout-btn {
    margin-inline-start: auto;

    background: transparent;

    border: 1px solid var(--gold-border);

    color: var(--muted);

    border-radius: 10px;

    padding: 5px 10px;

    font-size: 11px;

    cursor: pointer;
}


.comments-list {
    flex: 1;

    min-height: 120px;

    max-height: 260px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 10px;

    padding-inline-end: 2px;
}


.comments-loading,
.comments-empty {
    color: var(--muted);

    font-size: 12.5px;

    text-align: center;

    padding: 20px 10px;
}


.comment-item {
    display: flex;

    gap: 8px;
}


.comment-avatar {
    width: 28px;

    height: 28px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.08);
}


.comment-body {
    background: rgba(255, 255, 255, 0.05);

    border-radius: 12px;

    padding: 7px 10px;

    flex: 1;
}


.comment-author {
    font-size: 11.5px;

    font-weight: 700;

    color: var(--gold);

    margin-bottom: 2px;
}


.comment-text {
    font-size: 12.5px;

    color: #eee;

    line-height: 1.6;

    word-break: break-word;
}


.comments-input-bar {
    flex-shrink: 0;

    display: flex;

    gap: 8px;

    align-items: flex-end;
}


.comment-input {
    flex: 1;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--gold-border);

    border-radius: 14px;

    color: #fff;

    padding: 8px 10px;

    font-size: 12.5px;

    font-family: inherit;

    resize: none;
}


.comment-send-btn {
    background: linear-gradient(135deg, var(--gold), #c99544);

    color: #1a1409;

    border: 0;

    border-radius: 14px;

    padding: 9px 14px;

    font-size: 12.5px;

    font-weight: 700;

    cursor: pointer;

    flex-shrink: 0;
}


/* الهواتف الصغيرة */

@media (max-width: 360px) {

    .left-actions {
        gap: 10px;
    }

    .six-line-caption {
        font-size: 13px;
    }

}


/* ==========================================================================
   اللحظات الجديدة: المكان تحت الاسم، نص الـ Story، سؤال التحدي
   ========================================================================== */

/* اسم المكان تحت اسم الحساب (بدل "اليوم · 07:00 AM") */

.post-time i {
    color: var(--gold);

    font-size: 9px;

    margin-inline-end: 3px;
}


/* Story: جملة قصيرة مكتوبة على الصورة من الأسفل */

.story-text-wrap {
    position: relative;

    z-index: 4;

    margin-top: auto;
    margin-bottom: 34px;

    padding: 0 18px;

    text-align: center;

    pointer-events: none;
}

.story-text {
    white-space: pre-line;   /* باش سطرين د النص فالـ Story يبقاو سطرين */

    color: #fff;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.55;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 3px 16px rgba(0, 0, 0, 0.75);

    overflow-wrap: anywhere;
}


/* سؤال التحدي فوق التعليقات */

.comments-challenge {
    flex-shrink: 0;

    padding: 10px 12px;

    border: 1px solid var(--gold-border);
    border-radius: 14px;

    background: linear-gradient(
        90deg,
        rgba(229, 179, 92, 0.18),
        rgba(229, 179, 92, 0.05)
    );
}

.comments-challenge-label {
    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    margin-bottom: 4px;
}

.comments-challenge-text {
    color: #fff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}


/* ما كاينش منشورات بعد */

.moments-empty {
    color: var(--muted);

    font-size: 13px;

    text-align: center;

    padding: 60px 20px;
}


/* Story: تقريب خفيف للصورة باش تتخبا الشارات المطبوعة فالصورة (الوقت والمكان) وتبان الصورة ممتلئة */

.story-bg-img {
    transform: scale(1.22);
}


/* مكان الصورة فهيدر الـ Story: وضوح أكبر فوق الصور الفاتحة */

.story-time {
    color: rgba(255, 255, 255, 0.88);

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}



/* اللغات من اليسار لليمين (الإنجليزية، الفرنسية، الإسبانية، الروسية) */

:root[dir="ltr"] .caption-username,
:root[dir="ltr"] .caption-more-btn {
    text-align: left;
}


/* ==========================================================================
   التعليقات على طريقة إنستغرام
   ========================================================================== */

.comments-sheet {
    height: 84%;
    max-height: none;

    padding: 10px 0 0;

    border-radius: 22px 22px 0 0;
}

.comments-sheet::before {
    content: '';

    flex-shrink: 0;

    width: 38px;
    height: 4px;

    margin: 0 auto 8px;

    border-radius: 2px;

    background: rgba(255, 255, 255, 0.35);
}

.comments-sheet .simple-modal-header {
    position: relative;

    flex-shrink: 0;

    justify-content: center;

    margin: 0;
    padding: 4px 14px 12px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-sheet .close-story-btn {
    position: absolute;

    top: 0;
    inset-inline-start: 14px;
}

.comments-sheet .simple-modal-body {
    align-items: stretch;
    justify-content: flex-start;

    min-height: 0;

    overflow: hidden;
}

.comments-wrap {
    gap: 0;
}

.comments-list {
    flex: 1;

    min-height: 0;
    max-height: none;

    padding: 14px;

    gap: 18px;

    overflow-y: auto;
}

.comment-item {
    align-items: flex-start;

    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
}

.comment-avatar-letter {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #c2185b;

    color: #fff;

    font-size: 15px;
    font-weight: 700;
}

.comment-main {
    flex: 1;

    min-width: 0;
}

.comment-head {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 2px;
}

.comment-author {
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 0;
}

.comment-verify {
    color: #3897f0;

    font-size: 11px;
}

.comment-time {
    color: var(--muted);

    font-size: 12px;
}

.comment-item.pinned .comment-time {
    color: var(--gold);

    font-weight: 700;
}

.comment-text {
    color: #f2f2f2;

    font-size: 14px;
    line-height: 1.65;
}

.comment-like {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 2px;

    min-width: 30px;

    padding: 2px 4px;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 11.5px;

    cursor: pointer;
}

.comment-like i {
    font-size: 16px;
}

.comment-like.liked i {
    color: #ff3040;
}

.comments-composer {
    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 8px 14px 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    background: var(--surface);
}

.comments-quick {
    display: flex;

    justify-content: space-between;
}

.quick-emoji {
    border: 0;

    background: transparent;

    font-size: 24px;
    line-height: 1;

    padding: 2px;

    cursor: pointer;
}

.comments-inputrow {
    display: flex;

    align-items: center;

    gap: 10px;
}

.comments-inputrow .comment-avatar {
    flex-shrink: 0;
}

.comment-input-wrap {
    flex: 1;

    display: flex;

    align-items: center;

    padding-inline: 14px 6px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.04);
}

.comment-input-wrap .comment-input {
    flex: 1;

    min-width: 0;
    max-height: 90px;

    padding: 9px 0;

    border: 0;
    border-radius: 0;

    outline: 0;

    background: transparent;

    font-size: 14px;
}

.comment-input-wrap .comment-send-btn {
    padding: 6px 10px;

    border-radius: 16px;

    background: transparent;

    color: var(--gold);

    font-size: 13px;
    font-weight: 700;

    opacity: 0.35;

    pointer-events: none;
}

.comment-input-wrap .comment-send-btn.active {
    opacity: 1;

    pointer-events: auto;
}

.comments-userline {
    color: var(--muted);

    font-size: 11px;

    text-align: center;
}

.comments-userline button {
    border: 0;

    background: transparent;

    color: var(--gold);

    font-size: 11px;

    text-decoration: underline;

    cursor: pointer;
}

.comments-composer .comments-signin-btn {
    width: 100%;
}


/* ==========================================================================
   Story: عبارة اليوم "سمعيني مزيان" (كتتكتب فـ 3 ثواني + إيموجي كيتحرك)
   ========================================================================== */

.story-kicker {
    position: absolute;

    top: 10%;
    right: 4%;

    width: 46%;

    z-index: 3;

    text-align: right;

    pointer-events: none;
}

.story-kicker.kicker-left {
    left: 4%;
    right: auto;

    text-align: left;
}

.story-kicker.kicker-center {
    left: 50%;
    right: auto;

    width: 84%;

    text-align: center;

    transform: translateX(-50%);
}

.kicker-line > span:first-child {
    display: inline-block;

    text-align: start;
}

.kicker-line {
    display: block;

    min-height: 1.2em;

    white-space: nowrap;

    font-size: var(--kicker-size, 44px);
    font-weight: 800;
    line-height: 1.2;

    color: #ffe3a3;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(0, 0, 0, 0.4),
        0 0 26px rgba(229, 179, 92, 0.55);
}

.kicker-line.typing > span:first-child::after {
    content: '';

    display: inline-block;

    width: 3px;
    height: 0.85em;

    margin-inline: 4px -7px;

    vertical-align: -0.08em;

    background: currentColor;

    animation: kickerBlink 0.7s steps(1) infinite;
}

.kicker-emoji {
    display: inline-block;

    margin-inline-start: 8px;

    font-size: 0.92em;

    opacity: 0;

    transform: scale(0.2) rotate(-25deg);

    text-shadow: none;
}

.kicker-emoji.show {
    animation:
        kickerPop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) forwards,
        kickerListen 1.8s ease-in-out 0.7s infinite;
}

@keyframes kickerBlink {
    50% { opacity: 0; }
}

@keyframes kickerPop {
    from { opacity: 0; transform: scale(0.2) rotate(-25deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes kickerListen {
    0%, 100% { transform: scale(1) rotate(0deg); }
    40%      { transform: scale(1.1) rotate(-12deg); }
    70%      { transform: scale(1.04) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .kicker-emoji.show {
        animation: none;

        opacity: 1;

        transform: none;
    }
}


/* الحفاظ على الأسطر فنص التعليق (سؤال التحدي فيه عدة أسطر) */

.comment-text {
    white-space: pre-line;
}

/* زر الإغلاق باين حتى فوق السماء الفاتحة */

.story-header .close-story-btn,
.story-modal .close-story-btn {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
}


/* ===== توهج دائرة الـ Story عند وجود منشور جديد ===== */

.story-avatar.is-new {
    border-radius: 50%;

    animation: story-new-glow 2.6s ease-in-out infinite;
}

@keyframes story-new-glow {
    0%, 100% {
        box-shadow:
            0 0 3px 0.5px rgba(255, 190, 90, 0.22),
            0 0 7px 1px rgba(214, 41, 118, 0.12);
    }

    50% {
        box-shadow:
            0 0 6px 1.5px rgba(255, 205, 110, 0.42),
            0 0 13px 3px rgba(214, 41, 118, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-avatar.is-new {
        animation: none;

        box-shadow:
            0 0 5px 1px rgba(255, 200, 100, 0.35),
            0 0 10px 2px rgba(214, 41, 118, 0.18);
    }
}


/* ستوري لم تُشاهد (منشورات أقدم): توهج هادئ ثابت دون نبض */

.story-avatar.is-unseen {
    box-shadow:
        0 0 5px 1px rgba(255, 190, 90, 0.30),
        0 0 10px 2px rgba(214, 41, 118, 0.16);
}


/* ستوري شوهدت: نفس الحلقة بألوان باهتة ودون توهج */

.story-avatar.is-seen {
    background: linear-gradient(
        45deg,
        rgba(254, 218, 117, 0.68),
        rgba(250, 126, 30, 0.68),
        rgba(214, 41, 118, 0.68),
        rgba(150, 47, 191, 0.68),
        rgba(79, 91, 213, 0.68)
    );

    box-shadow: none;
}


/* ===== زر السهم: تأثير الضغط (طبقة بيضاء 10% بنفس شكل الزر الدائري) =====
   كنحيدو التظليل الأزرق الافتراضي ديال أندرويد ونعوضوه بطبقة بيضاء. */
.back-btn-floating {
    -webkit-tap-highlight-color: transparent;
}

.back-btn-floating::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.10);
    opacity: 0;
    pointer-events: none;
}

.back-btn-floating:active::after {
    opacity: 1;
}
