* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
     
    --primary-cyan: #4FD1FF;
    --primary-purple: #A855F7;
    --primary-blue: #3B82F6;
    
     
    --bg-color: #F8F9FC;
    --text-dark: #111;
    --text-muted: #666;
    --white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(79, 209, 255, 0.2);
}
a {
    text-decoration: none;
}


body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
}

 

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    z-index: 2000;
}

.logo img {
    height: 35px;
}

.menu-btn {
    position: absolute;
    right: 25px;
    font-size: 26px;
    background: none;
    border: none;
    color: var(--primary-cyan);
    cursor: pointer;
    transition: 0.3s;
}

.menu-btn:hover {
    color: var(--primary-purple);
}

 

.overlay {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
z-index: 9000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

 

.art-sidebar {
    position: fixed;
    top: 75px;
    right: 0;
    width: 380px;
    height: calc(100vh - 75px);
    background: transparent;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(.77,0,.18,1);
    z-index: 9001;
}

.art-sidebar.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 40%;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #eeeeee;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    background: #ddd;
}
.menu-item {
    position: absolute;
    background: white;
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 5px 15px var(--shadow-light);
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s ease;
}

.menu-item:hover {
    transform: scale(1.05);
}

.art-sidebar.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

.art-sidebar.active .item1 { transition-delay: 0.1s; }
.art-sidebar.active .item2 { transition-delay: 0.2s; }
.art-sidebar.active .item3 { transition-delay: 0.3s; }
.art-sidebar.active .item4 { transition-delay: 0.4s; }
.art-sidebar.active .item5 { transition-delay: 0.5s; }

.item1 { top: 8%;  right: 60px; }
.item2 { top: 22%; right: 150px; }
.item3 { top: 40%; right: 210px; }
.item4 { top: 58%; right: 150px; }
.item5 { top: 75%; right: 60px; }
 

.author-page {
    padding-top: 95px;
    min-height: 100vh;
}

 

.author-profile {
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.author-profile::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 209, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.author-profile::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

 

.image-wrapper {
    position: relative;
    width: 270px;
    height: 270px;
    margin: 0 auto 30px;
}

.rotating-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-cyan),
        var(--primary-purple),
        var(--primary-blue),
        var(--primary-cyan)
    );
    animation: rotate 4s linear infinite;
    filter: blur(8px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 10px 40px var(--shadow-heavy);
    animation: imageFloat 3s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 

.author-name {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 

.tags-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: tagSlideIn 0.6s ease-out backwards;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}

.tag-1 {
    background: linear-gradient(135deg, #4FD1FF, #3B82F6);
    color: white;
    animation-delay: 0.1s;
}

.tag-2 {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: white;
    animation-delay: 0.2s;
}

.tag-3 {
    background: linear-gradient(135deg, #3B82F6, #4FD1FF);
    color: white;
    animation-delay: 0.3s;
}

.tag-4 {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    animation-delay: 0.4s;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

 

.content-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px var(--shadow-light);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
z-index: 50;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tabs-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;  
}

.tabs-container::-webkit-scrollbar {
    display: none;  
}

.tab-btn {
    flex: 1;
    height: 100%;
    min-width: auto;
    max-width: 120px;
    padding: 10px 8px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.tab-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.05);
}

.tab-btn.active {
    color: var(--primary-purple);
    font-weight: 700;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn span {
    font-size: 0.85rem;
    white-space: nowrap;
}

.tab-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.15);
}

.tab-btn.active .tab-icon {
    stroke: var(--primary-purple);
}

 

.tab-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 100px 20px;  
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 5px 30px var(--shadow-light);
}

.section-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 2px;
}

 

.bio-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.bio-text p {
    margin-bottom: 20px;
}

 
.social-media {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed rgba(79, 209, 255, 0.3);
}

.social-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.social-links {
    
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link svg {
    color: #fff;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    transform: scale(1.1);
}
.social-link.whatsapp {
    background-color: #25D366;
}

.social-link.whatsapp:hover {
    background-color: #1ebe5d;
}


.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.facebook::before {
    background: #1877F2;
}

.facebook:hover {
    color: white;
}

.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1DA1F2;
}

.twitter::before {
    background: #1DA1F2;
}

.twitter:hover {
    color: white;
}

.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
}

.instagram::before {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.instagram:hover {
    color: white;
}

.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
}

