/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #235c5d;
    --primary-hover: #30797a80;
    --success: #1b6d69;
    --danger: #3c557d;
    --warning: #f59e0b;
    --text-muted: #94a3b8;
    --card-radius: 10px;
    --transition: all 0.3s ease;
}

h2 {
    margin: 0px;
    font-size: 20px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Blur Effect */
.bg-blur {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Layout */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.glass-header {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, rgb(255 255 255 / 12%), transparent) 1;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-mobile-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3b82f6, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
    line-height: 0;
}

.logo a {
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.dashboard-page .header-right .welcome-text {
    display: none;
}

.welcome-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.welcome-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.welcome-avatar-circle.has-image {
    background: rgba(255, 255, 255, 0.08);
}

.welcome-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 100%;
    padding: 4px;
    box-sizing: border-box;
}

.welcome-avatar-link:hover .welcome-avatar-circle,
.welcome-avatar-link:focus-visible .welcome-avatar-circle {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

@media (max-width: 768px) {
    .welcome-text {
        display: none;
    }

    .welcome-avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) {
    .dashboard-page .header-right .welcome-avatar-link {
        order: 98;
        margin-left: auto;
        margin-right: 0;
    }

    .dashboard-page .header-right .btn-logout {
        order: 99;
    }
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-right a span {
    font-size: 12px;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .header-right a span {
        display: none;
    }

    .header-right a i {
        margin-right: 0px !important;
    }

    .header-right {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgb(26 40 75 / 95%);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
        box-sizing: border-box;
        text-align: center;
        align-items: center;
        padding: 15px;
        gap: 1rem;
    }

    .header-right.active {
        display: flex;
    }
}

.welcome-text strong {
    color: var(--text-color);
}

/* Glass Components */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 15px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    color: white;
    border: 1px solid #407572;
    background: #1b6d694a;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-success {
    border: 1px solid #407572;
    background: #1b6d694a;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-success i {
    margin-right: 10px;
}

.btn-success:hover {
    background: #1f817c77;
}

.btn-danger {
    background: var(--danger);
    border: 1px solid #5875a3;
    color: white;
}

.btn-danger:hover {
    background: #850000;
    border: 1px solid #ac0b0b;
}

.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    opacity: 0.9;
}

.site-card-doc.site-card-doc-buy a.btn.btn-sm.btn-info {
    color: #bbb15b;
    border: 1px solid #9d893073;
}

a.btn.btn-sm.btn-info {
    color: #5bbb5b;
    font-weight: bold;
    border: 1px solid #4d9d3073;
    border-radius: var(--card-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

a.btn.btn-sm.btn-info2 {
    color: #778dad;
    font-weight: bold;
    border: 1px solid #3e4b5d;
    background: #cccccc0a;
    border-radius: var(--card-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.author-empty-actions .btn-secondary {
    background: rgb(151 151 151 / 10%);
    color: #8d8d8d;
    border: 1px solid #87878729;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #cccccc29;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-logout {
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: transparent;
}

.btn-logout:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-google {
    background: var(--glass-bg);
    color: #e3e3e3;
    font-weight: 500;
    border: 1px solid #ffffff1a;
}

.btn-google:hover {
    background: rgba(24, 24, 24, 0.514);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    color: #cbd5e1;
}

textarea.form-input {
    resize: vertical;
}

/* Select Dropdown Styling */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(15, 23, 42, 0.6);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cbd5e1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select.form-input:hover {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
}

select.form-input:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: #3b82f6;
    background-image: none;
}

select.form-input option {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 10px;
}

select.form-input option:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

select.form-input option:checked {
    background-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.205);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    /* Smooth join */
}

.input-addon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-right: none;
    padding: 0 25px;
    display: flex;
    align-items: center;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.code-editor {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Menu Box Grid */
.menu-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Desktop */
    gap: 20px;
    margin: 30px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .menu-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .menu-box-grid {
        grid-template-columns: 1fr;
    }
}


.menu-box-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-box-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.menu-box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.menu-box-text {
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Landing Box Image Variant */
.landing-box-img {
    background-size: 170%;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Overlay for Landing Box */
.landing-box-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.801);
    /* Darkens the image */
    z-index: 0;
}

/* Ensure content sits above overlay */
.landing-box-img>* {
    position: relative;
    z-index: 1;
}

/* Landing Page */
.landing-box {
    margin: 30px auto;
    text-align: center;
}

.landing-box h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #2d517d, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-box p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.full-width-login {
    width: 100%;
}

.hero-note {
    line-height: 1.8;
    font-size: 19px;
    padding: 15px;
    color: #abf3ff;
}


.glass-container.text-center.landing-box a {
    color: #81cad6;
    font-size: 18px;
    text-decoration: none;
    display: block;
    margin: 20px 0;
    padding-top: 30px;
    position: relative;
}

/* đường kẻ trên */
.glass-container.text-center.landing-box a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            #94eafd6b 20%,
            #94eafd7c 80%,
            transparent);
}


.glass-container.text-center.landing-box a i {
    margin-right: 10px;
    color: #81cad6;
}

.glass-container.text-center.landing-box a:hover,
.glass-container.text-center.landing-box a:hover i {
    color: #fff;
}

/* Dashboard */
.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0px;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.site-card {
    position: relative;
    padding-bottom: 70px !important;
}

.site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.site-domain {
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
}

.site-domain:hover {
    color: var(--primary);
    text-decoration: underline;
}

a.site-post {
    color: #fff;
    line-height: 1.6;
    text-decoration: none;
    font-weight: bold;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.site-card-header-vip {
    text-align: center;
    margin-bottom: 1rem;
}

.status-badge-vip {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    position: absolute;
    right: 15px;
    top: 15px;
}

.status-badge-vip.active {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.status-badge-vip.inactive {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

span.status-badge.post {
    position: absolute;
    right: 15px;
    bottom: 20px;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.status-badge.inactive {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.site-card-body p {
    margin: 0;
}

.site-note {
    font-size: 0.95rem;
    color: #5b95cf;
    margin-bottom: 5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px !important;
}

.site-date i {
    margin-right: 5px;
}

.site-card-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* Single scroll context */
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    /* Flex with auto margin provides safe centering */
    display: none;
    /* Toggled to flex/block by JS */
    align-items: flex-start;
    /* Start from top to avoid clipping */
    justify-content: center;
    padding: 20px 0;
}

/* When active, we'll set display: flex via JS or class, 
   but since JS sets display: flex directly, we ensure compatibility here */

html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100vh;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
    margin: 40px 15px;
    background: var(--glass-bg);
    box-sizing: border-box;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: white;
}

/* Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.fox-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.fox-table th,
.fox-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.fox-table th {
    font-weight: 600;
    color: var(--text-muted);
}

.fox-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Footer */
.glass-footer {
    margin-top: auto;
    text-align: center;
    padding: 50px 20px 20px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, rgb(255 255 255 / 10%), transparent) 1;
    background: rgb(12 19 35 / 40%);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    margin-top: 30px;
}

.alert2 {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin-bottom: 15px;
}

.alert.error,
.alert2.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert.success,
.alert2.success {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert.success a,
.alert2.success a {
    color: #ffffff;
}

.empty-state {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 30px;
    transition: var(--transition);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ffffff1c;
}


h2.section-title i {
    margin-right: 10px;
}

/* Login Box */
.login-box {
    width: 100%;
    max-width: 400px;
    padding: 25px;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
    .site-grid {
        grid-template-columns: 1fr;
    }

    /* Removed .header-container flex-direction column to keep logo and hamburger button on same row */

    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(211, 211, 211, 0);
}

::-webkit-scrollbar-thumb {
    background: rgb(66, 79, 121);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 67, 105, 0.815);
}

/* Admin Page - User Grid & Pagination */
.search-bar {
    margin: 30px 0px;
    display: flex;
    gap: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 30px;
}

/* Tag Input Styles */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 45px;
    box-sizing: border-box;
    cursor: text;
}

.tag-container:focus-within {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.3);
}

