/* 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;
    max-width: 1200px;
    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 var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .welcome-text {
        display: none;
    }
}

.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);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.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;
}

.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 #333a4b;
}

.btn-google:hover {
    background: rgb(24, 24, 24);
}

.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: 23px;
    text-decoration: none;
    display: block;
    margin: 20px 0;
    padding-top: 30px;
    text-transform: uppercase;
    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;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.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 */

body.modal-open {
    overflow: hidden;
    /* Lock background scroll */
}

.modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    margin: 40px 15px;
    background: var(--glass-bg);
}

.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: 2rem;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
}

/* 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: 15px;
    transition: var(--transition);
    margin-bottom: 30px;
}

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;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .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(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 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;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    padding-top: 50px;
    margin-top: 50px;
    position: relative;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #a8cfff;
    position: absolute;
    top: -40px;
}

.benefit-item h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 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: 80px;
    height: 80px;
    /* Soap Bubble Effect */
    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),
        /* Inner Glow */
        0 8px 32px rgba(0, 0, 0, 0.2);
    /* Outer Dropshadow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Sharp edge */
    backdrop-filter: blur(4px);

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px auto;
    border-radius: 50%;

    transition: transform 0.3s ease;
}

.benefit-item:hover i {
    transform: translateY(-5px) scale(1.05);
    background: radial-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 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;
}

.page-content-html {
    line-height: 1.8;
    color: #e2e8f0;
    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: #fff;
    font-weight: 600;
}

.page-content-html h1 {
    font-size: 2rem;
    border-bottom: 1px solid var(--glass-border);
    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: #3b82f6;
    text-decoration: none;
}

.page-content-html a:hover {
    text-decoration: underline;
}

.page-content-html blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.5em 0;
    padding: 0.5em 1em;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-style: italic;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.page-content-html code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #e097d9;
}

.page-content-html pre {
    background: #1e293b;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid var(--glass-border);
}

.page-content-html pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.9em;
}

.page-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    border: 1px solid var(--glass-border);
}

.page-content-html hr {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 2em 0;
}

.page-content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-content-html th,
.page-content-html td {
    padding: 0.75em;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.page-content-html th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.page-content-html tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.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: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgb(8 8 8 / 26%);
    text-transform: uppercase;
}

.badge-type.giaoan {
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-type.sangkien {
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-type.bienphap {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Extended styles for post-specific content */
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(41, 41, 41, 0.342);
}

.post-badge.giaoan {
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.post-badge.sangkien {
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.post-badge.bienphap {
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.download-section {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333a4a;
}

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-download-primary:hover {
    transform: translateY(-1px);
}

/* 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: 16px;
	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;
}
.tip-note-box:hover {
	transform: translateY(-2px);
	box-shadow: 
		0 8px 30px rgba(59, 131, 246, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	border-color: rgba(99, 102, 241, 0.5);
}
.tip-note-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, #eac1660d, #f58c00, #fbee93, #f5a05700);
	background-size: 200% 100%;
	animation: gradientFlow 3s ease infinite;
}
@keyframes gradientFlow {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}
.tip-note-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	flex-shrink: 0;
	animation: iconPulse 2s ease-in-out infinite;
	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);
}
@keyframes iconPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}
.tip-note-icon i {
	font-size: 24px;
	color: #f8b944;
}
.tip-note-content {
	flex: 1;
}
.tip-note-title {
	display: block;
	font-size: 1.05em;
	color: #e0e7ff;
	margin-bottom: 10px;
	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-content-html figure.image {
    text-align: center;
    padding: 0px;
    margin: 0px;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
}

.page-content-html figure.image img {
    margin: 0px;
}

.page-content-html figcaption {
    font-style: italic;
    color: #7696bd;
}