:root {
    --bg-body: #0a1020;
    --bg-header: #101a2b;
    --bg-navbar: #131f35;
    --bg-card: #182843;
    --primary-color: #00ff9d;
    --primary-hover: #1fe2a3;
    --secondary-color: #4ddcff;
    --text-main: #f5fbff;
    --text-light: #c8d4ea;
    --border-color: rgba(0, 255, 157, 0.18);
    --green-glow:
        0 0 12px rgba(0, 255, 157, 0.38),
        0 0 28px rgba(77, 220, 255, 0.18);
    --transition: 0.3s ease;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top,
            rgba(0, 255, 157, 0.12),
            transparent 32%),
        radial-gradient(circle at right top,
            rgba(77, 220, 255, 0.12),
            transparent 28%),
        linear-gradient(180deg,
            #0a1020,
            #0c1428 35%,
            #0a1020 100%);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

select {
    width: 100%;
    height: 50px;
    font-size: 15px;
}

select option {
    font-size: 15px;
    padding: 8px;
}


/* =========================
HEADER
========================= */
.header {
    width: 100%;
    background: rgba(8, 16, 31, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    top: 0;
    z-index: 9999;
}

/* =========================
TOP HEADER
========================= */
.top-header {
    max-width: 1450px;
    margin: auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* =========================
LOGO
========================= */
.logo a {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: var(--green-glow);
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.9;
}

/* =========================
SEARCH
========================= */
.search-container {
    flex: 1;
    max-width: 850px;
}

.search-container form {
    display: flex;
    align-items: center;
    height: 62px;
    background: #0d1730;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 157, 0.08);
}

.search-container input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    padding: 0 25px;
    font-size: 20px;
}

.search-container input::placeholder {
    color: #8292a8;
}

.search-container button {
    width: 110px;
    height: 100%;
    border: none;
    background: var(--primary-color);
    color: #04110b;
    font-size: 32px;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: var(--primary-hover);
}

/* =========================
HEADER ICONS
========================= */
.header-icons {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-icons a,
.profile-btn,
.dashboard-btn {
    color: white;
    font-size: 34px;
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
}

.header-icons a:hover,
.profile-btn:hover,
.dashboard-btn:hover {
    color: var(--primary-color);
    text-shadow: var(--green-glow);
}

/* =========================
PROFILE DROPDOWN
========================= */
.profile-dropdown,
.dashboard-dropdown {
    position: relative;
}

.profile-menu,
.dashboard-menu {
    position: absolute;
    top: 65px;
    right: 0;
    min-width: 240px;
    background: #10182f;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 255, 157, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 99999;
}

.profile-dropdown:hover .profile-menu,
.dashboard-dropdown:hover .dashboard-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu a,
.dashboard-menu a {
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.profile-menu a:hover,
.dashboard-menu a:hover {
    background: #18233f;
    color: var(--primary-color);
}

/* =========================
NAVBAR
========================= */
.main-nav {
    width: 100%;
    background: #091225;
    border-top: 1px solid rgba(0, 255, 157, 0.08);
    border-bottom: 1px solid rgba(0, 255, 157, 0.08);
}

/* NAV CONTAINER */
.nav-container {
    max-width: 1450px;
    margin: auto;
    position: relative;
}

/* =========================
NAV MENU
========================= */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 45px;
    min-height: 65px;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

/* NAV ITEMS */
.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: #00ff9d;
    text-shadow:
        0 0 10px rgba(0, 255, 157, 0.35);
}

/* =========================
DROPDOWN
========================= */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 55px;
    left: 0;
    min-width: 220px;
    background: #10182f;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 255, 157, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 99999;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px !important;
    font-weight: 600;
    text-transform: none !important;
}

.dropdown-content a:hover {
    background: #18233f;
    color: var(--primary-color);
}

/* =========================
MAIN CONTENT
========================= */
.main-content {
    max-width: 1450px;
    margin: 62px auto 50px;
    padding: 0 30px;
}

/* =========================
MAIN LAYOUT & SIDEBAR
========================= */
.main-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.sidebar {
    background: linear-gradient(180deg, rgba(16, 24, 47, 0.96), rgba(11, 17, 31, 0.95));
    border-radius: 18px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 157, 0.16);
    height: fit-content;
    box-shadow: 0 18px 40px rgba(5, 9, 18, 0.32);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #f5fbff;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: var(--green-glow);
}

.ranking-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 15px;
    background: rgba(17, 26, 44, 0.72);
    border-radius: 12px;
    padding: 14px 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    border-color: rgba(0, 255, 157, 0.18);
    transform: translateX(2px);
}