.tag-chip {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 3px 10px;
    border-radius: 7px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tag-chip:hover {
    background: rgba(59, 130, 246, 0.3);
}

.tag-chip i {
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
}

.tag-chip i:hover {
    opacity: 1;
    color: #fff;
}

.tag-input-field {
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    flex: 1;
    min-width: 100px;
    padding: 4px;
    font-size: 0.9rem;
}

/* Suggestions */
.suggestions-wrapper {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.suggestions-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #e2e8f0;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

.page-link {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

.page-link.active {
    background: var(--primary);
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }

    .page-link {
        font-size: 13px;
        padding: 5px 7px;
    }
}

.user-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 80px;
}

.user-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


.profile-glass {
    background: rgb(255 255 255);
    border-radius: var(--card-radius);
    padding: 25px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.profile-glass input,
.profile-glass select,
.profile-glass textarea {
    background-color: rgb(255 255 255 / 20%);
    border: 1px solid rgb(215 215 215);
    border-radius: 10px;
    color: #3d3d3d;
    font-family: inherit;
    box-sizing: border-box;
    padding: 15px;
    width: 100%;
}

body input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    height:48px;
}

body input[type="date"] {
    width: 100%;
    max-width: 100%;
    display: block;
}


.profile-glass input:hover,
.profile-glass select:hover,
.profile-glass textarea:hover {
    background-color: rgba(255, 255, 255, 0.199);
}

.profile-time-sign {
    color: #1e1e1e;
    margin-top: -30px;
    background: #d5dee9;
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 3px 16px;
    font-size: 10px;
}

.profile-glass input:focus,
.profile-glass select:focus,
.profile-glass textarea:focus {
    outline: none;
    border-color: #b3b3b3;
    background-color: rgba(226, 226, 226, 0.3);
}

.profile-glass .form-group label {
    display: block;
    margin-bottom: 15px;
    color: #4e7570;
}


.profile-glass .btn-primary {
    color: #407572;
    border: none;
    background: #1b6d692b;
}

.dashboard-controls2 {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    background: #0e4bad;
    margin-left: 10px;
    padding: 8px 20px;
    border-radius: 10px 10px 0px 0px;
    color: #ffffff;
}

.dashboard-controls2 h2 {
    font-size: 15px;
}

.settings-filter.settings-filter-profile .filter-btn {
    width: 100%;
    background: none;
    border: none;
    font-size: 25px;
    color: #0e4bad;
    background: #ffffff;
    padding: 15px;
}

.settings-filter.settings-filter-profile .filter-btn.active {
    color: #ffffff;
    background: #0e4bad;
    border: none;
}

.alert3 {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin-bottom: 15px;
}

.alert3.success {
    background: rgba(25, 112, 57, 0.185);
    border-color: rgba(23, 95, 51, 0.438);
    color: #1d5331;
}

.alert3.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #702929;
}

.profile-summary-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.profile-avatar-circle {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid rgb(255 255 255);
    background: #272c33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 36px rgb(15 23 42 / 9%);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    margin: auto;
}

.author-page .profile-avatar-circle {
    margin: auto;
    margin-top: -20px;
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-avatar-circle[data-has-image="1"] img {
    display: block;
}

.profile-avatar-circle[data-has-image="1"] .profile-avatar-icon {
    display: none;
}

.profile-avatar-icon {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.92);
}

.profile-avatar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #3d6365;
    background: rgb(87 203 193 / 8%);
    border: 1px solid rgb(61 99 101 / 38%);
    font-size: 12px;
}


.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* ── Thống kê 4 chỉ số ─────────────────────────────────────────────────── */
.profile-thongke {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

span.author-join-date {
    color: #666;
    font-size: 12px;
}

.profile-thongtinuser {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-thongke-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-thongke-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-thongke-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    color: #4e7570;
}

.profile-thongke-label i {
    font-size: 0.85rem;
    opacity: 0.82;
}

.profile-thongke-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #252525;
    white-space: nowrap;
}

.profile-thongke-bar {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.15);
}

.profile-thongke-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 4px;
}

