/* ===========================
   FONTS & BASE
=========================== */
@font-face {
    font-family: 'Vazirmatn';
    font-weight: 300;
    src: url('/static/fonts/Vazirmatn-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-weight: 400;
    src: url('/static/fonts/Vazirmatn-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-weight: 600;
    src: url('/static/fonts/Vazirmatn-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-weight: 700;
    src: url('/static/fonts/Vazirmatn-700.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.22s ease;
}

/* ===========================
   UNIFIED THEME VARIABLES
=========================== */
:root {
    /* Colors */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-hover: rgba(255, 255, 255, 0.10);

    --text-primary: #f9fafb;
    --text-secondary: #e2e8f0;
    --text-muted: #9ca3af;
    --text-dim: #64748b;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-purple: #a855f7;
    --accent-cyan: #38bdf8;

    --border-color: rgba(148, 163, 184, 0.25);
    --border-glow: rgba(255, 255, 255, 0.12);

    /* Shadows */
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.75);
    --shadow-card-hover: 0 18px 48px rgba(0, 0, 0, 0.9);
    --shadow-button: 0 8px 22px rgba(59, 130, 246, 0.45);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* Fonts */
    --font-family: 'Vazirmatn', sans-serif;
}

/* ===========================
   BODY & LAYOUT
=========================== */
body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

/* ===========================
   UNIFIED HEADER
=========================== */
.site-header {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 16px;
    backdrop-filter: blur(10px);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-family);
    text-align: right;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent-blue);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-btn i {
    font-size: 1rem;
}

.search-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.donate-link {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.donate-icon {
    margin-left: 4px;
}

/* ===========================
   UNIFIED FOOTER
=========================== */
.site-footer {
    background: rgba(2, 6, 23, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px 25px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ===========================
   UNIFIED CARD / PANEL
=========================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.glass-card-static {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

/* ===========================
   UNIFIED BUTTONS
=========================== */
.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.btn-stat {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
    text-align: left;
}

.btn-stat img {
    width: 16px;
    filter: invert(0%);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 40%),
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.18), transparent 40%),
        radial-gradient(circle at bottom, rgba(59, 130, 246, 0.12), transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-logo {
    position: absolute;
    top: 20px;
    right: 20px;
}

.hero-logo img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-glow);
    padding: 4px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

.hero-donate-circle {
    position: absolute;
    top: 25px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.15);
    border: 2px solid #ffb300;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-decoration: none;
    animation: heartBeat 1.4s infinite ease-in-out, goldGlow 2s infinite ease-in-out;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.22);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.18);
    }
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 0 6px rgba(255, 200, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 16px rgba(255, 200, 0, 1);
    }

    100% {
        box-shadow: 0 0 6px rgba(255, 200, 0, 0.4);
    }
}

.hero-donate-circle:hover {
    transform: scale(1.1);
}

/* ===========================
   NEW DONATE BUTTON
=========================== */
.donate-btn-new {
    position: absolute;
    top: 25px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    animation: donateFloat 3s ease-in-out infinite;
}

.donate-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

.donate-btn-icon {
    font-size: 1.1rem;
}

.donate-btn-text {
    font-family: inherit;
}

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

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.search-glass {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 20px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-glass input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
    text-align: right;
}

.search-glass input::placeholder {
    color: var(--text-muted);
}

.search-glass button {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 50%, #ff9800 100%);
    background-size: 200% 200%;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    animation: searchBtnWave 3s ease infinite;
}

.search-glass button i {
    font-size: 1.1rem;
}

.search-glass button:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    animation: none;
}

@keyframes searchBtnWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===========================
   FEATURES SECTION
=========================== */
.features-section {
    margin: 4rem 0;
}

.features-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-cyan);
}

.feature-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 50%;
    margin-bottom: 1rem;
    pointer-events: none !important;
    /* Force to disable pointer events */
    user-select: none !important;
    /* Force to disable selection */
}

.feature-icon i {
    font-size: 2rem;
    color: #38bdf8;
    /* Also add pointer-events to the icon itself, just in case */
    pointer-events: none !important;
    user-select: none !important;
}