.youtube::before {
    background: #FF0000;
}

.youtube:hover {
    color: white;
}

.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077B5;
}

.linkedin::before {
    background: #0077B5;
}

.linkedin:hover {
    color: white;
}

.tiktok {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.tiktok::before {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
}

.tiktok:hover {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px var(--shadow-heavy);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

 

 
.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-cyan);
    background: white;
    color: var(--primary-cyan);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(79, 209, 255, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border-color: transparent;
}

.writings-grid {
    display: grid;
    gap: 25px;
}

.writing-card {
    background: #f8f9fc;
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid var(--primary-cyan);
    transition: all 0.3s ease;
}

.writing-card.hidden {
    display: none;
}

.writing-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
    border-right-color: var(--primary-purple);
}

.writing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.writing-type-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
}

.type-poem {
    background: linear-gradient(135deg, #4FD1FF, #3B82F6);
}

.type-khatrah {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
}

.type-story {
    background: linear-gradient(135deg, #10B981, #059669);
}

.type-article {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.writing-date {
    font-size: 0.85rem;
    color: var(--primary-purple);
    font-weight: 600;
}

.writing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.writing-excerpt {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-purple);
}

 

.books-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.book-container {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, #f8f9fc, #faf5ff);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.book-container:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px var(--shadow-heavy);
    transform: translateY(-5px);
}

.book-cover-large {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.4s ease;
    position: relative;
}

.book-container:hover .book-cover-large {
    transform: scale(1.05) rotate(-2deg);
}

.book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title-large {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: 'Amiri', serif;
}

.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* إخفاء السنة والـ book-meta القديمة */
.book-year {
    display: none;
}

.book-meta {
    display: none;
}

/* نوع الكتاب — badge فوق الصورة */
.book-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-purple), #7C3AED);
    color: white;
    padding: 5px 13px;
    border-radius: 15px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

.book-cover-large {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.4s ease;
    position: relative;
}

.book-description {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.book-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.book-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 1.5px solid rgba(79, 209, 255, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.book-stats span:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(79, 209, 255, 0.2);
    transform: translateY(-1px);
}

.book-stats strong {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1rem;
}

.btn-details {
    align-self: flex-start;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

.btn-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-heavy);
}

.btn-details:active {
    transform: translateY(-1px);
}

 

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #f8f9fc;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--primary-purple);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    padding: 15px 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.video-duration {
    padding: 0 5px 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

 

.achievements-timeline {
    position: relative;
    padding-right: 40px;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-purple));
}

.achievement-item {
    position: relative;
    padding: 25px 30px 25px 0;
    margin-bottom: 20px;
}

.achievement-item::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 30px;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 209, 255, 0.2);
    transition: all 0.3s ease;
}

.achievement-item:hover::before {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.2);
    transform: scale(1.3);
}

.achievement-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.achievement-details h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.achievement-details p {
    color: var(--text-muted);
    line-height: 1.6;
}

 

