@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

/* =========================================================
   VORTEX — CORE CSS
   ========================================================= */

:root {
    --vortex-black: #07090c;
    --vortex-black-2: #0b0f14;
    --vortex-black-3: #10151b;

    --vortex-white: #ffffff;
    --vortex-white-soft: #d3dae0;
    --vortex-gray: #8e99a4;
    --vortex-gray-dark: #5d6771;

    --vortex-cyan: #13ABD2;
    --vortex-cyan-light: #76E5FD;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.055);

    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --container: 1380px;
    --header-height: 68px;
    --transition: 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, rgba(19, 171, 210, 0.07), transparent 420px), var(--vortex-black);
    color: var(--vortex-white);
    font-family: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--vortex-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--vortex-cyan-light), var(--vortex-cyan));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vortex-cyan-light);
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: rgba(19, 171, 210, 0.35);
    color: var(--vortex-white);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

#app-header {
    position: relative;
    z-index: 1000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(8, 9, 11, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-header-inner {
    width: min(calc(100% - 40px), var(--container));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
}

.site-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--vortex-cyan-light), var(--vortex-cyan));
    color: #061015;
    font-size: 17px;
    font-weight: 950;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    color: var(--vortex-gray);
    font-size: 14px;
    font-weight: 700;
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
    color: var(--vortex-white);
    background: var(--surface);
}

.site-nav a.active {
    color: var(--vortex-white);
    background: rgba(19, 171, 210, 0.10);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    right: 13px;
    left: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vortex-cyan-light), var(--vortex-cyan));
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

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

.header-action {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--vortex-white);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.header-action:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-button {
    display: none;
}

.mobile-menu {
    display: none;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    min-height: calc(100vh - var(--header-height));
}

main > .container {
    padding-top: 54px;
    padding-bottom: 90px;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    margin-bottom: 42px;
}

.page-title .eyebrow {
    margin-bottom: 7px;
}

.page-title h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    letter-spacing: 0;
}

.page-title p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--vortex-gray);
    font-size: 15px;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
}

h3 {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.4;
}

.eyebrow {
    display: inline-block;
    color: var(--vortex-cyan-light);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin-top: 82px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-link {
    color: var(--vortex-cyan-light);
    font-size: 13px;
    font-weight: 800;
    transition: color var(--transition);
}

.section-link:hover {
    color: var(--vortex-white);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--vortex-black-2);
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 9, 11, 0.96),
        rgba(8, 9, 11, 0.62),
        rgba(8, 9, 11, 0.12)
    );
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(700px, 85%);
    min-height: 450px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    margin: 10px 0 14px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.3;
}

.hero-content p {
    max-width: 620px;
    color: var(--vortex-white-soft);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 44px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

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

.btn.primary {
    color: #041015;
    background: linear-gradient(135deg, var(--vortex-cyan-light), var(--vortex-cyan));
    box-shadow: 0 8px 28px rgba(19, 171, 210, 0.18);
}

.btn.primary:hover {
    box-shadow: 0 12px 34px rgba(19, 171, 210, 0.28);
}

.btn.secondary {
    color: var(--vortex-white);
    background: var(--surface);
    border-color: var(--border);
}

.btn.secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}


/* =========================================================
   QUICK NAVIGATION
   ========================================================= */

.quick-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-card {
    min-height: 110px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.quick-card:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    border-color: rgba(19, 171, 210, 0.25);
}

.quick-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.quick-card small {
    display: block;
    color: var(--vortex-gray);
    font-size: 12px;
}

.quick-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--vortex-cyan-light);
    background: rgba(19, 171, 210, 0.09);
    font-size: 20px;
}


/* =========================================================
   MANGA GRID
   ========================================================= */

.manga-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.manga-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.manga-card:hover {
    transform: translateY(-5px);
    border-color: rgba(118, 229, 253, 0.22);
    background: var(--surface-hover);
}

.manga-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--vortex-black-3);
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.manga-card:hover .manga-cover img {
    transform: scale(1.035);
}

.manga-card-body {
    padding: 13px;
}

