@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #060a13;
    --bg-secondary: #0c1220;
    --bg-card: rgba(12, 18, 32, 0.65);
    --bg-card-hover: rgba(15, 22, 40, 0.8);
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 240, 255, 0.15);
    --text-primary: #e8ecf4;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.25);
    --accent2: #a855f7;
    --accent2-glow: rgba(168, 85, 247, 0.25);
    --danger: #ff6b6b;
    --gold: #fbbf24;
    --green: #34d399;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== STICKY FOOTER LAYOUT ===== */
#mainContent,
main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* ===== CANVAS BG ===== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== ANIMATED BG MESH ===== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 240, 255, 0.02) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, -1%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 10, 19, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: all 0.4s;
}

.header.scrolled {
    background: rgba(6, 10, 19, 0.95);
    border-bottom-color: var(--border-glow);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.3s;
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00c4cc);
    color: #060a13;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 40px rgba(0, 240, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.btn-game {
    background: linear-gradient(135deg, var(--green), #059669);
    color: #060a13;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}

.btn-large {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.22);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at center bottom, rgba(0, 240, 255, 0.06) 0%, transparent 60%);
}

.hero-content {
    max-width: 740px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 40%, var(--accent2) 80%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% auto;
    animation: shimmer 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p strong {
    color: var(--gold);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.feature-card.has-detail .feature-icon {
    background: rgba(251, 191, 36, 0.08);
    color: var(--gold);
    border-color: rgba(251, 191, 36, 0.15);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
    cursor: pointer;
}

.feature-link:hover {
    gap: 0.7rem;
}

/* ===== STATS ===== */
.stats {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ===== SERVER STATUS ===== */
.server-status {
    padding: 3rem 0;
}

.status-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 16px rgba(255, 107, 107, 0.6);
    animation: none;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(52, 211, 153, 0.6);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 24px rgba(52, 211, 153, 0.8);
    }
}

.status-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.status-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.status-meta-item {
    text-align: center;
}

.status-meta-item .val {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-meta-item .lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-glow);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.1);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.input-with-toggle {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--accent);
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: none;
    padding: 7rem 0 4rem;
}

.dashboard.active {
    display: block;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.dashboard-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 240, 255, 0.04);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card-content {
    font-size: 0.9rem;
}

.card-content p {
    margin-bottom: 0.4rem;
}

.coin-balance {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* ===== TOPUP ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.package-item {
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.package-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.package-item.selected {
    border-color: var(--accent);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.1);
}

.package-item.popular {
    border-color: rgba(168, 85, 247, 0.3);
}

.package-item.best-value {
    border-color: rgba(251, 191, 36, 0.3);
}

.package-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg-primary);
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.package-item.best-value .package-badge {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.package-coin {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.package-price {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.package-bonus {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

/* ===== BLOG ===== */
.blog {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover {
    color: inherit;
}

.blog-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.admin-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

/* ===== EDITOR OVERLAY ===== */
.editor-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
}

.editor-overlay.active {
    display: flex;
}

.editor-panel {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 28, 0.99));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 2.25rem;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.editor-panel h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    letter-spacing: -0.01em;
}

.close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.editor-field {
    margin-bottom: 1.5rem;
}

.editor-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Dropdown option text must be black for readability */
.editor-field select option,
select option,
.toolbar-select option {
    color: #000;
    background: #fff;
}

/* Wide editor panel for news editor */
.editor-panel-wide {
    max-width: 960px;
}

.editor-field input:focus,
.editor-field textarea:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

.editor-field textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
}

.editor-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== RICH TEXT EDITOR — Premium Toolbar ===== */
.editor-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 16, 32, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}

.toolbar-row:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toolbar-group {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.toolbar-separator {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.4rem;
    flex-shrink: 0;
}

/* --- Toolbar Buttons --- */
.editor-toolbar button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
    min-width: 28px;
    min-height: 28px;
    line-height: 1;
}

