@font-face { 
    font-family: 'IRANYekanX'; 
    src: url("../files/IRANYekanXVF.435da623b535.woff2") format('woff2-variations'), url("../files/IRANYekanXVF.435da623b535.woff2") format('woff2'); 
    font-weight: 100 900; 
    font-style: normal; 
    font-display: swap; 
}

:root { 
    --bg-color: #fafafa; 
    --text-main: #262626; 
    --text-light: #8e8e8e; 
    --text-muted: #a3a3a3; 
    --theme-color: #4f46e5; 
    --border-color: #dbdbdb; 
    --white: #ffffff; 
    --gray-50: #f9fafb; 
    --gray-100: #f3f4f6; 
    --gray-200: #e5e7eb; 
    --gray-800: #1f2937; 
    --trust-green: #10b981; 
    --gradient-ig: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'IRANYekanX', Tahoma, 'B Yekan', system-ui, sans-serif; background-color: var(--gray-100); color: var(--text-main); line-height: 1.5; display: flex; justify-content: center; }

.app-container { width: 100%; max-width: 420px; min-height: 100vh; background-color: var(--white); position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); overflow-x: hidden; opacity: 0; transition: opacity 0.5s; }

.verified-badge { display: inline-flex; align-items: center; justify-content: center; }
.profile-section { padding: 1.5rem 1rem 0 1rem; }
.profile-header-grid { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; align-items: center; }
.profile-image-container { width: 86px; height: 86px; border-radius: 50%; padding: 3px; background: var(--gray-200); position: relative; transition: transform 0.2s; }
.profile-image-container.has-story { background: var(--gradient-ig); cursor: pointer; }
.profile-image-container.has-story:active { transform: scale(0.95); }
.profile-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid white; background-color: var(--white); }

.stats-container { display: flex; justify-content: space-around; align-items: center; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.stat-label { font-size: 0.8rem; color: var(--text-main); margin-top: -2px; }

.bio-section { margin-top: 1rem; font-size: 0.875rem; }
.bio-name { font-weight: 700; font-size: 1rem; }
.bio-category { color: var(--text-light); margin-bottom: 0.35rem; font-size: 0.8rem; }
.bio-text p { margin-bottom: 0.15rem; }
.badge-text { display: inline-flex; align-items: center; background-color: var(--gray-50); border: 1px solid var(--gray-200); padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; color: var(--theme-color); font-weight: 600; margin-top: 6px; }

.highlights-container { display: flex; overflow-x: auto; padding: 1rem 0.5rem 1.25rem 0.5rem; gap: 0.75rem; -ms-overflow-style: none; scrollbar-width: none; border-bottom: 1px solid var(--border-color); }
.highlights-container::-webkit-scrollbar { display: none; }
.highlight-item { display: flex; flex-direction: column; align-items: center; min-width: 68px; text-decoration: none; }
.highlight-ring { width: 62px; height: 62px; border-radius: 50%; padding: 2px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.highlight-img { width: 100%; height: 100%; border-radius: 50%; background-color: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--text-main); border: 1px solid rgba(0,0,0,0.03); }
.highlight-img svg { width: 24px; height: 24px; color: var(--gray-800); stroke-width: 1.5; }
.highlight-text { font-size: 0.7rem; color: var(--text-main); text-align: center; white-space: nowrap; font-weight: 600; }

.feed-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.feed-tab { flex: 1; text-align: center; padding: 0.6rem 0; color: var(--text-light); cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; }
.feed-tab.active { color: var(--text-main); border-bottom: 2px solid var(--text-main); }
.feed-tab svg { width: 22px; height: 22px; transition: opacity 0.3s ease; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background-color: var(--white); min-height: 150px; align-content: start; }
.post-item { position: relative; aspect-ratio: 4 / 5; background-color: var(--gray-200); overflow: hidden; cursor: pointer; animation: fadeIn 0.4s ease; }
.post-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-item:active .post-image { transform: scale(0.98); }
.post-icon { position: absolute; top: 6px; right: 6px; color: white; filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.4)); width: 20px; height: 20px; pointer-events: none; }
.empty-grid-msg { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--text-light); font-size: 0.85rem; display: none; }