.manga-card-body h3 {
    margin: 4px 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.manga-card-body h3 a:hover {
    color: var(--vortex-cyan-light);
}

.manga-rating {
    color: var(--vortex-cyan-light);
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   CHAPTER GRID
   ========================================================= */

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.chapter-card {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.chapter-card:hover {
    transform: translateY(-2px);
    background: var(--surface-hover);
    border-color: rgba(19, 171, 210, 0.22);
}

.chapter-card-info {
    min-width: 0;
}

.chapter-card-info h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-card-meta {
    margin-top: 4px;
    color: var(--vortex-gray);
    font-size: 12px;
}


/* =========================================================
   SEARCH / INPUTS
   ========================================================= */

input,
select,
textarea {
    width: 100%;
    min-height: 45px;
    padding: 9px 13px;
    color: var(--vortex-white);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--vortex-gray-dark);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(19, 171, 210, 0.65);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(19, 171, 210, 0.10);
}

select option {
    background: var(--vortex-black-2);
    color: var(--vortex-white);
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty {
    width: 100%;
    padding: 70px 25px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
}

.empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--vortex-cyan-light);
    background: rgba(19, 171, 210, 0.08);
    font-size: 25px;
}

.empty h3 {
    margin-bottom: 7px;
}

.empty p {
    max-width: 520px;
    margin: 0 auto 20px;
    color: var(--vortex-gray);
    font-size: 14px;
}


/* =========================================================
   LOADING
   ========================================================= */

.loading-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 18px;
    border: 3px solid rgba(255, 255, 255, 0.10);
    border-top-color: var(--vortex-cyan);
    border-radius: 50%;
    animation: vortex-spin 800ms linear infinite;
}

@keyframes vortex-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   HIDDEN
   ========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   TEXT BUTTON
   ========================================================= */

.text-button {
    padding: 0;
    color: var(--vortex-cyan-light);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: color var(--transition);
}

.text-button:hover {
    color: var(--vortex-white);
}


/* =========================================================
   RESULTS
   ========================================================= */

.results-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 24px;
}

.results-count {
    color: var(--vortex-gray);
    font-size: 13px;
    white-space: nowrap;
}


/* =========================================================
   FOOTER
   ========================================================= */

#app-footer {
    border-top: 1px solid var(--border);
}

.site-footer {
    padding: 35px 0;
    background: rgba(0, 0, 0, 0.16);
}