.ranking-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 14px;
}

.ranking-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 157, 0.15);
}

.ranking-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.ranking-title a {
    color: #edf7ff;
}

.ranking-title a:hover {
    color: var(--primary-color);
}

/* =========================
MANGA CARD DECORATION
========================= */
.manga-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.manga-card:hover img {
    transform: scale(1.04);
}

.manga-info {
    padding: 15px;
    background: linear-gradient(180deg, rgba(16, 24, 47, 0.98), rgba(12, 17, 30, 1));
}

.manga-info .status {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.manga-info .genre {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.manga-info .views {
    font-size: 12px;
    color: #9bb0d0;
}

/* =========================
MANGA GRID
========================= */
.manga-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

/* =========================
MANGA CARD
========================= */
.manga-card {
    background: linear-gradient(180deg, rgba(20, 30, 52, 0.95), rgba(12, 18, 29, 0.96));
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(0, 255, 157, 0.12);
    margin-top: 10px;
    box-shadow: 0 12px 30px rgba(5, 9, 18, 0.22);
}

.manga-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(0, 255, 157, 0.15),
        0 0 0 1px rgba(77, 220, 255, 0.08);
}

.card-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.card-info {
    padding: 18px;
}

.manga-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* =========================
AUTH PAGE
========================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-box {
    width: 100%;
    max-width: 500px;
    background: #10182f;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 157, 0.12);
    box-shadow:
        0 0 30px rgba(0, 255, 157, 0.08),
        0 15px 40px rgba(0, 0, 0, 0.45);
}

/* =========================
AUTH LOGO
========================= */
.auth-logo {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: var(--green-glow);
    transition: var(--transition);
    margin: 87px;
}

.auth-logo a {
    font-size: 72px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: var(--green-glow);
}

/* =========================
AUTH TABS
========================= */
.tabs {
    display: flex;
}

.tab-btn {
    flex: 1;
    height: 75px;
    border: none;
    background: #111c36;
    color: white;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: #04110b;
}

/* =========================
FORM
========================= */
.form-box {
    display: none;
    padding: 40px;
}

.form-box.active {
    display: block;
}

.form-box h2 {
    text-align: center;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 22px;
}

.input-group input {
    width: 100%;
    height: 64px;
    border: none;
    outline: none;
    border-radius: 16px;
    background: #071222;
    color: white;
    font-size: 18px;
    padding: 0 20px;
    border: 1px solid rgba(0, 255, 157, 0.08);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow:
        0 0 15px rgba(0, 255, 157, 0.2);
}

.auth-btn {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 16px;
    background: var(--primary-color);
    color: #04110b;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.switch-text {
    margin-top: 25px;
    text-align: center;
    color: #a5b4cb;
}

.switch-text span {
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
}

/* =========================
MODERN FOOTER
========================= */
.main-footer {
    width: 100%;
    margin-top: 80px;
    background:
        linear-gradient(180deg,
            #08101f,
            #050816);
    border-top: 1px solid rgba(0, 255, 157, 0.12);
    padding: 60px 0 25px;
    text-align: -webkit-center;
    font-size: 20px;
}

/* FOOTER CONTAINER */
.footer-container {
    max-width: 1450px;
    margin: auto;
    padding: 0 40px;
}

/* FOOTER GRID */
.footer-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 50px;
}

/* FOOTER TITLE */
.footer-column h3 {
    color: var(--text-main);
    font-size: 34px;
    margin-bottom: 22px;
    font-weight: 800;
    color: #ffffff;
}

/* FOOTER LINKS */
.footer-column a {
    display: block;
    color: #ffffff;
    margin-bottom: 14px;
    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* FOOTER LOGO */
.footer-logo {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: var(--green-glow);
    margin-bottom: 20px;
    display: inline-block;
}

/* FOOTER DESCRIPTION */
.footer-desc {
    color: #ffffff;
    line-height: 1.8;
    font-size: 17px;
    margin-top: 10px;
}

/* FOOTER SOCIAL */
.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 25px;
}

.footer-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #10182f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    border: 1px solid rgba(0, 255, 157, 0.08);
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #04110b;
    transform: translateY(-4px);
    box-shadow: var(--green-glow);
}