.profile-thongke-bar span.is-blue {
    background: linear-gradient(90deg, #659ffc, #54abbb);
}

.profile-thongke-bar span.is-purple {
    background: linear-gradient(90deg, #bca5f1, #89a0f1);
}

.profile-thongke-bar span.is-green {
    background: linear-gradient(90deg, #22c55e, #10b981);
}

.profile-thongke-bar span.is-rose {
    background: linear-gradient(90deg, #f43f5e, #c4808a);
}

.profile-summary-item {
    padding: 15px;
    border-radius: 8px;
    background: #e5e5e5;
}

.profile-summary-label {
    display: block;
    margin-bottom: 8px;
    color: #4e7570;
    font-size: 0.84rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #b7b7b7;
}

.profile-summary-value {
    color: #252525;
    line-height: 1.55;
    word-break: break-word;
}

.profile-summary-value a {
    color: #259170;
}

.profile-form-section {
    margin-bottom: 20px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-form-grid .form-group {
    margin-top: 0;
}

.profile-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.profile-avatar-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    margin-top: 30px;
}

.profile-avatar-picker {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-picker:focus-visible {
    outline: 0;
}

.profile-avatar-picker:focus-visible .profile-avatar-circle {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 36px rgba(15, 23, 42, 0.25), 0 0 0 4px rgba(59, 130, 246, 0.22);
}

.profile-avatar-picker:hover .profile-avatar-circle {
    transform: translateY(-2px);
}

.profile-avatar-editor-copy {
    flex: 1;
    min-width: 240px;
}

.profile-avatar-editor-copy p {
    margin: 0 0 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.profile-avatar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-avatar-edit-icon {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ccc;
    color: #616161;
    font-size: 0.95rem;
    pointer-events: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-avatar-picker:hover .profile-avatar-edit-icon,
.profile-avatar-picker:focus-visible .profile-avatar-edit-icon {
    transform: scale(1.06);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.32);
}

.profile-readonly-note {
    color: #94a3b8;
    font-size: 0.84rem;
    margin-top: 10px;
    display: block;
}

.profile-banner-summary {
    margin-bottom: 24px;
}

.profile-banner-editor {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.profile-banner-picker {
    position: relative;
    display: inline-flex;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.profile-banner-frame {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #3b82f629;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-banner-frame[data-has-image="1"] .profile-banner-empty {
    opacity: 0;
}

.profile-banner-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.34));
}

.profile-banner-overlay {
    position: absolute;
    inset: auto 16px 16px 16px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.profile-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.267);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.profile-banner-frame-edit {
    min-height: 260px;
}

.profile-banner-empty {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f8fafc;
    text-align: center;
    padding: 24px;
    transition: opacity 0.18s ease;
}

.profile-banner-empty i {
    font-size: 2rem;
}

.profile-banner-empty strong {
    font-size: 1.05rem;
}

.profile-banner-empty small {
    max-width: 320px;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.88);
}

.profile-banner-edit-icon {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0c0c0c99;
    color: #ffffff;
    pointer-events: none;
}

.profile-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.author-page {
    margin-top: 30px;
    margin-bottom: 30px;
}

.author-hero-copy {
    flex: 1;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.author-hero-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.author-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.author-type-badge.is-admin {
    background: rgb(61 167 119 / 14%);
    color: #1d4d35;
}

.author-type-badge.is-user {
    background: rgba(59, 130, 246, 0.12);
    color: #1b487e;
}

.author-hero-card.profile-glass {
    padding: 0;
    overflow: hidden;
}

.author-cover-shell {
    position: relative;
}

.author-cover-surface {
    min-height: 300px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.3), transparent 22%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(14, 116, 144, 0.58), rgba(59, 130, 246, 0.38));
    background-size: cover;
    background-position: center;
}

.author-cover-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.55));
}

.author-hero-main {
    position: relative;
    padding: 0 25px 25px;
    margin-top: -50px;
    padding-bottom: 0px;
    z-index: 2;
}

.author-avatar-wrap {
    position: relative;
    width: 148px;
    height: 148px;
    flex: 0 0 148px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
}

.author-avatar-circle {
    width: 148px;
    height: 148px;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    flex-shrink: 0;
    margin: 0;
}

.author-page .author-avatar-circle {
    margin: 0;
}

.author-avatar-verified {
    position: absolute;
    right: -2px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    z-index: 3;
}

.author-avatar-verified i {
    font-size: 0.86rem;
}

.author-name {
    margin: 0;
    font-size: 25px;
    text-align: center;
    color: #334155;
    margin-bottom: 15px;
    margin-top: 15px;
}

.author-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.author-meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(94, 100, 114, 0.14);
    color: #1e293b;
    font-size: 10px;
    font-weight: 600;
}

.author-reputation-head {
    position: relative;
    min-height: 34px;
    margin-bottom: 6px;
}

.author-reputation-head strong {
    position: absolute;
    left: 0;
    top: 12px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 10px;
    background: #4ea700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 1;
}

.author-reputation-head span {
    color: #a5a5a5;
    font-size: 0.9rem;
}
@media (max-width: 580px) {
    .author-reputation-head span {
        display: none;
    }
    
}

.author-reputation-votes {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
}

.author-reputation-bar {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgb(148 163 184 / 8%);
}

.author-reputation-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 38%, #22c55e 100%);
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.22);
    width: 0;
    will-change: width;
}

.author-vote-panel {
    position: absolute;
    inset: 20px 20px auto auto;
    z-index: 3;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.author-vote-btn {
    border: none;
    background: rgb(255 255 255 / 75%);
    color: #334155;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

@media (max-width: 768px) {
    .author-vote-btn span {
        display: none;
    }

}

.author-vote-btn:hover {
    transform: translateY(-1px);
}

.author-vote-btn.active.is-up {
    background: rgba(18, 134, 99, 0.664);
    color: #fff;
}

.author-vote-btn.active.is-down {
    background: rgba(190, 38, 38, 0.712);
    color: #fff;
}

.author-contact-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.author-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-direction: column;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.author-contact-card.is-disabled {
    opacity: 0.58;
    cursor: default;
    pointer-events: none;
}

.author-contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: #1e293b;
    font-size: 22px;
    color: #fff;
}

.author-contact-card.is-support .author-contact-icon {
    background: #f3b244;
    border: 2px solid #674307;
    color: #422006;
}

.author-contact-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #111;
}

.author-contact-text small {
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
}

.author-detail-layout {
    margin-top: 22px;
}

.author-note-section {
    margin-top: 24px;
}

.author-note-heading {
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
}

.author-note-heading .section-title {
    margin-bottom: 0;
}

.author-note-count {
    font-size: 0.75em;
    font-weight: 500;
    color: #94a3b8;
}

.author-empty-state {
    padding: 40px 28px;
    text-align: center;
    border-radius: 10px;
}

.author-empty-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    color: #656565;
    font-size: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-empty-state p {
    margin: 0 auto;
    max-width: 700px;
    color: #cbd5e1;
    line-height: 1.8;
}

.author-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.author-support-modal {
    max-width: 400px;
}

.author-support-grid {
    display: grid;
    gap: 20px;
    align-items: center;
}

.author-support-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 15px;
}

.author-support-qr img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.author-support-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.author-support-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author-support-line span {
    color: #94a3b8;
    font-size: 0.9rem;
}

.author-support-line strong {
    color: #f8fafc;
    word-break: break-word;
}

.author-paypal-btn {
    margin-top: 8px;
    align-self: flex-start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    .profile-summary-card,
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .author-hero-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar-circle {
        width: 132px;
        height: 132px;
    }

    .author-avatar-wrap {
        width: 132px;
        height: 132px;
        flex-basis: 132px;
    }

    .author-contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-banner-frame,
    .profile-banner-frame-edit,
    .author-cover-surface {
        min-height: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .author-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Admin: avatar hover edit */
.user-avatar-wrap {
    position: relative;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 0.5rem;
}

div#userDetailMsg {
    margin-top: 10px;
}

.user-avatar-wrap .user-avatar {
    margin-bottom: 0;
    /* margin handled by wrap */
}

.user-avatar-wrap .user-avatar-edit {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 146, 60, 0.85);
    /* orange-400 */
    color: #fff;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.2s;
}

.user-avatar-wrap:hover .user-avatar-edit {
    opacity: 1;
}

/* Admin: user detail popup rows */
.user-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.93rem;
}

.user-detail-row:last-child {
    border-bottom: none;
}

.user-detail-label {
    color: #94a3b8;
}