.feature-card:hover .icon,
.feature-card:hover i.bi {
    background: rgba(56, 189, 248, 0.25);
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===========================
   FAQ SECTION
=========================== */
.faq-section {
    margin-top: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    text-align: right;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-family);
    font-weight: 600;
}

.faq-question:hover {
    background: var(--bg-glass-hover);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(59, 130, 246, 0.08);
    padding: 0 18px;
    border-radius: var(--radius-md);
    margin-top: 8px;
    border-right: 4px solid var(--accent-blue);
    color: var(--text-muted);
    line-height: 1.8;
    opacity: 0;
    transform: translateX(10px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

.faq-answer.show {
    padding: 14px 18px;
    max-height: 400px;
    opacity: 1;
    transform: translateX(0);
}

/* ===========================
   PROFILE / USER PAGE
=========================== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(16px);
}

.profile-card .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--border-glow);
}

.profile-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-card .bio {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stats div {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stats strong {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

/* ===========================
   REPO LIST
=========================== */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.repo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.repo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.repo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-blue);
}

.repo-card h3 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.repo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.repo-card-header i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.repo-card .repo-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.repo-meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    direction: ltr;
    text-align: left;
}

/* ===========================
   SEARCH RESULTS
=========================== */
.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.back-home-btn:hover {
    background: var(--bg-glass-hover);
}

.search-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.result-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid var(--border-glow);
}

.result-card .username {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.result-card .repo-name {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: left;
    direction: ltr;
}

.result-card .repo-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
    direction: ltr;
}

.view-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ffb300;
    color: #0f172a;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-btn:hover {
    background: #ffca28;
}

/* ===========================
   PAGINATION
=========================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.page-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    transition: 0.2s ease;
}

.page-btn:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.page-number {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ===========================
   REPO PAGE (ENHANCED)
=========================== */
.repo-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    width: 100%;
    overflow: hidden;
}

.repo-hero {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 40%),
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.18), transparent 40%),
        linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    direction: ltr;
    width: 100%;
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    text-align: left;
    direction: ltr;
}

.avatar-ring {
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-cyan));
    display: inline-block;
}

.avatar-ring img {
    border-radius: 50%;
    border: 2px solid rgba(2, 6, 23, 0.9);
    display: block;
}

.repo-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    direction: ltr;
}

.repo-title .repo-owner {
    color: var(--text-secondary);
    text-decoration: none;
    text-align: left;
    direction: ltr;
}

.repo-title .repo-owner:hover {
    color: var(--text-primary);
}

.repo-title .repo-slash {
    color: var(--text-muted);
    margin: 0 4px;
    text-align: left;
    direction: ltr;
}

.repo-title .repo-name {
    color: var(--text-primary);
    text-align: left;
    direction: ltr;
}

.repo-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: left;
    direction: ltr;
}

.branch-badge {
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    direction: ltr;
    text-align: left;
}

.repo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    direction: ltr;
}

.repo-files {
    margin-top: 1.5rem;
}

.repo-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.file-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.repo-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    direction: ltr;
    text-align: left;
}

.repo-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    text-decoration: none;
    backdrop-filter: blur(8px);
    direction: ltr;
    text-align: left;
    transition: transform 0.2s ease;
}

.repo-file-item:hover {
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}

.repo-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repo-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    text-align: center;
}

.repo-file-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    direction: ltr;
}

.repo-file-path {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: left;
    direction: ltr;
}

.repo-file-type {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    direction: ltr;
}

/* Clone Box */
.clone-section {
    margin-bottom: 1.5rem;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
    direction: ltr;
    position: relative;
    z-index: 100;
}