/* FOOTER BOTTOM */
.footer-bottom {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #8ca0be;
    font-size: 16px;
}

/* =========================
RESPONSIVE FOOTER
========================= */
@media(max-width:1100px) {
    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
        gap: 40px;
    }
}

@media(max-width:768px) {
    .main-footer {
        padding: 50px 0 20px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-column h3 {
        font-size: 28px;
    }

    .footer-logo {
        font-size: 40px;
    }

    .footer-column a {
        font-size: 16px;
    }

    .footer-desc {
        font-size: 15px;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

@media(max-width:500px) {
    .footer-column h3 {
        font-size: 24px;
    }

    .footer-logo {
        font-size: 34px;
    }

    .footer-bottom {
        font-size: 14px;
    }
}

/* =========================
SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #081221;
}

::-webkit-scrollbar-thumb {
    background: #00d084;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff9d;
}

/* =========================
HISTORY PAGE
========================= */
.page-section {
    min-height: 70vh;
    padding: 60px 20px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    color: #9ca3af;
    font-size: 16px;
}

.history-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-history {
    width: 100%;
    max-width: 500px;
    background: #081129;
    border: 1px solid rgba(0, 255, 153, 0.1);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
}

.empty-history i {
    font-size: 70px;
    color: #00ff99;
    margin-bottom: 25px;
}

.empty-history h2 {
    color: white;
    font-size: 30px;
    margin-bottom: 15px;
}

.empty-history p {
    color: #9ca3af;
    margin-bottom: 30px;
}

.browse-btn {
    display: inline-block;
    background: #00ff99;
    color: #000;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}

/* =========================================
ADMIN DASHBOARD
========================================= */
.admin-body {
    background: #020817;
    color: white;
    font-family: Arial, sans-serif;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #081225;
    border-right: 1px solid rgba(0, 255, 170, 0.1);
    padding: 30px 20px;
}

.admin-logo {
    font-size: 32px;
    font-weight: 700;
    color: #00ffaa;
    margin-bottom: 40px;
    text-shadow: 0 0 15px #00ffaa;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin-bottom: 15px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #0b1730;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.admin-menu a:hover {
    background: #00ffaa;
    color: black;
}

.admin-main {
    flex: 1;
    padding: 40px;
}

.admin-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.admin-header p {
    color: #94a3b8;
    margin-bottom: 40px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.admin-card {
    background: #081225;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 170, 0.1);
    transition: 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    border-color: #00ffaa;
}

.admin-card i {
    font-size: 35px;
    color: #00ffaa;
    margin-bottom: 20px;
}

.admin-card h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.admin-card p {
    color: #94a3b8;
}

/* =========================================
CREATOR MODAL
========================================= */
.creator-meta {
    line-height: 1.6;
}

.creator-request-card {
    width: fit-content;
    box-sizing: border-box;
}

.creator-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.creator-modal.active {
    display: flex;
}

.creator-modal-box {
    width: 100%;
    max-width: 500px;
    background: #081225;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(0, 255, 170, 0.1);
}

.creator-modal-box h2 {
    color: #00ffaa;
    margin-bottom: 25px;
}

.creator-modal-box select,
.creator-modal-box textarea {
    width: 100%;
    background: #020817;
    border: none;
    padding: 15px;
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.creator-modal-box textarea {
    height: 140px;
    resize: none;
}

.creator-modal-box button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #00ffaa;
    color: black;
    font-weight: 700;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* =========================================
CREATOR MODAL
========================================= */

.creator-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 30px;
    overflow-y: auto;
}

.creator-modal.active {
    display: flex;
}

.creator-modal-box {
    width: 100%;
    max-width: 700px;
    background: #07122d;
    border: 1px solid #10356d;
    border-radius: 28px;
    padding: 35px;
    position: relative;
    animation: modalFade .3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

/* =========================
   CREATOR REQUEST GRID
========================= */
.creator-request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.creator-request-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.creator-logo-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    margin: 15px 0;
}

.creator-card-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.creator-card-actions a {
    flex: 1;
    text-align: center;
}

/* =================================
CREATOR VIEW PAGE
================================= */

.creator-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-icon {
    color: #00ff9d;
    font-size: 30px;
}

.creator-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.creator-action-buttons a {
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.edit-btn {
    border: 1px solid #00ff9d;
    color: #00ff9d;
}

.message-btn {
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.more-btn {
    border: 1px solid #666;
    color: #fff;
}

.role-badge {
    background: #0f2d52;
    color: #00ff9d;
    padding: 6px 12px;
    border-radius: 20px;
}

.work-badge {
    background: #321554;
    color: #d48cff;
    padding: 6px 12px;
    border-radius: 20px;
}

.solo-creator-box {
    text-align: center;
    padding: 40px;
}

.solo-creator-box i {
    font-size: 50px;
    color: #00ff9d;
    margin-bottom: 15px;
}

.creator-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.creator-actions .approve-btn,
.creator-actions .reject-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

.creator-actions .approve-btn {
    background: #19e68c;
}

.creator-actions .reject-btn {
    background: #ff4d4d;
}

/* SCROLLBAR */
.creator-modal-box::-webkit-scrollbar {
    width: 8px;
}

.creator-modal-box::-webkit-scrollbar-thumb {
    background: #12f7a0;
    border-radius: 20px;
}

/* CLOSE BUTTON */
.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

/* ANIMATION */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
TEAM MEMBERS
========================================= */
.team-section {
    margin-top: 30px;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.team-header h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.add-member-btn {
    background: #12f7a0;
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;
}

.add-member-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(18, 247, 160, .4);
}

.member-card {
    display: grid;
    grid-template-columns:
        1fr 1fr 1fr 70px;
    gap: 15px;
    align-items: end;
    background: #071533;
    border: 1px solid #0f2b5b;
    border-radius: 18px;
    padding: 20px;
    margin-top: 18px;
}

.member-field {
    display: flex;
    flex-direction: column;
}

.member-field label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-field input,
.member-field select {
    width: 100%;
    height: 55px;
    background: #020d27;
    border: 1px solid #123b7a;
    border-radius: 14px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 15px;
}

.remove-member {
    width: 60px;
    height: 55px;
    border: none;
    border-radius: 14px;
    background: #12f7a0;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-member:hover {
    transform: scale(1.05);
}

@media(max-width:768px) {
    .member-card {
        grid-template-columns: 1fr;
    }

    .remove-member {
        width: 100%;
    }
}

/* =================================
CREATOR LIST GRID
================================= */
.request-buttons {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.request-card {
    background: #06163c;
    border: 1px solid #0a4c8a;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.request-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

.group-logo {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.request-header {
    padding: 15px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.request-header h2 {
    color: #fff;
    margin: 0;
}

.request-type {
    color: #00f5b4;
    font-size: 14px;
}

.request-status {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
}

.request-card {
    position: relative;
    overflow: hidden;
}

.request-status.approved {
    background: rgba(0, 255, 100, .15);
    color: #00ff88;
}

.request-status.rejected {
    background: rgba(255, 0, 0, .15);
    color: #ff5c5c;
}

.request-info {
    padding: 15px 20px 20px;
    color: #fff;
}

.request-info p {
    margin: 8px 0;
}

/* STATUS BADGE */
.request-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffb366;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    z-index: 2;
}

/* CHAPTER BUTTON STYLE */
.view-btn {
    position: absolute;
    right: 12px;
    bottom: 80px;
    background: #07111d;
    color: #00ffee;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.approve-btn,
.reject-btn {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}

.approve-btn {
    background: #12f7a0;
    color: #000;
}

.reject-btn {
    background: #ff4d4d;
    color: #fff;
}

/* =========================================
MOBILE FIX
========================================= */
@media (max-height: 850px) {
    .creator-modal {
        align-items: flex-start;
    }

    .creator-modal-box {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .creator-modal {
        padding: 15px;
    }

    .creator-modal-box {
        padding: 25px;
        border-radius: 20px;
    }

    .member-card {
        grid-template-columns: 1fr;
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .add-member-btn {
        width: 100%;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #07112b;
    border: 1px solid #0d2c5f;
    border-radius: 14px;
    padding: 16px;
    color: #ffffff;
    font-size: 15px;
}

.form-group textarea {
    height: 140px;
    resize: none;
}

/* memeber table */
.member-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

.member-table th {
    background: #0b1d47;
    color: #12f7a0;
    padding: 14px;
    text-align: left;
}

.member-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.member-table tr:hover {
    background: #081633;
}

.detail-members {
    margin-top: 25px;
}

.detail-members h3 {
    color: #12f7a0;
    margin-bottom: 15px;
    font-size: 35px;
}

/* =========================
RESPONSIVE
========================= */

/* CREATOR VIEW PAGE */
@media (max-width: 1000px) {

    .creator-view-card {
        flex-direction: column;
    }

    .creator-view-image {
        width: 100%;
    }

    .creator-view-image img {
        height: 350px;
    }
}

@media(max-width:1750px) {
    .top-header {
        flex-wrap: wrap;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
    }

    .nav-menu {
        gap: 25px;
        padding: 20px 0;
        margin-left: 21px;
    }
}

@media(max-width:1024px) {
    .main-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

@media(max-width:768px) {
    .mobile-menu-btn {
        display: block !important;
        order: 1 !important;
    }

    .top-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }

    .logo {
        order: 2 !important;
        margin-right: auto !important;
    }

    .logo a {
        font-size: 32px !important;
    }

    .header-icons {
        order: 3 !important;
        gap: 18px !important;
    }

    .header-icons a,
    .profile-btn,
    .dashboard-btn {
        font-size: 24px !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .search-container {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }

    .main-content {
        margin: 76px auto 40px !important;
        padding: 0 12px !important;
    }

    .auth-logo {
        margin: 55px;
    }

    .auth-logo a {
        font-size: 48px;
    }

    .form-box {
        padding: 28px;
    }

    .form-box h2 {
        font-size: 36px;
    }

    .tab-btn {
        font-size: 20px;
    }

    /* Manga Grid 2-column mobile optimization */
    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 15px !important;
    }

    .manga-card img,
    .card-image img {
        height: 210px !important;
        object-fit: cover !important;
    }

    .manga-info {
        padding: 10px !important;
    }

    .manga-title {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .manga-info .status,
    .manga-info .genre,
    .manga-info .views,
    .manga-info div {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }
}

@media(max-width:500px) {
    .auth-box {
        max-width: 100%;
    }

    .form-box h2 {
        font-size: 28px;
    }
}

/* =========================================
   MOBILE MENU DRAWER CSS
   ========================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    text-shadow: var(--green-glow);
}

/* MOBILE NAV DRAWER */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    visibility: hidden;
    pointer-events: none;
    display: none;
    transition: visibility 0.4s ease;
}

.mobile-nav-drawer.active {
    visibility: visible;
    pointer-events: auto;
    display: block;
}

.mobile-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 22, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-drawer.active .mobile-drawer-backdrop {
    opacity: 1;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 340px;
    height: 100%;
    background: #08101f;
    border-right: 1px solid rgba(0, 255, 157, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    padding: 24px;
    box-sizing: border-box;
}

.mobile-nav-drawer.active .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.mobile-drawer-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: var(--green-glow);
    letter-spacing: 1px;
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.mobile-drawer-close:hover {
    color: var(--primary-color);
}

.mobile-drawer-search {
    margin-bottom: 25px;
}

.mobile-drawer-search form {
    display: flex;
    align-items: center;
    background: #070c17;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.1);
    overflow: hidden;
    height: 48px;
}

.mobile-drawer-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    padding: 0 15px;
    font-size: 15px;
}

.mobile-drawer-search button {
    width: 50px;
    height: 100%;
    border: none;
    background: var(--primary-color);
    color: #04110b;
    cursor: pointer;
    font-size: 16px;
}

.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.mobile-drawer-nav::-webkit-scrollbar {
    display: none;
}

.mobile-drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.mobile-drawer-nav ul li a i {
    width: 20px;
    text-align: center;
    color: #8292a8;
}

.mobile-drawer-nav ul li a:hover {
    background: rgba(0, 255, 157, 0.08);
    color: var(--primary-color);
}

.mobile-drawer-nav ul li a:hover i {
    color: var(--primary-color);
}

/* Accordion in Mobile Drawer */
.mobile-accordion-toggle {
    cursor: pointer;
}

.mobile-accordion-toggle .acc-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-accordion.active .mobile-accordion-toggle .acc-arrow {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    list-style: none;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-accordion.active .mobile-accordion-content {
    max-height: 500px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.mobile-accordion-content li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
}

/* Genres Grid inside Accordion */
.mobile-genres-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 0;
    overflow-y: hidden;
    padding-left: 20px;
}

.mobile-accordion.active .mobile-genres-grid {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
    margin-bottom: 8px;
}

.mobile-genres-grid a {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    text-align: center;
}