:root, [data-theme="light"] {
    --macodex-bg: #ffffff;
    --macodex-sidebar-bg: #f8f9fa;
    --macodex-text: #1a1a1a;
    --macodex-text-secondary: #555555;
    --macodex-accent: #0088ff;
    --macodex-border: #e0e0e0;
    --macodex-card-bg: #ffffff;
    --macodex-sidebar-width: 250px;
    --macodex-right-panel-width: 300px;
}

[data-theme="dark"] {
    --macodex-bg: #0a192f;
    --macodex-sidebar-bg: #112240;
    --macodex-text: #ccd6f6;
    --macodex-text-secondary: #8892b0;
    --macodex-accent: #00d2ff;
    --macodex-border: #233554;
    --macodex-card-bg: #112240;
}

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

body { font-family: 'Inter', sans-serif; overflow-x: hidden; }

#macodex-app { background: var(--macodex-bg); color: var(--macodex-text); min-height: 100vh; width: 100%; }

.macodex-react-dashboard {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOP BAR */
.macodex-top-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 65px;
    background: var(--macodex-sidebar-bg);
    border-bottom: 1px solid var(--macodex-border);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; z-index: 1100;
}

.macodex-top-left { display: flex; align-items: center; gap: 15px; }
.macodex-top-right { display: flex; align-items: center; gap: 15px; }

.macodex-user-pill { 
    display: flex; align-items: center; gap: 10px; cursor: pointer; 
    padding: 5px 15px; border-left: 1px solid var(--macodex-border);
    transition: background 0.2s; border-radius: 8px;
}
.macodex-user-pill:hover { background: rgba(255,255,255,0.03); }

.macodex-avatar {
    width: 35px; height: 35px; border-radius: 50%;
    background: var(--macodex-accent); color: #0a192f;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* LAYOUT CONTAINER */
.macodex-dashboard-container {
    display: flex; flex: 1; padding-top: 65px; padding-bottom: 35px;
    width: 100%; height: 100vh;
}

/* SIDEBARS SHARED */
.macodex-sidebar, .macodex-right-panel {
    background: var(--macodex-sidebar-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; overflow-x: hidden;
    height: calc(100vh - 100px);
}

/* SIDEBAR (LEFT) */
.macodex-sidebar {
    width: var(--macodex-sidebar-width);
    border-right: 1px solid var(--macodex-border);
}
.macodex-sidebar.collapsed { width: 0; opacity: 0; pointer-events: none; border-right: 0; }

/* RIGHT PANEL */
.macodex-right-panel {
    width: var(--macodex-right-panel-width);
    border-left: 1px solid var(--macodex-border);
    padding: 20px;
}
.macodex-right-panel.collapsed { width: 0; padding: 0; opacity: 0; pointer-events: none; border-left: 0; }

.macodex-close-panel { background: none; border: 0; color: var(--macodex-text); font-size: 1.5rem; cursor: pointer; padding: 5px; line-height: 1; }

/* MAIN CONTENT */
.macodex-main-content { 
    flex: 1; padding: 30px; min-width: 0; 
    overflow-y: auto; height: calc(100vh - 100px);
}

/* NAV ITEMS */
.macodex-nav-item {
    padding: 12px 15px; margin: 4px 10px; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem; transition: all 0.2s;
    color: var(--macodex-text);
}

.macodex-nav-item:hover { background: rgba(0,210,255,0.08); transform: translateX(5px); }
.macodex-nav-item.active { 
    background: linear-gradient(135deg, var(--macodex-accent) 0%, #3a7bd5 100%); 
    color: white; font-weight: bold; 
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.2);
}

.macodex-nav-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s; }
.macodex-nav-item:hover .macodex-nav-icon { transform: scale(1.1); }
.macodex-nav-item.active .macodex-nav-icon { stroke: white; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }

/* CARDS & UI */
.macodex-card {
    background: var(--macodex-card-bg); border: 1px solid var(--macodex-border);
    border-radius: 16px; padding: 20px; margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.macodex-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.macodex-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 20px; }
.macodex-stat-card { 
    background: rgba(255,255,255,0.02); padding: 25px 20px; border-radius: 20px; 
    text-align: center; border: 1px solid var(--macodex-border);
    position: relative; overflow: hidden;
}
.macodex-stat-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--macodex-accent); opacity: 0.5;
}
.macodex-stat-value { font-size: 2rem; font-weight: 900; color: var(--macodex-accent); display: block; margin-bottom: 5px; }
.macodex-stat-label { font-size: 0.75rem; color: var(--macodex-text-secondary); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }

