/* IDGForum Global & Forum CSS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

/* Layout Containers */
.app-navbar {
    background-color: rgba(15, 20, 28, 0.75);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.brand-logo {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.4));
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--text-main);
}

.nav-admin-link {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User profile header widget */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.points-badge {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-logout {
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-logout:hover {
    color: var(--error);
}

/* Nav Icons */
.nav-icon-link {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.03);
}
.nav-icon-link:hover {
    color: var(--text-main);
    background-color: rgba(255,255,255,0.08);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    padding: 0.5rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1050;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-main);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.dropdown-menu a i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: var(--border-highlight);
}

.dropdown-menu a.text-error {
    color: var(--error);
}

.dropdown-menu a.text-error i {
    color: var(--error);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Notifications Dropdown specific styles */
#notifications-dropdown-menu a {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}
#notifications-dropdown-menu a:last-child {
    border-bottom: none;
}
#notifications-dropdown-menu a.unread {
    background-color: rgba(139, 92, 246, 0.1);
}
#notifications-dropdown-menu .notif-icon {
    margin-right: 0.75rem;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}
#notifications-dropdown-menu .notif-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
#notifications-dropdown-menu .notif-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.3;
}
#notifications-dropdown-menu .notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.pulse-anim {
    animation: pulse-badge 1s;
}
@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); box-shadow: 0 0 10px var(--error); }
    100% { transform: scale(1); }
}

/* Main Layout Area */
.main-layout {
    flex-grow: 1;
    padding: 2.5rem 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Chat Live Global Window */
#idg-global-chat {
    position: fixed;
    bottom: 0;
    right: 2rem;
    width: 340px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
}
#idg-chat-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    padding: 0.8rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    border-top: 2px solid var(--primary);
}
#idg-chat-header .chat-title {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#idg-chat-header .chat-controls button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
#idg-chat-header .chat-controls button:hover {
    color: var(--text-main);
}
#idg-chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}
#idg-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-loading, .chat-empty, .chat-error {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    margin-bottom: auto;
}
.chat-error { color: var(--error); }
.chat-msg {
    display: flex;
    gap: 0.75rem;
    animation: slideDown 0.2s ease-out;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-msg-content {
    background-color: rgba(0,0,0,0.2);
    padding: 0.6rem 0.85rem;
    border-radius: 0 12px 12px 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.03);
}
.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.chat-username {
    font-weight: 600;
    font-size: 0.8rem;
}
.chat-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.chat-badge.role-super_admin { background-color: var(--error); box-shadow: 0 0 5px var(--error); }
.chat-badge.role-admin { background-color: #a78bfa; box-shadow: 0 0 5px #a78bfa; }
.chat-badge.role-moderator { background-color: var(--success); box-shadow: 0 0 5px var(--success); }
.chat-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: auto;
}
.chat-text {
    line-height: 1.4;
    word-break: break-word;
}
.chat-input-area {
    padding: 0.85rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.3);
    display: flex;
    gap: 0.5rem;
}
#idg-chat-input {
    flex-grow: 1;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}
#idg-chat-input:focus {
    border-color: var(--primary);
    background-color: rgba(255,255,255,0.08);
}
#idg-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
#idg-chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary);
}

.layout-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-footer {
    background-color: #05070a;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.powered-by {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Cards & Containers */
.category-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.category-box:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.category-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
}

.category-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.category-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.boards-list {
    display: flex;
    flex-direction: column;
}

.board-row {
    display: grid;
    grid-template-columns: auto 1fr 120px 250px;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.board-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.board-row:last-child {
    border-bottom: none;
}

.board-row:hover {
    background-color: var(--card-bg-hover);
}

.board-row:hover::before {
    transform: scaleY(1);
}

.board-row:hover .board-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary);
}

