/* ==========================================================================
   PAIN • SHINOBI PORTFOLIO & SOCIAL PLATFORM — iOS GLASSMORPHISM CSS
   ========================================================================== */

:root {
    --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
    
    /* iOS Frosted Glass Palette */
    --glass-bg: rgba(22, 24, 34, 0.48);
    --glass-bg-hover: rgba(255, 255, 255, 0.16);
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-border-subtle: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 1px 1.5px rgba(255, 255, 255, 0.18) inset;
    --glass-blur: blur(28px) saturate(190%);
    
    /* Input Styling */
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-bg-focus: rgba(255, 255, 255, 0.15);
    --input-border: rgba(255, 255, 255, 0.18);
    --input-border-focus: rgba(255, 255, 255, 0.6);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.48);
    
    /* Accents */
    --accent-purple: #a855f7;
    --like-red: #ff3b30;
    --success-green: #30d158;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CUSTOM TRANSLUCENT iOS SCROLLBAR (Fixes ugly white browser scrollbar)
   ========================================================================== */
html, body, * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-stack);
    background-color: #07080b;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ==========================================================================
   AUTHENTIC PAIN BACKGROUND & AMBIENT
   ========================================================================== */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/pain-tendo.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.85) contrast(1.05);
}

.bg-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(12, 14, 20, 0.25) 0%, rgba(5, 6, 10, 0.8) 95%);
}

.rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASSES (iOS Liquid Glass)
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.glass-specular-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.glass-interactive {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-interactive:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1.5px);
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-navbar {
    position: fixed;
    top: 16px;
    left: 20px;
    right: 20px;
    max-width: 1240px;
    margin: 0 auto;
    height: 66px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 18px;
    border-radius: 24px;
    background: rgba(18, 20, 28, 0.6);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Back Button on the Left (Ortga qaytish) */
.btn-back-ios {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-back-ios:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateX(-2px);
}

.btn-back-ios:active {
    transform: scale(0.96);
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rinnegan-mini-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 20%, #a855f7 35%, #000 45%, #a855f7 60%, #000 70%, #9333ea 85%);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tab-badge {
    background: #38bdf8;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

/* TOP-RIGHT ACCOUNT PILL & DIRECT LOGOUT */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Direct Logout Button */
.btn-direct-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 69, 58, 0.14);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: #ff8585;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-direct-logout:hover {
    background: rgba(255, 69, 58, 0.3);
    border-color: rgba(255, 69, 58, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 69, 58, 0.3);
}

.btn-direct-logout:active {
    transform: scale(0.96);
}

.btn-login-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    user-select: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    position: relative;
}

.avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.status-indicator-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success-green);
    border: 2px solid #14161e;
    box-shadow: 0 0 6px var(--success-green);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.user-role-badge {
    font-size: 11px;
    color: #d8b4fe;
    font-weight: 600;
}