/* MARQUEE */
.macodex-bottom-banner {
    position: fixed; bottom: 0; left: 0; right: 0; height: 35px;
    background: var(--macodex-sidebar-bg); border-top: 1px solid var(--macodex-border);
    display: flex; align-items: center; z-index: 1100;
}
.macodex-banner-label {
    background: var(--macodex-accent); color: #0a192f; padding: 0 15px;
    height: 100%; display: flex; align-items: center; font-weight: 900; font-size: 0.7rem;
    letter-spacing: 1px;
}
.macodex-banner-track { flex: 1; overflow: hidden; }
.macodex-banner-content {
    display: flex; white-space: nowrap; animation: macodex-marquee 60s linear infinite;
}
.macodex-banner-content span { padding-right: 150px; font-size: 0.85rem; font-weight: 600; color: var(--macodex-text); opacity: 0.8; }

@keyframes macodex-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--macodex-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--macodex-accent); }

/* MOBILE RESPONSIVENESS */
@media (max-width: 1100px) {
    .macodex-sidebar {
        position: fixed; left: 0; top: 65px; bottom: 35px; z-index: 1050; width: 260px;
        box-shadow: 15px 0 30px rgba(0,0,0,0.3);
    }
    .macodex-sidebar.collapsed { transform: translateX(-100%); width: 260px; }
    
    .macodex-right-panel {
        position: fixed; right: 0; top: 65px; bottom: 35px; z-index: 1050; width: 300px;
        box-shadow: -15px 0 30px rgba(0,0,0,0.3);
    }
    .macodex-right-panel.collapsed { transform: translateX(100%); width: 300px; }
}

@media (max-width: 768px) {
    .macodex-stats-grid { grid-template-columns: 1fr 1fr; }
    .macodex-main-content { padding: 20px; }
}

/* AUTH LANDING STYLES */
.macodex-auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
    padding: 40px 20px;
}

.macodex-auth-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: var(--macodex-card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--macodex-border);
}

.macodex-auth-info {
    flex: 1.2;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.macodex-auth-form-side {
    flex: 1;
    padding: 60px;
    background: var(--macodex-card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.auth-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.auth-feature-text h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.auth-feature-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .macodex-auth-container { flex-direction: column; margin-top: 50px; }
    .macodex-auth-info { padding: 40px; }
    .macodex-auth-form-side { padding: 40px; }
}

/* INPUT ENHANCEMENTS */
.macodex-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--macodex-border);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--macodex-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.macodex-input:focus {
    outline: none;
    border-color: var(--macodex-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.1);
}

.macodex-input-group:focus-within label {
    color: var(--macodex-accent);
}

.macodex-input-group:focus-within span {
    color: var(--macodex-accent);
    opacity: 1 !important;
}

/* AUTH BUTTON */
.macodex-auth-form-side .macodex-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 136, 255, 0.4);
}

.macodex-auth-form-side .macodex-payment-btn:active {
    transform: translateY(0);
}

/* GLOBAL BUTTONS - ICE BLUE THEME (BUZ MAVİSİ) */
.macodex-payment-btn {
    background-color: #AFDBF5;
    color: #041e42;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.macodex-payment-btn:hover {
    background-color: #90e0ef;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(175, 219, 245, 0.4);
}