.content-section { padding: 2.25rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.section-title svg { width: 20px; height: 20px; color: var(--theme-color); }

.contact-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-call-direct { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #1f2937, #374151); color: white; padding: 1.1rem; border-radius: 16px; font-size: 1.05rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2); transition: transform 0.2s; letter-spacing: 0.3px; }
.btn-call-direct:active { transform: scale(0.98); }
.btn-call-direct-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.btn-call-direct svg { width: 18px; height: 18px; }
.social-messaging-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.social-btn { background-color: var(--white); border: 1px solid var(--gray-200); padding: 1rem 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.social-btn img { height: 32px; width: auto; max-width: 70%; object-fit: contain; }

.form-card { background-color: var(--white); border: 1px solid var(--gray-200); padding: 1.25rem; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; font-weight: 600; color: var(--text-main); }

.form-input { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border-color); border-radius: 10px; font-family: inherit; font-size: 0.9rem; background-color: var(--gray-50); direction: rtl; text-align: right; transition: all 0.2s; }
input[type="tel"].form-input { direction: ltr; text-align: left; font-family: 'IRANYekanX', Tahoma, 'B Yekan', sans-serif !important; }
.form-input:focus { outline: none; border-color: var(--theme-color); background-color: white; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }

.custom-select-wrapper { position: relative; width: 100%; user-select: none; font-family: 'IRANYekanX', Tahoma, sans-serif !important; }
.custom-select-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border-color); border-radius: 10px; font-family: 'IRANYekanX', Tahoma, sans-serif !important; font-size: 0.9rem; background-color: var(--gray-50); cursor: pointer; color: var(--text-light); transition: all 0.2s; }
.custom-select-trigger.selected-state { color: var(--text-main); background-color: white; border-color: var(--theme-color); font-weight: 700; box-shadow: 0 0 0 3px rgba(0,0,0,0.02); }
.custom-select-trigger svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.3s; }
.custom-select-wrapper.open .custom-select-trigger { border-color: var(--theme-color); background-color: white; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.custom-select-wrapper.open .custom-select-trigger svg { transform: rotate(180deg); color: var(--theme-color); }
.custom-select-options { position: absolute; top: 100%; right: 0; left: 0; margin-top: 6px; background: white; border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 100; max-height: 260px; overflow-y: auto; display: none; flex-direction: column; }
.custom-select-wrapper.open .custom-select-options { display: flex; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.custom-option { padding: 1rem; border-bottom: 1px solid var(--gray-100); cursor: pointer; font-family: 'IRANYekanX', Tahoma, sans-serif !important; font-size: 0.9rem; color: var(--text-main); transition: background 0.2s; display: flex; align-items: center; justify-content: space-between; line-height: 1.6; }
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: var(--gray-50); color: var(--theme-color); }
.custom-option.selected { background: var(--gray-50); color: var(--theme-color); font-weight: 700; }
.custom-option-radio { width: 20px; height: 20px; border: 2px solid var(--border-color); border-radius: 50%; display: inline-block; position: relative; transition: all 0.2s; flex-shrink: 0; margin-right: 12px; }
.custom-option.selected .custom-option-radio { border-color: var(--theme-color); }
.custom-option.selected .custom-option-radio::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: var(--theme-color); border-radius: 50%; }

.btn-submit { width: 100%; padding: 1rem; background-color: var(--theme-color); color: white; border: none; border-radius: 10px; font-weight: bold; font-size: 1rem; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); transition: transform 0.2s; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.shift-btn { border: 1px solid var(--border-color); background: var(--gray-50); border-radius: 10px; padding: 0.75rem; text-align: center; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-main); transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.shift-btn.active { background: var(--theme-color); color: white; border-color: var(--theme-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.shift-btn svg { width: 18px; height: 18px; }

.calendar-wrapper { border: 1px solid var(--border-color); border-radius: 12px; background: var(--white); overflow: hidden; direction: rtl; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--border-color); }
.calendar-nav-btn { background: white; border: 1px solid var(--border-color); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-main); cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.calendar-nav-btn:hover { background: var(--gray-100); color: var(--theme-color); border-color: var(--theme-color); }
.calendar-nav-btn.hidden { opacity: 0.2 !important; pointer-events: none !important; }
.calendar-nav-btn svg { width: 16px; height: 16px; }
.calendar-title { font-weight: 800; font-size: 0.95rem; color: var(--text-main); margin: 0; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.7rem; color: var(--text-muted); font-weight: 700; padding: 0.5rem 0; background: white; border-bottom: 1px dashed var(--gray-200); }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0.75rem; background: white; }