.editor-toolbar button:hover {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
}

.editor-toolbar button:active {
    background: rgba(0, 240, 255, 0.2);
    color: #00f0ff;
    transform: scale(0.95);
}

.editor-toolbar button i {
    font-size: 13px;
    line-height: 1;
}

/* Heading buttons (H2/H3) get slightly different treatment */
.editor-toolbar button:not(:has(i)) {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: -0.02em;
}

/* Old .separator class (legacy compat) */
.editor-toolbar .separator {
    display: none;
}

/* --- Toolbar Select Dropdowns --- */
.toolbar-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-width: 48px;
    max-width: 130px;
    height: 28px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 22px;
}

.toolbar-select:hover {
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.toolbar-select:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.1);
}

/* Font family dropdown wider */
.font-family-select {
    min-width: 100px;
}

/* --- Toolbar Color Picker --- */
.toolbar-color-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    border: none;
    min-width: 28px;
    min-height: 28px;
}

.toolbar-color-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
}

.toolbar-color-btn .color-indicator {
    display: none;
}

.toolbar-color-btn input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
}

.rich-editor {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.7;
    outline: none;
    font-family: inherit;
}

.rich-editor-large {
    min-height: 400px;
    max-height: 60vh;
}

.rich-editor:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

.rich-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    font-style: italic;
}

.rich-editor img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.rich-editor a {
    color: var(--accent);
    text-decoration: underline;
}

.rich-editor blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1rem;
    margin: 0.75rem 0;
    background: rgba(0, 240, 255, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.rich-editor hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 1rem 0;
}

/* Image upload area */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(0, 240, 255, 0.03);
}

.image-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 10;
    font-size: 0;
    /* Extra fix for some browsers */
}

.image-upload-area i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.image-upload-area p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.image-preview {
    margin-top: 0.75rem;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.image-preview .remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.upload-progress {
    margin-top: 0.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    transition: width 0.3s;
    animation: progressPulse 1s ease infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Blog card with thumbnail */
.blog-card .blog-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    width: calc(100% + 3rem);
}

.blog-card .blog-content-html {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.blog-card .blog-content-html::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
}

/* ===== TRANG BÀI VIẾT ĐƠN (post.html) ===== */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.post-back-link:hover {
    opacity: 0.85;
    color: var(--accent);
}

.post-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.post-loading .loading {
    margin: 0 auto 1rem;
}

.post-single {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.post-single-thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.post-single-body {
    padding: 2rem 2.25rem;
}

.post-single-meta {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-single-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.post-single-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.post-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.post-single-content a {
    color: var(--accent);
    text-decoration: none;
}

.post-single-content a:hover {
    text-decoration: underline;
}

/* ===== FEATURE DETAIL ===== */
.feature-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.feature-detail-overlay.active {
    display: block;
}

.detail-header {
    padding: 6rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.06) 0%, transparent 100%);
    position: relative;
}

.detail-back {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    font-family: inherit;
}

.detail-back:hover {
    color: var(--accent);
}

.detail-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.detail-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 0.6s ease forwards;
}

.detail-item:nth-child(even) {
    direction: rtl;
}

.detail-item:nth-child(even)>* {
    direction: ltr;
}

.detail-item:nth-child(1) {
    animation-delay: 0.1s;
}

.detail-item:nth-child(2) {
    animation-delay: 0.2s;
}

.detail-item:nth-child(3) {
    animation-delay: 0.3s;
}

.detail-item:nth-child(4) {
    animation-delay: 0.4s;
}

.detail-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes revealItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.detail-item-media img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.detail-item-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.detail-item-text h3 .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-item-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== TICKETS ===== */
.tickets {
    padding: 5rem 0;
}

.ticket-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ticket-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-item-info {
    flex: 1;
    min-width: 200px;
}

.ticket-item-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.ticket-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ticket-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-badge.open {
    background: rgba(251, 191, 36, 0.12);
    color: var(--gold);
}

