/* ================= Font Face (Avenir Next Arabic) ================= */
@font-face {
    font-family: 'Avenir Next Arabic';
    src: url('../fonts/AvenirNextArabic-Regular.ttf') format('truetype'),
        local('Avenir Next Arabic'),
        local('AvenirNextArabic-Regular');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next Arabic';
    src: url('../fonts/AvenirNextArabic-Medium.ttf') format('truetype'),
        local('Avenir Next Arabic Medium'),
        local('AvenirNextArabic-Medium');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next Arabic';
    src: url('../fonts/AvenirNextArabic-Medium.ttf') format('truetype'),
        local('Avenir Next Arabic Bold'),
        local('AvenirNextArabic-Bold');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #F1F1F1;
    --border-color: rgba(50, 50, 50, 0.14);
    --side-border-color: rgba(50, 50, 50, 0.55);
    /* خطين جانبيين مستمرين على طول الصفحة */
    --text-main: #323232;
    --text-muted: #707070;
    --accent-color: #323232;
    --btn-primary-bg: #323232;
    --btn-primary-text: #F1F1F1;
    --card-bg: rgba(241, 241, 241, 0.75);
    --card-hover-bg: rgba(235, 235, 235, 0.9);
    --input-bg: #ffffff;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
}

/* Custom Text Selection (تحديد النص بخلفية سوداء ونص أبيض) */
::selection {
    background-color: #111111;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #111111;
    color: #FFFFFF;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-color);
    font-family: 'Avenir Next Arabic', 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Central Main Container */
.black-hole-container {
    position: relative;
    width: calc(100% - clamp(60px, 12vw, 220px));
    max-width: 1350px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-left: 1px solid var(--side-border-color);
    border-right: 1px solid var(--side-border-color);
    display: flex;
    flex-direction: column;
}

/* Fullscreen Fixed Side Separators */
.side-separator {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100vh;
    background-color: var(--side-border-color);
    z-index: 150;
    pointer-events: none;
}

.side-separator-left {
    left: calc(50% - min(1350px, calc(100vw - clamp(60px, 12vw, 220px))) / 2);
}

.side-separator-right {
    right: calc(50% - min(1350px, calc(100vw - clamp(60px, 12vw, 220px))) / 2);
}

/* ================= Header & Navbar (Fixed Permanently) ================= */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - clamp(60px, 12vw, 220px));
    max-width: 1350px;
    z-index: 100;
    background-color: rgba(241, 241, 241, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    align-items: stretch;
    height: 60px;
    width: 100%;
}

/* Navbar Sections with Vertical Dividing Borders */
.nav-section {
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-left: 1px solid var(--border-color);
}

.nav-section:last-child {
    border-left: none;
}

/* 1. Brand / Logo */
.nav-brand-section {
    padding-right: 28px;
    padding-left: 28px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-img:hover {
    opacity: 0.85;
}

/* 2. Nav Links */
.nav-links-section {
    flex: 1;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 14px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--text-main);
    font-weight: 500;
}

.nav-unread-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: #fff5f5;
    color: #e11d48;
    border-radius: 0px;
    box-shadow: none;
    margin-right: 6px;
    vertical-align: middle;
}

.nav-unread-badge .btn-corner {
    position: absolute;
    width: 4px;
    height: 4px;
    pointer-events: none;
}

.nav-unread-badge .btn-corner-tl {
    top: -1px;
    left: -1px;
    border-top: 1.5px solid #e11d48;
    border-left: 1.5px solid #e11d48;
}

.nav-unread-badge .btn-corner-tr {
    top: -1px;
    right: -1px;
    border-top: 1.5px solid #e11d48;
    border-right: 1.5px solid #e11d48;
}

.nav-unread-badge .btn-corner-bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 1.5px solid #e11d48;
    border-left: 1.5px solid #e11d48;
}

.nav-unread-badge .btn-corner-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 1.5px solid #e11d48;
    border-right: 1.5px solid #e11d48;
}

.nav-unread-badge-num {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    line-height: 1;
    color: #e11d48;
}

/* Corner Bracket Crop Marks around Active Link (Filament Style in #323232) */
.corner-bracket {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--accent-color);
    pointer-events: none;
}

.corner-top-left {
    top: -1px;
    left: -1px;
    border-top: 1.5px solid var(--accent-color);
    border-left: 1.5px solid var(--accent-color);
}

.corner-top-right {
    top: -1px;
    right: -1px;
    border-top: 1.5px solid var(--accent-color);
    border-right: 1.5px solid var(--accent-color);
}

.corner-bottom-left {
    bottom: -1px;
    left: -1px;
    border-bottom: 1.5px solid var(--accent-color);
    border-left: 1.5px solid var(--accent-color);
}

.corner-bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom: 1.5px solid var(--accent-color);
    border-right: 1.5px solid var(--accent-color);
}

/* 3. Contact Action Button (Full Box Fill on Hover) & Theme Toggle */
/* 3. Contact Action Button (Full Box Fill on Hover) */
.nav-action-section {
    padding: 0;
    align-items: stretch;
    display: flex;
}

.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0 28px;
    height: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.action-btn.active {
    background: #323232 !important;
    color: #F1F1F1 !important;
}

.action-btn.active .action-text {
    color: #F1F1F1 !important;
}

.action-btn:hover:not(.active) {
    background: rgba(50, 50, 50, 0.06);
    color: var(--text-main);
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 100%;
    color: var(--text-main);
    font-size: 1rem;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-icon-btn:hover {
    background: rgba(50, 50, 50, 0.06);
    color: var(--text-main);
}

.nav-action-form {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
}

.logout-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    height: 100%;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    color: #e53e3e;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.logout-nav-btn:hover {
    background: rgba(229, 62, 62, 0.08);
    color: #c53030;
}

/* ================= Main Canvas Viewport (Top Hero Background) ================= */
.canvas-viewport {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - clamp(60px, 12vw, 220px));
    max-width: 1350px;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.radial-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(ellipse at 50% 55%, transparent 10%, var(--bg-color) 55%);
    pointer-events: none;
    z-index: 1;
}

#blackHoleCanvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.20;
    z-index: 2;
}

.glow-layer {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(ellipse at 50% 75%, var(--accent-color) 20%, transparent 75%);
    opacity: 0.06;
    pointer-events: none;
}

.scanlines-layer {
    position: absolute;
    z-index: 7;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent,
            transparent 1px,
            rgba(50, 50, 50, 0.035) 1px,
            rgba(50, 50, 50, 0.035) 2px);
    pointer-events: none;
}