@media (max-width: 768px) {
    .author-name {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 10px 6px;
        gap: 4px;
    }
    
    .tab-btn span {
        font-size: 0.75rem;
    }
    
    .tab-icon {
        width: 22px;
        height: 22px;
    }
    
    .content-card {
        padding: 25px 18px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
     
    .book-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .book-cover-large {
        width: 100%;
        max-width: 250px;
        height: 350px;
        margin: 0 auto;
    }
    
    .book-title-large {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .book-meta {
        justify-content: center;
    }
    
    .book-stats {
        justify-content: center;
    }
    
    .btn-details {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }

    /* ===== كرت الكتاب موبايل — حدود ملونة + stats containers ===== */

    .book-container {
        border: 2px solid transparent;
        background:
            linear-gradient(#f8f9fc, #faf5ff) padding-box,
            linear-gradient(135deg, var(--primary-cyan), var(--primary-purple), var(--primary-cyan)) border-box;
        box-shadow: 0 8px 30px rgba(79, 209, 255, 0.15);
    }

    .book-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        margin-bottom: 20px;
    }

    .book-stats span {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background: white;
        border-radius: 12px;
        padding: 11px 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1.5px solid rgba(79, 209, 255, 0.2);
        font-size: 0.88rem;
        color: var(--text-muted);
        direction: rtl;
        gap: 8px;
    }

    .book-stats strong {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-purple);
        display: inline;
        order: 1;
        margin-inline-start: auto;
    }

    /* زر عرض التفاصيل */
    .view-details-btn {
        display: block;
        width: 100%;
        padding: 14px;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
        color: white;
        border-radius: 15px;
        font-family: 'Cairo', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
    }

    .view-details-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    }
    
     
    .filter-container {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .writing-card {
        padding: 20px;
    }
    
    .writing-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
     
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .art-sidebar {
        width: 100%;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .bio-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .achievements-timeline {
        padding-right: 30px;
    }
    
    .achievement-item {
        padding: 20px 25px 20px 0;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .tags-container {
        gap: 6px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .tab-btn {
        padding: 8px 4px;
        gap: 2px;
    }
    
    .tab-btn span {
        font-size: 0.7rem;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
     
    .book-cover-large {
        height: 300px;
    }
    
    .book-title-large {
        font-size: 1.3rem;
    }
    
    .book-description {
        font-size: 0.95rem;
    }
    
    .book-stats {
        font-size: 0.85rem;
        gap: 15px;
    }
    
     
    .filter-btn {
        padding: 7px 15px;
        font-size: 0.8rem;
    }
    
    .writing-title {
        font-size: 1.2rem;
    }
    
    .writing-type-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
     
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .achievement-details h3 {
        font-size: 1.1rem;
    }
    
    .tab-content-container {
        padding: 15px 15px 90px 15px;
    }
}

 

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .author-profile {
        padding: 30px 20px 20px;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .author-name {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .tags-container {
        margin-top: 10px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .tab-btn {
        padding: 8px 6px;
    }
    
    .content-tabs {
        box-shadow: 0 -2px 10px var(--shadow-light);
    }
    
    .social-media {
        margin-top: 30px;
        padding-top: 20px;
    }
}

 

.author-profile-inline {
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 20px;
}

.author-profile-inline::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 209, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.author-profile-inline::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

 

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.achievement-container {
    background: linear-gradient(135deg, #f8f9fc, #faf5ff);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.achievement-container.no-certificate {
    display: block;
}

.achievement-container:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px var(--shadow-heavy);
    transform: translateY(-5px);
}

.achievement-content {
    flex: 0 0 auto;
    width: 100%;
}

.achievement-year-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.achievement-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: 'Amiri', serif;
}

.achievement-description {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.achievement-certificate {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1.5/1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-medium);
    transition: transform 0.4s ease;
    margin: 0 auto;
}

.achievement-container:hover .achievement-certificate {
    transform: scale(1.02);
}

.achievement-certificate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    padding: 40px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-purple);
    color: white;
    transform: rotate(90deg);
}

/* زر المشاركة — قصاد زر الإغلاق على اليمين */
.modal-share-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-share-icon svg {
    width: 18px;
    height: 18px;
    stroke: #555;
    transition: stroke 0.3s ease;
}

.modal-share-icon:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    transform: scale(1.1);
}

.modal-share-icon:hover svg {
    stroke: white;
}

/* Toast إشعار النسخ */
.share-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* زر المشاركة في صفحة الكتاب */
.share-btn {
    background: white;
    color: #555;
    border: 2px solid #e0e0e0;
    flex: 0 0 auto;
    padding: 1rem 1.5rem;
}

.share-btn:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 209, 255, 0.3);
}

.modal-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

.modal-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-author-name {
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.modal-writing-content {
    margin-bottom: 40px;
}

.modal-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: center;
}

.modal-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--text-dark);
    text-align: justify;
}

.modal-text p {
    margin-bottom: 20px;
}

.modal-author-signature {
    text-align: left;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.modal-author-signature span {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-purple);
}

 

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

 

