:root {
    --mac-bg: #07090e;
    --mac-surface: rgba(13, 17, 26, 0.78);
    --mac-surface-elevated: rgba(22, 28, 44, 0.88);
    --mac-surface-hover: rgba(30, 39, 61, 0.95);
    --mac-border: rgba(255, 255, 255, 0.1);
    --mac-border-highlight: rgba(255, 255, 255, 0.22);
    --mac-glow-blue: rgba(59, 130, 246, 0.35);
    --mac-glow-cyan: rgba(56, 189, 248, 0.25);
    --accent-blue: #3b82f6;
    --accent-cyan: #38bdf8;
    --accent-indigo: #6366f1;
    --status-green: #10b981;
    --status-amber: #f59e0b;
    --status-red: #ef4444;
    --status-purple: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--mac-bg);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* macOS Top Menubar */
.mac-menubar {
    height: 48px;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom: 1px solid var(--mac-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mac-menu-left, .mac-menu-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apple-logo-badge {
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
}

.apple-logo-badge svg {
    fill: currentColor;
}

.menu-item {
    font-size: 12.5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
    font-weight: 600;
}
.menu-item:hover {
    color: var(--text-main);
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mac-border);
    padding: 3px 10px 3px 4px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.user-profile-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.menu-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
}

/* App Container */
.app-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* Hero Header */
.hero-header {
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 22px;
    font-weight: 400;
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Segmented Tab Navigation */
.mac-tab-bar {
    display: flex;
    justify-content: center;
    margin: 18px 0 28px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.segmented-control {
    background: rgba(13, 17, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--mac-border);
    border-radius: 14px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* macOS Window Card Component */
.mac-window {
    background: var(--mac-surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--mac-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-window:hover {
    border-color: var(--mac-border-highlight);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.12) inset;
}

.mac-titlebar {
    height: 42px;
    background: rgba(20, 26, 40, 0.65);
    border-bottom: 1px solid var(--mac-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mac-traffic-lights {
    display: flex;
    gap: 7px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.3);
}

.light-close { background: #ff5f56; border: 1px solid #e0443e; }
.light-minimize { background: #ffbd2e; border: 1px solid #dea123; }
.light-maximize { background: #27c93f; border: 1px solid #1aab29; }

.mac-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mac-body {
    padding: 24px;
}

/* Button System */
.mac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    white-space: nowrap;
}

.mac-btn:active {
    transform: scale(0.97);
}

.mac-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mac-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.55);
}

.mac-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--mac-border);
}
.mac-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.mac-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.mac-btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.mac-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.mac-btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.mac-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Stat Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background: var(--mac-surface-elevated);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 6px 0 2px;
    font-family: var(--font-mono);
}

.stat-desc {
    font-size: 11.5px;
    color: var(--text-dim);
}

/* =========================================
   USER COLLABORATION & SOCIAL FEED (FACEBOOK STYLE)
   ========================================= */
.community-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* Left Sidebar: Profile Card */
.profile-sidebar-card {
    background: var(--mac-surface);
    border: 1px solid var(--mac-border);
    border-radius: 16px;
    overflow: hidden;
}

.profile-cover-banner {
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 50%, #9333ea 100%);
    position: relative;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border: 3px solid #0d111a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    position: absolute;
    bottom: -24px;
    left: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.profile-sidebar-body {
    padding: 32px 20px 20px;
}

.profile-user-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.profile-user-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    margin: 4px 0 10px;
}

.profile-user-bio {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.profile-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--mac-border);
    border-bottom: 1px solid var(--mac-border);
    text-align: center;
    margin-bottom: 16px;
}

.profile-stat-item h5 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
}

.profile-stat-item span {
    font-size: 11px;
    color: var(--text-dim);
}

/* Post Composer (Facebook Style) */
.post-composer-box {
    background: var(--mac-surface);
    border: 1px solid var(--mac-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.composer-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.composer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.composer-textarea {
    width: 100%;
    background: rgba(18, 24, 38, 0.8);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    min-height: 80px;
    resize: none;
    outline: none;
    transition: all 0.2s;
}

.composer-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.composer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.composer-options {
    display: flex;
    gap: 8px;
}

.composer-tag-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mac-border);
    color: var(--text-muted);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.composer-tag-btn:hover, .composer-tag-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Feed Posts */
.feed-post-card {
    background: var(--mac-surface);
    border: 1px solid var(--mac-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.feed-post-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.post-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.post-content {
    font-size: 14px;
    color: #f1f5f9;
    line-height: 1.6;
    margin-bottom: 14px;
    white-space: pre-wrap;
}

/* Achievement Highlight Banner inside Post */
.post-achievement-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.15);
}

.achievement-trophy-icon {
    font-size: 32px;
}

.achievement-text-info h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: #fef3c7;
    margin-bottom: 2px;
}

.achievement-text-info p {
    font-size: 12px;
    color: #fed7aa;
}

/* Post Actions (Like, Comment, Share) */
.post-actions-bar {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.action-btn.liked {
    color: #f43f5e;
}

/* Comments Section */
.post-comments-container {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-bubble {
    background: rgba(22, 28, 44, 0.9);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 12.5px;
    flex-grow: 1;
}

.comment-bubble strong {
    color: #fff;
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.comment-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-input {
    flex-grow: 1;
    background: rgba(18, 24, 38, 0.8);
    border: 1px solid var(--mac-border);
    border-radius: 20px;
    padding: 6px 14px;
    color: #fff;
    font-size: 12px;
    outline: none;
}

/* Right Sidebar: Collaborators & Friends */
.collaborators-card {
    background: var(--mac-surface);
    border: 1px solid var(--mac-border);
    border-radius: 16px;
    padding: 20px;
}

.collaborators-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-item:last-child {
    border-bottom: none;
}

.friend-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.status-dot-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--status-green);
    border: 2px solid #0d111a;
}

.friend-name-col h5 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.friend-name-col span {
    font-size: 11px;
    color: var(--text-dim);
}

/* =========================================
   REAL SIGN-IN PORTAL (GOOGLE, APPLE, FACEBOOK)
   ========================================= */
.auth-providers-deck {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.social-login-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--mac-border);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-login-btn:active {
    transform: scale(0.98);
}

.btn-google {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}
.btn-google:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-apple {
    background: #000000;
    color: #ffffff;
    border-color: #374151;
}
.btn-apple:hover {
    background: #111827;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-facebook {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}
.btn-facebook:hover {
    background: #166fe5;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.btn-totp {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: var(--mac-border);
}
.btn-totp:hover {
    background: rgba(255, 255, 255, 0.15);
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    margin: 14px 0;
}
.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.or-divider span {
    padding: 0 12px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 10, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.mac-modal {
    background: rgba(14, 18, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.15) inset;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content-body {
    padding: 24px;
}

.mac-input-group {
    margin-bottom: 16px;
}

.mac-input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.mac-text-input {
    width: 100%;
    background: rgba(22, 28, 44, 0.9);
    border: 1px solid var(--mac-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.mac-text-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Toast */
.mac-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 21, 33, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    padding: 12px 18px;
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Governance & Table Styles */
.queue-item {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.queue-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-cyan);
}

.queue-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.queue-details p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.queue-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.tag-badge {
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.tag-badge.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--status-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-badge.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.matrix-table th {
    background: rgba(18, 24, 38, 0.9);
    padding: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--mac-border);
}

.matrix-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.matrix-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.terminal-window {
    background: #080a10;
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    font-family: var(--font-mono);
    color: #e2e8f0;
    padding: 16px;
    min-height: 280px;
    max-height: 420px;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.6;
}

.term-line {
    margin-bottom: 4px;
    word-break: break-all;
}

.term-prefix {
    color: var(--accent-cyan);
    font-weight: 700;
}

.term-success {
    color: var(--status-green);
}

.term-warn {
    color: var(--status-amber);
}

.term-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.term-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13px;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .community-layout {
        grid-template-columns: 1fr;
    }
    .profile-sidebar-card, .collaborators-card {
        margin-bottom: 20px;
    }
}

/* ==============================================
   AI WEBSITE BUILDER & BLUEPRINT GENERATOR
   ============================================== */
.builder-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
    min-height: 640px;
    height: calc(100vh - 270px);
}

@media (max-width: 1080px) {
    .builder-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.builder-chat-panel, .builder-blueprint-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-pulse-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: aiPulseGlow 2s infinite ease-in-out;
}

@keyframes aiPulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.97); }
}

.ai-chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    background: rgba(10, 13, 20, 0.4);
}

