/* 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 var(--glass-border);
    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;
}

@media (max-width: 768px) {
    .welcome-text {
        display: none;
    }
}

.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);
    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;
}

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;
}

.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: 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: 2rem;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
    /* background: rgba(15, 23, 42, 0.4); */
    background: rgb(255 255 255 / 5%);
}

/* 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;
    }

    /* 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;
}

/* 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: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.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: 0.9rem;
    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: 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;
    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;
    margin-bottom: 30px;
}

.ios-note-card {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    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;
    border-bottom: 1px dashed rgba(203, 213, 225, 0.8);
}

.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;
}

.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: 5px;
    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 .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(59, 130, 246, 0.15);
    color: #2563eb;
    flex-grow: 1;
}

.ios-btn-view:hover {
    background: #3b82f6;
    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-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
    justify-content: flex-start;
    background: #cccccc2e;
    border: 1px solid #cccccc3d;
    padding: 14px;
    border-radius: 20px;
}

@media (max-width: 576px) {
    .ios-app-grid {
        justify-content: space-between;
    }

    .ios-app-icon {
        width: 62px;
        height: 62px;
        border-radius: 15px;
        font-size: 26px;
    }

    .ios-app-name {
        font-size: 12px;
    }
}

.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-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);
}

/* 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: #e2e8f0;
    overflow: hidden;
}

.white-blog-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.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: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.white-blog-btn:hover {
    background: #dbeafe;
}

/* 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;
    min-height: 200px;
    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;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    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;
    border: 2px solid #1e293b;
    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: 20px;
    transition: var(--transition);
    margin-bottom: 30px;
}

@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;
}