.user-detail-value {
    font-weight: 500;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.pro-doc-tags a {
    color: #334155;
}

.benefit-item {
    text-align: center;
    padding: 60px 20px 30px 20px;
    margin-top: 50px;
    position: relative;
    background-color: #fff;
    background-image: repeating-linear-gradient(transparent, transparent 29px, #cdcdcd 30px);
    background-size: 100% 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #353535;
}

.benefit-item h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 30px;
    text-transform: uppercase;
}

.benefit-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 30px;
    color: #555555;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #a8cfff;
    position: absolute;
    top: -40px;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--success);
    border-color: var(--success);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--success);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Login Floating Labels */
.login-box .form-group {
    position: relative;
    margin-top: 1.5rem;
}

.login-box .form-group label {
    position: absolute;
    top: -10px;
    left: 12px;
    background-color: #1b2335;
    padding: 0 6px;
    font-size: 14px;
    color: #ffffff;
    border-radius: 10px;
    z-index: 10;
}

.benefit-icon i {
    width: 72px;
    height: 72px;
    /* iOS App Icon Shape */
    border-radius: 17px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.192), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px auto;

    font-size: 32px;
    color: white;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* CSS specific iOS gradients to the 3 benefit items */
.benefit-item:nth-child(1) .benefit-icon i {
    background: linear-gradient(135deg, #fbbf24, #ea580c);
}

.benefit-item:nth-child(2) .benefit-icon i {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.benefit-item:nth-child(3) .benefit-icon i {
    background: linear-gradient(135deg, #2dd4bf, #0284c7);
}

.benefit-item:hover i {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

/* Toast Notification */
.fox-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(15, 23, 42, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.fox-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.fox-toast.success {
    border-color: var(--success);
    color: #86efac;
}

.fox-toast.error {
    border-color: var(--danger);
    color: #fca5a5;
}

h2.modal-title-h2 {
    padding-bottom: 15px;
    border-bottom: 1px dashed #3d3e41;
}

.modal-title-h2 i {
    margin-right: 10px;
}

.footer-img {
    margin-bottom: 10px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-img img {
    max-width: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-img img:hover {
    filter: none;
    opacity: 1;
}

/* Page Content Styling */
.page-container {
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    min-height: 400px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}



.filter-container {
    padding: 15px;
    border-radius: 10px;
    background: #1b2335b0;
    border: 1px solid #333a4a;
    margin-bottom: 30px;
}

form.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 700px) {
    form.filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    form.filter-bar input,
    form.filter-bar select,
    form.filter-bar button,
    form.filter-bar a {
        width: 100% !important;
        max-width: none !important;
    }
}

.badge-type {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 20px;
    background: #3b82f65c;
    margin-bottom: 10px;
}

/* Extended styles for post-specific content */
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.download-section {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 30px;
    background: #1079b914;
    border: 1px solid #3b82f66e;
    border-radius: 12px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6, #104eb3);
    color: white !important;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-download-primary:hover {
    transform: translateY(-2px);
}

.btn-download-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #3b82f6 !important;
    padding: 10px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #3b82f6;
    cursor: pointer;
}

.btn-download-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2);
}

/* Document Card Ghost Icon */
.site-card-doc,
.site-card-html,
.site-card-page,
.site-card-order,
.site-card-sheet {
    position: relative;
    overflow: hidden;
}

/* card doc */
.site-card-doc::before {
    content: "\f07c";
    font-family: "FontAwesome";
    font-weight: 400;
    position: absolute;
    top: 5px;
    right: -10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.021);
    pointer-events: none;
    z-index: 0;
    transform: rotate(20deg);
    transition: all 0.4s ease;
}

.site-card-doc.site-card-doc-buy {
    border: 1px solid #f59e0b2b;
    background: #f59e0b14;
}

.site-card-doc.site-card-doc-buy::before {
    content: "\f218";
    color: rgb(113 87 46 / 12%);
}

.site-card-doc:hover::before {
    color: rgba(255, 255, 255, 0.062);
}

.site-card-doc.site-card-doc-buy:hover::before {
    color: rgba(113, 87, 46, 0.247);
}

/* card html */
.site-card-html::before {
    content: "\f1cb";
    font-family: "FontAwesome";
    font-weight: 400;
    position: absolute;
    top: 5px;
    right: -10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.021);
    pointer-events: none;
    z-index: 0;
    transform: rotate(20deg);
    transition: all 0.4s ease;
}

.site-card-html:hover::before {
    color: rgba(255, 255, 255, 0.062);
}

/* card sheet */
.site-card-sheet::before {
    content: "\f0ce";
    font-family: "FontAwesome";
    font-weight: 400;
    position: absolute;
    top: 5px;
    right: -10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.021);
    pointer-events: none;
    z-index: 0;
    transform: rotate(20deg);
    transition: all 0.4s ease;
}

.site-card-sheet:hover::before {
    color: rgba(255, 255, 255, 0.062);
}

/* card page */
.site-card-page::before {
    content: "\f15b";
    font-family: "FontAwesome";
    font-weight: 400;
    position: absolute;
    top: 5px;
    right: -10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.021);
    pointer-events: none;
    z-index: 0;
    transform: rotate(20deg);
    transition: all 0.4s ease;
}

.site-card-page:hover::before {
    color: rgba(255, 255, 255, 0.062);
}

/* card order */
.site-card-order::before {
    content: "\f218";
    font-family: "FontAwesome";
    font-weight: 400;
    position: absolute;
    top: 5px;
    right: -10px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.021);
    pointer-events: none;
    z-index: 0;
    transform: rotate(20deg);
    transition: all 0.4s ease;
}

.site-card-order.site-card-order-buy {
    border: 1px solid #0bf5122b;
    background: #0bf51214;
}

.site-card-order.site-card-order-buy::before {
    color: rgb(115 245 0 / 5%);
}

.site-card-order:hover::before {
    color: rgba(255, 255, 255, 0.062);
}

.site-card-order.site-card-order-buy:hover::before {
    color: rgba(114, 245, 0, 0.068);
}

/* Tag Cloud Filter */
.tag-cloud-container {
    margin-top: 15px;
}

.tag-cloud-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
    padding-top: 15px;
    border-top: 1px solid #333a4a;
}

.tag-cloud-title i {
    margin-right: 7px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tag-cloud-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 131, 246, 0.719);
    color: #60a5fa;
    transform: translateY(-1px);
}

.tag-cloud-item.active {
    background: #124946b2;
    border-color: #2c928d;
    color: #fff;
    box-shadow: 0 0 10px rgba(35, 92, 93, 0.4);
}

/* Slide Gallery Styles */
.slide-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.slide-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-add-btn {
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.027);
    color: #3b82f6;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-add-btn:hover {
    background: rgba(59, 131, 246, 0.068);
}

.slide-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    transition: all 0.2s;
}

