@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #a855f7;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --input-bg: rgba(0, 0, 0, 0.2);
    --footer-bg: rgba(0, 0, 0, 0.2);
    --table-hover: rgba(255, 255, 255, 0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #475569;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --accent: #9333ea;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --input-bg: rgba(255, 255, 255, 0.5);
    --footer-bg: rgba(0, 0, 0, 0.03);
    --table-hover: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(15,23,42,0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(15,23,42,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 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;
    color: var(--text-color);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

.btn-nav.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.theme-btn:hover {
    background: var(--glass-bg);
}
.theme-btn ion-icon {
    font-size: 1.3rem;
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
}

/* Forms & Authentication */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.6s ease-out forwards;
}

.glass-panel h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.glass-panel p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard & Admin */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--table-hover);
    color: var(--text-color);
}

.content-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
}

/* Tables for Admin */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: var(--table-hover);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-warning { background: rgba(234, 179, 8, 0.2); color: #facc15; }

/* Actions */
.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    text-align: center;
    padding: 5rem 0;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Media Modal */
.media-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.media-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.media-modal {
    background: var(--bg-color);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}
.media-modal-overlay.active .media-modal {
    transform: scale(1);
}
.media-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
}
.media-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}
.media-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    background: var(--glass-bg);
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.media-item.selected {
    border-color: var(--accent);
    border-width: 3px;
}
.media-item.selected::after {
    content: '\2713';
    position: absolute;
    top: 5px; right: 5px;
    background: var(--accent);
    color: white;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Responsive Utilities */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    .grid-1-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .dashboard-grid {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .flex-between {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .flex-between > div {
        margin-bottom: 1rem;
    }
    .flex-between .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav {
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .nav a, .nav button {
        white-space: nowrap;
    }
    .hero h1 { font-size: 2.2rem; }
    .content-panel {
        padding: 1.5rem;
    }
    .glass-panel {
        padding: 1.5rem;
    }
    table {
        min-width: 600px; /* Forces scroll on small screens */
    }
}


/* --- AUTO REFACTOR UTILITIES --- */
/* Alerts */
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-error { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.alert-warning { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); text-align: center; }

/* Text Utilities */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger { color: #ef4444; }
.text-center { text-align: center; }
.font-sm { font-size: 0.85rem; }
.font-xs { font-size: 0.75rem; }
.fw-bold { font-weight: bold; }
.fw-500 { font-weight: 500; }

/* Margins & Paddings */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.ml-1 { margin-left: 1rem; }
.mr-1 { margin-right: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Flex Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-05 { gap: 0.5rem; }
.gap-2 { gap: 2rem; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Buttons & Icons */
.btn-auto { width: auto; padding: 0.8rem 2rem; }
.btn-sm-auto { width: auto; padding: 0.6rem 1.5rem; }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-color); }
.icon-md-right { vertical-align: middle; margin-right: 0.5rem; }
.icon-sm-right { vertical-align: middle; margin-right: 0.3rem; }
.icon-lg { font-size: 2rem; vertical-align: middle; }

/* Component Specifics */
.auth-links { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; }
.auth-links a { color: var(--primary); font-weight: 500; }

/* Badge variants */
.badge-group { background: rgba(255,255,255,0.1); border-left: 3px solid var(--primary); display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.8rem; }
.badge-group ion-icon { color: var(--primary); }

/* Quill Editor Fixes */
.ql-toolbar.ql-snow { border: 1px solid var(--glass-border) !important; border-top-left-radius: 12px; border-top-right-radius: 12px; background: rgba(255,255,255,0.05); }
.ql-container.ql-snow { border: 1px solid var(--glass-border) !important; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; background: rgba(0,0,0,0.1); color: var(--text-color) !important; min-height: 400px; font-family: inherit !important; font-size: 1rem !important; }
[data-theme="light"] .ql-toolbar.ql-snow, [data-theme="light"] .ql-container.ql-snow { background: rgba(255,255,255,0.7); }
.ql-snow .ql-stroke { stroke: var(--text-color) !important; }
.ql-snow .ql-fill { fill: var(--text-color) !important; }
.ql-snow .ql-picker { color: var(--text-color) !important; }

/* Page & Blog Details Content */
.page-content { color: var(--text-color); line-height: 1.8; font-size: 1.1rem; }
.page-content h1, .page-content h2, .page-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.page-content p { margin-bottom: 1.5rem; }
.page-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; }
.page-content ul, .page-content ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.page-content a { color: var(--primary); text-decoration: underline; }
.content-card { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 20px; padding: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.content-title { font-size: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; text-align: center; }

/* Misc Layouts */
.color-picker-wrap { display: flex; gap: 0.5rem; align-items: center; }
.color-picker { height: 45px; width: 50px; border: none; background: transparent; cursor: pointer; }
.checkbox-card { display: flex; align-items: center; gap: 0.8rem; background: rgba(0,0,0,0.1); padding: 1rem; border-radius: 8px; border: 1px solid var(--glass-border); cursor: pointer; transition: var(--transition); }
.checkbox-card input { width: 20px; height: 20px; accent-color: var(--primary); }


/* Blog Content */
.blog-content { color: var(--text-color); line-height: 1.8; font-size: 1.1rem; }
.blog-content h1, .blog-content h2, .blog-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.blog-content p { margin-bottom: 1.5rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; }
.blog-content ul, .blog-content ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.blog-content blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }
.blog-content a { color: var(--primary); text-decoration: underline; }


/* --- AUTO EXTRACTED STYLES --- */
.ex-style-9261da7b { appearance:auto; }
.ex-style-a147d24f { display: flex; gap: 1rem; align-items: flex-start; }
.ex-style-a7667d44 { flex-grow: 1; }
.ex-style-b51fcb44 { width: 150px; height: 100px; border-radius: 12px; border: 1px dashed var(--glass-border); display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0,0,0,0.1); }
.ex-style-700a0db4 { color: var(--text-muted); font-size: 0.8rem; text-align: center; }
.ex-style-ce8ad99d { width: 100%; height: 100%; object-fit: cover; display: none; }
.ex-style-e8857ae9 { background: rgba(0,0,0,0.1); border: 1px dashed var(--glass-border); padding: 1.5rem; border-radius: 12px; text-align: center; }
.ex-style-c9befb13 { display: none; margin-bottom: 1rem; }
.ex-style-a6b92e6c { font-size: 2rem; color: var(--primary); vertical-align: middle; }
.ex-style-d34eb69b { margin-left: 0.5rem; color: var(--text-color); }
.ex-style-cc2b7feb { background: none; border: none; color: #ef4444; text-decoration: underline; cursor: pointer; margin-left: 1rem; }
.ex-style-224b51a7 { display: none; }
.ex-style-33d46178 { width: auto; padding: 0.5rem 1.5rem; cursor: pointer; display: inline-block; }
.ex-style-519b814b { display: none; margin-top: 1rem; text-align: left; }
.ex-style-efb3af18 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.ex-style-62253d68 { width: 100%; height: 8px; background: var(--glass-bg); border-radius: 4px; overflow: hidden; }
.ex-style-10599991 { width: 0%; height: 100%; background: var(--primary); transition: width 0.3s; }
.ex-style-a109caac { width: auto; padding: 0.8rem 2rem; background: transparent; border: 1px solid var(--glass-border); color: var(--text-color); margin-left: 1rem; }
.ex-style-f8a7328a { margin-top: 0.5rem; }
.ex-style-2c5615f0 { background:none; border:none; color:#ef4444; cursor:pointer; font-size:0.85rem; text-decoration:underline; }
.ex-style-479236c4 { width: 40px; }
.ex-style-aeba5f61 { cursor:pointer; width: 16px; height: 16px; }
.ex-style-40430a3c { width: 70px; }
.ex-style-ebcd35f7 { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.ex-style-f2ae3019 { width: 50px; height: 50px; border-radius: 8px; background: rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.ex-style-fa415b95 { font-size: 1.5rem; }
.ex-style-ecc5dd78 { color: #ef4444; }
.ex-style-185d793c { margin-top: 1.5rem; }
.ex-style-f0669234 { width: auto; padding: 0.6rem 1.5rem; background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.ex-style-f9bb9347 { text-align:center; padding:3rem 0; color:var(--text-muted); }
.ex-style-988c5fa7 { margin-top: 1rem; }
.ex-style-a722581b { text-align:center; padding:1rem; color:var(--text-muted); }
.ex-style-8111a9bd { padding: 2rem; max-width: 600px; }
.ex-style-936bdca6 { height: 45px; width: 50px; border: none; background: transparent; cursor: pointer; }
.ex-style-fe08d3ef { color: var(--text-muted); font-size: 0.9rem; }
.ex-style-cf36fb90 { color:var(--primary); }
.ex-style-46105dcd { padding: 2rem; }
.ex-style-b207e546 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.ex-style-6383c194 { display: flex; align-items: center; gap: 0.8rem; background: rgba(0,0,0,0.1); padding: 1rem; border-radius: 8px; border: 1px solid var(--glass-border); cursor: pointer; transition: var(--transition); }
.ex-style-cb095126 { width: 20px; height: 20px; accent-color: var(--primary); }
.ex-style-e13c9d1c { font-weight: 500; color: var(--text-color); }
.ex-style-db0db8df { font-size: 0.8rem; color: var(--text-muted); font-family: monospace; }
.ex-style-bb8185f9 { color: #ef4444; font-size: 0.9rem; margin-bottom: 1rem; }
.ex-style-53504122 { width: auto; padding: 0.6rem 1.5rem; background: transparent; border: 1px solid var(--glass-border); color: var(--text-color); margin-right: 0.5rem; }
.ex-style-b2d2033a { color: #3b82f6; }
.ex-style-46dcee64 { margin:0; }
.ex-style-5bcd6eaa { font-size: 1.5rem; margin:0; }
.ex-style-87816a39 { padding: 1rem 2rem; border-bottom: 1px solid var(--glass-border); display: flex; gap: 1rem; align-items: center; background: rgba(0,0,0,0.1); }
.ex-style-7b609304 { width: auto; padding: 0.5rem 1.5rem; cursor: pointer; display: inline-block; font-size: 0.9rem; }
.ex-style-3d1f6b96 { vertical-align: middle; }
.ex-style-c10dfb92 { margin-left: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.ex-style-d49f1756 { width: auto; padding: 0.5rem 2rem; display: none; }
.ex-style-950b5781 { grid-column: 1/-1; text-align:center; padding: 3rem; color: var(--text-muted); }
.ex-style-ed0ad1c4 { grid-column: 1/-1; text-align:center; color: #ef4444; }
.ex-style-a898f70c { margin-right:0.5rem; }
.ex-style-48b4bab9 { text-align: center; padding: 2rem; color: var(--text-muted); }
.ex-style-3db09558 { padding: 1.5rem; margin-bottom: 2rem; }
.ex-style-ae0066f0 { flex-grow: 1; padding: 0.5rem; color: var(--text-color); }
.ex-style-7cd7e90b { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; overflow-x: auto; }
.ex-style-8d5675e4 { width: 80px; text-align: center; }
.ex-style-b8ae313a { font-size: 2.5rem; color: var(--text-muted); }
.ex-style-f5923c9b { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; cursor: pointer; }
.ex-style-c465cc23 { display:inline-block; margin-right: 0.5rem; }
.ex-style-08bf40e2 { text-align: center; padding: 3rem; color: var(--text-muted); }
.ex-style-a10b502a { margin-bottom: 2rem; display: flex; gap: 2rem; }
.ex-style-35c8a463 { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.ex-style-052ff0c6 { width: 18px; height: 18px; }
.ex-style-bf38d8d7 { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }
.ex-style-c9681494 { color:var(--primary); text-decoration:underline; }
.ex-style-eddc9fdd { display:flex; gap:0.5rem; }
.ex-style-19826533 { font-size:0.7rem; }
.ex-style-b20163f1 { font-size:0.7rem; background:rgba(255,255,255,0.1); }
.ex-style-4d1e5c7d { max-width: 600px; }
.ex-style-9fb23375 { color: var(--text-muted); font-size: 0.8rem; display: block; margin-top: 0.3rem; }
.ex-style-87f5fcca { appearance: auto; }
.ex-style-5808dbc8 { width: auto; padding: 0.8rem 2rem; margin-top: 1rem; }
.ex-style-53b84be5 { align-items: start; }
.ex-style-aa0da8a6 { padding: 1.5rem; }
.ex-style-c97b1600 { margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.ex-style-ae782537 { vertical-align: middle; margin-right: 0.5rem; color: var(--primary); }
.ex-style-ee802358 { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.ex-style-8e9ff0d8 { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid var(--glass-border); background: rgba(0,0,0,0.1); }
.ex-style-7d1faedf { width: 100%; height: 100%; object-fit: cover; }
.ex-style-00c10adc { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 2.5rem; }
.ex-style-199b6f0e { width: 100%; }
.ex-style-57019240 { vertical-align: middle; margin-right: 0.5rem; color: #ef4444; }
.ex-style-91207c28 { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.ex-style-4221070a { width: 100%; background: transparent; border: 1px solid #ef4444; color: #ef4444; }
.ex-style-7505e2d5 { padding: 5rem 0; text-align: center; }
.ex-style-43b70f36 { margin-top: 2rem; display: inline-block; width: auto; padding: 0.8rem 2rem; }
.ex-style-deb8770c { max-width: 800px; margin-top: 2rem; }
.ex-style-cc9b21f7 { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.ex-style-fad487ed { color: var(--text-muted); text-decoration: none; }
.ex-style-315a7a55 { color: var(--primary); font-weight: 500; }
.ex-style-1c65a225 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 1.5rem; }
.ex-style-e2e70d77 { display: flex; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.5rem; }
.ex-style-1782478e { margin-bottom: 3.5rem; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid var(--glass-border); }
.ex-style-8cc36754 { position: absolute; top:0; left:0; right:0; bottom:0; background: url( }
.ex-style-6d6091c2 { width: 100%; max-height: 600px; object-fit: contain; position: relative; z-index: 2; display: block; background: rgba(0,0,0,0.2); }
.ex-style-a68ca7c2 { margin-top: 3rem; background: rgba(34, 197, 94, 0.2); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.ex-style-bcebc686 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.ex-style-88b2aa20 { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.ex-style-7a177467 { width: auto; padding: 0.6rem 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.ex-style-1bf6a971 { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.ex-style-cac2f783 { margin-bottom: 1rem; font-size: 1.1rem; }
.ex-style-3083af1c { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ex-style-ce818040 { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; color: var(--text-color); }
.ex-style-d7846f57 { text-align: center; margin-bottom: 3rem; margin-top: 2rem; }
.ex-style-4675dc48 { font-size: 2.5rem; margin-bottom: 1rem; }
.ex-style-9314b49a { color: var(--text-muted); font-size: 1.1rem; }
.ex-style-31320e86 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.ex-style-6edcaa57 { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ex-style-85828ef4 { height: 200px; overflow: hidden; }
.ex-style-3648dcf1 { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ex-style-45640996 { height: 200px; background: rgba(255,255,255,0.05); display:flex; align-items:center; justify-content:center; color: var(--text-muted); }
.ex-style-5afc7337 { font-size: 3rem; }
.ex-style-405d9b6b { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.ex-style-3d2d5c0d { font-size: 0.85rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 600; }
.ex-style-d70d584e { font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.4; }
.ex-style-cac75d17 { color: var(--text-color); text-decoration: none; }
.ex-style-496e07a7 { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.ex-style-21658aeb { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--glass-border); padding-top: 1rem; }
.ex-style-dbe4dc75 { color: var(--primary); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.ex-style-248ab4bd { text-align: center; padding: 4rem 2rem; }
.ex-style-d6ea184f { font-size: 4rem; color: var(--text-muted); margin-bottom: 1rem; }
.ex-style-7d4ad497 { background: rgba(239, 68, 68, 0.2); color: #f87171; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; text-align: center; border: 1px solid rgba(239, 68, 68, 0.3); }
.ex-style-67f8f54d { background: rgba(34, 197, 94, 0.2); color: #4ade80; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; text-align: center; border: 1px solid rgba(34, 197, 94, 0.3); }
.ex-style-f990f444 { color:var(--text-color) }
.ex-style-00a3c05c { margin-top: 4rem; border-top: 1px solid var(--glass-border); padding: 3rem 0; background: rgba(0,0,0,0.02); }
.ex-style-12e9d4cb { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.ex-style-8ad6ffdf { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.ex-style-5785c6f1 { color: var(--text-color); text-decoration: none; font-size: 0.95rem; opacity: 0.8; transition: opacity 0.3s; }
.ex-style-38b6d56c { display:flex; align-items:center; justify-content:center; text-align:center; }
.ex-style-9aa1019a { font-size: 3rem; margin-bottom: 1rem; }
.ex-style-8257c608 { color: var(--text-muted); font-size: 1.2rem; }
.ex-style-bb337139 { color:var(--text-muted); font-size: 0.9rem; text-decoration: underline; }
.ex-style-c75566b3 { max-height: 40px; display: block; }
.ex-style-79689f1b { background: transparent; border: none; cursor: pointer; color: var(--text-color); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.ex-style-a94ddcc4 { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem; border: 1px solid var(--glass-border); border-radius: 20px; }
.ex-style-001a77dc { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ex-style-0bd3baa4 { width: auto; padding: 1rem 3rem; display: inline-block; }
.ex-style-3db59610 { margin-top:0.5rem; }
.ex-style-bb2b7f96 { max-width: 800px; margin-top: 3rem; margin-bottom: 3rem; }
.ex-style-e516a8f8 { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 20px; padding: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.ex-style-9b0514b0 { font-size: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; text-align: center; }
.ex-style-bc05ba38 { text-align: center; margin-bottom: 2rem; margin-top: 2rem; }
.ex-style-c910b3d5 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.ex-style-03e67224 { background: rgba(239, 68, 68, 0.2); color: #f87171; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid rgba(239, 68, 68, 0.3); max-width: 900px; margin-left: auto; margin-right: auto; }
.ex-style-e689f41b { background: rgba(34, 197, 94, 0.2); color: #4ade80; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid rgba(34, 197, 94, 0.3); max-width: 900px; margin-left: auto; margin-right: auto; }
.ex-style-b3b6e7e3 { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; align-items: start; gap: 2rem; }
.ex-style-77e36924 { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.ex-style-384d0def { position: relative; width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 3px solid var(--glass-border); flex-shrink: 0; background: rgba(0,0,0,0.1); }
.ex-style-62a9985f { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 3rem; }
.ex-style-b657ad07 { width: auto; padding: 0.5rem 1.2rem; cursor: pointer; display: inline-block; font-size: 0.9rem; margin-bottom: 0.5rem; }
.ex-style-96811d2e { color: #ef4444; font-size: 0.85rem; text-decoration: underline; }
.ex-style-802ab104 { width: 100%; background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* Blog Detail Image Fixes */
img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-detail-img-container { margin-bottom: 3.5rem; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.blog-detail-blur-bg { position: absolute; top:0; left:0; right:0; bottom:0; filter: blur(20px); opacity: 0.5; z-index: 1; }
.blog-detail-img { width: 100%; max-height: 600px; object-fit: contain; position: relative; z-index: 2; display: block; background: rgba(0,0,0,0.2); }


/* Blog Layout with Sidebar */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
@media (max-width: 992px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-sidebar { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 100px; }
.sidebar-widget { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.sidebar-widget-title { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text-color); border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-widget-title ion-icon { color: var(--primary); }

/* Sidebar Search */
.sidebar-search { display: flex; gap: 0.5rem; }
.sidebar-search input { flex: 1; border-radius: 8px; border: 1px solid var(--glass-border); background: white; color: black; padding: 0.8rem 1rem; }
.sidebar-search button { background: var(--primary); color: white; border: none; border-radius: 8px; width: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.sidebar-search button:hover { background: var(--accent); }

/* Sidebar Categories */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 0.5rem; }
.category-list a { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; color: var(--text-muted); text-decoration: none; border-radius: 8px; transition: var(--transition); background: rgba(255,255,255,0.02); }
.category-list a:hover, .category-list a.active { background: rgba(255,255,255,0.08); color: var(--primary); }
.category-badge { background: #3b82f6; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; color: white; }

/* Update blog grid for main content area */
.blog-main .ex-style-31320e86 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }


/* Blog Card Hover Effects */
.blog-card-img-container:hover .blog-card-img { transform: scale(1.1) !important; }
.glass-panel:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important; transform: translateY(-5px); transition: all 0.3s ease; }


/* Profile Group Badge */
.profile-group-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 8px; background: white; color: black; border: 1px solid var(--glass-border); font-weight: bold; }


/* Comments Section */
.comments-section { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.comments-section-title { font-size: 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.comment-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; }
.comment-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.comment-user-info { display: flex; align-items: center; gap: 1rem; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: rgba(0,0,0,0.2); }
.comment-meta h4 { margin: 0; font-size: 1rem; color: var(--text-color); }
.comment-meta span { font-size: 0.8rem; color: var(--text-muted); }
.comment-content { color: var(--text-muted); line-height: 1.6; }
.comment-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.comment-actions button { background: transparent; border: 1px solid var(--glass-border); color: var(--text-muted); padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.3rem; }
.comment-actions button:hover { background: rgba(255,255,255,0.05); color: var(--primary); }
.comment-actions a { color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.85rem; text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.3rem; }
.comment-actions a:hover { background: rgba(239, 68, 68, 0.1); }
.comment-form { background: rgba(234, 179, 8, 0.2); border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; border: 1px solid var(--glass-border); }
.comment-form textarea { width: 100%; min-height: 100px; background: white; border: 1px solid var(--glass-border); border-radius: 8px; padding: 1rem; color: black; margin-bottom: 1rem; resize: vertical; }
.comment-form textarea:focus { outline: none; border-color: var(--primary); }
.login-to-comment { background: rgba(255,255,255,0.02); padding: 2rem; border-radius: 12px; text-align: center; border: 1px dashed var(--glass-border); margin-bottom: 2rem; }
.login-to-comment p { margin-bottom: 1rem; color: var(--text-muted); }
.edit-comment-form { display: none; margin-top: 1rem; }


/* Comment Fallback Avatar */
.comment-avatar-fallback { display: flex; align-items: center; justify-content: center; color: white; background: rgba(0,0,0,0.2); width: 40px; height: 40px; border-radius: 50%; }
/* Edit Comment Form */
.edit-comment-textarea { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); color: white; min-height: 80px; margin-bottom: 10px; width: 100%; border-radius: 8px; padding: 10px; }


/* Custom Modal */
.custom-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: opacity 0.3s ease; }
.custom-modal-overlay.active { display: flex; opacity: 1; }
.custom-modal { background: var(--bg-color); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem; max-width: 400px; width: 90%; box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: translateY(20px); transition: transform 0.3s ease; text-align: center; }
.custom-modal-overlay.active .custom-modal { transform: translateY(0); }
.custom-modal-icon { font-size: 3rem; color: #ef4444; margin-bottom: 1rem; }
.custom-modal-title { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-color); }
.custom-modal-text { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.custom-modal-actions { display: flex; gap: 1rem; justify-content: center; }
.custom-modal-btn { padding: 0.6rem 1.5rem; border-radius: 8px; cursor: pointer; border: none; font-weight: bold; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.custom-modal-cancel { background: rgba(255,255,255,0.05); color: var(--text-color); border: 1px solid var(--glass-border); }
.custom-modal-cancel:hover { background: rgba(255,255,255,0.1); }
.custom-modal-confirm { background: #ef4444; color: white; }
.custom-modal-confirm:hover { background: #dc2626; }


/* Status Badges */
.badge-success { background: rgba(34,197,94,0.2); color: #4ade80; }
.badge-neutral { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.badge-white { background: rgba(255,255,255,0.1); color: white; }


/* Forum System */
.forum-cat-box { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 1.5rem; overflow: hidden; }
.forum-cat-header { background: var(--glass-bg); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--glass-border); font-weight: bold; }
.forum-cat-body { padding: 0; }
.forum-box { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--glass-border); transition: var(--transition); }
.forum-box:hover { background: rgba(255,255,255,0.01); }
.forum-box:last-child { border-bottom: none; }
.forum-box-info { display: flex; align-items: center; gap: 1rem; flex: 1; }
.forum-box-icon { font-size: 2rem; color: var(--primary); background: rgba(99,102,241,0.1); padding: 0.8rem; border-radius: 12px; display: flex; }
.forum-box-text h4 { margin: 0 0 0.3rem 0; font-size: 1.1rem; }
.forum-box-text p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.sub-forum-box { margin-left: 4rem; padding-left: 1.5rem; border-left: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; padding-top: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px dashed var(--glass-border); }
.sub-forum-box:last-child { border-bottom: none; }
.forum-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.forum-settings-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; }


/* Frontend Forum System */
.front-forum-cat { margin-bottom: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; }
.front-forum-cat-header { background: var(--glass-bg); padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 0.8rem; font-size: 1.2rem; font-weight: bold; border-bottom: 1px solid var(--glass-border); }
.front-forum-box { padding: 1.5rem; border-bottom: 1px solid var(--glass-border); display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start; gap: 1.2rem; transition: var(--transition); text-decoration: none; color: var(--text-color); }
.front-forum-box:hover { background: rgba(255,255,255,0.03); }
.front-forum-box:last-child { border-bottom: none; }
.front-forum-icon { font-size: 2.5rem; color: var(--primary); background: rgba(99,102,241,0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 75px; height: 75px; }
.front-forum-details { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; word-break: break-word; }
.front-forum-details h3 { margin: 0 0 0.5rem 0; font-size: 1.3rem; color: var(--text-color); transition: var(--transition); }
.front-forum-box:hover .front-forum-details h3 { color: var(--primary); }
.front-forum-details p { margin: 0 0 0.8rem 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.front-sub-forums { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.front-sub-forum-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 0.3rem 0.8rem; border-radius: 20px; text-decoration: none; transition: var(--transition); border: 1px solid var(--glass-border); }
.front-sub-forum-link:hover { background: rgba(99,102,241,0.1); color: var(--primary); border-color: rgba(99,102,241,0.3); }


/* Forum Topic Styles */
.topic-container { display: flex; gap: 1.5rem; }
.author-sidebar { width: 220px; flex-shrink: 0; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; text-align: center; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 1rem; object-fit: cover; border: 2px solid var(--primary); }
.author-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 0.5rem; color: var(--text-color); }
.author-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 1rem; }
.author-stats { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; border-top: 1px solid var(--glass-border); padding-top: 1rem; text-align: left; }
.topic-content-area { flex: 1; min-width: 0; }
.reply-box { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 1.5rem; padding: 1.5rem; display: flex; gap: 1.5rem; position: relative; }
.reply-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.8rem; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.reply-body { font-size: 1rem; line-height: 1.7; color: var(--text-color); }
.quote-box { background: rgba(255,255,255,0.02); border-left: 3px solid var(--primary); padding: 1rem; margin-bottom: 1rem; border-radius: 0 8px 8px 0; color: var(--text-muted); font-style: italic; font-size: 0.95rem; }
.quote-author { font-weight: bold; color: var(--text-color); margin-bottom: 0.3rem; display: block; font-style: normal; }
.topic-tags { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.topic-tag { background: rgba(99,102,241,0.1); color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; border: 1px solid rgba(99,102,241,0.2); }
.attachment-list { margin-top: 1rem; border-top: 1px dashed var(--glass-border); padding-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.attachment-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; color: var(--text-color); text-decoration: none; transition: var(--transition); }
.attachment-badge:hover { background: rgba(255,255,255,0.05); color: var(--primary); }
.attachment-img { max-width: 200px; max-height: 150px; border-radius: 8px; border: 1px solid var(--glass-border); object-fit: cover; display: block; margin-top: 0.5rem; }
.reply-actions { position: absolute; right: 1.5rem; bottom: 1.5rem; }
.btn-quote { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: 6px; background: rgba(255,255,255,0.03); color: var(--text-muted); border: 1px solid var(--glass-border); cursor: pointer; transition: var(--transition); }
.btn-quote:hover { background: rgba(99,102,241,0.1); color: var(--primary); border-color: rgba(99,102,241,0.3); }
.btn-nav:hover { background: rgba(99,102,241,0.1); }
.btn-nav.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Auth Pages */

@media (max-width: 900px) {
    .topic-container, .reply-box { flex-direction: column; gap: 1rem; }
    .author-sidebar { 
        width: 100%; 
        display: grid !important; 
        grid-template-columns: 60px 1fr; 
        gap: 0.2rem 1rem; 
        padding: 1rem; 
        text-align: left !important; 
        align-items: center;
    }
    .author-avatar { 
        grid-column: 1; 
        grid-row: 1 / span 5; 
        margin: 0 !important; 
        width: 60px; height: 60px; 
    }
    .author-sidebar > div {
        grid-column: 2;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        justify-self: start;
    }
    .author-stats { border-top: none; padding-top: 0; }
}


/* Forum Inline Replacements */
.ex-style-e3562b0a { font-size: 5rem; color: var(--text-muted); }
.ex-style-5123a4f3 { font-size: 4rem; color: var(--text-muted); }
.ex-style-d0da858a { align-items: center; }
.ex-style-8fdce8d5 { text-decoration:none; }
.ex-style-2138fa8d { vertical-align:middle; }
.ex-style-02c39933 { display:flex; align-items:center; gap:0.5rem; }
.ex-style-b861e9d5 { background: transparent; border:none; }
.ex-style-a3a7caa3 { background: var(--glass-bg); border-radius:12px; margin-bottom:1rem; border: 1px solid var(--glass-border); }
.ex-style-9e12c976 { padding:0.5rem; background:transparent; }
.ex-style-50675b87 { width:50px; height:50px; border-radius:50%; object-fit:cover; border:2px solid var(--glass-border); }
.ex-style-4ab9d7eb { display:flex; flex-direction:column; justify-content:center; min-height:50px; }
.ex-style-6b359d8b { margin:0 0 0.3rem 0; font-size:1.15rem; }
.ex-style-ccdaac14 { font-size:0.85rem; color:var(--text-muted); display:flex; gap:1rem; align-items:center; }
.ex-style-8c62ecd1 { max-width: 800px; margin: 0 auto; border-radius: 12px; }
.ex-style-cf36fb90 { color:var(--primary); }
.ex-style-ffac44ef { font-size:0.9rem; }
.ex-style-fa0758b4 { padding: 2rem 0; border-bottom: 1px solid var(--glass-border); }
.ex-style-e0ed9740 { font-size: 0.9rem; margin-bottom: 1rem; }
.ex-style-46dcee64 { margin:0; }

.ex-style-01afa8fb { padding: 1.5rem; border-radius: 12px; position:relative; }
.ex-style-ebc21476 { font-size:1.2rem; }
.ex-style-6d09ea13 { border:0; border-top: 1px dashed var(--glass-border); margin: 3rem 0; }

.ex-style-091f766e { flex-direction:column; gap:0; }
.ex-style-9a60c891 { border-radius:12px; }
.ex-style-5fa1c6fb { display: flex; gap: 0.5rem; }
.ex-style-d2afe5e3 { display: flex; align-items: center; gap: 0.5rem; }
.ex-style-25cb8a6a { color:#ef4444; }
.ex-style-ae785293 { gap:0.5rem; }
.ex-style-ec37baaf { color:var(--text-muted); font-size:1.2rem; }
.ex-style-e4c3541b { font-size:1rem; }
.ex-style-f5580190 { grid-template-columns: 1fr 1fr; gap: 2rem; }
.ex-style-046a7e24 { border-bottom: 1px solid var(--glass-border); }
.topic-content-column { flex-direction: column; gap: 0; }
.reply-actions-right { position: relative; margin-top: 2rem; display: flex; justify-content: flex-end; gap: 0.5rem; }


.sidebar-placeholder { background: transparent !important; border: none !important; box-shadow: none !important; visibility: hidden; }


.topic-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.btn-glass { background: rgba(255,255,255,0.05); color: var(--text-color); border: 1px solid var(--glass-border); }
.btn-glass:hover { background: rgba(255,255,255,0.1); color: var(--text-color); }


/* Lightbox Styles */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 10000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s ease; object-fit: contain; }
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2.5rem; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--primary); }
.reply-body img, .attachment-img { cursor: zoom-in; max-width: 100%; }


html { overflow-y: scroll; }

:root {
    --danger: #ef4444;
    --danger-hover: #dc2626;
}
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); color: white; }
.btn-danger-text { color: var(--danger) !important; }
.delete-modal-panel { max-width: 400px; width: 90%; margin: 15vh auto; padding: 2rem; position: relative; }
.forum-reply-editor { height: 250px; background: rgba(255,255,255,0.02); border-radius: 0 0 12px 12px; border-color: rgba(255,255,255,0.1); }
.forum-reply-body { min-height: auto !important; }

/* Forum Like System Styles (Ported from LikeSystem module) */
.likesystem-container { display: flex; align-items: center; gap: 0.5rem; margin-top: 2rem; margin-bottom: 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.likesystem-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: var(--transition); font-weight: bold; font-size: 1rem; }
.likesystem-btn:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }
.likesystem-btn ion-icon { font-size: 1.2rem; }
.likesystem-btn.liked { background: #ef4444; border-color: #ef4444; color: white; }
.likesystem-btn.liked:hover { background: #dc2626; border-color: #dc2626; }
.likesystem-count { font-size: 0.9rem; color: var(--text-muted); font-weight: bold; }

/* ============================================
   PRODUCTS MODULE STYLES
   ============================================ */

/* Product List */
.product-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--glass-border); }
.product-thumb-placeholder { width: 60px; height: 60px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.4rem; }
.product-price-badge { font-weight: bold; color: var(--primary); font-size: 0.95rem; }
.stock-badge-ok { background: rgba(74,222,128,0.1); color: #4ade80; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.stock-badge-low { background: rgba(251,191,36,0.1); color: #fbbf24; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.stock-badge-out { background: rgba(248,113,113,0.1); color: #f87171; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* Product Form Layouts */
.product-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.product-form-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.product-form-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.2rem; }
.product-form-card h4 { margin: 0 0 1rem 0; font-size: 0.95rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.6rem; }

/* Image Picker Grid */
.product-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.product-img-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--glass-border); cursor: pointer; transition: var(--transition); }
.product-img-thumb:hover { border-color: var(--primary); }
.product-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-img-thumb .remove-img { position: absolute; top: 3px; right: 3px; background: rgba(239,68,68,0.9); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.product-img-thumb.is-featured { border-color: #fbbf24; }
.product-img-thumb.is-featured::after { content: "Vitrin"; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(251,191,36,0.85); color: #1a1a2e; font-size: 0.65rem; text-align: center; padding: 2px; font-weight: bold; }
.add-image-btn { aspect-ratio: 1; border-radius: 8px; border: 2px dashed var(--glass-border); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 0.78rem; transition: var(--transition); gap: 0.3rem; }
.add-image-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.05); }
.add-image-btn ion-icon { font-size: 1.4rem; }

/* Featured Image Picker */
.featured-img-area { width: 100%; aspect-ratio: 16/9; border-radius: 10px; border: 2px dashed var(--glass-border); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 0.85rem; gap: 0.5rem; transition: var(--transition); background: rgba(255,255,255,0.02); overflow: hidden; position: relative; }
.featured-img-area:hover { border-color: var(--primary); color: var(--primary); }
.featured-img-area img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.featured-img-area ion-icon { font-size: 2rem; }

/* Variations */
.variation-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem; }
.variation-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.variation-title { font-weight: 600; font-size: 0.9rem; color: var(--text-color); }
.variation-type-badge { font-size: 0.72rem; background: rgba(99,102,241,0.1); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 20px; }
.variation-options { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.variation-option-chip { background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.82rem; color: var(--text-muted); }
.variation-input-number { width: 100%; }

/* Category Variations Editor */
.var-editor-row { display: grid; grid-template-columns: 1fr 140px 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.btn-remove-var { background: rgba(239,68,68,0.1); color: #f87171; border: none; border-radius: 6px; padding: 0.5rem 0.7rem; cursor: pointer; transition: var(--transition); font-size: 1rem; display: flex; align-items: center; }
.btn-remove-var:hover { background: #ef4444; color: white; }
.btn-add-var { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(99,102,241,0.08); color: var(--primary); border: 1px dashed rgba(99,102,241,0.3); border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem; transition: var(--transition); margin-top: 0.5rem; }
.btn-add-var:hover { background: rgba(99,102,241,0.15); }
.var-section-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; color: var(--text-color); }

/* Category Icon/Image Picker */
.cat-image-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cat-icon-preview { font-size: 2.5rem; color: var(--primary); display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: rgba(99,102,241,0.1); border-radius: 12px; }

/* Settings Page */
.settings-section { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.settings-section h3 { margin: 0 0 1.2rem 0; font-size: 1rem; color: var(--text-color); display: flex; align-items: center; gap: 0.5rem; }
.payment-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.8rem; }
.payment-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; padding: 1rem; display: flex; align-items: center; gap: 0.8rem; cursor: pointer; transition: var(--transition); }
.payment-card:has(input:checked) { border-color: var(--primary); background: rgba(99,102,241,0.05); }
.payment-card ion-icon { font-size: 1.8rem; color: var(--text-muted); }
.payment-card:has(input:checked) ion-icon { color: var(--primary); }
.payment-card label { cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.payment-card input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.toggle-switch-row { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--glass-border); }
.toggle-switch-row:last-child { border-bottom: none; }
.toggle-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.1); border-radius: 26px; transition: 0.3s; border: 1px solid var(--glass-border); }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: var(--text-muted); border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); background: white; }

@media (max-width: 768px) {
    .product-form-grid { grid-template-columns: 1fr; }
    .var-editor-row { grid-template-columns: 1fr 1fr; }
    .var-editor-row .form-control:last-of-type { grid-column: 1 / -1; }
}

/* ============================================
   PRODUCTS FRONTEND STYLES
   ============================================ */

/* Product List Page */
.product-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.product-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: rgba(255,255,255,0.03); }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-no-img { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); color: var(--text-muted); font-size: 3rem; }
.product-card-badge { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(99,102,241,0.85); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(8px); }
.product-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-card-category { font-size: 0.78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text-color); line-height: 1.4; text-decoration: none; transition: var(--transition); }
.product-card-name:hover { color: var(--primary); }
.product-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--glass-border); }
.product-card-price { font-size: 1.15rem; font-weight: 800; color: var(--text-color); }
.product-card-price small { font-size: 0.72rem; color: var(--text-muted); font-weight: normal; display: block; line-height: 1; }
.product-card-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--primary); font-weight: 600; text-decoration: none; transition: var(--transition); }
.product-card-link:hover { gap: 0.6rem; }
.product-stock-out { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.product-stock-out span { background: #ef4444; color: white; padding: 0.4rem 1rem; border-radius: 20px; font-weight: bold; font-size: 0.85rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* Product Detail Page */
.product-detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 0.8rem; }
.product-main-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 1px solid var(--glass-border); cursor: zoom-in; }
.product-main-img-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--text-muted); }
.product-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.product-thumb-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--glass-border); cursor: pointer; transition: var(--transition); }
.product-thumb-img.active, .product-thumb-img:hover { border-color: var(--primary); }
.product-detail-info { display: flex; flex-direction: column; gap: 1.2rem; }
.product-detail-category { font-size: 0.82rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.product-detail-name { font-size: 1.8rem; font-weight: 800; line-height: 1.2; color: var(--text-color); }
.product-detail-price-box { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; padding: 1rem 1.2rem; }
.product-detail-price { font-size: 2rem; font-weight: 900; color: var(--primary); }
.product-detail-price-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.product-detail-price-kdv { font-size: 0.85rem; color: var(--text-muted); }
.product-stock-info { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.product-stock-info.in-stock { color: #4ade80; }
.product-stock-info.low-stock { color: #fbbf24; }
.product-stock-info.out-stock { color: #f87171; }
.product-variations-box { display: flex; flex-direction: column; gap: 0.8rem; }
.product-var-row { display: flex; flex-direction: column; gap: 0.4rem; }
.product-var-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-var-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.product-var-chip { padding: 0.3rem 0.85rem; border-radius: 20px; border: 1px solid var(--glass-border); font-size: 0.85rem; cursor: pointer; transition: var(--transition); background: rgba(255,255,255,0.03); color: var(--text-color); }
.product-var-chip:hover { border-color: var(--primary); color: var(--primary); }
.product-var-chip.active { background: var(--primary); border-color: var(--primary); color: white; }
.product-detail-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-detail-tag { font-size: 0.82rem; padding: 0.2rem 0.7rem; border-radius: 20px; background: rgba(99,102,241,0.1); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.product-video-section { margin-top: 1.5rem; }
.product-video-section h3 { font-size: 1rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.product-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--glass-border); }
.product-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.product-desc-section { margin-top: 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; }
.product-desc-section h3 { margin: 0 0 1rem 0; font-size: 1rem; color: var(--text-color); display: flex; align-items: center; gap: 0.5rem; }

/* Lightbox */
.product-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
.product-lightbox.active { display: flex; }
.product-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.product-lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: white; font-size: 2rem; cursor: pointer; opacity: 0.7; transition: var(--transition); background: none; border: none; }
.product-lightbox-close:hover { opacity: 1; }

@media (max-width: 900px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-detail-name { font-size: 1.4rem; }
}

/* ============================================
   FORUM IMPROVEMENTS
   ============================================ */

/* Forum stats on main listing */
.front-forum-stats { display: flex; gap: 1.5rem; margin-top: 0.8rem; }
.front-forum-stat { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--text-muted); }
.front-forum-stat ion-icon { font-size: 1rem; }

/* Improved forum box right stats column */
.front-forum-box-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.3rem; flex-shrink: 0; min-width: 90px; text-align: right; }
.front-forum-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--text-color); line-height: 1; }
.front-forum-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.front-forum-last-msg { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--glass-border); font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.front-forum-last-msg a { color: var(--primary); text-decoration: none; font-weight: 600; }
.front-forum-last-msg a:hover { text-decoration: underline; }
.front-forum-cat-header-right { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1.5rem; }
.front-forum-cat-stat { display: flex; flex-direction: column; align-items: center; }
.front-forum-cat-stat span:first-child { font-weight: 700; color: var(--text-color); font-size: 0.95rem; }

/* Likesystem container without inline styles */
.forum-likesystem-wrap { border: none !important; margin-top: 1rem; padding: 0 !important; }

/* Favorites page helpers */
.fav-page-title { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.fav-page-title ion-icon { color: #ef4444; }
.fav-tab-badge { margin-left: 0.3rem; }
.fav-empty-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1rem; }
.fav-card-actions { display: flex; gap: 0.5rem; align-items: center; }
.product-card-badge-blog { background: rgba(99, 102, 241, 0.85); }
.container.pt-2 { padding-top: 2rem; }


/* Currency ticker sticky fix - stays fixed alongside header */
.currency-ticker { position: sticky; top: 0; z-index: 101; }

/* Cart quantity input */
.cart-qty-input { width: 70px; text-align: center; padding: 0.5rem; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: var(--text-color); font-size: 0.95rem; }

/* Forum global stats bar */
.forum-global-stats { display: flex; align-items: center; gap: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.forum-global-stat { display: flex; align-items: center; gap: 0.8rem; }
.forum-global-stat ion-icon { font-size: 1.8rem; color: var(--primary); background: rgba(99,102,241,0.1); padding: 0.5rem; border-radius: 10px; }
.forum-global-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--text-color); line-height: 1; }
.forum-global-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.forum-global-create-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; }
@media (max-width: 600px) {
    .forum-global-stats { gap: 1rem; }
    .forum-global-create-btn { margin-left: 0; width: 100%; justify-content: center; }
    .front-forum-box-right { display: none; }
}

/* ============================================
   CART PAGE STYLES
   ============================================ */
.cart-page-header h1 { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.cart-page-header ion-icon { color: var(--primary); }
.cart-empty-panel { text-align: center; padding: 4rem 2rem; }
.cart-empty-panel ion-icon { font-size: 5rem; color: var(--text-muted); display: block; margin: 0 auto; }
.cart-empty-panel h2 { margin: 1rem 0 0.5rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.cart-items-col { display: flex; flex-direction: column; gap: 1rem; }
.cart-item-row { display: flex; gap: 1rem; align-items: center; padding: 1rem; }
.cart-item-img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-border); flex-shrink: 0; }
.cart-item-img-ph { width: 90px; height: 90px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 1rem; color: var(--text-color); text-decoration: none; transition: var(--transition); }
.cart-item-name:hover { color: var(--primary); }
.cart-item-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cart-item-qty label { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-total { text-align: right; flex-shrink: 0; min-width: 90px; }
.cart-item-total-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.cart-item-remove { color: #f87171; font-size: 1.3rem; display: flex; align-items: center; flex-shrink: 0; text-decoration: none; transition: var(--transition); }
.cart-item-remove:hover { color: #ef4444; transform: scale(1.1); }
.cart-actions-row { margin-top: 1rem; display: flex; gap: 0.8rem; align-items: center; }
.cart-summary-sticky { position: sticky; top: 100px; }
.cart-summary-box { padding: 1.5rem; }
.cart-summary-box h3 { margin: 0 0 1.2rem; font-size: 1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.8rem; }
.cart-summary-rows { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.cart-summary-row { display: flex; justify-content: space-between; }
.cart-summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--glass-border); padding-top: 0.8rem; margin-top: 0.4rem; }
.cart-summary-total-amount { color: var(--primary); }
.cart-notice { margin-top: 1.2rem; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); border-radius: 10px; padding: 1rem; font-size: 0.85rem; color: #fbbf24; display: flex; gap: 0.5rem; align-items: flex-start; }
.cart-notice ion-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.cart-checkout-btn { width: 100%; margin-top: 1rem; }
.cart-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.checkout-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-methods-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.checkout-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }

@media (max-width: 900px) {
    .checkout-form-row { grid-template-columns: 1fr; }
    
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary-sticky { position: static; margin-top: 2rem; }
    
    .cart-item-row {
        flex-wrap: wrap;
        position: relative;
        padding-bottom: 1.5rem;
    }
    .cart-item-img, .cart-item-img-ph {
        width: 70px; height: 70px;
    }
    .cart-item-info {
        flex: 1;
        min-width: 150px;
        padding-right: 2rem; /* prevent overlap with absolute remove btn */
    }
    .cart-item-qty {
        width: 100%;
        margin-top: 0.5rem;
    }
    .cart-item-total {
        width: 100%;
        text-align: left;
    }
    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}




/* Profile Sidebar Styles */
.profile-layout-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.profile-content-area { display: flex; flex-direction: column; gap: 2rem; }
.profile-sidebar-menu { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; position: sticky; top: 100px; }
.profile-sidebar-menu a { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; color: var(--text-color); text-decoration: none; border-radius: 8px; transition: var(--transition); margin-bottom: 0.5rem; font-weight: 500; }
.profile-sidebar-menu a:hover, .profile-sidebar-menu a.active { background: rgba(99,102,241,0.1); color: var(--primary); }
.profile-sidebar-menu a:last-child { margin-bottom: 0; }

/* Profile Page Shared Headers */
.profile-page-title { font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; color: var(--text-color); }
.profile-page-title ion-icon { color: var(--primary); }
.profile-page-subtitle { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 900px) { 
    .profile-layout-grid { display: grid; grid-template-columns: 100%; gap: 1.5rem; width: 100%; }
    .profile-content-area { order: 2; width: 100%; max-width: 100%; }
    .profile-layout-grid > div:last-child { order: 1; width: 100%; max-width: 100%; }
    .profile-sidebar-menu { position: static; margin-bottom: 0; width: 100%; max-width: 100%; } 
    .order-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}



.auth-wrapper .glass-panel { max-width: 450px; width: 100%; }

.page-header-title {
    border-bottom: none !important;
    margin-bottom: 0.5rem !important;
}

/* Home Dashboard Styles */
.home-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.dashboard-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.dashboard-widget-header {
    background: rgba(0,0,0,0.02);
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.dashboard-widget-header > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dashboard-widget-header ion-icon {
    font-size: 1.4rem;
}
.dashboard-widget-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}
.dashboard-list-item:last-child {
    border-bottom: none;
}
.dashboard-list-item:hover {
    background: rgba(255,255,255,0.03);
    padding-left: 1.8rem;
}
.dashboard-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.dashboard-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
}
.dashboard-item-details h4 {
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}
.dashboard-item-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- SLIDER CSS --- */
.slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 5s ease-in-out;
    transform: scale(1.05);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

[data-theme="light"] .slide-overlay {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.4));
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    line-height: 1.2;
}

[data-theme="light"] .slide-title {
    color: var(--text-color);
    text-shadow: none;
}

.slide-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

[data-theme="light"] .slide-subtitle {
    color: var(--text-muted);
    text-shadow: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.6);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.2rem;
    }
    .slide-subtitle {
        font-size: 1rem;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .slider-btn.prev { left: 1rem; }
    .slider-btn.next { right: 1rem; }
}