@media (max-width: 768px) {
    .author-profile-inline {
        padding: 30px 15px 20px;
    }
    
    .image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto 25px;
    }
    
    .author-name {
        font-size: 2.2rem;
    }
    
    .achievement-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .achievement-certificate {
        width: 100%;
        aspect-ratio: 1/0.7;
        max-width: 100%;
        margin: 0;
    }
    
    .achievement-title {
        font-size: 1.2rem;
    }
    
    .achievement-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .achievement-year-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .modal-content {
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-text {
        font-size: 1rem;
        line-height: 2;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .achievement-certificate {
        aspect-ratio: 1/0.7;
    }
    
    .achievement-year-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .achievement-title {
        font-size: 1.1rem;
    }
    
    .achievement-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .modal-author-image {
        width: 80px;
        height: 80px;
    }
    
    .modal-author-name {
        font-size: 1.3rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
}


 

.achievements-timeline .achievement-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.achievement-certificate {
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    height: auto;
    order: -1;  
    margin: 0 auto;
}

.achievement-certificate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-certificate:hover {
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
}

.achievement-content {
    order: 1;  
}

.achievement-title {
    font-size: 1.4rem;
}

.achievement-year-badge {
    display: inline-block;
}

 
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-modal.active {
    opacity: 1;
    visibility: visible;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.certificate-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.certificate-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

 

.video-page {
    padding: 6rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
}

.video-container-page {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.video-container-page:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 50px var(--shadow-heavy);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-info {
    padding: 0 0 2rem 0;
}

.video-info .video-title {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.video-meta .video-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 25px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 209, 255, 0.3);
}

.video-info .video-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

 

.book-page {

    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.book-details-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.book-details-container:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 50px var(--shadow-heavy);
}

.book-cover-section img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(79, 209, 255, 0.3);
    transition: transform 0.3s ease;
}

.book-cover-section img:hover {
    transform: scale(1.02);
}

.book-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.book-info-section .book-title-large {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
}

.book-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    border-radius: 12px;
    border: 1px solid rgba(79, 209, 255, 0.2);
    transition: all 0.3s ease;
}

.metadata-item:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 209, 255, 0.2);
}

.metadata-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.metadata-item span {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.book-info-section .book-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.buy-btn {
    background: linear-gradient(135deg, #A855F7, #4FD1FF);
    color: white;
    border: none;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.download-btn {
    background: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-cyan);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

 

@media (max-width: 768px) {
    .video-page {
        padding: 6rem 0.5rem;
        max-width: 100%;
    }
    
    .book-page {
        padding: 6rem 1rem;
    }
    
    .video-container-page {
        padding: 1.8rem 1.2rem;
        border-radius: 15px;
    }
    
    .video-info {
        padding: 0 0 1.5rem 0;
    }
    
    .video-info .video-title {
        font-size: 1.7rem;
    }
    
    .video-info .video-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .video-meta .video-duration {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .book-details-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .book-cover-section {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .book-info-section .book-title-large {
        font-size: 2rem;
        text-align: center;
    }
    
    .book-metadata {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .book-info-section .book-description {
        font-size: 1rem;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        padding: 0.9rem 1.5rem;
    }
    
    .achievements-timeline .achievement-container {
        flex-direction: column;
    }
    
    .achievement-certificate {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/0.7;
    }
    
    .book-details-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .book-cover-section {
        max-width: 280px;
    }
    
    .book-cover-section img {
        margin: 0 auto;
        display: block;
    }
    
    .book-info-section .book-title-large {
        font-size: 1.7rem;
    }
    
    .book-metadata {
        grid-template-columns: 1fr;
    }
    
    .metadata-item {
        padding: 0.7rem 0.9rem;
    }
    
    .book-info-section .book-description {
        font-size: 0.95rem;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .action-btn {
        padding: 0.85rem 1.3rem;
        font-size: 0.95rem;
    }
    
    .achievement-certificate {
        aspect-ratio: 1/0.7;
        max-width: 100%;
    }
    
    .video-page {
        padding: 6rem 0.3rem;
    }
    
    .video-container-page {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .video-info {
        padding: 0 0 1.2rem 0;
    }
    
    .video-info .video-title {
        font-size: 1.5rem;
    }
    
    .video-info .video-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .video-meta .video-duration {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
} 

@media (max-width: 480px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

}
 

.stat-number.loading {
    position: relative;
    color: transparent;
}

.stat-number.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #f5f5f5 50%,
        #e0e0e0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.social-link.threads {
    background-color: #000000;
    color: #ffffff;
}
.social-link.threads:hover {
    background-color: #333333;
}

.social-link.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088CC;
}

.social-link.telegram::before {
    background: #0088CC;
}

.social-link.telegram:hover {
    color: white;
}

.social-link.threads:hover {
    background-color: #333333;
}

.social-link.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088CC;
}

.social-link.telegram::before {
    background: #0088CC;
}

.social-link.telegram:hover {
    color: white;
}