.slide-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.settings-filter {
    margin-top: 30px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.settings-filter .filter-btn {
    width: 100%;
    background: none;
    border: none;
    font-size: 25px;
    color: #fff;
    background: rgb(255 255 255 / 10%);
    padding: 15px;
}

.settings-filter .filter-btn.active {
    color: #5798ff;
    background: radial-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.settings-filter .filter-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.settings-filter .filter-btn:first-child {
    border-radius: 8px 0 0 8px;
}

p.site-note-order {
    line-height: 1.7;
    font-size: 12px !important;
    word-break: break-word;
}

.profile-info {
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #cccccc2f;
}

.profile-info div {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #cccccc57;
}

.profile-info div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.formsnt {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.formsnt.success {
    background: #94a3b81f;
    border-color: #94a3b83d;
    color: #8b8b8b;
    font-size: 14px;
}

.footer-link {
    font-size: 12px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #353535;
}

.footer-link a {
    color: #a5a5a5;
}

.footer-link a:hover {
    color: #6c94b9;
}

footer.glass-footer.footer-set-bg {
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    width: 140%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    background-image: url(/assets/trongdong.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    animation: spin-slow 400s linear infinite;
}

/* Nội dung footer nổi trên */
footer.glass-footer *:not(.footer-bg) {
    position: relative;
    z-index: 2;
}

/* Animation quay */
@keyframes spin-slow {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.footer-down {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 8px;
}

.footer-down img:hover {
    opacity: 0.8;
}

.user-total-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.user-total-box .user-total-box-item {
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.user-total-box .user-total-box-item span {
    font-size: 30px;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.user-total-box .user-total-box-item-amount {
    font-size: 16px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 8px;
}

.user-total-box .user-total-box-item-icon {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Glass colors for each stat box */
.user-total-box .user-total-box-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.user-total-box .user-total-box-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.15) 0%, rgba(103, 58, 183, 0.05) 100%);
    border: 1px solid rgba(103, 58, 183, 0.3);
}

.user-total-box .user-total-box-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(233, 30, 99, 0.05) 100%);
    border: 1px solid rgba(233, 30, 99, 0.3);
}

.user-total-box .user-total-box-item:nth-child(4) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Mobile responsive: 2 columns */
@media (max-width: 768px) {
    .user-total-box {
        grid-template-columns: 1fr 1fr;
    }
}


.tip-note-box {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgb(92 97 246 / 10%) 100%);
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid #6366f136;
    box-shadow: 0 4px 20px rgb(59 130 246 / 5%), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    justify-content: space-between;
}


.tip-note-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgb(59 72 139);
}

.tip-note-icon:hover {
    background: rgba(255, 255, 255, 0.041);
}

.tip-note-icon {
    text-decoration: none;
}


.tip-note-icon i {
    font-size: 20px;
    color: #6675c7;
}

#label-note-icon {
    font-size: 14px;
    color: #6675c7;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.tip-note-content {
    flex: 1;
}

.tip-note-title {
    display: block;
    font-size: 1.05em;
    color: #e0e7ff;
    letter-spacing: 0.3px;
}

.tip-note-desc {
    font-size: 0.92em;
    color: rgba(199, 210, 254, 0.85);
    line-height: 1.5;
}

.tip-note-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6289b9;
    text-decoration: none;
    background: #101629;
    border: 1px solid #2e3776;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88em;
    transition: all 0.3s ease;
}

.tip-note-link i {
    font-size: 12px;
}

.page-show-content {
    padding: 40px;
    background: #fff;
    border-radius: 10px;
}

.page-show-content h1.section-title {
    color: #2b2b2b;
    font-size: 27px;
    line-height: 1.7;
    background: #ffd284;
    padding: 40px;
    margin: -40px;
    border-radius: 10px 10px 0px 0px;
}

@media (max-width: 700px) {
    .page-show-content {
        padding: 15px;
    }

    .page-show-content h1.section-title {
        padding: 20px;
        margin: -15px;
        font-size: 20px;
    }
}

.page-content-html figure.image {
    text-align: center;
    padding: 0px;
    margin: 0px;
}

.page-content-html figure.image img {
    margin: 0px;
}

.page-content-html figcaption {
    font-style: italic;
    color: #707070;
}

.page-content-html {
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.page-content-html h1,
.page-content-html h2,
.page-content-html h3,
.page-content-html h4,
.page-content-html h5,
.page-content-html h6 {
    margin-bottom: 0.5em;
    color: #0f172a;
    font-weight: 600;
}

.page-content-html h1 {
    font-size: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.page-content-html h2 {
    font-size: 1.75rem;
}

.page-content-html h3 {
    font-size: 1.5rem;
}

.page-content-html p {
    margin-bottom: 1.2em;
}

.page-content-html ul,
.page-content-html ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

.page-content-html li {
    margin-bottom: 0.5em;
}

.page-content-html a {
    color: #2563eb;
    text-decoration: none;
}

.page-content-html a:hover {
    text-decoration: underline;
}

.page-content-html blockquote {
    border-left: 4px solid #3b82f6;
    margin: 1.5em 0;
    padding: 0.5em 1em;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.page-content-html code {
    background: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #d946ef;
}

.page-content-html pre {
    background: #f8fafc;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid #e2e8f0;
}

.page-content-html pre code {
    background: transparent;
    padding: 0;
    color: #334155;
    font-size: 0.9em;
}

.page-content-html img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    background: #3b82f61f;
}

.page-content-html hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2em 0;
}

.page-content-html figure.table {
    padding: 0px !important;
    margin: 0px;
}

.page-content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content-html th,
.page-content-html td {
    padding: 0.75em;
    border: 1px solid #e2e8f0;
    text-align: left;
    min-width: 100px;
}

.page-content-html th {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;

}

.page-content-html tr:nth-child(even) {
    background: #f8fafc;
}

.editor-tabs .btn.vvv {
    width: 40px;
    height: 40px;
}

.editor-tabs .btn.vvv.active {
    background: #ff2f2fa6;
    border: 1px solid #e55a5a;
}

button#btnCodeMode {
    border-radius: 10px 0px 0px 10px;
}

button#btnNoteMode {
    border-radius: 0px 10px 10px 0px;
}

div#publish-status-msg span {
    background: #4d9d301c;
    border: 1px solid #10ab7959;
    display: block;
    padding: 15px;
    border-radius: 10px;
}

div#publish-status-msg span a {
    color: #14c58c;
    background: #05432f;
    border-radius: 20px;
    display: inline-block;
    padding: 3px 10px;
    margin-left: 10px;
    text-decoration: none;
}