/* ================= Scrollable Page Container ================= */
.main-content-scroll {
    position: relative;
    z-index: 20;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

/* ================= 1. Hero Content Section ================= */
.hero-section {
    min-height: calc(100vh - 60px);
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 36px auto;
}

.hero-description .highlight {
    color: var(--text-main);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 13px 34px;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.hero-btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-bg);
    box-shadow: 0 4px 18px rgba(50, 50, 50, 0.15);
}

.hero-btn-primary:hover {
    background-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(50, 50, 50, 0.22);
}

.hero-btn-primary:active {
    transform: translateY(0);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(50, 50, 50, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background-color: rgba(50, 50, 50, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* ================= Section Divider Line ================= */
.section-divider-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    z-index: 25;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

/* ================= 2. About Section (من أنا) ================= */
.about-section {
    position: relative;
    width: 100%;
    padding: 110px 48px 100px 48px;
    background-color: var(--bg-color);
    z-index: 25;
    overflow: hidden;
}

/* Dot Matrix Background Pattern */
.about-dots-pattern {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(rgba(50, 50, 50, 0.08) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.about-header {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.about-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(50, 50, 50, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-title {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
    letter-spacing: -0.8px;
}

.about-lead {
    font-size: clamp(1.08rem, 1.9vw, 1.25rem);
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 900px;
}

/* ================= 3. Infinite Continuous Ticker Strip ================= */
.ticker-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 25;
}

.ticker-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    user-select: none;
    padding: 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.ticker-section:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-group {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-right: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: default;
}

.ticker-item:hover {
    color: var(--text-main);
    background: rgba(50, 50, 50, 0.04);
}

.ticker-item-empty {
    font-family: inherit;
    font-weight: 500;
}

.ticker-item-empty i {
    font-size: 0.95rem;
    color: #ef4444;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marqueeScrollReverse {
    0% {
        transform: translate3d(-50%, 0, 0);
    }

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

.ticker-track.ticker-track-reverse {
    animation: marqueeScrollReverse 22s linear infinite;
}

.ticker-tools-wrapper,
.ticker-tools-empty {
    border-top: 1px solid var(--border-color);
}

.ticker-empty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    width: 100%;
    background: transparent;
}

.ticker-empty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.ticker-empty-badge i {
    font-size: 1rem;
    color: #ef4444;
}

/* ================= 4. Services Section ================= */
.services-section {
    position: relative;
    width: 100%;
    padding: 100px 36px 130px 36px;
    background-color: var(--bg-color);
    z-index: 25;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dot Matrix Background Pattern */
.services-dots-pattern {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(rgba(50, 50, 50, 0.08) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

.services-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0 auto;
}

/* 1. Intro Card */
.services-intro-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px 24px 12px;
    min-width: 0;
}

.services-main-title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.services-sub-title {
    color: var(--text-muted);
    font-weight: 500;
}

.services-main-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 480px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 2. Service Cards */
.service-card {
    position: relative;
    background: rgba(241, 241, 241, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 40px 24px 34px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(50, 50, 50, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(50, 50, 50, 0.06);
}

.service-empty-merged-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    min-height: 250px;
    min-width: 0;
}

/* Icon Circle Badge */
.service-icon-circle {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(241, 241, 241, 0.9);
    background-image: radial-gradient(rgba(50, 50, 50, 0.12) 1.2px, transparent 1.2px);
    background-size: 10px 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--text-main);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon-circle {
    transform: scale(1.08);
    background-color: #ffffff;
}

.service-fa-icon {
    font-size: 1.65rem;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.service-card:hover .service-fa-icon {
    transform: scale(1.05);
}

.service-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.35;
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.service-card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ================= 5. GitHub Showcase Section with Dither Effect ================= */
.github-showcase-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 100px 24px 110px 24px;
    background-color: var(--bg-color);
    z-index: 25;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.github-canvas-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

#ditherCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.30;
    z-index: 2;
}

.dither-overlay-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(241, 241, 241, 0.65) 85%);
    pointer-events: none;
    z-index: 3;
}

.github-content {
    position: relative;
    z-index: 10;
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-github-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: rgba(241, 241, 241, 0.85);
    border: 1px solid var(--border-color);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-github-badge:hover {
    background: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(50, 50, 50, 0.3);
}

.github-badge-arrow {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.hero-github-badge:hover .github-badge-arrow {
    transform: translateX(-3px);
}

.github-title {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 20px;
}

.github-description {
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px auto;
}

.github-description .highlight {
    color: var(--text-main);
    font-weight: 700;
}

.github-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}



/* ================= 6. Projects Section (قسم مشاريعي) ================= */
.projects-section {
    position: relative;
    width: 100%;
    padding: 100px 36px 140px 36px;
    background-color: var(--bg-color);
    z-index: 25;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-dots-pattern {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(rgba(50, 50, 50, 0.08) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

.projects-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.projects-header {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.projects-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(50, 50, 50, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.projects-title {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.6px;
}

.projects-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 720px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: rgba(241, 241, 241, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 24px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(50, 50, 50, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(50, 50, 50, 0.08);
}

/* Project Image Preview */
.project-image-wrapper {
    width: 100%;
    height: 220px;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    transform: scale(1.04);
}

/* Project Info Details */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    text-align: right;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.project-year {
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.project-desc {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-muted);
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
}

.project-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(50, 50, 50, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-actions {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.project-link-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.project-link-primary:hover {
    background: #111;
    transform: translateY(-1px);
}

.projects-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
    position: relative;
    z-index: 10;
}

.projects-more-btn {
    padding: 13px 32px;
    font-size: 1rem;
    font-weight: 600;
    gap: 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(50, 50, 50, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(50, 50, 50, 0.14);
}

.bottom-separator {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

/* Nav Item Icon (Desktop: Hidden) */
.nav-item-icon {
    display: none;
}

.mobile-only-item {
    display: none;
}

.desktop-only-btn {
    display: inline-flex;
}

/* Drawer Header & Footer (Desktop: Hidden) */
.drawer-header,
.drawer-footer {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    margin-right: 8px;
}

.menu-toggle:hover {
    background: rgba(50, 50, 50, 0.05);
}

/* Thicker Bolder Hamburger Lines */
.menu-toggle .bar {
    width: 20px;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* ================= Responsive Handling ================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-intro-card {
        grid-column: span 2;
    }

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

@media (max-width: 768px) {
    .mobile-only-item {
        display: block;
    }

    .desktop-only-btn {
        display: none !important;
    }

    /* Remove outer margins and side borders on mobile completely */
    .black-hole-container {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        margin: 0 !important;
    }

    .side-separator {
        display: none !important;
    }

    .header {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
    }

    .canvas-viewport {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
    }

    .navbar {
        height: 56px;
        justify-content: space-between;
        padding: 0 10px;
    }

    .nav-section {
        border-left: none;
        padding: 0 6px;
    }

    .nav-brand-section {
        padding: 0 4px;
    }

    .logo-img {
        height: 28px;
    }

    /* Mobile Menu Drawer (Slides in from Right cleanly without full screen blur) */
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 150;
    }

    .menu-toggle.active .bar-1 {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle.active .bar-2 {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active .bar-3 {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-links-section {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 75vw);
        height: 100vh;
        background: #F1F1F1;
        border-left: 1px solid var(--border-color);
        border-bottom: none;
        border-right: none;
        padding: 70px 18px 28px 18px;
        display: flex;
        flex-direction: column;
        box-shadow: -10px 0 35px rgba(50, 50, 50, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links-section.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 13px 16px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: flex-start;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }

    .nav-item-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        font-size: 0.95rem;
        color: var(--text-muted);
        transition: color 0.2s ease;
    }

    .nav-link:hover .nav-item-icon,
    .nav-link.active .nav-item-icon {
        color: var(--text-main);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(50, 50, 50, 0.06);
        border-color: var(--border-color);
        color: var(--text-main);
    }

    .nav-link.active .corner-bracket {
        display: none;
    }

    .nav-action-section {
        padding: 0 4px;
        display: flex;
        align-items: center;
    }

    .hero-section {
        padding: 60px 16px 70px 16px;
        min-height: auto;
    }

    .hero-actions,
    .github-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .about-section {
        padding: 60px 16px 65px 16px;
    }

    .services-section {
        padding: 55px 16px 70px 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-intro-card {
        grid-column: span 1;
        padding: 0 0 12px 0;
    }

    .github-showcase-section {
        padding: 65px 16px 75px 16px;
        min-height: auto;
    }

    .projects-section {
        padding: 55px 16px 70px 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ticker-item {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .contact-section {
        padding: 55px 16px 85px 16px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-card {
        padding: 26px 18px;
    }

    .contact-submit-btn {
        width: 100%;
    }
}

/* ================= 7. Contact Section (قسم اتصل بي) ================= */
.contact-section {
    position: relative;
    width: 100%;
    padding: 110px 36px 140px 36px;
    background-color: var(--bg-color);
    z-index: 25;
    overflow: hidden;
}

.contact-dots-pattern {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(rgba(50, 50, 50, 0.08) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.contact-header {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.contact-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(50, 50, 50, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-title {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.6px;
}

.contact-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 720px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

/* Form Card */
.contact-form-card {
    position: relative;
    background: rgba(241, 241, 241, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 38px 34px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.form-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-label strong {
    font-family: 'Fira Code', monospace;
    color: var(--text-main);
    background: rgba(50, 50, 50, 0.07);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
}

.required-star {
    color: #e53e3e;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.textarea-icon {
    top: 16px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.25s ease;
}

.input-wrapper .form-input {
    padding: 12px 42px 12px 14px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9CA3AF;
    font-size: 0.88rem;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(50, 50, 50, 0.08);
}

.form-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--text-main);
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
    padding: 14px 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 8px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-bg);
    border-radius: 6px;
    padding: 13px 32px;
    font-family: 'Avenir Next Arabic', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(50, 50, 50, 0.12);
}

.contact-submit-btn:hover {
    background: #111111;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(50, 50, 50, 0.18);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* ================= 8. Modern Filament-Style Footer ================= */
.site-footer {
    position: relative;
    width: 100%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 85px 44px 0 44px;
    z-index: 30;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Footer Top Row */
.footer-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 30px;
}

.footer-brand-info {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 4px 18px 4px 5px;
    background: rgba(50, 50, 50, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(50, 50, 50, 0.03);
    cursor: pointer;
}

.back-to-top-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e1e1e;
    color: #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
    flex-shrink: 0;
}

.back-to-top-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    line-height: 1;
}

.back-to-top-btn:hover {
    background: rgba(50, 50, 50, 0.09);
    border-color: rgba(50, 50, 50, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(50, 50, 50, 0.08);
}

.back-to-top-btn:hover .back-to-top-icon {
    transform: translateY(-2px);
    background: #000000;
}

.back-to-top-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(50, 50, 50, 0.04);
}

/* Footer Columns Grid */
.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
    padding-top: 10px;
    padding-bottom: 8px;
}

.footer-divider-short {
    width: 540px;
    max-width: 75%;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 28px auto;
    opacity: 0.85;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 1px;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-links li {
    margin: 0;
    padding: 0;
}

.footer-col-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
}

.footer-col-links a:hover {
    color: var(--text-main);
    transform: translateX(-4px);
}

.footer-side-boxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 0;
}

@media (max-width: 1024px) {
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Centered Social Media Row */
.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.footer-social-icons-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-custom-box-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(50, 50, 50, 0.02);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.footer-custom-box-btn .custom-box-icon {
    font-size: 1.1rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.footer-custom-box-btn .custom-box-text {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-custom-box-btn:hover {
    background: rgba(50, 50, 50, 0.08);
    border-color: rgba(50, 50, 50, 0.3);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 50, 50, 0.06);
}

.discord-box-btn:hover {
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.4);
    color: #5865F2;
}

.discord-box-btn:hover .custom-box-icon {
    color: #5865F2;
}

.github-box-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.4);
    color: #000000;
}

.github-box-btn:hover .custom-box-icon {
    color: #000000;
}

.social-box-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(50, 50, 50, 0.02);
    color: var(--text-main);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-box-btn:hover {
    background: rgba(50, 50, 50, 0.08);
    border-color: rgba(50, 50, 50, 0.3);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(50, 50, 50, 0.06);
}

/* Footer Bottom Sub-bar */
.footer-bottom-bar {
    width: calc(100% + 88px);
    margin-left: -44px;
    margin-right: -44px;
    border-top: 1px solid var(--border-color);
    padding: 22px 44px;
    background: transparent;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Minimal Simple Footer (mahmoud soft) */
.simple-footer {
    width: 100%;
    padding: 24px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 30;
    margin-top: auto;
}

.simple-footer-text {
    font-family: 'Plus Jakarta Sans', 'Fira Code', var(--font-main), sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: lowercase;
    transition: color 0.2s ease;
    user-select: none;
}

.simple-footer-text:hover {
    color: var(--text-main);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 0 20px;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-nav-links {
        gap: 20px;
    }

    .footer-social-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 30px;
    }

    .footer-social-icons-group {
        gap: 8px;
        width: 100%;
    }

    .footer-side-boxes-wrapper {
        width: 100%;
        align-items: stretch;
        margin-top: 0;
    }

    .footer-custom-box-btn {
        width: 100%;
        min-width: unset;
    }

    .social-box-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .footer-bottom-bar {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding: 20px;
    }
}

/* ================= 9. Dot Matrix Viewport (About Page) ================= */
.dot-matrix-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    max-height: 480px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
}

#dotMatrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.dot-matrix-radial-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%,
            transparent 20%,
            rgba(241, 241, 241, 0.55) 60%,
            var(--bg-color) 92%);
    pointer-events: none;
    z-index: 2;
}

/* ================= Liquid Grid Viewport (Liquid Grid — Originkit) ================= */
.liquid-grid-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    max-height: 480px;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    background: transparent;
    opacity: 0.55;
}

.liquid-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
}

.liquid-grid-radial-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%,
            transparent 15%,
            rgba(241, 241, 241, 0.55) 55%,
            var(--bg-color) 88%);
    pointer-events: none;
    z-index: 2;
}

/* ================= Chromatic Waves Viewport (Chromatic Waves — Originkit) ================= */
.chromatic-viewport,
.dither-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    max-height: 480px;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    background: transparent;
    opacity: 0.16;
}

.chromatic-viewport canvas,
.dither-viewport canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
}

.chromatic-radial-mask,
.dither-radial-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%,
            transparent 10%,
            rgba(241, 241, 241, 0.65) 50%,
            var(--bg-color) 88%);
    pointer-events: none;
    z-index: 2;
}

/* ================= ASCII Waves Viewport (Dashboard) ================= */
.ascii-waves-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#asciiWavesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ascii-waves-radial-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%,
            transparent 35%,
            rgba(241, 241, 241, 0.35) 70%,
            var(--bg-color) 95%);
    pointer-events: none;
    z-index: 2;
}

.about-hero-compact {
    min-height: 400px;
    padding: 85px 24px 40px 24px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-hero-compact .hero-content {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.about-hero-compact .hero-title {
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    margin-bottom: 16px;
    line-height: 1.35;
}

.about-hero-compact .hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    margin-bottom: 26px;
    line-height: 1.75;
}

/* ================= 10. Projects Filter Navigation ================= */
.projects-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.filter-tab-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-tab-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-1px);
}

.filter-tab-btn.active {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #F1F1F1;
}

.project-card.hidden {
    display: none !important;
}

/* ==========================================================================
   11. Standard Project Details & Showcase Page (صفحة عرض تفاصيل المشروع)
   ========================================================================== */

.project-detail-section {
    position: relative;
    padding: 50px 0 90px;
    z-index: 10;
    background: rgba(241, 241, 241, 0.80);
    /* خلفية تجعل الكانفس أخف وأنعم بشكل ملحوظ خلف الكارد */
}

.project-detail-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-detail-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(50, 50, 50, 0.04);
}

.project-detail-image-wrapper {
    width: 100%;
    height: auto;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: block;
}

.project-detail-img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.project-detail-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    background: rgba(50, 50, 50, 0.05);
    padding: 4px 12px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.project-detail-title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.project-detail-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a4a4a;
    white-space: pre-line;
}

.project-detail-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.project-detail-tools-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-detail-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-detail-tag-item {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(50, 50, 50, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
}

.project-detail-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
}

.project-detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.project-detail-back-link:hover {
    background: #f5f5f5;
    transform: translateX(2px);
}

/* ================= 12. Login Page (صفحة تسجيل الدخول المستقلة) ================= */
.login-standalone-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    background: rgba(241, 241, 241, 0.80);
    /* خلفية تجعل الكانفس أهدأ وأخف خلف كارد تسجيل الدخول */
}

.login-brand-top {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.login-brand-img:hover {
    opacity: 0.85;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 38px 32px;
    box-shadow: 0 4px 24px rgba(50, 50, 50, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #dc2626;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-error-icon {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #ef4444;
    flex-shrink: 0;
}

.login-error-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.login-error-message {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    color: #b91c1c;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.login-submit-btn {
    width: 100%;
    padding: 13px 24px;
    background: var(--btn-primary-bg, #1a1a1a);
    color: var(--btn-primary-text, #ffffff);
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(50, 50, 50, 0.12);
}

.login-submit-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(50, 50, 50, 0.2);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-back-btn {
    width: 100%;
    padding: 12px 24px;
    background: #f8f9fa;
    color: var(--text-muted, #555555);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-back-btn:hover {
    background: #f1f5f9;
    color: var(--text-main, #111111);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.login-back-btn:active {
    transform: translateY(0);
}

/* ================= 13. Dashboard Page Styles (صفحة لوحة التحكم) ================= */
.dashboard-main-section,
.dashboard-grid-section {
    position: relative;
    padding: 45px 34px 90px;
    background-color: var(--bg-color);
    z-index: 25;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.dashboard-dots-pattern {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(rgba(50, 50, 50, 0.08) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 98%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 98%);
    pointer-events: none;
    z-index: 1;
}

.dashboard-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 720px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dashboard-main-section,
    .dashboard-grid-section {
        padding: 35px 20px 70px;
    }
}

.dashboard-box-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 12px rgba(50, 50, 50, 0.03);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard-box-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(50, 50, 50, 0.08);
}

.dashboard-box-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-box-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(50, 50, 50, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-main);
    transition: all 0.25s ease;
}

.dashboard-box-card:hover .dashboard-box-icon-wrap {
    background: #323232;
    color: #ffffff;
    border-color: #323232;
}

.dashboard-box-badge {
    font-family: 'Fira Code', 'Plus Jakarta Sans', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(50, 50, 50, 0.04);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.dashboard-box-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.dashboard-box-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-box-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.dashboard-box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(50, 50, 50, 0.06);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-box-action-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.dashboard-box-card:hover .dashboard-box-action-arrow {
    transform: translateX(-4px);
}

/* Logout Button (No border, No border-radius, Stationary, Red Text, Background Changes on Hover) */
.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    background: transparent;
    color: #dc2626 !important;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c !important;
    border: none;
}

/* Home Icon Link in Backend Navbar */
.nav-home-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    height: 100%;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-decoration: none;
    border-right: 1px solid var(--border-color);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.nav-home-icon-btn:hover {
    background: rgba(50, 50, 50, 0.06);
    color: var(--text-main);
}

/* ================= 14. Settings Page Styles (صفحة إعدادات الموقع) ================= */
.settings-main-section {
    position: relative;
    padding: 45px 34px 90px;
    background-color: var(--bg-color);
    z-index: 25;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.settings-dots-pattern {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(rgba(50, 50, 50, 0.08) 1.2px, transparent 1.2px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 98%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 98%);
    pointer-events: none;
    z-index: 1;
}

.settings-cards-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.settings-cards-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 900px) {
    .settings-cards-2col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.tools-inputs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tool-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tool-input-row .form-input {
    flex: 1;
}

.tool-row-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.92rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tool-row-remove-btn:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

.add-tool-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.add-tool-row-btn:hover {
    background: #f1f5f9;
    border-color: #0f172a;
}

.settings-card {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 34px 34px;
    box-shadow: 0 2px 16px rgba(50, 50, 50, 0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(50, 50, 50, 0.06);
}

.settings-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(50, 50, 50, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.05rem;
}

.settings-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.settings-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.settings-upload-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    width: 100%;
}

.settings-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(241, 241, 241, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.settings-upload-box:hover,
.settings-upload-box.drag-over {
    border-color: #323232;
    background: rgba(50, 50, 50, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(50, 50, 50, 0.05);
}

.settings-preview-img-wrap {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.settings-upload-box:hover .settings-preview-img-wrap {
    transform: scale(1.04);
}

.settings-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.settings-upload-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    flex: 1;
}

.settings-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-upload-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.settings-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.settings-actions-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 14px;
}

.settings-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(50, 50, 50, 0.12);
}

.settings-save-btn:hover {
    background: #111111;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(50, 50, 50, 0.18);
}

.admin-cancel-btn,
.admin-secondary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.admin-cancel-btn:hover,
.admin-secondary-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}



/* ==========================================================================
   11. Live Preview Studio & Dynamic Showcase (صفحة المعاينة الحية التفاعلية)
   ========================================================================== */

.preview-page-body {
    background-color: #0d0e11;
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Top Preview Studio Control Bar --- */
.preview-topbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(18, 20, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    gap: 12px;
}

.preview-topbar-left,
.preview-topbar-center,
.preview-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Back Button */
.preview-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.preview-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(2px);
}

/* Project Selector Dropdown */
.project-picker-wrapper {
    position: relative;
}

.project-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-picker-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.project-picker-title {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.project-picker-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.project-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #16191f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1010;
    animation: fadeInDown 0.2s ease;
}

.project-picker-dropdown.show {
    display: flex;
}

.project-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    text-align: right;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.project-picker-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.project-picker-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-right: 3px solid #3b82f6;
}

.project-picker-thumb {
    width: 44px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-picker-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}

.project-picker-item-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-picker-item-tech {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

/* Device Viewport Switcher Controls */
.device-switchers-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
}

.device-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.device-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.device-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* Right Tool Actions */
.preview-tool-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.preview-tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.preview-cta-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.preview-cta-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* --- Main Preview Canvas Area --- */
.preview-main-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 10%, rgba(30, 41, 59, 0.5) 0%, #0a0c10 100%);
    position: relative;
    overflow-y: auto;
    min-height: calc(100vh - 64px);
}

.preview-device-wrapper {
    width: 100%;
    max-width: 1280px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

/* Device Modes */
.preview-device-wrapper[data-device="desktop"] {
    max-width: 1280px;
    width: 100%;
}

.preview-device-wrapper[data-device="tablet"] {
    max-width: 768px;
    width: 100%;
}

.preview-device-wrapper[data-device="mobile"] {
    max-width: 390px;
    width: 100%;
}

/* Browser Frame / Mock Shell */
.preview-mock-window {
    width: 100%;
    background: #1e222b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Desktop Browser Header */
.browser-header-bar {
    height: 42px;
    background: #16181f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
}

.browser-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.browser-url-pill {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: #94a3b8;
    padding: 0 12px;
    direction: ltr;
}

.browser-url-pill i {
    font-size: 0.7rem;
    color: #10b981;
}

.browser-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
}

/* Mobile Notch / Dynamic Island (only visible in mobile frame) */
.mobile-notch-bar {
    display: none;
    height: 30px;
    background: #000000;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
}

.preview-device-wrapper[data-device="mobile"] .mobile-notch-bar {
    display: flex;
}

.preview-device-wrapper[data-device="mobile"] .browser-header-bar {
    display: none;
}

.dynamic-island {
    width: 90px;
    height: 18px;
    background: #111;
    border-radius: 20px;
}

/* Mock App Container & Viewport Area */
.mock-app-viewport {
    min-height: 680px;
    max-height: 800px;
    overflow-y: auto;
    background: #0b0d11;
    color: #f8fafc;
    position: relative;
}

/* Custom modern scrollbar for mock app */
.mock-app-viewport::-webkit-scrollbar {
    width: 6px;
}

.mock-app-viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.mock-app-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* ================= Common Mock App Components ================= */
.mock-app-content {
    display: none;
    animation: fadeInApp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mock-app-content.active {
    display: block;
}

@keyframes fadeInApp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* --- Project 1: Cloud SaaS Platform Mock --- */
.saas-mock-layout {
    display: flex;
    min-height: 680px;
}

.saas-mock-sidebar {
    width: 230px;
    background: #11141a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.saas-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    padding: 0 8px;
}

.saas-brand-icon {
    width: 32px;
    height: 32px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.saas-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saas-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

.saas-menu-item:hover,
.saas-menu-item.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

.saas-mock-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0c0e12;
}

.saas-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.saas-title-group h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
}

.saas-title-group p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.saas-time-filters {
    display: flex;
    gap: 6px;
    background: #181c24;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.saas-filter-pill {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-family: inherit;
}

.saas-filter-pill.active {
    background: #2563eb;
    color: #ffffff;
}

/* KPI Cards */
.saas-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.saas-kpi-card {
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.saas-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.4);
}

.saas-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
}

.saas-kpi-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    font-family: 'JetBrains Mono', monospace;
}

.saas-kpi-change {
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.saas-kpi-change.up {
    color: #10b981;
}

.saas-kpi-change.down {
    color: #ef4444;
}

/* Chart & Activity Row */
.saas-visual-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .saas-visual-row {
        grid-template-columns: 1fr;
    }

    .saas-mock-sidebar {
        display: none;
    }
}

.saas-chart-box {
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.saas-bars-simulation {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    gap: 8px;
    padding-top: 20px;
}

.saas-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.saas-bar-fill {
    width: 100%;
    max-width: 32px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.saas-bar-fill:hover {
    background: #60a5fa;
}

.saas-bar-lbl {
    font-size: 0.72rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

/* Activity Feed */
.saas-activity-box {
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.saas-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.activity-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Project 2: Luxury E-Commerce Store Mock --- */
.ecom-mock-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #0f1117;
}

.ecom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ecom-brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecom-cart-trigger {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecom-cart-count {
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
}

.ecom-hero-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ecom-hero-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.ecom-hero-text p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.ecom-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ecom-card {
    background: #151821;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease;
}

.ecom-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ecom-img-box {
    width: 100%;
    height: 140px;
    background: #1c202b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #60a5fa;
    position: relative;
}

.ecom-discount-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.ecom-info-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.ecom-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.ecom-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
    font-family: 'JetBrains Mono', monospace;
}

.ecom-add-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ecom-add-btn:hover {
    background: #1d4ed8;
}

/* --- Project 3: AI Code Workspace Mock --- */
.ai-mock-container {
    display: flex;
    flex-direction: column;
    min-height: 680px;
    background: #0e1117;
}

.ai-topbar {
    height: 48px;
    background: #161922;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.ai-tab-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-workspace-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
}

@media (max-width: 800px) {
    .ai-workspace-split {
        grid-template-columns: 1fr;
    }
}

.ai-prompt-pane {
    padding: 20px;
    background: #11141d;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-prompt-input {
    width: 100%;
    min-height: 100px;
    background: #181c26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f8fafc;
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.ai-prompt-input:focus {
    border-color: #3b82f6;
}

.ai-generate-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.ai-code-pane {
    padding: 20px;
    background: #0b0d13;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: auto;
}

.ai-code-viewer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #93c5fd;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    background: #12151e;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
}

/* --- Project 4: Aura Finance Fintech Mock --- */
.fintech-mock-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0d1117;
}

.fintech-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

@media (max-width: 800px) {
    .fintech-top-grid {
        grid-template-columns: 1fr;
    }
}

.fintech-card-view {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fintech-card-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    letter-spacing: 2px;
    direction: ltr;
}

.fintech-actions-box {
    background: #151922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fintech-quick-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.fintech-qbtn {
    background: #1e2330;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 6px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.fintech-qbtn:hover {
    background: #2563eb;
    color: #ffffff;
}

.fintech-tx-list {
    background: #151922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Project 5: Aura Health Healthcare Mock --- */
.health-mock-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0c1015;
}

.health-vitals-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.health-vital-card {
    background: #141923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.health-pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: heartPulse 1.2s infinite;
}

@keyframes heartPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.health-consult-card {
    background: linear-gradient(135deg, #064e3b, #0f172a);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* --- Project Technical Specs Side Drawer --- */
.specs-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    width: 380px;
    height: calc(100vh - 64px);
    background: #13161d;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 1020;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.specs-drawer.open {
    transform: translateX(0);
}

.specs-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.specs-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specs-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.specs-scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.score-badge-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #10b981;
    font-family: 'JetBrains Mono', monospace;
}

.score-lbl {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Toast Notifications */
.preview-toast,
.site-toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.94rem;
    font-weight: 700;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    direction: rtl;
    font-family: inherit;
}

.preview-toast.show,
.site-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Top Right Slide Toast Notification */
.top-right-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    transform: translateX(120%) scale(0.95);
    background: rgba(18, 20, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 197, 94, 0.2);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, visibility 0.5s ease;
    direction: rtl;
    font-family: inherit;
    min-width: 300px;
    max-width: 90vw;
}

.top-right-toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.top-right-toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(239, 68, 68, 0.2);
}

.top-right-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.top-right-toast.error .top-right-toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.top-right-toast-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.top-right-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.top-right-toast-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 400;
}

@media (max-width: 768px) {
    .preview-topbar {
        padding: 0 10px;
        gap: 6px;
    }

    .preview-topbar-center {
        display: none;
    }

    .preview-main-stage {
        padding: 12px 6px;
    }

    .specs-drawer {
        width: 100%;
    }
}

/* ==========================================================================
   15. Custom Rich Text Editor & About Me Management (محرر النصوص المتقدم وإدارة من أنا)
   ========================================================================== */

.about-mgmt-section {
    position: relative;
    padding: 45px 34px 90px;
    background-color: var(--bg-color);
    z-index: 25;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.about-mgmt-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.char-counter-badge {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-muted);
    background: rgba(50, 50, 50, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* --- TinyMCE Professional Integration & Complete Cleanup --- */
.tinymce-editor-container {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Completely Hide All Red Banners, API Key Warnings, Promotion, Upgrade Badges & Tiny Logo */
.tox-notifications-container,
.tox-notification,
.tox-notification--warning,
.tox-notification--error,
.tox-statusbar__branding,
.tox-promotion,
.tox-statusbar__upgrade-badge,
.tox .tox-statusbar a[title*="Tiny"],
.tox .tox-statusbar a[href*="tiny.cloud"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

.tox.tox-tinymce {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(50, 50, 50, 0.03) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit !important;
    direction: rtl !important;
    text-align: right !important;
}

.tox.tox-tinymce:focus-within {
    border-color: #111111 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}

.tox .tox-menubar {
    background-color: #f8fafc !important;
    border-bottom: 1px solid var(--border-color) !important;
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 6px 12px !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-toolbar__overflow {
    background-color: #f8fafc !important;
    border-bottom-color: var(--border-color) !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 4px 10px !important;
}

.tox .tox-toolbar__group {
    direction: rtl !important;
    display: flex !important;
    flex-direction: row !important;
    padding: 0 4px !important;
}

.tox .tox-edit-area {
    background: #ffffff !important;
}

.tox .tox-edit-area__iframe {
    background: #ffffff !important;
}

.tox .tox-statusbar,
.tox .tox-statusbar__path,
.tox .tox-statusbar__text-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* --- TinyMCE-Style Custom Rich Text Editor --- */
.rich-editor-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(50, 50, 50, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rich-editor-wrapper:focus-within {
    border-color: #111111;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.rich-editor-wrapper.fullscreen {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 40px);
}

/* Toolbar */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

.editor-btn-group {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.editor-divider {
    width: 1px;
    height: 22px;
    background: var(--border-color);
    margin: 0 5px;
}

.editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #475569;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.editor-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.06);
}

.editor-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.editor-select {
    height: 32px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.editor-select:hover,
.editor-select:focus {
    border-color: #111111;
}

.editor-color-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.editor-color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Editor Editable Body */
.editor-body {
    min-height: 280px;
    max-height: 480px;
    overflow-y: auto;
    padding: 24px 28px;
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.85;
    direction: rtl;
    text-align: right;
    outline: none;
}

.rich-editor-wrapper.fullscreen .editor-body {
    max-height: calc(100vh - 160px);
    height: calc(100vh - 160px);
}

.editor-body:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
    display: block;
}

/* Editor Rich Content Typography */
.editor-body h1,
.editor-body h2,
.editor-body h3,
.editor-body h4 {
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.editor-body h1 {
    font-size: 1.75rem;
}

.editor-body h2 {
    font-size: 1.45rem;
}

.editor-body h3 {
    font-size: 1.25rem;
}

.editor-body p {
    margin-bottom: 14px;
}

.editor-body ul,
.editor-body ol {
    margin-right: 24px;
    margin-bottom: 14px;
    padding-right: 8px;
}

.editor-body li {
    margin-bottom: 6px;
}

.editor-body blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f8fafc;
    border-right: 4px solid #0f172a;
    border-radius: 0 6px 6px 0;
    color: #475569;
    font-style: italic;
}

.editor-body pre {
    margin: 16px 0;
    padding: 14px 18px;
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 6px;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.editor-body code {
    background: rgba(50, 50, 50, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: #dc2626;
}

.editor-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.editor-body a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}

.editor-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

/* Raw HTML View Mode */
.editor-html-view {
    display: none;
    width: 100%;
    min-height: 280px;
    max-height: 480px;
    padding: 20px 24px;
    background: #0f172a;
    color: #38bdf8;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    border: none;
    outline: none;
    resize: vertical;
    direction: ltr;
    text-align: left;
}

.rich-editor-wrapper.html-mode .editor-body {
    display: none;
}

.rich-editor-wrapper.html-mode .editor-html-view {
    display: block;
}

/* Status Bar */
.editor-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: #64748b;
    user-select: none;
}

.editor-status-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

/* ================= 16. Admin Data Table & Skills Management ================= */
.admin-table-container {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.admin-table-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.admin-table-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-add-btn,
.admin-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #0f172a;
    cursor: pointer;
}

.admin-add-btn:hover,
.admin-primary-btn:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.admin-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.92rem;
}

.admin-data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.admin-data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    color: #1e293b;
    vertical-align: middle;
}

.admin-data-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-data-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-data-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-data-table th:first-child,
.admin-data-table td:first-child {
    border-left: 1px solid var(--border-color);
}

.table-id-square {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    user-select: none;
}

.table-skill-name-text {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.table-action-btns-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
}

button.table-icon-btn {
    font-family: inherit;
    border: none;
    outline: none;
}

/* علامات الزوايا الأربعة للأزرار (Crop Marks) - خط أنعم وأخف */
.btn-corner {
    position: absolute;
    width: 5px;
    height: 5px;
    pointer-events: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-corner-tl {
    top: -1px;
    left: -1px;
    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
}

.btn-corner-tr {
    top: -1px;
    right: -1px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.btn-corner-bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
}

.btn-corner-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.table-icon-btn:hover .btn-corner,
.admin-page-link:hover .btn-corner {
    width: 7px;
    height: 7px;
}

.table-btn-edit {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: none !important;
}

.table-btn-edit i {
    color: #0f172a !important;
    font-size: 0.92rem !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.table-btn-edit:hover {
    background: #f1f5f9 !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.table-btn-edit:hover i {
    color: #000000 !important;
}

.table-btn-delete {
    background: #fff5f5 !important;
    color: #e11d48 !important;
    border: none !important;
}

.table-btn-delete i {
    color: #e11d48 !important;
    font-size: 0.92rem !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.table-btn-delete:hover {
    background: #fee2e2 !important;
    color: #be123c !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12) !important;
}

.table-btn-delete:hover i {
    color: #be123c !important;
}

.table-btn-preview {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: none !important;
}

.table-btn-preview i {
    color: #2563eb !important;
    font-size: 0.92rem !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.table-btn-preview:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.table-btn-preview:hover i {
    color: #1d4ed8 !important;
}

.table-btn-view {
    background: #fffbeb !important;
    color: #F9A825 !important;
    border: none !important;
}

.table-btn-view i {
    color: #F9A825 !important;
    font-size: 0.92rem !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.table-btn-view:hover {
    background: #fef3c7 !important;
    color: #d97706 !important;
    box-shadow: 0 2px 8px rgba(249, 168, 37, 0.18) !important;
}

.table-btn-view:hover i {
    color: #d97706 !important;
}

.table-project-thumb {
    width: 62px;
    height: 42px;
    border-radius: 0;
    object-fit: cover;
    border: 1px solid var(--border-color);
    display: block;
    background: #f8fafc;
}

.table-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-project-tag {
    font-size: 0.76rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

/* ================= Modern Interactive Skill Chips Selector ================= */
/* ================= Modern Interactive Skill Chips Selector ================= */
.skills-chips-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 2px;
    width: 100%;
}

.skill-select-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-chip-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.chip-status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.76rem;
    color: transparent;
    border: 1.5px solid #94a3b8;
    border-radius: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.skill-select-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.skill-select-chip .btn-corner {
    display: none;
}

.skill-select-chip.active .btn-corner,
.skill-select-chip:has(.skill-chip-checkbox:checked) .btn-corner {
    display: block;
    border-color: #000000;
}

/* حالة الاختيار (Selected / Active Chip) - خلفية بيضاء بالكامل على كل مساحة الزر */
.skill-select-chip.active,
.skill-select-chip:has(.skill-chip-checkbox:checked) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.skill-select-chip.active .chip-status-indicator,
.skill-select-chip:has(.skill-chip-checkbox:checked) .chip-status-indicator {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.no-skills-warning {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.9rem;
    width: 100%;
}

.add-skill-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.add-skill-quick-btn:hover {
    background: #1e293b;
    color: #ffffff;
}

.tools-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.tools-input-group .form-input {
    flex: 1;
}

.tools-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0;
    align-items: center;
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 0;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    animation: fadeInScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.tool-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    font-size: 0.72rem;
    border: none;
    transition: all 0.15s ease;
}

.tool-chip-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.editor-mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0f172a;
}

/* ================= 17. Admin Custom Geometric Pagination ================= */
.admin-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 24px;
    margin-top: 0;
    border-top: none;
}

.admin-pagination-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* المربعات غير النشطة (مربعات سوداء مصمتة بدون زوايا) */
.admin-page-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0f172a !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.admin-page-link:hover:not(.active) {
    background: #1e293b !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* الصفحة النشطة الحالية (مطابقة للصورة: خلفية فاتحة، رقم أسود، وزوايا سوداء بارزة بدون خط داخلي) */
.admin-page-link.active {
    background: #f8fafc !important;
    color: #000000 !important;
    border: none !important;
    cursor: default;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-page-link.active .btn-corner {
    border-color: #000000 !important;
}

/* ========================================================================= */
/*  PROJECT GALLERY & LIGHTBOX STYLES                                        */
/* ========================================================================= */
.project-detail-media-column {
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-detail-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: zoom-in;
    display: block;
}

.project-detail-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.image-zoom-trigger {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.image-zoom-trigger:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.project-gallery-strip {
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--border-color);
}

.project-gallery-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 10px;
}

.project-gallery-thumbnails-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.project-gallery-thumbnails-scroll::-webkit-scrollbar {
    height: 5px;
}

.project-gallery-thumbnails-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.gallery-thumb-item {
    position: relative;
    width: 90px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumb-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.gallery-thumb-item:hover img {
    transform: scale(1.05);
}

.gallery-thumb-item.active {
    border-color: #323232;
    box-shadow: 0 0 12px rgba(50, 50, 50, 0.35);
    transform: translateY(-2px);
}

.thumb-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
    pointer-events: none;
}

/* Lightbox Modal & Zoom */
.project-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    background: rgba(5, 8, 15, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.project-lightbox-modal.show {
    opacity: 1;
    visibility: visible;
}

.project-lightbox-box {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.project-lightbox-box img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-lightbox-modal.show .project-lightbox-box img {
    transform: scale(1);
}

.project-lightbox-close {
    position: absolute;
    top: -46px;
    left: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #323232;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(241, 241, 241, 0.2);
    color: #F1F1F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    z-index: 10002;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.lightbox-arrow i {
    color: #F1F1F1;
    transition: color 0.25s ease;
}

.lightbox-prev {
    right: -65px;
}

.lightbox-next {
    left: -65px;
}

.lightbox-arrow:hover {
    background: #F1F1F1;
    border-color: #323232;
    color: #323232;
    transform: translateY(-50%) scale(1.12);
}

.lightbox-arrow:hover i {
    color: #323232;
}

@media (max-width: 900px) {
    .lightbox-prev {
        right: 12px;
    }
    .lightbox-next {
        left: 12px;
    }
}


/* ========================================================================= */
/*  ADMIN TOGGLE SWITCH                                                      */
/* ========================================================================= */
.admin-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.admin-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2b2b2b;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #888888;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.admin-toggle-switch:hover .admin-toggle-slider {
    border-color: #F1F1F1;
}

.admin-toggle-switch input:checked + .admin-toggle-slider {
    background-color: #F1F1F1;
    border-color: #F1F1F1;
}

.admin-toggle-switch input:checked + .admin-toggle-slider:before {
    background-color: #111111;
    transform: translateX(22px);
}

/* ========================================================================= */
/*  PROJECT CARD SLIDER (سلايدر يدوي بدون تحريك تلقائي)                      */
/* ========================================================================= */
.project-card-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.project-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
}

.project-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.project-slide img,
.project-slide .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.card-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #323232;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(241, 241, 241, 0.2);
    color: #F1F1F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.card-slider-arrow i {
    color: #F1F1F1;
    transition: color 0.25s ease;
}

.project-card:hover .card-slider-arrow,
.project-card-slider:hover .card-slider-arrow {
    opacity: 1;
}

.card-slider-prev {
    right: 10px;
}

.card-slider-next {
    left: 10px;
}

.card-slider-arrow:hover {
    background: #F1F1F1;
    border-color: #323232;
    color: #323232;
    transform: translateY(-50%) scale(1.12);
}

.card-slider-arrow:hover i {
    color: #323232;
}

.card-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 6;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

.card-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.card-slider-dot.active {
    width: 15px;
    border-radius: 4px;
    background: #F1F1F1;
}

.card-slider-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: monospace;
    z-index: 6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .card-slider-arrow {
        opacity: 0.9;
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
}

/* ========================================================================= */
/*  PAGE PRELOADER & SPINNER (دخول الصفحة)                                   */
/* ========================================================================= */
.page-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #F1F1F1;
    z-index: 9999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
}

.page-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    --color-1: #222222;
    --size: 1.2px;

    color: var(--color-1);
    font-size: calc(10 * var(--size));
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    animation: mulShdSpin 1.3s infinite linear;
    transform: translateZ(0);
}

@keyframes mulShdSpin {
    0%,
    100% {
        box-shadow:
            0 -3em 0 0.2em,
            2em -2em 0 0em,
            3em 0 0 -1em,
            2em 2em 0 -1em,
            0 3em 0 -1em,
            -2em 2em 0 -1em,
            -3em 0 0 -1em,
            -2em -2em 0 0;
    }
    12.5% {
        box-shadow:
            0 -3em 0 0,
            2em -2em 0 0.2em,
            3em 0 0 0,
            2em 2em 0 -1em,
            0 3em 0 -1em,
            -2em 2em 0 -1em,
            -3em 0 0 -1em,
            -2em -2em 0 -1em;
    }
    25% {
        box-shadow:
            0 -3em 0 -0.5em,
            2em -2em 0 0,
            3em 0 0 0.2em,
            2em 2em 0 0,
            0 3em 0 -1em,
            -2em 2em 0 -1em,
            -3em 0 0 -1em,
            -2em -2em 0 -1em;
    }
    37.5% {
        box-shadow:
            0 -3em 0 -1em,
            2em -2em 0 -1em,
            3em 0em 0 0,
            2em 2em 0 0.2em,
            0 3em 0 0em,
            -2em 2em 0 -1em,
            -3em 0em 0 -1em,
            -2em -2em 0 -1em;
    }
    50% {
        box-shadow:
            0 -3em 0 -1em,
            2em -2em 0 -1em,
            3em 0 0 -1em,
            2em 2em 0 0em,
            0 3em 0 0.2em,
            -2em 2em 0 0,
            -3em 0em 0 -1em,
            -2em -2em 0 -1em;
    }
    62.5% {
        box-shadow:
            0 -3em 0 -1em,
            2em -2em 0 -1em,
            3em 0 0 -1em,
            2em 2em 0 -1em,
            0 3em 0 0,
            -2em 2em 0 0.2em,
            -3em 0 0 0,
            -2em -2em 0 -1em;
    }
    75% {
        box-shadow:
            0em -3em 0 -1em,
            2em -2em 0 -1em,
            3em 0em 0 -1em,
            2em 2em 0 -1em,
            0 3em 0 -1em,
            -2em 2em 0 0,
            -3em 0em 0 0.2em,
            -2em -2em 0 0;
    }
    87.5% {
        box-shadow:
            0em -3em 0 0,
            2em -2em 0 -1em,
            3em 0 0 -1em,
            2em 2em 0 -1em,
            0 3em 0 -1em,
            -2em 2em 0 0,
            -3em 0em 0 0,
            -2em -2em 0 0.2em;
    }
}