.clone-btn,
.clone-btn:link,
.clone-btn:visited {
    background: linear-gradient(135deg, #4b5563, #1f2937);
    color: white !important;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    position: relative;
    z-index: 1000;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clone-btn:hover {
    transform: translateY(-2px);
}

.clone-btn i {
    font-style: normal;
    font-weight: 700;
}

.clone-box {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
    direction: ltr;
    text-align: left;
}

.clone-box.show {
    display: block;
}

.clone-box-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
}

.clone-code {
    color: var(--text-secondary);
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
}

.clone-copy {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    position: relative;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.clone-copy:hover,
.clone-copy:focus,
.clone-copy:active {
    background: var(--accent-blue-hover);
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Releases */
.release-section {
    margin-top: 1.5rem;
}

.release-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.release-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.release-header {
    padding: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    direction: ltr;
}

.release-header>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    direction: ltr;
}

.release-header:hover {
    background: var(--bg-glass-hover);
}

.release-title {
    color: var(--text-primary);
    font-weight: 600;
    text-align: left !important;
    direction: ltr;
}

.release-date {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: left;
    direction: ltr;
}

.release-arrow {
    transition: 0.25s ease;
}

.release-arrow.rotated {
    transform: rotate(180deg);
}

.release-content {
    display: none;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-glow);
}

.release-content.show {
    display: block;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
}

.asset-item i {
    font-size: 1.1rem;
}

.asset-item:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(-4px);
}

/* ===========================
   FILE VIEWER
=========================== */
.file-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    direction: ltr;
}

.file-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.copy-code-btn:hover {
    background: var(--bg-glass-hover);
}

.code-block {
    background: #1e1e1e;
    padding: 20px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
}

.code-block code {
    font-family: Consolas, "Fira Code", monospace;
    color: #dcdcdc;
}

/* ===========================
   TREE / FILE LIST PAGE
=========================== */
.tree-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    direction: ltr;
    text-align: left;
}

.breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.95rem;
    direction: ltr;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tree-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    text-decoration: none;
    backdrop-filter: blur(8px);
    text-align: left;
    direction: ltr;
}

.tree-item:hover {
    background: var(--bg-glass-hover);
    transform: translateX(-4px);
}

.tree-icon {
    font-size: 1.3rem;
}

.tree-icon.folder {
    color: #fbbf24;
}

.tree-icon.file {
    color: var(--text-muted);
}

.tree-name {
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
    direction: ltr;
}

.folder-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.folder-back-btn:hover {
    background: var(--bg-glass-hover);
}

/* ===========================
   RELEASES PAGE
=========================== */
.releases-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.releases-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.release-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(12px);
}

.release-card h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-align: left;
    direction: ltr;
}

.release-body {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
    direction: ltr;
}

.release-assets {
    margin-top: 1rem;
}

.release-assets-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    direction: ltr;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.release-assets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.release-assets ul li {
    margin-bottom: 8px;
}

.release-assets ul li a {
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    text-align: right;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.release-assets ul li a:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(-4px);
    text-decoration: none;
}

.release-date {
    color: var(--text-dim);
    font-size: 0.85rem;
    display: block;
    margin-top: 1rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: var(--bg-glass-hover);
}

/* ===========================
   EMPTY STATES
=========================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state img {
    opacity: 0.5;
    margin-bottom: 1rem;
}

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

/* ===========================
   NOTIFICATION / TOAST
=========================== */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.notif-overlay.notif-show {
    opacity: 1;
    pointer-events: auto;
}

.notif-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-primary);
    min-width: 260px;
    box-shadow: var(--shadow-card);
    animation: popIn 0.25s ease;
}

.notif-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.notif-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===========================
   MARKDOWN BODY
=========================== */
.markdown-body {
    background: var(--bg-glass);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glow);
    line-height: 1.8;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.markdown-body code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, "Fira Code", monospace;
    font-size: 0.85em;
}

.markdown-body pre {
    background: #1e1e1e;
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
}

.markdown-body blockquote {
    border-right: 4px solid var(--accent-blue);
    padding-right: 1rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.markdown-body ul,
.markdown-body ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.markdown-body li {
    margin-bottom: 4px;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   DONATE POPUP
=========================== */
.donate-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.donate-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--text-primary);
    width: 320px;
    animation: fadeIn 0.35s ease;
}

.donate-box h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.donate-box p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
}

.donate-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffb300;
    color: #0f172a;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
}

.donate-btn:hover {
    background: #ffca28;
}

/* ===========================
   RESPONSIVE - MOBILE
=========================== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .header-nav {
        display: none;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-logo {
        top: 15px;
        right: 15px;
    }

    .hero-logo img {
        width: 50px;
        height: 50px;
    }

    .hero-donate-circle {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .repo-list,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .repo-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .repo-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .repo-actions .btn-primary,
    .repo-actions .btn-secondary {
        flex: 1;
        justify-content: center;
    }

    .file-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   RESPONSIVE - TABLET
=========================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repo-list,
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

.animate-on-scroll:nth-child(7) {
    transition-delay: 0.6s;
}

.animate-on-scroll:nth-child(8) {
    transition-delay: 0.7s;
}

/* Pulse animation for icons */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.pulse-icon:hover i {
    animation: pulse-ring 1.5s infinite;
}