/* Post Content Lock Feature */
.locked-content-box {
    position: relative;
    max-height: 250px;
    overflow: hidden;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

.locked-content-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.content-locked-overlay {
    text-align: center;
    padding: 30px;
    background: repeating-linear-gradient(45deg, #ffffff, #ffffff 20px, #3b82f60d 20px, #3b82f60d 40px);
    border: 1px dashed #3b82f66b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.share-sidebar-wrapper {
    position: sticky;
    top: 50%;
    width: 0;
    height: 0;
    z-index: 99;
}

/* Share Sidebar */
.share-sidebar {
    position: absolute;
    top: 0;
    left: -70px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    background: rgb(255 255 255 / 68%);
    border: 1px solid #cccccc63;
    backdrop-filter: blur(10px);
    border-radius: 80px;
}

.share-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.share-sidebar a.share-fb {
    background: #1877f2;
}

.share-sidebar a.share-x {
    background: #000000;
    border: 1px solid #333;
}

.share-sidebar a.share-pin {
    background: #e60023;
}

.share-sidebar a:hover {
    opacity: 0.8;
}

@media (max-width: 1300px) {
    .page-show-content {
        padding-bottom: 80px !important;
    }

    .share-sidebar-wrapper {
        position: absolute;
        top: auto;
        bottom: 10px;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        z-index: 10;
    }

    .share-sidebar {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
    }

    .share-sidebar a:hover {
        transform: scale(1.1) translateY(-5px);
    }
}

/* Table of Contents */
.toc-wrapper {
    background: rgb(59 130 246 / 4%);
    border: 1px solid #3b82f66b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.toc-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #3b82f6;
    padding-bottom: 15px;
    border-bottom: 1px solid #a8c8fb;
}

.toc-wrapper h3 i {
    margin-right: 8px;
    color: #3b82f6;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.toc-item i {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.toc-item a {
    text-decoration: none;
    transition: color 0.2s;
    color: #334155;
    font-weight: 400;
    font-size: 0.95rem;
}

.toc-item a:hover {
    color: #3b82f6;
}

.toc-level-2 a {
    font-size: 1.05rem;
    font-weight: 600;
}

.toc-level-2 i {
    color: #3b82f6;
}

.toc-level-3 {
    margin-left: 15px;
}

.toc-level-4 {
    margin-left: 30px;
}

.toc-level-5 {
    margin-left: 45px;
}

.toc-level-6 {
    margin-left: 60px;
}

/* Premium Fallback Banner */
.premium-fallback-banner {
    width: 100%;
    height: 250px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #4f46e5, #1c3ac0ff, #00ad65, #4338ca);
    background-size: 20px 20px, 20px 20px, 400% 400%;
    animation: premiumGradientShift 12s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.premium-fallback-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

@keyframes premiumGradientShift {
    0% {
        background-position: 0 0, 0 0, 0% 50%;
    }

    50% {
        background-position: 0 0, 0 0, 100% 50%;
    }

    100% {
        background-position: 0 0, 0 0, 0% 50%;
    }
}

/* =====================
   SEO Score Widget
   ===================== */
.seo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    flex-wrap: wrap;
}

.seo-circle-container {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.seo-circle {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.seo-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.seo-circle-progress {
    fill: none;
    stroke-width: 8;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.8s ease-out, stroke 0.8s ease-out;
    stroke-linecap: round;
}

.seo-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: color 0.8s ease-out;
}

.seo-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    min-width: 250px;
}

.seo-item {
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #3a3a3a;
    transition: background 0.2s;
}

#seo-score-val {
    color: #333 !important;
}

.seo-item i {
    margin-top: 2px;
    font-size: 14px;
}

.seo-item.pass i {
    color: #10b981;
}

.seo-item.fail i {
    color: #ef4444;
}

.seo-item.warn i {
    color: #cf8300;
}

/* iOS Note Design */
.ios-note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ios-note-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid #fde68a;
    color: #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.ios-note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
    border-bottom: 1px solid #eab308;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ios-note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.ios-note-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.ios-note-header.line-time-top {
    border-bottom: 1px dashed #607d8b33;
}

.ios-note-domain {
    font-weight: 700;
    color: #735c00;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ios-note-domain::before {
    content: '\f249';
    font-family: 'FontAwesome';
    font-weight: 400;
    margin-right: 8px;
    color: #d97706;
}

span.ios-note-domain.has-taxonomy::before {
    content: '\f1e0';
    font-family: 'FontAwesome';
    font-weight: 400;
    margin-right: 8px;
    color: #26a152;
}

.ios-note-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.pin-btn {
    position: absolute;
    right: 80px;
    top: 0px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: var(--transition);
    border-radius: 50%;
}

.pin-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pin-dot {
    width: 10px;
    height: 10px;
    background-color: #fef08a;
    border-radius: 50%;
    border: 1px solid #facc15;
}

button.pin-btn.pinned {
    top: -10px;
    right: 60px;
}

.pin-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ios-note-badge.active {
    background: #f59e0b;
    color: #5b5b5b;
}

.ios-note-badge.inactive {
    background: rgb(255 226 85);
    color: #575757;
}

.ios-note-body {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: repeating-linear-gradient(transparent,
            transparent 27px,
            rgba(203, 213, 225, 0.4) 27px,
            rgba(203, 213, 225, 0.4) 28px);
    line-height: 28px;
    padding-top: 4px;
}

.ios-note-text {
    font-size: 0.95rem;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: inherit;
}

.ios-note-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: auto;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    font-weight: 500;
}

.ios-note-date i {
    margin-right: 6px;
}

.ios-note-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(203, 213, 225, 0.6);
}

.ios-note-actions.line-time-bottom {
    border-top: 1px solid #334458bf;
    margin-top: 10px;
    padding-top: 10px;
}

.ios-note-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.ios-btn-view {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    flex-grow: 1;
}

.ios-btn-view:hover {
    background: #e2a661;
    color: white;
}