.ai-bubble {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInBubble 0.22s ease-out;
}

@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-bubble-bot {
    align-self: flex-start;
    max-width: 92%;
}

.ai-bubble-user {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 88%;
}

.ai-bot-avatar, .ai-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ai-bot-avatar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(99, 102, 241, 0.45));
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

.ai-user-avatar {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(56, 189, 248, 0.35));
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.ai-bubble-text {
    background: var(--mac-surface-elevated);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ai-bubble-user .ai-bubble-text {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.38);
}

.ai-bubble-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 12px;
}

.ai-typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.ai-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: bounceDot 1.4s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
    40% { transform: scale(1.1); opacity: 1; }
}

.ai-suggest-chips {
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-top: 1px solid var(--mac-border);
    align-items: center;
    background: rgba(13, 17, 26, 0.6);
}

.suggest-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--mac-border);
    color: var(--text-muted);
    border-radius: 14px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}

.suggest-chip:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-input-area {
    padding: 14px 16px;
    border-top: 1px solid var(--mac-border);
    background: rgba(10, 13, 20, 0.88);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-textarea {
    width: 100%;
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid var(--mac-border);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.ai-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(22, 28, 44, 0.95);
}

.ai-input-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-input-hints {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ai-hint-tag {
    font-size: 10.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-hint-tag:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.blueprint-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(10, 13, 20, 0.4);
}

.blueprint-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.blueprint-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.3));
}