.site-footer-inner {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer p {
    margin: 0;
    color: var(--vortex-gray);
    font-size: 12px;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer-links a {
    color: var(--vortex-gray);
    font-size: 12px;
}

.site-footer-links a:hover {
    color: var(--vortex-white);
}


/* =========================================================
   FOCUS
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--vortex-cyan-light);
    outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE — LARGE
   ========================================================= */

@media (max-width: 1250px) {

    .manga-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .site-nav {
        gap: 0;
    }

    .site-nav a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .manga-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        padding: 45px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 720px) {

    :root {
        --header-height: 64px;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    main > .container {
        padding-top: 35px;
        padding-bottom: 65px;
    }

    .site-header-inner {
        width: min(calc(100% - 24px), var(--container));
        gap: 10px;
    }

    .site-logo {
        font-size: 15px;
        letter-spacing: 1px;
        gap: 8px;
    }

    .site-logo img,
    .site-logo-mark {
        width: 34px;
        height: 34px;
    }

    .site-nav {
        display: none;
    }

    .header-actions {
        margin-inline-start: auto;
    }

    .mobile-menu-button {
        display: grid;
    }

    .mobile-menu {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        z-index: 999;
        padding: 12px;
        border-bottom: 1px solid var(--border);
        background: rgba(8, 9, 11, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        color: var(--vortex-gray);
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active {
        color: var(--vortex-white);
        background: var(--surface);
    }

    .page-title {
        margin-bottom: 30px;
    }

    .page-title h1 {
        font-size: 34px;
    }

    .section {
        margin-top: 55px;
    }

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

    .section-head h2 {
        font-size: 24px;
    }

    .manga-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .quick-navigation {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 410px;
        border-radius: var(--radius-lg);
    }

    .hero-content {
        min-height: 410px;
        width: 100%;
        padding: 28px;
        justify-content: end;
    }

    .hero-content h1 {
        font-size: 37px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* =========================================================
   RESPONSIVE — SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .manga-grid {
        gap: 9px;
    }

    .manga-card-body {
        padding: 10px;
    }

    .manga-card-body h3 {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .btn {
        min-height: 42px;
        padding-inline: 14px;
    }

    .section-link {
        font-size: 12px;
    }

}

/* ---------- Icons ---------- */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-logo img { transition: transform 600ms ease; }
.site-logo:hover img { transform: rotate(180deg); }

@media (max-width: 430px) {
    .site-logo { gap: 8px; }
    .site-logo img { width: 32px; height: 32px; }
}

/* ---------- شعار: VORTEX كبير و GROUP نحيل تحته ---------- */
.site-logo { letter-spacing: 0; }
.logo-text { display: flex; flex-direction: column; align-items: center; direction: ltr; line-height: 1; }
.logo-text b { font-size: 22px; font-weight: 900; letter-spacing: 3px; }
.logo-text em { margin-top: 5px; padding-inline-start: 0.6em; font-style: normal; font-size: 9px; font-weight: 300; letter-spacing: 0.6em; text-transform: uppercase; color: var(--vortex-cyan-light); opacity: 0.9; }

@media (max-width: 430px) {
    .logo-text b { font-size: 18px; letter-spacing: 2px; }
    .logo-text em { font-size: 8px; margin-top: 4px; }
}


/* =========================================================
   REFINEMENT LAYER — هدوء، دقة، وتسلسل بصري واضح
   ========================================================= */

body {
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--vortex-black); }
::-webkit-scrollbar-thumb { background: #29313a; border: 2px solid var(--vortex-black); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--vortex-cyan); }

/* ---------- الهيدر ---------- */
.site-header {
    background: rgba(7, 9, 12, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.site-header-inner { gap: 40px; }

.site-logo img { transition: none; }
.site-logo:hover img { transform: none; }
.logo-text b { font-weight: 800; letter-spacing: 3.5px; }
.logo-text em { font-weight: 400; opacity: 0.8; }

.site-nav { align-self: stretch; gap: 4px; }
.site-nav a {
    height: 100%;
    min-height: 0;
    padding: 0 16px;
    border-radius: 0;
    font-size: 14.5px;
    font-weight: 500;
}
.site-nav a:hover { background: transparent; color: var(--vortex-white); }
.site-nav a.active { background: transparent; color: var(--vortex-white); font-weight: 600; }
.site-nav a.active::after {
    right: 16px; left: 16px; bottom: -1px; height: 2px;
    border-radius: 0; background: var(--vortex-cyan);
}

.header-search {
    display: flex; align-items: center; gap: 10px;
    width: 250px; height: 40px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--vortex-gray); font-size: 13.5px;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.header-search:hover { border-color: var(--border-strong); color: var(--vortex-white); background: rgba(255, 255, 255, 0.05); }
.header-search .icon { width: 18px; height: 18px; }

.header-action { border-radius: 8px; background: transparent; }
.header-action:hover { transform: none; }

/* ---------- الأزرار ---------- */
.btn {
    min-height: 46px;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--vortex-cyan); color: #031116; box-shadow: none; }
.btn.primary:hover { background: #22bfe6; box-shadow: none; }
.btn.secondary { background: transparent; border-color: var(--border-strong); }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }

/* ---------- العناوين ---------- */
.page-title { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.page-title h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.page-title p { max-width: 62ch; color: var(--vortex-gray); font-size: 15px; line-height: 1.9; }
.eyebrow { color: var(--vortex-gray); font-size: 12.5px; font-weight: 500; }

.section-head { align-items: baseline; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-link { color: var(--vortex-gray); font-size: 13.5px; font-weight: 500; }
.section-link:hover { color: var(--vortex-cyan-light); }

/* ---------- بطاقات ---------- */
.manga-card { border-radius: var(--radius-md); background: var(--vortex-black-2); }
.manga-card:hover { transform: none; border-color: rgba(118, 229, 253, 0.4); background: var(--vortex-black-3); }
.manga-card:hover .manga-cover img { transform: scale(1.03); }
.manga-card-body { padding: 14px; }
.manga-card-body h3 { font-size: 15px; font-weight: 600; }
.chapter-card { background: var(--vortex-black-2); }
.chapter-card:hover { transform: none; }

/* ---------- الحقول ---------- */
input, select, textarea { border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
input:focus, select:focus, textarea:focus { border-color: var(--vortex-cyan); background: rgba(255, 255, 255, 0.045); box-shadow: 0 0 0 3px rgba(19, 171, 210, 0.14); }

.empty { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--vortex-black-2); }
.empty-icon { border-radius: 12px; }

/* ---------- التذييل ---------- */
.site-footer { padding: 30px 0; background: transparent; }
.site-footer-inner { gap: 28px; }
.footer-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--vortex-gray); font-size: 13px; }
.footer-mark img { width: 26px; height: 26px; opacity: 0.85; }
.site-footer-links { gap: 26px; }
.site-footer-links a { font-size: 13px; font-weight: 500; }

:focus-visible { outline: 2px solid var(--vortex-cyan-light); outline-offset: 3px; border-radius: 4px; }

.aurora { display: none !important; }

@media (max-width: 1000px) {
    .site-header-inner { gap: 20px; }
    .header-search { width: 200px; }
    .site-nav a { padding: 0 11px; }
}

@media (max-width: 720px) {
    .header-search { width: 42px; height: 42px; padding: 0; justify-content: center; }
    .header-search span { display: none; }
    .site-logo { margin-inline-end: auto; }
    .mobile-menu { background: rgba(7, 9, 12, 0.98); }
    .mobile-menu a { border-radius: 6px; font-weight: 500; }
    .site-footer-inner { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* =========================================================
   VORTEX IDENTITY — الدوامة
   ========================================================= */

:root { --abyss: #04070d; --vx-m: min(34vmin, 200px); }

body {
    background:
        radial-gradient(1100px 650px at 88% -6%, rgba(19, 171, 210, 0.17), transparent 62%),
        radial-gradient(900px 600px at -5% 105%, rgba(14, 70, 190, 0.22), transparent 62%),
        var(--abyss);
    background-attachment: fixed;
}

@keyframes vx-spin { to { transform: rotate(360deg); } }

#vx-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#vx-mark-bg {
    position: fixed; z-index: -1; right: -22vmax; top: -26vmax; width: 78vmax; max-width: none;
    opacity: 0.07; pointer-events: none; animation: vx-spin 220s linear infinite;
}

/* ---------- الهيدر ---------- */
.site-header { background: linear-gradient(180deg, rgba(4, 7, 13, 0.94), rgba(4, 7, 13, 0.8)); border-bottom: 0; }
.site-header::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
    background: linear-gradient(to left, transparent, rgba(118, 229, 253, 0.55) 20%, rgba(19, 171, 210, 0.22) 65%, transparent);
}
.site-logo img { animation: vx-spin 26s linear infinite; filter: drop-shadow(0 0 10px rgba(19, 171, 210, 0.55)); }
.site-logo:hover img { animation-duration: 2.6s; }
.site-nav { position: relative; }
.site-nav a.active::after { display: none; }
.nav-ind {
    position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--vortex-cyan-light), var(--vortex-cyan));
    box-shadow: 0 0 14px rgba(118, 229, 253, 0.9);
    transition: transform 380ms cubic-bezier(0.65, 0, 0.25, 1), width 380ms cubic-bezier(0.65, 0, 0.25, 1), opacity 200ms;
}
.header-search { background: rgba(255, 255, 255, 0.04); border-color: rgba(118, 229, 253, 0.2); }
.header-search:hover { border-color: rgba(118, 229, 253, 0.55); box-shadow: 0 0 22px rgba(19, 171, 210, 0.18); }

/* ---------- الأزرار ---------- */
.btn.primary {
    position: relative; overflow: hidden; color: #021017;
    background: linear-gradient(135deg, #8defff, #13abd2 62%, #0e86ad);
    box-shadow: 0 0 0 1px rgba(118, 229, 253, 0.35), 0 10px 34px rgba(19, 171, 210, 0.32);
}
.btn.primary::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(120%); transition: transform 700ms ease;
}
.btn.primary:hover { background: linear-gradient(135deg, #a4f3ff, #1bbbe3 62%, #0e86ad); box-shadow: 0 0 0 1px rgba(118, 229, 253, 0.6), 0 14px 44px rgba(19, 171, 210, 0.5); }
.btn.primary:hover::after { transform: translateX(-120%); }
.btn.secondary { background: rgba(255, 255, 255, 0.04); border-color: rgba(118, 229, 253, 0.28); backdrop-filter: blur(6px); }
.btn.secondary:hover { border-color: rgba(118, 229, 253, 0.65); background: rgba(19, 171, 210, 0.1); }

/* ---------- العناوين: شعار دوّار قبل كل قسم ---------- */
.section-head { position: relative; border-bottom: 0; padding-bottom: 0; margin-bottom: 30px; }
.section-head::after {
    content: ""; position: absolute; inset: auto 0 -14px 0; height: 1px;
    background: linear-gradient(to left, rgba(118, 229, 253, 0.55), rgba(255, 255, 255, 0.07) 45%, transparent);
}
.section-head h2, .bsec h2 { display: flex; align-items: center; gap: 12px; }
.section-head h2::before, .bsec h2::before {
    content: ""; flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 0; box-shadow: none;
    background: url(../assets/vortex-mark-cyan.png) center / contain no-repeat;
    animation: vx-spin 16s linear infinite; filter: drop-shadow(0 0 8px rgba(19, 171, 210, 0.55));
}
.page-title { position: relative; overflow: hidden; padding: 34px 0 32px; border-bottom: 0; }
.page-title::before {
    content: ""; position: absolute; left: -70px; top: 50%; width: 300px; height: 300px; margin-top: -150px; pointer-events: none;
    background: url(../assets/vortex-mark-cyan.png) center / contain no-repeat; opacity: 0.1; animation: vx-spin 90s linear infinite;
}
.page-title::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(to left, rgba(118, 229, 253, 0.5), rgba(255, 255, 255, 0.06) 50%, transparent); }
.page-title h1 { text-shadow: 0 0 40px rgba(19, 171, 210, 0.4); }

/* ---------- البطاقات ---------- */
.manga-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 300ms, box-shadow 300ms;
}
.manga-card:hover {
    transform: translateY(-6px); border-color: rgba(118, 229, 253, 0.55); background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(118, 229, 253, 0.25), 0 22px 50px rgba(19, 171, 210, 0.22);
}

/* ---------- التحميل: الشعار نفسه يدور ---------- */
.loading-spinner {
    width: 54px; height: 54px; border: 0; border-radius: 0;
    background: url(../assets/vortex-mark-cyan.png) center / contain no-repeat;
    animation: vx-spin 1.1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    filter: drop-shadow(0 0 12px rgba(19, 171, 210, 0.6));
}
.empty { background: rgba(255, 255, 255, 0.03); }

/* ---------- التذييل ---------- */
.site-footer { position: relative; overflow: hidden; padding: 46px 0; background: linear-gradient(180deg, transparent, rgba(4, 7, 13, 0.7)); }
.site-footer::before {
    content: ""; position: absolute; left: -90px; top: 50%; width: 340px; height: 340px; margin-top: -170px; pointer-events: none;
    background: url(../assets/vortex-mark-cyan.png) center / contain no-repeat; opacity: 0.07; animation: vx-spin 120s linear infinite;
}
.site-footer-inner { position: relative; }
.footer-mark { display: inline-flex; align-items: center; gap: 14px; color: var(--vortex-white); }
.footer-mark img { width: 40px; height: 40px; opacity: 1; filter: drop-shadow(0 0 10px rgba(19, 171, 210, 0.5)); animation: vx-spin 40s linear infinite; }
.footer-mark span { display: flex; flex-direction: column; direction: ltr; line-height: 1; }
.footer-mark b { font-size: 19px; font-weight: 800; letter-spacing: 3.5px; }
.footer-mark em { margin-top: 5px; font-style: normal; font-size: 9px; letter-spacing: 0.6em; color: var(--vortex-cyan-light); padding-inline-start: 0.6em; }
.site-footer-links { gap: 30px; }
.site-footer-links a { position: relative; font-size: 14px; font-weight: 500; color: var(--vortex-white-soft); transition: color 200ms; }
.site-footer-links a::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px; background: var(--vortex-cyan-light); transform: scaleX(0); transform-origin: right; transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.site-footer-links a:hover { color: var(--vortex-cyan-light); }
.site-footer-links a:hover::after { transform: scaleX(1); }

/* ---------- زر الصعود ---------- */
.vx-top {
    position: fixed; left: 22px; bottom: 22px; z-index: 900; width: 54px; height: 54px; padding: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; background: rgba(4, 7, 13, 0.88); backdrop-filter: blur(8px);
    box-shadow: 0 0 26px rgba(19, 171, 210, 0.28);
    opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 350ms, transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vx-top.show { opacity: 1; transform: none; pointer-events: auto; }
.vx-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vx-top .trk { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.vx-top .bar { fill: none; stroke: var(--vortex-cyan-light); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; filter: drop-shadow(0 0 4px #76e5fd); }
.vx-top img { width: 28px; height: 28px; animation: vx-spin 8s linear infinite; }
.vx-top:hover img { animation-duration: 1.6s; }

/* ---------- بوابة الدوامة بين الصفحات ---------- */
.vx-portal { position: fixed; inset: 0; z-index: 99999; pointer-events: none; }
.vx-portal.in { pointer-events: all; }
.vx-disc {
    position: absolute; inset: 0; clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
    background: radial-gradient(circle at 50% 50%, #0b2a45, #04070d 68%);
}
.vx-mark {
    position: absolute; left: 50%; top: 50%; width: var(--vx-m); height: var(--vx-m);
    margin: calc(var(--vx-m) / -2) 0 0 calc(var(--vx-m) / -2); opacity: 0; transform: rotate(0) scale(0.3);
    filter: drop-shadow(0 0 30px rgba(19, 171, 210, 0.7));
}
.vx-portal.in .vx-disc { animation: vx-disc-in 560ms cubic-bezier(0.7, 0, 0.3, 1) both; }
.vx-portal.in .vx-mark { animation: vx-mark-in 560ms cubic-bezier(0.5, 0, 0.3, 1) both; }
.vx-portal.out .vx-disc { clip-path: circle(150vmax at 50% 50%); }
.vx-portal.out .vx-mark { opacity: 1; transform: rotate(300deg); }
.vx-portal.out.run .vx-disc { animation: vx-disc-out 700ms cubic-bezier(0.7, 0, 0.3, 1) both; }
.vx-portal.out.run .vx-mark { animation: vx-mark-out 700ms cubic-bezier(0.5, 0, 0.3, 1) both; }
@keyframes vx-disc-in { to { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); } }
@keyframes vx-mark-in { to { opacity: 1; transform: rotate(300deg) scale(1); } }
@keyframes vx-disc-out { from { clip-path: circle(150vmax at 50% 50%); } to { clip-path: circle(0px at 50% 50%); } }
@keyframes vx-mark-out { from { opacity: 1; transform: rotate(300deg) scale(1); } to { opacity: 0; transform: rotate(660deg) scale(2.4); } }

html.vx-enter::before {
    content: ""; position: fixed; inset: 0; z-index: 99998;
    background: radial-gradient(circle at 50% 50%, #0b2a45, #04070d 68%);
    animation: vx-failsafe 0s linear 3.5s forwards;
}
html.vx-enter::after {
    content: ""; position: fixed; z-index: 99999; left: 50%; top: 50%; width: var(--vx-m); height: var(--vx-m);
    margin: calc(var(--vx-m) / -2) 0 0 calc(var(--vx-m) / -2); transform: rotate(300deg);
    background: url(../assets/vortex-mark-cyan.png) center / contain no-repeat; filter: drop-shadow(0 0 30px rgba(19, 171, 210, 0.7));
    animation: vx-failsafe 0s linear 3.5s forwards;
}
@keyframes vx-failsafe { to { opacity: 0; visibility: hidden; } }

@media (max-width: 720px) {
    .vx-top { left: 14px; bottom: 14px; width: 48px; height: 48px; }
    .site-footer { padding: 36px 0; }
    .section-head h2::before, .bsec h2::before { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