/* Float animation for hero elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animate {
    animation: float 3s ease-in-out infinite;
}

/* Glow effect on hover */
.glow-hover {
    position: relative;
}

.glow-hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan), var(--accent-blue));
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-hover:hover::before {
    opacity: 1;
}

/* Shine effect */
@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

/* Bounce on hover */
@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.bounce-hover:hover {
    animation: bounce-subtle 0.5s ease;
}

/* Rotate on hover */
.rotate-hover:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Scale subtle */
.scale-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card-hover);
}

/* Border gradient animation */
@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    position: relative;
    background: var(--bg-card);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan), var(--accent-blue));
    background-size: 300% 300%;
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: gradient-rotate 3s ease infinite;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon styles */
.feature-card i,
.repo-card i,
.result-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover i,
.repo-card:hover i,
.result-card:hover i {
    transform: scale(1.2);
    color: var(--accent-cyan);
}

/* Icon bouncing in cards */
.bi {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .bi,
.repo-card:hover .bi {
    transform: translateY(-3px) scale(1.1);
}

/* Skew subtle on hover */
.skew-hover {
    transition: transform 0.3s ease;
}

.skew-hover:hover {
    transform: skewX(-3deg);
}

/* Flip effect on hover */
.flip-hover {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flip-hover:hover .flip-content {
    transform: rotateY(10deg);
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.me-1 {
    margin-right: 0.5rem;
}

.me-2 {
    margin-right: 1rem;
}

.ms-1 {
    margin-left: 0.5rem;
}

.ms-2 {
    margin-left: 1rem;
}

.py-1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-1 {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.px-2 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.px-3 {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.px-4 {
    padding-right: 2rem;
    padding-left: 2rem;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.border-0 {
    border: none;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===========================
   BOOTSTRAP ICONS COMPATIBILITY
=========================== */
.fs-1 {
    font-size: 2.5rem !important;
}

.fs-2 {
    font-size: 2rem !important;
}

.fs-3 {
    font-size: 1.75rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.text-info {
    color: var(--accent-cyan) !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-success {
    color: #22c55e !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* ===========================
   AVATAR RING PULSE ANIMATION
=========================== */
.avatar-ring-pulse {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.avatar-ring-pulse::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(115deg, #22d3ee, #a855f7, #f472b6, #ec4899, #22d3ee);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-spin 3s linear infinite;
}

.avatar-ring-pulse img {
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes ring-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* ===========================
   FOLDER & FILE ICONS
=========================== */
.folder-icon {
    font-size: 1.5rem;
    color: #fbbf24;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.folder-icon:hover,
.file-icon:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* ===========================
   BOOTSTRAP ICONS COMPATIBILITY
=========================== */
.fs-1 {
    font-size: 2.5rem !important;
}

.fs-2 {
    font-size: 2rem !important;
}

.fs-3 {
    font-size: 1.75rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.text-info {
    color: var(--accent-cyan) !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-success {
    color: #22c55e !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.overflow-hidden {
    overflow: hidden;
}

/* ===========================
   IMAGE VIEWER
=========================== */
.image-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.inline-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ===========================
   SUPPORT WIDGET
=========================== */
.support-widget {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 998;
}

.support-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, #06b6d4, #8b5cf6, #3b82f6);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5);
    transition: all 0.3s ease;
}

.support-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
}

.support-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: none;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

.support-panel.show {
    display: block;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(45deg, #06b6d4, #8b5cf6, #3b82f6);
    color: #fff;
    font-weight: 600;
}

.support-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.support-content {
    padding: 16px;
    color: var(--text-primary);
}

.support-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.support-content .support-btn {
    display: block;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: var(--radius-md);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.support-content .support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.support-content .support-btn.telegram {
    background: linear-gradient(135deg, #229ED9, #0088cc);
}

.support-content .support-btn.telegram:hover {
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}