.ios-btn-edit {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.ios-btn-edit:hover {
    background: #f59e0b;
    color: white;
}

.ios-btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.ios-btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* iOS App Icon Grid */
.ios-app-scroll-wrapper {
    position: relative;
    margin: 20px 0;
    background: #cccccc2e;
    border: 1px solid #cccccc3d;
    border-radius: 20px;
    overflow: hidden;
}

.ios-app-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.ios-app-grid::-webkit-scrollbar {
    display: none;
}

.ios-app-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.ios-app-scroll-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ios-app-scroll-fade-left {
    left: 0;
    background: linear-gradient(to right, #1e293b, transparent);
    border-radius: 20px 0 0 20px;
}

.ios-app-scroll-fade-right {
    right: 0;
    background: linear-gradient(to left, #1e293b, transparent);
    border-radius: 0 20px 20px 0;
}

.ios-app-scroll-fade.visible {
    opacity: 1;
}

.ios-app-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.ios-app-scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.ios-app-scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.ios-app-scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.ios-app-scroll-arrow-left {
    left: 8px;
}

.ios-app-scroll-arrow-right {
    right: 8px;
}

@media (max-width: 576px) {
    .ios-app-scroll-arrow {
        display: none;
    }
}

@media (max-width: 576px) {
    .ios-app-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 13px !important;
        font-size: 25px !important;
    }

    .ios-app-name {
        font-size: 12px !important;
    }
}

.ios-app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.ios-app-container:hover {
    transform: scale(1.08);
    /* slight pop effect */
    filter: brightness(1.1);
}

.ios-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
    /* iOS-like icon rounding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.192), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: white;
}

.ios-app-name {
    font-size: 13.5px;
    color: #f8fafc;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 90px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.2px;
}

.ios-bg-blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.ios-bg-indigo {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
}

.ios-bg-orange {
    background: linear-gradient(135deg, #fbbf24, #ea580c);
}

.ios-bg-purple {
    background: linear-gradient(135deg, #c084fc, #7e22ce);
}

.ios-bg-gradient-ai {
    background: linear-gradient(135deg, #2dd4bf, #0284c7);
}

.ios-bg-teal {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
}

.ios-bg-yellow {
    background: linear-gradient(135deg, #6ce7cc, #45b15c);
}

.ios-bg-green {
    background: linear-gradient(135deg, #ff574a, #7f2f00);
}

.ios-bg-pink {
    background: linear-gradient(135deg, #6e6e6e, #363636);
}

.ios-bg-red {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.ios-bg-map {
    background: linear-gradient(135deg, #f17600, #c93333);
}

/* White Blog Card Design */
.white-blog-card {
    border-radius: 12px;
    border: none;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.white-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.white-blog-thumb {
    display: block;
    overflow: hidden;
}

.white-blog-thumb-wrapper {
    width: 100%;
    height: 250px;
    background: #3d3d3d6b;
    overflow: hidden;
}

.white-blog-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(1);
}

.white-blog-thumb:hover .white-blog-thumb-wrapper img {
    transform: scale(1.05);
}

.white-blog-content {
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.white-blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    white-space: normal;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.white-blog-title:hover {
    color: #2563eb;
}

.white-blog-body {
    flex: 1;
}

.white-blog-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.white-blog-footer {
    margin-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    width: 100%;
}

.white-blog-btn {
    width: 100%;
    justify-content: center;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #e1e1e1;
    color: #575757;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.white-blog-btn:hover {
    background: #e9e9e9;
}

/* Professional Document Card Design */
.pro-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.pro-doc-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    position: relative;
    color: #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pro-doc-card::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-bottom: 2px solid #0161cf;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.pro-doc-card.site-card-doc-buy::before,
.pro-doc-card-buy::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-bottom: 2px solid #d5940f;
}

.pro-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.pro-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    margin-top: 10px;
}

.pro-doc-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.15rem;
    line-height: 1.5;
    text-decoration: none;
    display: block;
    margin-right: 0;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    word-break: break-word;
}

.pro-doc-title:hover {
    color: #2563eb;
}

.pro-doc-title::before {
    content: '\f15c';
    font-family: 'FontAwesome';
    font-weight: 900;
    margin-right: 8px;
    color: #3b82f6;
}

.pro-doc-badge {
    position: absolute;
    top: -14px;
    left: 0;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    background: #ffffff;
}

.pro-doc-badge.active {
    color: #ffffff;
    background: #16a34a;
}

.pro-doc-badge.inactive {
    color: #64748b;
    border-color: #e2e8f0;
}

.pro-doc-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pro-doc-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.pro-doc-desc {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 25px 0;
    display: -webkit-box;
    line-height: 1.6;
}

.pro-doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.pro-doc-date {
    font-size: 10px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.pro-doc-date i {
    margin-right: 6px;
    color: #94a3b8;
}

.pro-doc-actions {
    display: flex;
    gap: 6px;
}

.pro-doc-actions .btn {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pro-btn-view {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.3);
}

.pro-btn-edit {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.3);
}

.pro-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.pro-btn-view:hover,
.pro-btn-edit:hover,
.pro-btn-delete:hover {
    background: #f1f1f1;
    color: #475569;
}

.cli-status-box.cli-no-credit {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cli-status-box.cli-no-credit i {
    font-size: 34px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    margin-top: 2px;
}

.cli-status-box.cli-no-credit strong {
    color: #1e293b;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cli-status-box.cli-no-credit span {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cli-status-box.cli-no-credit a {
    text-decoration: none;
}


.order-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
    z-index: 10;
}