.blueprint-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.blueprint-empty-state p {
    max-width: 440px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blueprint-preview-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 480px;
}

/* Blueprint Result Cards */
.bp-card {
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--mac-border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: fadeInBubble 0.25s ease-out;
}

.bp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-section-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .bp-grid-2 {
        grid-template-columns: 1fr;
    }
}

.bp-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-feature-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.5;
}

.bp-feature-icon {
    color: var(--status-green);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.bp-tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bp-tech-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.bp-code-block {
    background: #080a10;
    border: 1px solid var(--mac-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #38bdf8;
    overflow-x: auto;
    line-height: 1.6;
}

/* ==============================================
   AVATAR IMAGES, POST ATTACHMENTS & LIGHTBOX
   ============================================== */
.profile-avatar-large {
    cursor: pointer;
    overflow: hidden;
    position: absolute;
    bottom: -24px;
    left: 20px;
}

.profile-avatar-large img,
.user-avatar-mini img,
.composer-avatar img,
.friend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.profile-avatar-large:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-quick-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mac-border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.avatar-quick-chip:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Post Media Attachments */
.post-media-container {
    margin: 12px 0 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mac-border);
    max-height: 440px;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-media-container:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.004);
}

.post-image-attachment {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

/* Lightbox Modal */
.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-container img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.lightbox-close-btn {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* ==============================================
   LIVE DEVICE SIMULATOR STYLES
   ============================================== */
.simulator-modal {
    background: #0d111a;
    border: 1px solid var(--mac-border);
    border-radius: 16px;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.simulator-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
}

.sim-url-bar {
    background: #1a1a1a;
    padding: 6px 12px;
    font-size: 11px;
    color: #888;
    border-bottom: 1px solid #333;
    font-family: var(--font-mono);
}

.sim-frame-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    transition: all 0.3s ease;
}

#sim-iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: width 0.3s ease;
}


/* ==============================================
   TRI-ENGINE POLYGLOT (SWIFT + TS + JS) STYLES
   ============================================== */