.board-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1.5rem;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.board-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.board-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.board-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.board-stats {
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.board-stats .num {
    font-weight: 600;
    color: var(--text-main);
}

.board-stats .label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.board-lastpost {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lastpost-title {
    font-weight: 600;
    color: var(--accent);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.lastpost-user {
    color: var(--text-main);
}

.lastpost-time {
    font-size: 0.75rem;
}

/* Topics Table and Rows */
.topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.topics-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.topics-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.topics-list {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.topic-row {
    display: grid;
    grid-template-columns: auto 1fr 100px 100px 220px;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
}

.topic-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.topic-row:hover {
    background-color: var(--card-bg-hover);
}

.topic-row:hover::before {
    transform: scaleY(1);
}

.topic-row:hover .topic-title {
    color: var(--primary);
}

.topic-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-right: 1rem;
}

.topic-icon.sticky {
    color: var(--warning);
}

.topic-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.topic-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.topic-author {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Post display (topic.php) */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.post-box:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.post-sidebar {
    width: 200px;
    background-color: rgba(5, 7, 10, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.post-content-area {
    flex-grow: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-actions {
    display: flex;
    gap: 1rem;
}

.post-actions a {
    color: var(--text-muted);
    font-weight: 500;
}

.post-actions a:hover {
    color: var(--accent);
}

/* Avatar layout with Frames */
.avatar-container {
    position: relative;
    border-radius: 50%;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-container.large-avatar {
    width: 96px;
    height: 96px;
}

.avatar-container.small-avatar {
    width: 32px;
    height: 32px;
}

/* VIP Avatar Frames styles */
.avatar-container.frame-frame-neon::before,
.avatar-container.frame-neon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary), inset 0 0 5px var(--primary);
    animation: neon-pulse 2s infinite alternate;
    pointer-events: none;
}

.avatar-container.frame-frame-hellfire::before,
.avatar-container.frame-hellfire::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.6);
    animation: rotate-fire 3s linear infinite;
    pointer-events: none;
}

/* Rame VIP stil Counter-Strike */
.avatar-container.frame-frame-vip-elite::before,
.avatar-container.frame-vip-elite::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 3px dashed #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    animation: neon-pulse-green 1.5s infinite alternate;
    pointer-events: none;
}

.avatar-container.frame-frame-vip-titan::before,
.avatar-container.frame-vip-titan::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 3px solid #06b6d4;
    box-shadow: 0 0 15px #06b6d4, inset 0 0 6px #06b6d4;
    animation: rotate-titan 4s linear infinite;
    pointer-events: none;
}

.avatar-container.frame-frame-vip-legend::before,
.avatar-container.frame-vip-legend::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
    animation: rotate-fire 2s linear infinite;
    pointer-events: none;
}

@keyframes neon-pulse {
    from { box-shadow: 0 0 6px var(--primary), inset 0 0 3px var(--primary); border-color: var(--primary); }
    to { box-shadow: 0 0 14px var(--accent), inset 0 0 7px var(--accent); border-color: var(--accent); }
}

@keyframes neon-pulse-green {
    from { box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); border-color: #10b981; }
    to { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); border-color: #34d399; }
}

@keyframes rotate-fire {
    100% { transform: rotate(360deg); }
}

@keyframes rotate-titan {
    0% { border-color: #06b6d4; box-shadow: 0 0 10px #06b6d4; }
    50% { border-color: #3b82f6; box-shadow: 0 0 18px #3b82f6; }
    100% { border-color: #06b6d4; box-shadow: 0 0 10px #06b6d4; }
}

/* VIP Name Style Customizations */
.user-name {
    font-weight: 700;
}

/* 1. BLACK MIRROR */
.user-name.style-style-black-mirror,
.user-name.style-black-mirror {
    color: #ffffff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 4px 8px rgba(0,0,0,0.9);
    font-weight: 800;
}

/* 2. GLITCH */
.user-name.style-style-cyber-glitch,
.user-name.style-cyber-glitch,
.user-name.style-style-glitch,
.user-name.style-glitch {
    color: var(--text-main);
    text-shadow: 2px 0 0 #f43f5e, -2px 0 0 #06b6d4;
    animation: text-glitch 1.5s infinite;
}

/* 3. POLITIKA */
.user-name.style-style-politika,
.user-name.style-politika {
    color: #84cc16;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. VIP Gold */
.user-name.style-style-gold-glow,
.user-name.style-gold-glow,
.user-name.style-style-vip-gold,
.user-name.style-vip-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    font-weight: 800;
}

/* 5. COOL */
.user-name.style-style-cool,
.user-name.style-cool {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    font-weight: 800;
}

/* 6. CITY LIGHTS */
.user-name.style-style-city-lights,
.user-name.style-city-lights {
    background: linear-gradient(135deg, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
    font-weight: 800;
}

/* 7. Typewrit */
.user-name.style-style-typewrit,
.user-name.style-typewrit {
    color: #22c55e;
    font-family: monospace;
    font-weight: 500;
    border-right: 2px solid #22c55e;
    animation: blink-caret 0.75s step-end infinite;
}

/* 8. Horizontal Shift */
.user-name.style-style-horizontal-shift,
.user-name.style-horizontal-shift {
    display: inline-block;
    color: #f1f5f9;
    animation: h-shift 3s ease-in-out infinite alternate;
}

/* 9. Oscillumbrance */
.user-name.style-style-oscillumbrance,
.user-name.style-oscillumbrance {
    color: #e2e8f0;
    animation: osc-glow 2s infinite ease-in-out;
}

/* 10. Blazing */
.user-name.style-style-blazing,
.user-name.style-blazing {
    color: #ff5722;
    text-shadow: 0 0 4px #ff5722, 0 -4px 10px #ff9800, 0 -10px 20px #ff5722;
    animation: blaze-burn 1.2s infinite alternate;
    font-weight: 800;
}

@keyframes text-glitch {
    0% { text-shadow: 2px 0 0 #f43f5e, -2px 0 0 #06b6d4; }
    50% { text-shadow: -2px 0 0 #f43f5e, 2px 0 0 #06b6d4; }
    100% { text-shadow: 2px 0 0 #f43f5e, -2px 0 0 #06b6d4; }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #22c55e; }
}

@keyframes h-shift {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

@keyframes osc-glow {
    0%, 100% { text-shadow: 0 0 4px rgba(255,255,255,0.2); }
    50% { text-shadow: 0 0 12px var(--primary); color: #fff; }
}

@keyframes blaze-burn {
    from { text-shadow: 0 0 4px #ff5722, 0 -4px 6px #ff9800, 0 -8px 12px #ff5722; }
    to { text-shadow: 0 0 6px #ff5722, 0 -2px 8px #ffeb3b, 0 -12px 20px #ff5722; }
}

/* User Badges */
.badge-vip-tag {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.role-badge.role-super_admin {
    background-color: rgba(244, 63, 94, 0.15);
    color: var(--error);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.role-badge.role-admin {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.role-badge.role-moderator {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Popover UserHover Card */
.user-hover-card {
    position: absolute;
    width: 250px;
    background-color: rgba(15, 20, 28, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

.user-hover-card .hover-banner {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    margin-bottom: -30px;
}

.user-hover-card .avatar-container {
    border: 3px solid rgba(15, 20, 28, 0.95);
}

/* Alert styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #ecfdf5;
}

.alert-error {
    background-color: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.2);
    color: #ffe4e6;
}

.global-alert {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Quote and Code blocks inside posts */
.quote-box {
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    padding: 0.8rem 1.2rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.code-block {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: monospace;
    color: var(--accent);
}

/* UI Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #4f46e5);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

/* Forms */
.form-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    max-width: 500px;
    width: 100%;
    margin: 3rem auto;
}

.form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea, .form-group select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.06);
}

.form-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
/* Emergent Navbar Redesign - Integrated with IDG Classes */
.app-navbar-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    z-index: 100;
}

.vip-top-bar {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffb703;
    color: #000;
    padding: 2px 15px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    z-index: 200;
}

.vip-top-bar a {
    color: #000;
    text-decoration: none;
}

.app-navbar.with-slants {
    position: relative;
    background: #111;
    border-bottom: 1px solid #222;
    padding: 0;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-left-bg,
.nav-right-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #18181b;
    z-index: 0;
}

.nav-left-bg {
    left: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
    border-right: 1px solid #27272a;
}

.nav-right-bg {
    right: 0;
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
    border-left: 1px solid #27272a;
}

.app-navbar.with-slants .nav-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.app-navbar.with-slants .nav-menu {
    justify-content: flex-end;
    padding-right: 2rem;
    margin: 0;
}

.app-navbar.with-slants .nav-auth {
    justify-content: flex-start;
    padding-left: 2rem;
    margin: 0;
}

.nav-center-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 70px;
    z-index: 5;
}

.nav-center-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 160px;
    height: 100%;
    background: #27272a;
    transform: translateX(-50%) skewX(-20deg);
    z-index: -1;
    border-left: 1px solid #3f3f46;
    border-right: 1px solid #3f3f46;
}

.brand-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-circle:hover {
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    transform: scale(1.05);
}
/* VIP Pricing Cards */
.vip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.vip-card a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
/* --- TOPFRAG VIP PAGE STYLES --- */
.tf-vip-page {
    color: #fff;
    font-family: 'Rajdhani', 'Teko', sans-serif;
}

/* VIP TEAM CAROUSEL */
.tf-vip-team-section {
    background: #0f0f11;
    border: 1px solid #222;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    position: relative;
}
.tf-vip-header h3 {
    color: #ff6b00;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
}
.tf-vip-header p {
    color: #888;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}
.tf-vip-list-text {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ff6b00;
    font-weight: 700;
    font-size: 0.85rem;
}
.tf-vip-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 2rem 0 1rem;
}
.tf-vip-member {
    text-align: center;
    min-width: 90px;
}
.tf-vip-avatar {
    width: 70px;
    height: 70px;
    border: 2px solid;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255,255,255,0.1) inset;
}
.tf-vip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tf-vip-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.tf-vip-role {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    color: #000;
}
.tf-role-elite { background: #00ffff; }
.tf-role-veteran { background: #ff6b00; }
.tf-role-founder { background: #ffea00; }

.tf-vip-progress-bar {
    height: 2px;
    background: #ff6b00;
    width: 30%;
    margin-top: 1rem;
}

/* SUBSCRIPTIONS */
.tf-vip-subscriptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.tf-sub-card {
    background: #111;
    border: 1px solid #333;
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
}
.tf-sub-card.active {
    border-color: var(--plan-color);
}
.tf-sub-card h4 {
    color: var(--plan-color);
    font-weight: 800;
    margin: 0 0 10px;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.tf-sub-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.tf-sub-price span {
    font-size: 0.8rem;
    color: #888;
}
.tf-sub-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    color: #bbb;
}
.tf-sub-perks li { margin-bottom: 5px; }
.tf-sub-perks i { color: var(--plan-color); margin-right: 5px; }
.tf-btn-outline {
    display: block;
    border: 1px solid var(--plan-color);
    color: var(--plan-color);
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
}
.tf-btn-solid {
    display: block;
    background: var(--plan-color);
    color: #000;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* CONTROL PANEL */
.tf-control-panel-wrapper {
    background: #17171a;
    border: 1px solid #2a2a30;
    border-radius: 8px;
    overflow: hidden;
}
.tf-cp-header {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: #121214;
    border-bottom: 1px solid #2a2a30;
}
.tf-cp-sup {
    color: #ff6b00;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.tf-cp-title-area h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 5px 0;
}
.tf-cp-title-area p {
    color: #777;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0;
}
.tf-cp-live-identity {
    text-align: left;
    border-left: 2px solid #ff6b00;
    padding-left: 1rem;
    min-width: 200px;
}
.tf-li-label {
    color: #ff6b00;
    font-size: 0.75rem;
    font-weight: bold;
}
.tf-li-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-top: 5px;
}

.tf-cp-tabs {
    display: flex;
    border-bottom: 1px solid #2a2a30;
    background: #121214;
}
.tf-tab {
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.tf-tab:hover { color: #fff; }
.tf-tab.active {
    color: #ff6b00;
    border-bottom-color: #ff6b00;
}

.tf-cp-body {
    display: flex;
    padding: 2rem;
    gap: 3rem;
}
.tf-cp-options {
    flex: 1;
}
.tf-section-title {
    color: #ff6b00;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: 1px;
}
.tf-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 2rem;
}
.tf-option-box {
    border: 1px solid #2a2a30;
    background: #111;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}
.tf-option-box:hover {
    border-color: #555;
}
.tf-option-box.selected {
    border-color: #ff6b00;
    background: rgba(255,107,0,0.05);
}
.tf-option-box.locked {
    opacity: 0.5;
}
.tf-option-box input[type="radio"] {
    display: none;
}
.tf-buy-btn {
    color: #ff6b00;
}

.tf-btn-reset {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}
.tf-btn-reset:hover {
    color: #fff;
    border-color: #888;
}

.tf-cp-preview {
    width: 350px;
}
.tf-mini-profile-card {
    background: #111;
    border: 1px solid #2a2a30;
    border-radius: 8px;
    overflow: hidden;
}
.tf-mp-top {
    display: flex;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    gap: 1.5rem;
}
.tf-diamond-avatar {
    width: 60px;
    height: 60px;
    background: #222;
    transform: rotate(45deg);
    border: 2px solid #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,255,255,0.5);
}
.tf-diamond-avatar img, .tf-diamond-avatar i {
    transform: rotate(-45deg);
}
.tf-diamond-avatar img { width: 140%; height: 140%; object-fit: cover; }
.tf-mp-info { flex: 1; }
.tf-mp-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}
.tf-mp-roles {
    margin: 5px 0;
    display: flex;
    gap: 5px;
}
.tf-role-badge {
    background: #333;
    color: #fff;
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}
.tf-role-badge.tf-founder {
    background: #ffea00;
    color: #000;
}
.tf-mp-stats-text {
    font-size: 0.7rem;
    color: #777;
    line-height: 1.4;
}
.tf-mp-bottom-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #161618;
    border-top: 1px solid #2a2a30;
    padding: 10px 5px;
    text-align: center;
}
.tf-stat-box {
    display: flex;
    flex-direction: column;
}
.tf-stat-val {
    font-weight: bold;
    font-size: 0.9rem;
}
.tf-stat-lbl {
    font-size: 0.6rem;
    color: #ff6b00;
    font-weight: 800;
}

.tf-cp-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #2a2a30;
    background: #121214;
}
.tf-btn-save {
    background: linear-gradient(135deg, #ff6b00 0%, #00ffff 100%);
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    transform: skewX(-15deg);
    transition: all 0.3s;
}
.tf-btn-save:hover {
    transform: skewX(-15deg) scale(1.05);
    box-shadow: 0 0 20px rgba(0,255,255,0.4);
}
  .avatarWrapper {
    position: relative;
    width: 104px;
    height: 104px;
  }
  .avatarWrapper.large {
    width: 60px;
    height: 60px;
  }
  .avatarWrapper .avatar,
  .avatarWrapper .avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
  }
  .frameOverlay {
    position: absolute;
    width: 100%;
    height: 121%;
    object-fit: cover;
    pointer-events: none;
    top: -17px;
    left: -1px;
    overflow: unset;
  }
  .userBanner {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 4px;
    background: #f59e0b;
    color: #130d04;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    width: fit-content;
  }
  .userBanner--orange { background: #f59e0b; color: #130d04; }
  .userBanner--red { background: #ef4444; color: #fff; }
  .userBanner--green { background: #22c55e; color: #041207; }
  .userBanner--royalBlue { background: #2563eb; color: #fff; }
  
  .userBanner--triColorPulseAnimated {
    color: #061014;
    background: linear-gradient(90deg, #00eaff, #ffe05c, #2dff91);
    background-size: 220% 100%;
    animation: vipBannerMove 3s linear infinite;
  }

  .userBanner--ForumsvipGold { background: linear-gradient(45deg, #efbf04, #ff6a00); color: #000; }
  .userBanner--vipLuxury { background: linear-gradient(45deg, #efbf04, #ff8c00); color: #000; }
  .userBanner--vipPurple { background: linear-gradient(45deg, #7b2cff, #c04cff); color: #fff; }
  .userBanner--vipBlue { background: linear-gradient(45deg, #00b7ff, #002aff); color: #fff; }
  .userBanner--vipRed { background: linear-gradient(45deg, #ff3b3b, #b30000); color: #fff; }
  
  .userBanner--premiumvip {
    background: linear-gradient(270deg, #efbf04, #ff6a00, #ff00aa, #00d4ff);
    background-size: 600% 600%;
    color: #000;
    animation: vipGradient 6s ease infinite;
  }
  .userBanner--vipCosmicBeam {
    color: #fff;
    background: linear-gradient(115deg, #180028, #3b0a6d, #1450a3, #7b2cff, #180028);
    background-size: 300% 300%;
    box-shadow: 0 0 10px rgba(115, 0, 255, 0.28);
    animation: tfVipCosmicBeamSafe 6s ease infinite;
  }
  .userBanner--vipGlitchwave {
    color: #fff;
    background: linear-gradient(90deg, #0b0b18, #32004d, #002a6d, #0b0b18),
      repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 3px);
    background-size: 250% 100%, 100% 100%;
    box-shadow: 0 0 10px rgba(80, 0, 200, 0.22);
    animation: tfVipGlitchwaveSafe 5s linear infinite;
  }

  /* Animations */
  @keyframes vipBannerMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
  @keyframes vipGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
  @keyframes tfVipCosmicBeamSafe { 0% { background-position: 0% 50%; filter: brightness(1); } 50% { background-position: 100% 50%; filter: brightness(1.08); } 100% { background-position: 0% 50%; filter: brightness(1); } }
  @keyframes tfVipGlitchwaveSafe { 0% { background-position: 0% 50%, 0 0; } 100% { background-position: 100% 50%, 0 0; } }