/* Plan Variants */
.site-card-plan.site-plan-no-vip {
    border-color: #10b98142;
    background: linear-gradient(145deg, #064e3b4d, #0f172a);
}

.site-card-plan.site-plan-day-vip {
    border-color: #f59f0b3d;
    background: linear-gradient(145deg, #78350f4d, #0f172a);
}

.site-card-plan.site-plan-no-vip button.btn.btn-primary.goi-mua-ngay {
    background: #10b98142;
}

.site-card-plan.site-plan-day-vip button.btn.btn-primary.goi-mua-ngay {
    background: #f59f0b3d;
}

button.btn-secondary-to {
    color: #858585;
    background: none;
    border: none;
}

.add-outline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .add-outline button {
        width: 100%;
    }
}

/* Notifications Styles */
.notify-wrapper {
    position: relative;
    display: inline-block;
}

.notify-bell-btn {
    color: var(--text-color);
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notify-bell-btn:hover {
    color: #0284c7;
}

.notify-dot {
    position: absolute;
    top: 1px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.notify-dot.active {
    display: block;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notify-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 0px 20px rgb(0 0 0 / 60%);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.notify-dropdown.active {
    display: flex;
    transform: translateY(0);
}

.notify-drop-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2b3243;
}

.notify-drop-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.mark-read-all {
    font-size: 0.8rem;
    color: #fbbf24;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.mark-read-all:hover {
    color: #bdbdbd;
}

.notify-drop-body {
    max-height: min(400px, 60vh);
    overflow-y: auto;
}

.notify-item {
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: default;
    text-decoration: none;
}

.notify-item:last-child {
    border-bottom: none;
}

.notify-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notify-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notify-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notify-content {
    flex: 1;
}

.notify-msg {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.notify-item.unread .notify-msg {
    font-weight: 600;
    color: #fff;
}

.notify-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notify-empty,
.notify-loading {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .notify-dropdown {
        position: fixed;
        top: 80px;
        left: 15px;
        right: 15px;
        width: auto;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-block !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: inline-block !important;
    }
}

/* Notifications Detail Page */
.notif-detail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.notif-detail-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.notif-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.notif-detail-item.unread {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.notif-detail-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.notif-detail-content {
    flex: 1;
}

.notif-detail-msg {
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.unread .notif-detail-msg {
    font-weight: 600;
    color: #fff;
}

.notif-detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notif-detail-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-notif-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notif-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-notif-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-notif-read:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.notif-header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.notif-highlight {
    border-color: #f59e0b42 !important;
    background: #f59e0b14;
}

@media (max-width: 600px) {
    .notif-detail-item {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    .notif-detail-content {
        width: calc(100% - 70px);
    }

    .notif-detail-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .notif-header-actions button {
        width: 100%;
    }
}

/* Order History Styles */
.order-history-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

.order-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.order-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.order-item-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.order-data-group {
    flex: 1;
    min-width: 140px;
}

.order-data-label {
    font-size: 0.75rem;
    color: #5375ad;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.order-data-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
}

.badge-success {
    background: #ecfdf5;
    color: #059669;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.order-code {
    font-family: 'Inter', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 8px;
    color: #b45309;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #ad8848db;
}

.empty-history {
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 30px;
    transition: var(--transition);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.empty-history i {
    font-size: 4rem;
    color: #ffffff1c;
}

@media (max-width: 768px) {

    .order-table th:nth-child(4),
    .order-table td:nth-child(4) {
        display: none;
        /* Hide method on mobile */
    }
}

.ios-btn-lock {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #c52b2bff !important;
    padding: 8px 12px;
    border-radius: 8px !important;
    margin-left: 5px;
}

.ios-btn-lock:hover {
    background: rgba(255, 171, 0, 0.2) !important;
}

/* Password Modal Specific */
.pwd-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pwd-modal.active {
    display: flex;
}

.pwd-modal-content {
    background: rgb(28 30 33 / 32%) !important;
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwd-modal.active .pwd-modal-content {
    transform: translateY(0);
}

.pwd-title {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pwd-input-wrapper {
    position: relative;
}

.pwd-display-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    padding: 10px 15px;
    color: #ffab00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.pwd-display-input:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

a.notif-detail-msg-link {
    text-decoration: none;
}


/* Custom Driver.js Styles */
.driver-popover {
    background-color: #205cbbff !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid #3e7ee4;
}

.driver-popover-title,
.driver-popover-description {
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
}

.driver-popover-arrow-side-top {
    border-top-color: #205cbb !important;
}

.driver-popover-arrow-side-bottom {
    border-bottom-color: #205cbb !important;
}

.driver-popover-arrow-side-left {
    border-left-color: #205cbb !important;
}

.driver-popover-arrow-side-right {
    border-right-color: #205cbb !important;
}

.driver-popover-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
}

.driver-popover-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.driver-popover-close-btn {
    color: #fff !important;
    opacity: 0.7;
}

.driver-popover-close-btn:hover {
    color: #fff !important;
    opacity: 1;
}

footer.driver-popover-footer {
    gap: 10px;
}

div#driver-popover-content {
    padding: 15px !important;
}

span.driver-popover-navigation-btns {
    gap: 5px;
}

.driver-popover-footer button {
    background-color: #fff !important;
    color: #6fa6ff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    text-shadow: none !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

button.driver-popover-prev-btn {
    background-color: #043b8b !important;
}

button.driver-popover-next-btn {
    background: #65a0ff !important;
    color: #fff !important;
}

.driver-popover-footer button:hover {
    background-color: #3a3a3aff !important;
    transform: translateY(-1px);
}

.driver-popover-progress-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
}

.note-limit {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #333;
}

.note-limit i {
    margin-right: 10px;
}

.note-limit a {
    color: #555;
    text-decoration: none;
}

.form-group.share-note-group {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.form-group.share-note-group label {
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.form-group.share-note-group .level-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.level-chip {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #b0b8c9;
    background: #f1f3f6;
    color: #555;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    white-space: nowrap;
}

.level-chip:hover {
    border-color: #1c5863;
    background: #e0f0f2;
    color: #1c5863;
}

.level-chip.active {
    background: #1c5863;
    border-color: #1c5863;
    color: #fff;
    font-weight: 600;
}

.form-group-label {
    color: #1c5863;
    border-bottom: 1px dashed;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

@keyframes commentTargetPulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }

    30% {
        transform: translateY(-2px);
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }
}

.comment-item.comment-target-highlight {
    animation: commentTargetPulse 2.2s ease;
    border-radius: 18px;
}

.comment-item.comment-target-highlight .gh-content {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.highlight-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16), 0 0 0 1px rgba(96, 165, 250, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.testimonials-container {
    gap: 30px;
}

.testimonial-author {
    position: absolute;
    bottom: 25px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: radial-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-actions2 {
    text-align: right;
}

@media screen and (max-width: 768px) {
    .order-actions2 {
        text-align: left;
    }

    #label-note-icon {
        display: none;
    }
}

.btn-primary-order {
    color: #053329;
    border: 1px solid #407572;
    background: #1b6d694a;
}

.btn-primary-order:hover {
    opacity: 0.8;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab-item {
    padding: 8px 16px;
    border-radius: 10px;
    color: #94a3b8;
    background: #293653;
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
}

.tab-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-item.active {
    background: #314b77;
    color: white;
}

.order-card {
    background: rgba(255, 255, 255, 1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.order-info h4 {
    margin: 0 0 5px 0;
    color: #223653ff;
}

.order-info p {
    margin: 0;
    font-size: 13px;
    color: #2f4564ff;
}

.order-info-hed {
    font-weight: bold;
    color: var(--text-secondary);
    padding: 15px;
    margin-bottom: 20px;
    background: #314b7766;
    border-radius: 10px;
    margin-top: -10px;
}

/* ── Profile Level / Hạng ────────────────────────────────────────────────── */
#profile-hang {
    padding-bottom: 4px;
}

.profile-level-wrap {
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.profile-level-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.profile-level-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-level-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-level-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.profile-level-num {
    font-size: 0.78rem;
    color: #64748b;
}

.profile-level-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-level-bar {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.18);
}

.profile-level-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 5px;
}

.profile-level-bar-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: right;
}

/* Tier colours */
.tier-0 .profile-level-icon {
    background: #e2e8f0;
    color: #64748b;
}

.tier-0 .profile-level-bar span {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.tier-1 .profile-level-icon {
    background: #dcfce7;
    color: #16a34a;
}

.tier-1 .profile-level-bar span {
    background: linear-gradient(90deg, #4ade80, #86efac);
}

.tier-2 .profile-level-icon {
    background: #dbeafe;
    color: #2563eb;
}

.tier-2 .profile-level-bar span {
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
}

.tier-3 .profile-level-icon {
    background: #fef9c3;
    color: #ca8a04;
}

.tier-3 .profile-level-bar span {
    background: linear-gradient(90deg, #eab308, #fde047);
}

.tier-4 .profile-level-icon {
    background: #ffedd5;
    color: #ea580c;
}

.tier-4 .profile-level-bar span {
    background: linear-gradient(90deg, #f97316, #fdba74);
}

.tier-5 .profile-level-icon {
    background: #f3e8ff;
    color: #9333ea;
}

.tier-5 .profile-level-bar span {
    background: linear-gradient(90deg, #9333ea, #c084fc);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.35);
}

.tier-6 .profile-level-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.tier-6 .profile-level-bar span {
    background: linear-gradient(90deg, #f59e0b, #fcd34d, #f59e0b);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.tier-6 .profile-level-title {
    color: #92400e;
}