.ticket-badge.resolved {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.ticket-badge.closed {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.ticket-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.ticket-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ticket-empty {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* ===== CHANGELOG ===== */
.changelog {
    padding: 5rem 0;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.changelog-entry {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.changelog-entry.type-new::before {
    background: var(--green);
}

.changelog-entry.type-fix::before {
    background: var(--danger);
}

.changelog-entry.type-improve::before {
    background: var(--accent2);
}

.changelog-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.type-new .changelog-tag {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.type-fix .changelog-tag {
    background: rgba(255, 107, 107, 0.12);
    color: var(--danger);
}

.type-improve .changelog-tag {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent2);
}

.changelog-entry h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.changelog-entry p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.changelog-entry .blog-card-actions {
    margin-top: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateX(500px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3000;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-color: var(--danger);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 107, 0.1);
}

/* ===== LOADING ===== */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GALLERY ===== */
.gallery-page-header,
.page-header {
    padding: 6rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.04) 0%, transparent 100%);
}

.gallery-page-header h1,
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-page-header p,
.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 2rem 0 4rem;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: zoom-in;
    transition: all 0.3s;
    position: relative;
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.08);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item .delete-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .delete-overlay {
    opacity: 1;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img,
.lightbox video {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3001;
}

/* ===== ROLE BADGE ===== */
.role-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.role-badge.admin {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
}

.role-badge.mod {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent2);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 10, 19, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .detail-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-item:nth-child(even) {
        direction: ltr;
    }

    .detail-header h1 {
        font-size: 1.8rem;
    }

    .modal-content {
        padding: 1.75rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    padding: 7rem 1.5rem 2.5rem;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
    display: grid;
    gap: 1.5rem;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
}

.blog-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.blog-card-link:hover,
.blog-card-link:visited,
.blog-card-link:active {
    text-decoration: none !important;
    color: inherit;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.blog-card .blog-content-html {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blog-empty a {
    color: var(--accent);
    text-decoration: none;
}

.blog-empty a:hover {
    text-decoration: underline;
}

/* ===== BLOG CARD ACTIONS (Sửa / Xóa) ===== */
.blog-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.75rem;
    margin-top: 0;
}

.blog-card-actions .btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-color: var(--border);
}

.blog-card-actions .btn-secondary:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent);
    border-color: var(--accent);
}

.blog-card-actions .btn-danger {
    background: rgba(255, 107, 107, 0.06);
    color: rgba(255, 107, 107, 0.7);
    border-color: rgba(255, 107, 107, 0.15);
}

.blog-card-actions .btn-danger:hover {
    background: rgba(255, 107, 107, 0.12);
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.4);
}

/* ===== ADMIN BAR ===== */
.admin-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

/* ===== CONTAINER NARROW ===== */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== POST BACK LINK ===== */
.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: color 0.25s ease;
}

.post-back-link:hover {
    color: var(--accent);
}

/* ===== POST SINGLE (BÀI VIẾT CHI TIẾT) ===== */
.post-single {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-single-thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-single-body {
    padding: 2rem 2.5rem 2.5rem;
}

.post-single-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.post-single-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-single-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.post-single-content p {
    margin-bottom: 1rem;
}

.post-single-content h2,
.post-single-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.post-single-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-single-content a {
    color: var(--accent);
    text-decoration: none;
}

.post-single-content a:hover {
    text-decoration: underline;
}

.post-single-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(0, 240, 255, 0.03);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-single-content ul,
.post-single-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-single-content li {
    margin-bottom: 0.3rem;
}

/* ===== POST LOADING ===== */
.post-loading {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.post-loading .loading {
    margin: 0 auto 1rem;
}

@media (max-width: 768px) {
    .post-single-body {
        padding: 1.5rem;
    }

    .post-single-title {
        font-size: 1.35rem;
    }
}