.macodex-payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.macodex-btn-outline {
    background-color: transparent;
    color: #AFDBF5;
    border: 2px solid #AFDBF5;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.macodex-btn-outline:hover {
    background-color: rgba(175, 219, 245, 0.1);
    border-color: #90e0ef;
    color: #90e0ef;
}

/* ==================== NEW FEATURES CSS ==================== */

/* Comments Section */
.macodex-comments-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--macodex-card-bg);
    border-radius: 8px;
    border: 1px solid var(--macodex-border);
}

.macodex-comments-section h3 {
    margin-bottom: 15px;
    color: var(--macodex-text);
}

.new-comment-form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-comment-form textarea {
    padding: 10px;
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    background: var(--macodex-bg);
    color: var(--macodex-text);
    font-family: inherit;
    resize: vertical;
}

.new-comment-form button {
    padding: 10px 20px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.new-comment-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.macodex-comment {
    padding: 15px;
    margin-bottom: 15px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
}

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

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

.comment-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comment-date {
    font-size: 12px;
    color: var(--macodex-text-secondary);
}

.comment-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.like-btn, .reply-btn {
    background: none;
    border: none;
    color: var(--macodex-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.like-btn:hover, .reply-btn:hover {
    color: var(--macodex-accent);
}

.reply-form {
    margin-top: 15px;
    padding: 10px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
}

.reply-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--macodex-border);
    border-radius: 4px;
    background: var(--macodex-card-bg);
    color: var(--macodex-text);
    margin-bottom: 10px;
}

.reply-form button {
    padding: 6px 12px;
    margin-right: 5px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.reply-form button:last-child {
    background: var(--macodex-text-secondary);
}

/* Reviews Section */
.macodex-reviews-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--macodex-card-bg);
    border-radius: 8px;
    border: 1px solid var(--macodex-border);
}

.reviews-header {
    margin-bottom: 20px;
}

.rating-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 15px;
}

.average-rating {
    text-align: center;
}

.average-rating h2 {
    font-size: 36px;
    margin: 10px 0;
}

.star-rating {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 10px 0;
}