.polyglot-pills {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lang-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pill-swift {
    background: rgba(240, 81, 56, 0.15);
    border: 1px solid rgba(240, 81, 56, 0.45);
    color: #ff7a65;
}

.pill-ts {
    background: rgba(49, 120, 198, 0.15);
    border: 1px solid rgba(49, 120, 198, 0.45);
    color: #60a5fa;
}

.pill-js {
    background: rgba(247, 223, 30, 0.12);
    border: 1px solid rgba(247, 223, 30, 0.4);
    color: #fde047;
}

.spec-lang-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.spec-lang-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mac-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.spec-lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.spec-lang-btn.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.polyglot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.polyglot-stat-card {
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--mac-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.polyglot-stat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.polyglot-stat-val {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.polyglot-stat-desc {
    font-size: 11px;
    color: var(--text-dim);
}

/* ==============================================
   MOBILE PHONE VIEW & RESPONSIVE POLISH (SMOOTH & SAKTO)
   ============================================== */
@media (max-width: 768px) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    /* Menubar */
    .mac-menubar {
        padding: 0 12px;
        height: 46px;
    }
    .mac-menu-left .menu-item {
        display: none !important;
    }
    .spotlight-hint {
        display: none !important;
    }
    .header-signin-btn .header-btn-text {
        display: none;
    }
    .header-signin-btn {
        padding: 5px 8px;
    }
    .user-profile-pill {
        padding: 2px 8px 2px 4px;
    }
    .menu-badge {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

    /* App Container */
    .app-container {
        padding: 10px 10px 60px;
    }

    /* Hero Header */
    .hero-header {
        padding: 14px 4px 10px;
    }
    .hero-pill {
        font-size: 10px;
        padding: 3px 10px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 8px;
    }
    .polyglot-pills {
        gap: 4px;
        margin-bottom: 10px;
    }
    .lang-pill {
        font-size: 9.5px;
        padding: 2px 7px;
    }
    .hero-title {
        font-size: clamp(21px, 6.5vw, 28px);
        line-height: 1.25;
        margin-bottom: 8px;
        letter-spacing: -0.01em;
    }
    .hero-subtitle {
        font-size: 12.5px;
        line-height: 1.5;
        margin: 0 auto 14px;
        padding: 0 4px;
    }
    .hero-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .hero-action-buttons .mac-btn {
        width: 100%;
        justify-content: center;
        font-size: 11px;
        padding: 9px 6px;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    /* Tab Navigation - Smooth iOS Momentum Scroll */
    .mac-tab-bar {
        margin: 10px 0 16px;
        padding: 2px 2px 6px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mac-tab-bar::-webkit-scrollbar {
        display: none;
    }
    .segmented-control {
        width: max-content;
        display: flex;
        gap: 4px;
        padding: 3px;
        border-radius: 12px;
    }
    .tab-btn {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 8px;
    }

    /* Community & Profile Layout */
    .community-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .profile-sidebar-card {
        margin-bottom: 0;
        border-radius: 14px;
    }
    .profile-cover-banner {
        height: 60px;
    }
    .profile-avatar-large {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: -18px;
        left: 14px;
    }
    .profile-sidebar-body {
        padding: 22px 14px 14px;
    }
    .profile-user-name {
        font-size: 15.5px;
    }
    .profile-stats-row {
        padding: 6px 0;
        margin-bottom: 6px;
    }

    /* Feed Composer */
    .post-composer-box {
        padding: 12px 10px;
        border-radius: 14px;
        margin-bottom: 14px;
    }
    .composer-top {
        gap: 10px;
    }
    .composer-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .composer-textarea {
        font-size: 12.5px;
        padding: 8px 10px;
        min-height: 60px;
    }
    .composer-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
    }
    .composer-options {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        width: 100%;
        scrollbar-width: none;
        gap: 6px;
    }
    .composer-options::-webkit-scrollbar {
        display: none;
    }
    .composer-tag-btn {
        font-size: 10.5px;
        padding: 5px 9px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .composer-bottom .mac-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 9px;
    }

    /* Feed Posts */
    .feed-post-card {
        padding: 12px 10px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .post-author-name {
        font-size: 13px;
    }
    .post-content {
        font-size: 12.5px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    .post-actions-bar {
        justify-content: space-between;
        gap: 2px;
        padding-top: 8px;
    }
    .action-btn {
        font-size: 10.5px;
        padding: 4px 6px;
        gap: 3px;
    }
    .post-comments-container {
        margin-top: 8px;
        padding-top: 8px;
    }
    .comment-bubble {
        padding: 6px 8px;
        font-size: 11.5px;
    }

    /* AI Website Builder */
    .builder-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: unset;
        height: auto;
    }
    .builder-chat-panel {
        height: 440px;
        max-height: 55vh;
    }
    .ai-chat-window {
        padding: 10px;
        gap: 8px;
    }
    .ai-bubble-bot, .ai-bubble-user {
        max-width: 98%;
    }
    .ai-bubble-text {
        padding: 8px 10px;
        font-size: 12px;
    }
    .ai-suggest-chips {
        padding: 6px 8px;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .ai-suggest-chips::-webkit-scrollbar {
        display: none;
    }
    .suggest-chip {
        font-size: 10px;
        padding: 3px 7px;
    }
    .ai-input-area {
        padding: 8px 10px;
        gap: 6px;
    }
    .ai-textarea {
        font-size: 12px;
        padding: 6px 8px;
    }
    .ai-input-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .ai-input-hints {
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
        gap: 4px;
    }
    .ai-input-hints::-webkit-scrollbar {
        display: none;
    }
    .ai-hint-tag {
        font-size: 9.5px;
        padding: 2px 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ai-input-controls button {
        width: 100%;
        justify-content: center;
    }

    /* Blueprint Output */
    .builder-blueprint-panel {
        height: auto;
        min-height: 360px;
    }
    .blueprint-content {
        padding: 10px;
    }
    .bp-card {
        padding: 12px 10px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    .bp-title {
        font-size: 15px;
    }
    .bp-grid-2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .bp-code-block {
        font-size: 10.5px;
        padding: 8px;
    }

    /* Modals */
    .mac-modal {
        width: 95vw;
        max-width: 400px;
        padding: 0;
        margin: 10px auto;
        border-radius: 14px;
    }
    .modal-content-body {
        padding: 12px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .social-login-btn {
        font-size: 11.5px;
        padding: 9px 10px;
    }
    .lightbox-container img {
        max-width: 95vw;
        max-height: 80vh;
    }
}



