/*
FILE: app/static/css/style.css
PURPOSE: Main stylesheet — new brand palette + light mode
BATCH: 1 (Phase 0)

CHANGES vs previous version:
  [FIX-CSS1] :root palette rebranded to business card colors
             var(--primary) → var(--primary), var(--secondary) → var(--secondary), #0A0E17 → var(--background)
  [FIX-CSS2] Added `html[data-theme="light"]` block — full light-mode palette
  [FIX-CSS3] --font-mono: Fira Code → JetBrains Mono
  [FIX-CSS4] --font-family stays Inter (base body font)
  [FIX-CSS5] --shadow-hover: rgba(108,99,255) → rgba(139,92,246)
  [FIX-CSS6] --gradient-primary: brand gradient updated
  [FIX-CSS7] rebranded to PandaDev
  All other selectors, media queries, and rules unchanged.
*/

/* ===== CSS Variables ===== */
:root {
    /* [FIX-CSS1] Dark Theme (Default) — new brand palette */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #06B6D4;
    --secondary-dark: #0891B2;

    --background: #0A0E27;
    --background-secondary: #0F1535;
    --surface: #151B3D;
    --surface-hover: #1A2148;

    --text-primary: #FFFFFF;
    --text-secondary: #B4BCD4;
    --text-muted: #6B7594;

    --border: #1F2A4A;
    --border-light: #2E3A5F;

    --success: #00E676;
    --success-dark: #00C853;
    --warning: #FFAB00;
    --warning-dark: #FF8F00;
    --danger: #FF5252;
    --danger-dark: #D32F2F;
    --info: #3B82F6;
    --info-dark: #2563EB;

    --gradient-primary: linear-gradient(135deg, #8B5CF6, #06B6D4);
    --gradient-secondary: linear-gradient(135deg, #06B6D4, #8B5CF6);

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(139, 92, 246, 0.2);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== [FIX-CSS2] LIGHT MODE OVERRIDES ===== */
html[data-theme="light"] {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --secondary: #0891B2;
    --secondary-dark: #0E7490;

    --background: #FFFFFF;
    --background-secondary: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;

    --text-primary: #0A0E27;
    --text-secondary: #334155;
    --text-muted: #64748B;

    --border: #E2E8F0;
    --border-light: #CBD5E1;

    --success: #16A34A;
    --success-dark: #15803D;
    --warning: #D97706;
    --warning-dark: #B45309;
    --danger: #DC2626;
    --danger-dark: #B91C1C;
    --info: #2563EB;
    --info-dark: #1D4ED8;

    --gradient-primary: linear-gradient(135deg, #7C3AED, #0891B2);
    --gradient-secondary: linear-gradient(135deg, #0891B2, #7C3AED);

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(124, 58, 237, 0.15);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: var(--background);
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-warning {
    background: var(--warning);
    color: var(--background);
}

.btn-warning:hover {
    background: var(--warning-dark);
}

.btn-github {
    background: #24292E;
    color: #fff;
}

.btn-github:hover {
    background: #1A1E22;
}

.btn-demo {
    background: var(--info);
    color: #fff;
}

.btn-demo:hover {
    background: var(--info-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn:disabled, .btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-beginner { background: #4CAF50; color: #fff; }
.difficulty-intermediate { background: #FF9800; color: #fff; }
.difficulty-advanced { background: #F44336; color: #fff; }

.visibility-public { background: #3B82F6; color: #fff; }
.visibility-restricted { background: var(--warning); color: var(--background); }
.visibility-premium { background: var(--primary-strong); color: #fff; }

.status-active { background: #4CAF50; color: #fff; }
.status-pending { background: var(--warning); color: var(--background); }
.status-suspended { background: var(--danger); color: #fff; }
.status-banned { background: #F44336; color: #fff; }
.status-approved { background: #4CAF50; color: #fff; }
.status-denied { background: #F44336; color: #fff; }

.featured-badge { background: #FF6B35; color: #fff; }

/* ===== Access Request Styles ===== */
.access-required-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    transition: all 0.3s ease;
}

.access-required-box:hover {
    border-color: var(--primary);
}

.access-required-box .lock-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    opacity: 0.6;
}

.access-required-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.access-required-box p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.access-required-box .btn {
    min-width: 180px;
    justify-content: center;
}

.download-request-section {
    padding: 20px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.download-request-section h4 {
    color: #FF6B35;
}

.download-request-section .btn-warning {
    background: #FF6B35;
    color: #fff;
}

.download-request-section .btn-warning:hover {
    background: #E55A2B;
}

.purchase-section {
    padding: 20px;
    background: color-mix(in srgb, var(--success) 5%, transparent);
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--success) 15%, transparent);
}

.purchase-section h4 {
    color: var(--success);
}

.purchase-section .btn-success {
    background: var(--success);
    color: var(--background);
}

.purchase-section .btn-success:hover {
    background: var(--success-dark);
}

.status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: color-mix(in srgb, var(--warning) 15%, transparent);
    color: var(--warning);
}

.status-badge.approved {
    background: color-mix(in srgb, var(--success) 15%, transparent);
    color: var(--success);
}

.status-badge.denied {
    background: color-mix(in srgb, var(--danger) 15%, transparent);
    color: var(--danger);
}

.status-badge.expired {
    background: rgba(155, 164, 181, 0.15);
    color: var(--text-muted);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition), background-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA4B5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-control-file {
    padding: 12px 0;
    color: var(--text-secondary);
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-errors {
    margin-top: 4px;
}

.form-errors span {
    display: block;
    font-size: 0.85rem;
    color: var(--danger);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

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

/* ===== Alert ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}

.alert-success {
    background: color-mix(in srgb, var(--success) 10%, transparent);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: color-mix(in srgb, var(--warning) 10%, transparent);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== Flash Container ===== */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 100%;
}

.flash-container .alert {
    animation: slideInRight 0.3s ease;
}

/* ===== Animations ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-strong);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .container {
        padding: 0 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .flash-container {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* ===== Mobile Responsive Fixes — Two Column Layout ===== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .service-card {
        padding: 20px 16px !important;
    }

    .offerings-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .offering-card {
        padding: 20px 16px !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .service-card {
        padding: 14px 12px !important;
    }

    .service-card .service-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }

    .service-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }

    .service-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    .offerings-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .offering-card {
        padding: 14px 10px !important;
    }

    .offering-card .offering-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .offering-card h4 {
        font-size: 0.75rem !important;
    }

    .offering-card p {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }

    .admin-stats-grid,
    .dashboard-stats-grid,
    .stats-grid,
    .analytics-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .stat-card-mini,
    .stat-card-modern,
    .admin-stat-card {
        padding: 10px 8px !important;
    }

    .stat-card-mini .stat-number,
    .stat-card-modern .stat-number,
    .admin-stat-card .stat-number {
        font-size: 1.1rem !important;
    }

    .stat-card-mini .stat-label,
    .stat-card-modern .stat-label,
    .admin-stat-card .stat-label {
        font-size: 0.6rem !important;
    }

    .project-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .project-card-modern .card-body {
        padding: 10px 12px !important;
    }

    .project-card-modern .card-body .card-title {
        font-size: 0.8rem !important;
    }

    .project-card-modern .card-body .card-desc {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .project-card-modern .card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
    }

    .project-card-modern .card-footer .card-meta {
        font-size: 0.55rem !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .project-card-modern .card-footer .btn-sm {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
        min-height: 28px !important;
    }

    .project-card-modern .card-tags .tag {
        font-size: 0.55rem !important;
        padding: 1px 6px !important;
    }

    .contact-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .contact-item-modern {
        padding: 8px 10px !important;
        min-height: 40px !important;
        gap: 6px !important;
        border-radius: 30px !important;
    }

    .contact-item-modern .contact-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
    }

    .contact-item-modern .contact-info .value {
        font-size: 0.6rem !important;
    }

    .contact-item-modern .contact-info .label {
        font-size: 0.5rem !important;
    }

    .contact-item-modern .contact-arrow {
        display: none !important;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .quick-action-btn {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        gap: 4px !important;
    }

    .quick-action-btn i {
        font-size: 0.7rem !important;
    }

    .access-stats-bar,
    .collab-stats-bar,
    .downloads-stats-bar,
    .logs-stats-bar,
    .reviews-stats-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .stat-pill {
        padding: 8px 10px !important;
    }

    .stat-pill .pill-number {
        font-size: 1rem !important;
    }

    .stat-pill .pill-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .stat-pill .pill-label {
        font-size: 0.55rem !important;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .stat-item {
        padding: 6px !important;
    }

    .stat-item .stat-number {
        font-size: 1.1rem !important;
    }

    .donation-amounts {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }

    .donation-amounts .amount-btn {
        padding: 4px 2px !important;
        font-size: 0.7rem !important;
    }

    .donation-amounts .amount-btn .amount-suffix {
        font-size: 0.45rem !important;
    }
}

@media (max-width: 360px) {
    .services-grid,
    .offerings-grid,
    .project-grid-modern,
    .contact-grid-modern,
    .quick-actions-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-stats-grid,
    .dashboard-stats-grid,
    .stats-grid,
    .access-stats-bar,
    .collab-stats-bar,
    .downloads-stats-bar,
    .logs-stats-bar,
    .reviews-stats-bar {
        grid-template-columns: 1fr 1fr !important;
    }

    .donation-amounts {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .services-grid,
    .offerings-grid,
    .project-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .admin-stats-grid,
    .dashboard-stats-grid,
    .stats-grid,
    .access-stats-bar,
    .collab-stats-bar,
    .downloads-stats-bar,
    .logs-stats-bar,
    .reviews-stats-bar {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .contact-grid-modern {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}

/* ===== Tag Legend Colors ===== */
.legend-dot-beginner { background: #4CAF50; }
.legend-dot-intermediate { background: #FF9800; }
.legend-dot-advanced { background: #F44336; }

.legend-dot-public { background: #3B82F6; }
.legend-dot-restricted { background: var(--warning); }
.legend-dot-premium { background: var(--primary-strong); }

.legend-dot-featured { background: #FF6B35; }
.legend-dot-new { background: var(--success); }

.tag-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ===== Project Description — Markdown Styles ===== */
.project-description-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-description-content h1,
.project-description-content h2,
.project-description-content h3,
.project-description-content h4 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-description-content h1 { font-size: 1.8rem; }
.project-description-content h2 { font-size: 1.5rem; }
.project-description-content h3 { font-size: 1.2rem; }
.project-description-content h4 { font-size: 1rem; }

.project-description-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-description-content ul,
.project-description-content ol {
    margin: 12px 0 16px 24px;
    color: var(--text-secondary);
}

.project-description-content ul li,
.project-description-content ol li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.project-description-content ul { list-style-type: disc; }
.project-description-content ul ul { list-style-type: circle; margin-top: 4px; }
.project-description-content ol { list-style-type: decimal; }

.project-description-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.project-description-content blockquote p { margin-bottom: 0; }

.project-description-content code {
    background: var(--background-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary);
}

.project-description-content pre {
    background: var(--background-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
}

.project-description-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.project-description-content table th {
    background: var(--background-secondary);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.project-description-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.project-description-content table tr:hover td {
    background: color-mix(in srgb, var(--primary) 2%, transparent);
}

.project-description-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.project-description-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.project-description-content a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.project-description-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.project-description-content .highlight {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
}

.project-description-content .language-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--primary-strong);
    color: #fff;
    margin-bottom: 4px;
}

/* Why Section Icons */
.why-item .why-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    opacity: 0.8;
}

.why-item .why-icon i {
    font-size: 2.5rem;
}

/* ===== Language Switcher — Mobile Fixes ===== */
@media (max-width: 768px) {
    .lang-switcher {
        width: 100%;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        position: relative;
    }

    .lang-switcher .lang-toggle {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.03);
        min-height: 44px;
        font-size: 0.9rem;
    }

    .lang-switcher .lang-toggle .lang-flag { font-size: 1.1rem; }
    .lang-switcher .lang-toggle .lang-code { font-size: 0.75rem; font-weight: 600; }

    .lang-switcher .lang-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 0 4px 16px;
        margin: 0;
        background: transparent;
        backdrop-filter: none;
        animation: none;
        width: 100%;
        min-width: auto;
    }

    .lang-switcher .lang-dropdown.open { display: block !important; }

    .lang-switcher .lang-dropdown .lang-item {
        padding: 8px 16px;
        border-left: none;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    .lang-switcher .lang-dropdown .lang-item:hover {
        border-left: none;
        background: color-mix(in srgb, var(--primary) 4%, transparent);
    }

    .lang-switcher .lang-dropdown .lang-item.active {
        background: color-mix(in srgb, var(--primary) 8%, transparent);
    }

    .lang-switcher .lang-dropdown .lang-item .lang-flag { font-size: 1rem; }
    .lang-switcher .lang-dropdown .lang-item .lang-code { font-size: 0.6rem; }

    .nav-login-desktop { display: none !important; }

    .mobile-login-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.2rem;
        flex-shrink: 0;
        padding: 0;
        margin-left: 4px;
        position: relative;
    }

    .mobile-login-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--primary);
        color: var(--text-primary);
    }

    .mobile-login-toggle .icon-plus {
        font-size: 1.2rem;
        font-weight: 300;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .mobile-login-toggle.open .icon-plus { transform: rotate(45deg); }

    .mobile-login-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 200px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 6px 0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        z-index: 1002;
    }

    .mobile-login-dropdown.open {
        display: block !important;
        animation: dropdownFadeIn 0.2s ease;
    }

    .mobile-login-dropdown .login-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        border: none;
        background: transparent;
        width: 100%;
        cursor: pointer;
        font-family: var(--font-family);
        border-left: 2px solid transparent;
    }

    .mobile-login-dropdown .login-item:hover {
        background: color-mix(in srgb, var(--primary) 6%, transparent);
        color: var(--text-primary);
        border-left-color: var(--primary);
    }

    .mobile-login-dropdown .login-item .material-icons {
        font-size: 1.1rem;
        opacity: 0.7;
    }
}

@media (max-width: 480px) {
    .lang-switcher .lang-toggle {
        font-size: 0.8rem;
        padding: 8px 14px;
        min-height: 38px;
    }

    .lang-switcher .lang-toggle .lang-flag { font-size: 0.9rem; }

    .lang-switcher .lang-dropdown .lang-item {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .mobile-login-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .mobile-login-toggle .icon-plus { font-size: 1rem; }
}

/* ===== Navbar Responsive ===== */
@media (max-width: 768px) {
    .navbar { height: 60px; }
    .navbar.scrolled { height: 56px; }
    .navbar .container { padding: 0 16px; }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--background);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px 24px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        height: auto;
        width: 100%;
    }

    .nav-links > li {
        height: auto;
        width: 100%;
        display: block;
    }

    .nav-link {
        padding: 10px 16px;
        justify-content: flex-start;
        width: 100%;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .nav-link::after { display: none; }

    .nav-link.btn-login {
        justify-content: center;
        margin-top: 4px;
        padding: 10px 24px;
        width: 100%;
    }

    .brand-name { font-size: 1.1rem; }

    .brand-logo-wrapper {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .brand-badge { display: none; }
}

@media (max-width: 480px) {
    .navbar { height: 56px; }

    .nav-menu {
        top: 56px;
        max-height: calc(100vh - 56px);
        padding: 12px 16px 20px;
    }

    .brand-name { font-size: 1rem; }

    .brand-logo-wrapper {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
}

/* END OF FILE */
# FILE NAME: app/static/css/style.css
# SIGNED: admin@pandadevhub.com