.star {
    background: none;
    border: none;
    color: var(--macodex-text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.star.filled {
    color: #ffc107;
}

.star:hover {
    color: #ffc107;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distribution-row {
    display: grid;
    grid-template-columns: 30px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.distribution-row .bar {
    background: var(--macodex-border);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.distribution-row .fill {
    background: #ffc107;
    height: 100%;
    transition: width 0.3s;
}

.write-review-btn {
    padding: 10px 20px;
    margin-bottom: 15px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.review-form {
    padding: 20px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--macodex-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    background: var(--macodex-card-bg);
    color: var(--macodex-text);
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 10px 20px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.sort-controls {
    margin-bottom: 20px;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    background: var(--macodex-card-bg);
    color: var(--macodex-text);
    cursor: pointer;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card {
    padding: 15px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
}

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

.reviewer-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reviewer-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card h4 {
    margin: 10px 0;
    color: var(--macodex-text);
}

.review-card p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.helpful-btn {
    background: none;
    border: none;
    color: var(--macodex-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-size: 14px;
}

.helpful-btn:hover {
    color: var(--macodex-accent);
}

/* Social Actions */
.macodex-social-actions {
    margin: 15px 0;
}

.actions-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: 1px solid var(--macodex-border);
    background: var(--macodex-card-bg);
    color: var(--macodex-text);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--macodex-accent);
    color: var(--macodex-accent);
}

.action-btn.following,
.action-btn.favorited {
    background: var(--macodex-accent);
    color: white;
    border-color: var(--macodex-accent);
}

.action-btn .count {
    font-size: 12px;
    opacity: 0.8;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--macodex-card-bg);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-content h4 {
    margin-bottom: 20px;
    color: var(--macodex-text);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.primary-btn {
    padding: 10px 20px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn {
    padding: 10px 20px;
    background: var(--macodex-border);
    color: var(--macodex-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Merchant Profile */
.macodex-merchant-profile-manager {
    padding: 20px;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--macodex-border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--macodex-text-secondary);
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--macodex-accent);
    border-bottom-color: var(--macodex-accent);
}

.tab-btn:hover {
    color: var(--macodex-accent);
}

.profile-form {
    background: var(--macodex-card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--macodex-border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    margin: 15px 0;
    color: #4CAF50;
    font-weight: 600;
}

.save-btn {
    padding: 10px 30px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
}

.add-btn {
    padding: 8px 16px;
    background: var(--macodex-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-grid, .certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.portfolio-item, .certification-card {
    padding: 15px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
}

.portfolio-item h4, .certification-card h4 {
    margin-bottom: 10px;
    color: var(--macodex-text);
}

.portfolio-item p, .certification-card p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.active-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

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

.stat-card {
    padding: 20px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--macodex-accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--macodex-text-secondary);
    font-weight: 600;
}

.verification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Activity Feed */
.macodex-activity-feed {
    background: var(--macodex-card-bg);
    border-radius: 8px;
    border: 1px solid var(--macodex-border);
    padding: 20px;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--macodex-border);
    margin-bottom: 20px;
}

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

.feed-header h3 {
    margin: 0;
    color: var(--macodex-text);
}

.entity-type {
    font-size: 13px;
    color: var(--macodex-text-secondary);
    margin: 0;
}

.feed-info {
    padding: 10px 15px;
    background: rgba(0, 136, 255, 0.1);
    border-left: 3px solid var(--macodex-accent);
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--macodex-text-secondary);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    transition: all 0.2s;
}

.activity-item:hover {
    border-color: var(--macodex-accent);
    background: rgba(0, 136, 255, 0.02);
}

.activity-avatar {
    flex-shrink: 0;
}

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.actor-name {
    color: var(--macodex-text);
}

.activity-label {
    color: var(--macodex-text-secondary);
    font-size: 14px;
}

.entity-link {
    color: var(--macodex-accent);
    font-weight: 600;
    cursor: pointer;
}

.entity-link:hover {
    text-decoration: underline;
}

.activity-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0;
    color: var(--macodex-text);
}

.activity-thumbnail {
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    max-width: 300px;
}

.activity-thumbnail img {
    width: 100%;
    height: auto;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--macodex-text-secondary);
    margin-top: 10px;
}

.engagement-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 136, 255, 0.1);
    border-radius: 6px;
    color: var(--macodex-accent);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--macodex-text-secondary);
}

.empty-state svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--macodex-border);
    background: var(--macodex-card-bg);
    color: var(--macodex-text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--macodex-accent);
    color: var(--macodex-accent);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--macodex-accent);
    color: white;
    border-color: var(--macodex-accent);
}

.page-info {
    display: flex;
    gap: 5px;
}

/* Trending Activities */
.macodex-trending-activities {
    background: var(--macodex-card-bg);
    border-radius: 8px;
    border: 1px solid var(--macodex-border);
    padding: 20px;
}

.period-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.period-selector button {
    padding: 6px 12px;
    border: 1px solid var(--macodex-border);
    background: var(--macodex-bg);
    color: var(--macodex-text);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.period-selector button.active {
    background: var(--macodex-accent);
    color: white;
    border-color: var(--macodex-accent);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    transition: all 0.2s;
}

.trending-item:hover {
    border-color: var(--macodex-accent);
}

.rank-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--macodex-accent);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
}

.trending-content h4 {
    margin: 0 0 5px 0;
    color: var(--macodex-text);
}

.trending-content .activity-label {
    font-size: 13px;
    margin-bottom: 8px;
}

.engagement-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--macodex-text-secondary);
}

.trending-item .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Follows List */
.macodex-follows-list {
    background: var(--macodex-card-bg);
    border-radius: 8px;
    border: 1px solid var(--macodex-border);
    padding: 20px;
}