.cal-cell { position: relative; aspect-ratio: 1; display: flex; justify-content: center; align-items: center; font-size: 1rem; font-weight: 700; border-radius: 12px; cursor: pointer; transition: all 0.2s; color: var(--text-main); border: 1px solid transparent; user-select: none; }
.cal-cell.empty { visibility: hidden; }
.cal-cell.disabled { background: repeating-linear-gradient(-45deg, #f9fafb, #f9fafb 4px, #f3f4f6 4px, #f3f4f6 8px); color: #d1d5db; cursor: not-allowed; border: 1px solid #f3f4f6; opacity: 0.8; }
.cal-cell.available { background: var(--white); border: 1px solid var(--gray-200); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.cal-cell.available:hover { border-color: var(--theme-color); color: var(--theme-color); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.cal-cell.active { background: var(--theme-color); color: white; border-color: var(--theme-color); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); transform: scale(1.05); }
.cal-cell.active:hover { transform: scale(1.05); color: white; }
.cal-today-dot { position: absolute; bottom: 4px; width: 4px; height: 4px; background: var(--theme-color); border-radius: 50%; }
.cal-cell.active .cal-today-dot { background: white; }
.cal-cell.disabled .cal-today-dot { background: #9ca3af; }

.specialty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.specialty-card { background-color: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 1rem 0.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.specialty-icon-wrapper { width: 44px; height: 44px; border-radius: 12px; background-color: var(--gray-50); color: var(--theme-color); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem auto; }
.specialty-icon-wrapper svg { width: 24px; height: 24px; }
.specialty-title { font-weight: 700; font-size: 0.85rem; color: var(--text-main); margin-bottom: 0.25rem; }
.specialty-desc { font-size: 0.7rem; color: var(--text-muted); }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background-color: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active { border-color: var(--theme-color); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.faq-header { width: 100%; text-align: right; padding: 1rem; background: none; border: none; font-family: inherit; font-size: 0.9rem; font-weight: 700; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-header svg { width: 20px; height: 20px; color: var(--theme-color); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-header svg { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-content-inner { padding: 0 1rem 1rem 1rem; font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; text-align: justify; white-space: pre-wrap; word-break: break-word; }

.map-container { width: 100%; height: 180px; background-color: var(--gray-200); border-radius: 16px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; text-decoration: none; border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.app-footer { padding: 2rem 1rem 6rem 1rem; text-align: center; font-size: 0.7rem; color: var(--text-muted); border-top: 1px dashed var(--border-color); background-color: var(--gray-50); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; width: 100%; }
.footer-social-btn { color: var(--text-light); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.02); text-decoration: none;}
.footer-social-btn:active { transform: scale(0.95); background: var(--gray-100); }
.footer-social-btn svg { width: 18px; height: 18px; }
.app-footer-brand { font-weight: 700; color: var(--text-light); font-size: 0.75rem; margin-top: 5px; }

.developer-branding { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(0,0,0,0.05); width: 100%; display: flex; justify-content: center; }
.dev-link { display: inline-flex; align-items: center; gap: 6px; color: #6b7280; text-decoration: none; font-size: 0.8rem; font-weight: 700; transition: all 0.2s ease; padding: 8px 16px; border-radius: 20px; background: rgba(0,0,0,0.03); }
.dev-link:hover { background: rgba(0,0,0,0.06); color: var(--theme-color); transform: translateY(-2px); }
.heart-icon { color: #ef4444; width: 16px; height: 16px; animation: heart-beat 1.5s infinite; }
@keyframes heart-beat { 0% { transform: scale(1); } 14% { transform: scale(1.25); } 28% { transform: scale(1); } 42% { transform: scale(1.25); } 70% { transform: scale(1); } }

.toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background-color: var(--theme-color); color: #ffffff; padding: 12px 20px; border-radius: 16px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 100000; opacity: 0; width: max-content; max-width: 90vw; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast.show { top: 30px; opacity: 1; }
.toast svg { width: 24px; height: 24px; flex-shrink: 0; }
.toast span { line-height: 1.6; text-shadow: 0 1px 2px rgba(0,0,0,0.1); word-break: break-word; }

.success-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9999999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; padding: 1.5rem; }
.success-modal-overlay.active { opacity: 1; }
.success-modal-box { background: var(--white); border-radius: 24px; padding: 2.5rem 1.5rem; width: 100%; max-width: 360px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.success-modal-overlay.active .success-modal-box { transform: scale(1); }
.success-icon { width: 72px; height: 72px; background: #dcfce7; color: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem auto; box-shadow: 0 0 0 10px rgba(22, 163, 74, 0.1); }
.success-icon svg { width: 36px; height: 36px; stroke-width: 2.5; }
.success-title { font-size: 1.25rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.75rem; }
.success-message { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.75rem; }
.success-message strong { color: var(--theme-color); font-weight: 700; }
.success-btn-close { width: 100%; background: var(--theme-color); color: white; border: none; padding: 0.9rem; border-radius: 14px; font-weight: bold; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.success-btn-close:active { transform: scale(0.96); }

/* ========================================== */
/* استایل‌های گالری (لایت‌باکس و کپشن پست‌ها) */
/* ========================================== */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 1); z-index: 9999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; touch-action: none; overflow: hidden; }
.lightbox.active { display: flex; opacity: 1; }

.lightbox-close { position: absolute; top: 15px; right: 15px; color: white; z-index: 100000; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.5); border-radius: 50%; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); touch-action: manipulation; }
.lightbox-close:active { background: rgba(0, 0, 0, 0.8); transform: scale(0.95); }
.lightbox-close svg { width: 24px; height: 24px; pointer-events: none; }

.lightbox-share { position: absolute; top: 15px; right: 70px; color: white; z-index: 100000; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.5); border-radius: 50%; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); touch-action: manipulation; }
.lightbox-share:active { background: rgba(0, 0, 0, 0.8); transform: scale(0.95); }
.lightbox-share svg { width: 22px; height: 22px; pointer-events: none; }

.lightbox-slider-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; overflow: hidden; }
.lightbox-slider { display: flex; width: 100%; height: 100%; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); direction: ltr; }

.lightbox-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-slide img, .lightbox-slide video { width: 100%; height: 100%; object-fit: contain; position: absolute; }
.lightbox-slide img.zoomed { transform: scale(2) !important; object-fit: contain; z-index: 10; }

.lightbox-bottom-overlay { position: absolute; bottom: 0; left: 0; right: 0; z-index: 100000; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%); padding: 30px 15px 25px 15px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.lightbox-caption { display: none; direction: rtl; pointer-events: auto; }
.lightbox-caption-user { display: flex; align-items: center; gap: 8px; color: white; font-weight: bold; font-size: 0.9rem; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.lightbox-caption-user img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); object-fit: cover; }
.lightbox-caption-text { color: white; font-size: 0.85rem; line-height: 1.6; white-space: pre-wrap; max-height: 120px; overflow-y: auto; text-shadow: 0 1px 2px rgba(0,0,0,0.8); padding-right: 2px; }

.lightbox-dots { display: flex; justify-content: center; gap: 6px; direction: ltr; pointer-events: none; }
.lightbox-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all 0.3s; }
.lightbox-dot.active { background: #fff; transform: scale(1.3); }

/* ========================================== */

.story-viewer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #111; z-index: 999999; display: none; flex-direction: column; opacity: 0; transition: opacity 0.3s; touch-action: none; }
.story-viewer.active { display: flex; opacity: 1; }
.story-header { position: absolute; top: 15px; left: 10px; right: 10px; z-index: 10; display: flex; gap: 4px; }
.story-progress-container { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; overflow: hidden; }
.story-progress-fill { height: 100%; width: 0%; background: #fff; transform-origin: right; }

.story-top-info { position: absolute; top: 25px; left: 15px; right: 15px; z-index: 10; display: flex; align-items: center; justify-content: space-between; }
.story-user { display: flex; align-items: center; gap: 8px; color: white; font-weight: bold; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.story-user img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); object-fit: cover;}

.story-close { background: none; border: none; color: white; cursor: pointer; padding: 5px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8)); }
.story-close svg { width: 28px; height: 28px; pointer-events: none; }
.story-content-wrapper { flex: 1; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.story-media { max-width: 100%; max-height: 100%; object-fit: contain; position: absolute; width: 100%; height: 100%; }

.story-touch-zone { position: absolute; top: 70px; bottom: 0; z-index: 5; }
.story-touch-left { left: 0; width: 65%; }
.story-touch-right { right: 0; width: 35%; }

.loading-screen { position: fixed; inset: 0; background: var(--gray-100); display: flex; align-items: center; justify-content: center; z-index: 9999999; transition: opacity 0.3s; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--gray-200); border-top-color: var(--theme-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal-up { opacity: 0; transform: translateY(35px); transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
