* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: #0a0a0b;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* SVG Icon Styles */
.svg-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0; /* Changed from height: 100vh */
    width: 320px;
    background: rgba(15, 15, 16, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 24px 24px 60px; /* Increased bottom padding */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    
    /* Add safe area for iOS */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
}


.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6600, #FF8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #000;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #000;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 102, 0, 0.15);
    color: #FF6600;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.badge {
    background: #FF6600;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: auto;
}

/* Tool list for sidebar */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tool-item  { 
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.tool-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tool-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Collapsible category */
.tool-category-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tool-category-title:hover {
    color: #ffffff;
}

.category-toggle {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.tool-category.collapsed .category-toggle {
    transform: rotate(-90deg);
}

.tool-category.collapsed .tools-list {
    max-height: 0;
}

/* Locked Activity */
.activity-item.locked {
    opacity: 0.6;
    position: relative;
    cursor: pointer;
}

.activity-item.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    border-radius: 12px;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6600;
}

.upgrade-section {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 133, 51, 0.05));
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.upgrade-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upgrade-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.upgrade-btn {
    background: #FF6600;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.upgrade-btn:hover {
    background: #FF8533;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    margin-left: 320px;
    min-height: 100vh;
    background: #0a0a0b;
    display: flex;
    flex-direction: column;
}

.site-footer {
    text-align: center;
    padding: 24px 32px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    font-style: italic;
}

.header {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.header-tabs {
    display: flex;
    gap: 24px;
}

.header-tab {
    padding: 8px 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-tab:hover, .header-tab.active {
    color: #FF6600;
    border-bottom-color: #FF6600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    width: 400px;
}

.search-box:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Content Area */
.content {
    padding: 32px;
}

/* Resources Grid */
.resources-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
}

@media (max-width: 768px) {
    .view-toggle {
        display: none !important;
    }
}

.toggle-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.toggle-btn.active {
    background: #FF6600;
    color: #000;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.resources-grid.list-view {
    grid-template-columns: 1fr;
}

.resource-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 102, 0, 0.1);
}

.resource-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #1a1a1b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-image.no-image {
    background: linear-gradient(135deg, #FF6600, #FF8533, #ffaa66);
}

.resource-image.no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 102, 0, 0.1) 0%, 
        rgba(255, 133, 51, 0.2) 50%, 
        rgba(255, 170, 102, 0.1) 100%);
    opacity: 0.8;
}

.resource-type {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #FF6600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    z-index: 2;
}

.resource-content {
    padding: 24px;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.resource-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.5;
}

.resource-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.download-btn {
    background: rgba(255, 102, 0, 0.1);
    color: #FF6600;
    border: 1px solid rgba(255, 102, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.5);
    transform: translateY(-1px);
}

/* Recent Activity */
.activity-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px;
    position: relative;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6600;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.activity-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.activity-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

        @media (max-width: 1024px) {
    .site-footer {
        padding: 20px;
    }
}

/* Locked Elements */
.locked-element {
    position: relative;
    cursor: pointer;
}

.locked-element::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.activity-section.locked {
    filter: blur(6px);
}

.activity-section .lock-overlay {
    display: none;
}

.activity-section.locked .lock-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: pointer;
    border-radius: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 22, 0.95);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 102, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    background: #FF6600;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #FF8533;
    transform: translateY(-2px);
}

.success-message {
    text-align: center;
    padding: 24px;
    display: none;
}

.success-icon {
    font-size: 3rem;
    color: #4BB543;
    margin-bottom: 16px;
}

.success-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        padding-bottom: 60px;
    }


    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        display: none;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .header {
        padding: 16px 20px;
    }

    .search-box {
        width: 200px;
    }

    .content {
        padding: 20px;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .modal-content {
        width: 90%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .header-tabs {
        display: none;
    }

    .search-box {
        width: 150px;
    }

    .resources-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {
    .resources-grid:not(.list-view) {
        grid-template-columns: 1fr;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.form-note {
    font-size: 0.8rem;
    font-style: italic;
    color: gray;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}