.follows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.follow-card {
    text-align: center;
    padding: 15px;
    background: var(--macodex-bg);
    border: 1px solid var(--macodex-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-card:hover {
    border-color: var(--macodex-accent);
    transform: translateY(-2px);
}

.follow-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.follow-card h4 {
    margin: 10px 0 5px;
    color: var(--macodex-text);
    font-size: 14px;
}

.follow-card p {
    font-size: 12px;
    color: var(--macodex-text-secondary);
    margin: 0;
}

/**
 * Macodex Landing Page Styles
 * Optimized for professional appearance and accessibility
 */

.macodex-landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--macodex-text, #333);
    background: var(--macodex-bg, #f5f5f5);
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--macodex-accent, #0088ff) 0%, rgba(0, 136, 255, 0.1) 100%);
    min-height: 600px;
}

@media (max-width: 768px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
        min-height: auto;
    }
}

.landing-hero-content h1,
.landing-hero-content h2 {
    margin: 0;
}

.landing-hero-logo {
    text-align: center;
    margin-bottom: 30px;
}

.landing-hero-logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 136, 255, 0.2));
}

.landing-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .landing-hero-title {
        font-size: 32px;
    }
}

.landing-hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 20px 0;
    line-height: 1.3;
}

.landing-hero-subtitle strong {
    display: block;
    margin-top: 10px;
    font-weight: 700;
}

.landing-hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0;
    line-height: 1.8;
}

.landing-hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.landing-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0.9;
}

.hero-illustration svg {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--macodex-accent, #0088ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3);
}