.chevron-icon {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.account-pill.open .chevron-icon {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(28, 30, 42, 0.9);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 110;
    animation: popIn 0.2s ease;
}

.account-dropdown.show {
    display: flex;
}

.dropdown-header {
    padding: 8px 10px;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.dropdown-user-email {
    font-size: 11.5px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 4px 0;
}

.dropdown-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dropdown-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ff6b6b;
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.25);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.dropdown-logout-btn:hover {
    background: rgba(255, 69, 58, 0.25);
    color: #fff;
}

/* ==========================================================================
   VIEW 1: FRONT-AND-CENTER iPHONE FROSTED LOGIN VIEW
   ========================================================================== */
.login-hero-viewport {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    animation: fadeInScale 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 38px 34px;
    border-radius: 34px;
    background: rgba(20, 22, 32, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.7), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.ios-logo-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.card-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-panel-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-guide-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.input-box {
    display: flex;
    align-items: center;
    position: relative;
    height: 50px;
    padding: 0 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transition: all 0.25s ease;
}

.input-box:focus-within {
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.input-icon {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 12px;
    flex-shrink: 0;
}

.input-box input, .input-box select {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
}

.input-box select option {
    background: #181a24;
    color: #fff;
}

.password-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0;
}

.ios-switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ios-switch-input { display: none; }

.ios-switch-slider {
    width: 38px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ios-switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.ios-switch-input:checked + .ios-switch-slider {
    background: var(--success-green);
    border-color: var(--success-green);
}

.ios-switch-input:checked + .ios-switch-slider::after {
    transform: translateX(16px);
}

.switch-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 10px;
}

.error-banner {
    padding: 11px 14px;
    background: rgba(255, 69, 58, 0.2);
    border: 1px solid rgba(255, 69, 58, 0.45);
    border-radius: 14px;
    color: #ff9f9f;
    font-size: 13px;
    font-weight: 500;
}

/* Crisp tactile buttons */
.actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.btn-primary-ios {
    position: relative;
    width: 100%;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-primary-ios:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-1.5px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-primary-ios:active {
    transform: scale(0.98);
}

.btn-secondary-ios {
    width: 100%;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary-ios:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary-ios:active { transform: scale(0.98); }

.btn-google-action {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google-action:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1.5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   VIEW 2: PORTFOLIO & DASHBOARD VIEW
   ========================================================================== */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 1240px;
    margin: 100px auto 40px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Studio Hero Banner */
.studio-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 36px;
    border-radius: 30px;
    background: rgba(18, 20, 28, 0.52);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-left {
    max-width: 650px;
}

.hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #d8b4fe;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-stats-row {
    display: flex;
    gap: 12px;
}

.stat-pill {
    padding: 16px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 95px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* POSTS GRID (Square/Squircle Frosted Glass Cards) */
.posts-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.post-card {
    border-radius: 28px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(20, 22, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Square / Squircle Image Container */
.post-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-image-container:hover .post-img {
    transform: scale(1.04);
}

.post-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(20, 22, 30, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-title {
    font-size: 17.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.post-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.post-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag-badge {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
}

.post-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-chip img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.post-time {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Social Actions Bar */
.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: scale(1.02);
}

.btn-social.liked {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
    color: #ff453a;
}
.btn-social.liked svg { fill: #ff453a; }

.btn-social.disliked {
    background: rgba(142, 142, 147, 0.25);
    border-color: rgba(142, 142, 147, 0.5);
    color: #fff;
}
.btn-social.disliked svg { fill: #fff; }

.btn-delete-post {
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.25);
    color: #ff6b6b;
    padding: 7px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-post:hover {
    background: rgba(255, 69, 58, 0.3);
    color: #fff;
}

/* Comments Section */
.comments-accordion {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.comment-bubble {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}

.comment-role-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    font-weight: 700;
}

.comment-timestamp {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
    word-break: break-word;
}

.btn-delete-comment {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 12px;
    margin-left: 6px;
}
.btn-delete-comment:hover { color: #ff453a; }

.comment-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.comment-input-box {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.comment-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
}

.btn-send-comment {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.btn-send-comment:hover { transform: scale(1.05); }

/* ==========================================================================
   ADMIN SESSIONS DASHBOARD
   ========================================================================== */
.sessions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-radius: 24px;
    background: rgba(18, 20, 28, 0.52);
}

.section-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.section-subtitle { font-size: 13.5px; color: var(--text-secondary); }

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 22px 24px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(22, 24, 34, 0.45);
}

.stat-card-title { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.stat-card-val { font-size: 28px; font-weight: 800; color: #fff; }
.text-green { color: #30d158 !important; }

.sessions-table-card {
    padding: 20px;
    border-radius: 26px;
    background: rgba(20, 22, 32, 0.5);
}

.table-responsive { overflow-x: auto; }

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sessions-table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sessions-table td {
    padding: 14px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.session-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-user-cell img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.session-user-name { font-weight: 700; color: #fff; }
.session-user-email { font-size: 11px; color: var(--text-muted); }

.badge-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(48, 209, 88, 0.18);
    border: 1px solid rgba(48, 209, 88, 0.4);
    color: #30d158;
}

.badge-offline {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.btn-kick-session {
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 69, 58, 0.15);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: #ff6b6b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-kick-session:hover { background: rgba(255, 69, 58, 0.3); color: #fff; }

/* ==========================================================================
   UPLOAD MODAL & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(5, 6, 10, 0.65);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 34px 30px;
    border-radius: 32px;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease;
}
.upload-dropzone:hover { border-color: rgba(255, 255, 255, 0.6); }
.file-input-hidden { display: none; }

.upload-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    color: #fff;
}

.dropzone-text { font-size: 14px; color: #fff; margin-bottom: 4px; }
.dropzone-hint { font-size: 12px; color: var(--text-muted); }

.image-preview-wrapper {
    position: relative;
    max-height: 220px;
    border-radius: 14px;
    overflow: hidden;
}
.image-preview-wrapper img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.btn-remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    cursor: pointer;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.glass-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    resize: vertical;
}
.glass-textarea:focus { border-color: var(--input-border-focus); }

/* Lightbox Modal */
.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption { text-align: center; }
.lightbox-caption h3 { font-size: 18px; color: #fff; }
.lightbox-caption p { font-size: 13.5px; color: var(--text-secondary); }

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-card {
    padding: 48px 24px;
    text-align: center;
    border-radius: 28px;
}

.empty-icon { font-size: 44px; margin-bottom: 12px; }

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.hide { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 768px) {
    .top-navbar {
        top: 10px;
        left: 10px;
        right: 10px;
        height: 60px;
        padding: 0 12px;
    }
    .brand-sub, .user-info-text { display: none; }
    .studio-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 20px;
    }
    .hero-title { font-size: 24px; }
    .posts-grid-container { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
}