.btn-primary:hover {
    background: #0070cc;
    box-shadow: 0 6px 20px rgba(0, 136, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--macodex-accent, #0088ff);
    border: 2px solid var(--macodex-accent, #0088ff);
}

.btn-secondary:hover {
    background: var(--macodex-accent, #0088ff);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ===== VALUE PROPOSITIONS ===== */
.landing-value-props {
    padding: 80px 40px;
    background: white;
    text-align: center;
}

.landing-value-props h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 60px 0;
    color: var(--macodex-text, #333);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-prop {
    background: var(--macodex-card-bg, #f9f9f9);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.value-prop:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 136, 255, 0.15);
}

.value-prop-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.value-prop h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--macodex-text, #333);
}

.value-prop p {
    font-size: 16px;
    color: var(--macodex-text-secondary, #666);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.landing-how-it-works {
    padding: 80px 40px;
    background: linear-gradient(to bottom, transparent, var(--macodex-accent, #0088ff) 0%);
    background-color: var(--macodex-bg, #f5f5f5);
}

.landing-how-it-works h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 60px 0;
    text-align: center;
    color: var(--macodex-text, #333);
}

.how-it-works-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.how-step {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--macodex-accent, #0088ff);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.how-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--macodex-text, #333);
}

.how-step p {
    font-size: 14px;
    color: var(--macodex-text-secondary, #666);
    line-height: 1.6;
}

.how-step-arrow {
    font-size: 32px;
    color: var(--macodex-accent, #0088ff);
    font-weight: 700;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .how-it-works-container {
        flex-direction: column;
    }
    
    .how-step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* ===== USER TYPES ===== */
.landing-user-types {
    padding: 80px 40px;
    background: white;
}

.landing-user-types h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 60px 0;
    text-align: center;
    color: var(--macodex-text, #333);
}

.user-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.user-type-card {
    background: var(--macodex-card-bg, #f9f9f9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-type-card:hover {
    border-color: var(--macodex-accent, #0088ff);
    box-shadow: 0 8px 30px rgba(0, 136, 255, 0.15);
    transform: translateY(-4px);
}

.user-type-icon {
    text-align: center;
    margin-bottom: 25px;
    color: var(--macodex-accent, #0088ff);
}

.user-type-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--macodex-text, #333);
    text-align: center;
}

.user-type-role {
    font-size: 14px;
    color: var(--macodex-text-secondary, #666);
    text-align: center;
    font-style: italic;
    margin: 10px 0 25px 0;
}

.user-type-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.user-type-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--macodex-text, #333);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-type-features li:last-child {
    border-bottom: none;
}

/* ===== FEATURES ===== */
.landing-features {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--macodex-accent, #0088ff) 0%, rgba(0, 136, 255, 0.1) 100%);
}

.landing-features h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 60px 0;
    text-align: center;
    color: #fff;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--macodex-text, #333);
}

.feature-item p {
    font-size: 14px;
    color: var(--macodex-text-secondary, #666);
    margin: 0;
    line-height: 1.6;
}

/* ===== PRICING ===== */
.landing-pricing {
    padding: 80px 40px;
    background: white;
}

.landing-pricing h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 60px 0;
    text-align: center;
    color: var(--macodex-text, #333);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.pricing-card {
    background: var(--macodex-card-bg, #f9f9f9);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover:not(.pricing-card-featured) {
    transform: translateY(-4px);
    border-color: var(--macodex-accent, #0088ff);
}

.pricing-card-featured {
    border: 2px solid var(--macodex-accent, #0088ff);
    box-shadow: 0 12px 40px rgba(0, 136, 255, 0.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pricing-card-featured {
        transform: scale(1);
    }
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--macodex-accent, #0088ff);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--macodex-text, #333);
}

.pricing-price {
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.pricing-price .currency {
    font-size: 18px;
    font-weight: 700;
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--macodex-accent, #0088ff);
    margin: 0 4px;
}

.pricing-price .period {
    font-size: 14px;
    color: var(--macodex-text-secondary, #666);
    margin-left: 4px;
}

.pricing-description {
    font-size: 14px;
    color: var(--macodex-text-secondary, #666);
    text-align: center;
    margin: 10px 0 25px 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--macodex-text, #333);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    text-align: center;
    font-size: 16px;
    color: var(--macodex-text-secondary, #666);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.05) 0%, rgba(0, 136, 255, 0.02) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--macodex-accent, #0088ff);
    line-height: 1.8;
}

.pricing-note strong {
    color: var(--macodex-text, #333);
    font-weight: 700;
}

/* ===== CTA SECTION ===== */
.landing-cta {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--macodex-accent, #0088ff) 0%, rgba(0, 136, 255, 0.9) 100%);
    text-align: center;
    color: white;
}

.landing-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.landing-cta p {
    font-size: 18px;
    margin: 0 0 40px 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.landing-footer {
    padding: 40px;
    background: var(--macodex-text, #333);
    color: white;
    text-align: center;
}

.landing-footer p {
    font-size: 14px;
    margin: 0 0 20px 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .landing-hero,
    .landing-value-props,
    .landing-how-it-works,
    .landing-user-types,
    .landing-features,
    .landing-pricing,
    .landing-cta {
        padding: 60px 30px;
    }

    .landing-hero-title {
        font-size: 36px;
    }

    .landing-hero-subtitle {
        font-size: 20px;
    }

    .landing-value-props h2,
    .landing-how-it-works h2,
    .landing-user-types h2,
    .landing-features h2,
    .landing-pricing h2,
    .landing-cta h2 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .landing-hero,
    .landing-value-props,
    .landing-how-it-works,
    .landing-user-types,
    .landing-features,
    .landing-pricing,
    .landing-cta {
        padding: 40px 20px;
    }

    .landing-hero-title {
        font-size: 28px;
    }

    .landing-hero-subtitle {
        font-size: 18px;
    }

    .landing-hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .landing-value-props h2,
    .landing-how-it-works h2,
    .landing-user-types h2,
    .landing-features h2,
    .landing-pricing h2,
    .landing-cta h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .hero-illustration {
        gap: 20px;
    }

    .hero-illustration svg {
        max-width: 80px;
    }

    .pricing-card-featured {
        transform: scale(1);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .macodex-landing-page {
        --macodex-text: #e0e0e0;
        --macodex-text-secondary: #b0b0b0;
        --macodex-card-bg: #2a2a2a;
        --macodex-bg: #1a1a1a;
    }
}
