:root {
    --bg-body: #f0f4f8;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-modal-overlay: rgba(15, 23, 42, 0.5);
    --border-light: #e2e8f0;
    --border-glass: rgba(226, 232, 240, 0.6);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-pink: #ec4899;
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #3b82f6 40%, #06b6d4 70%, #ec4899 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 2px 8px -1px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px -5px rgba(99, 102, 241, 0.15), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.4s ease;
}

.app-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-indigo);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.header {
    padding: 20px 16px 16px;
    text-align: center;
    background: var(--bg-white);
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-brand) 1;
    position: relative;
}

.header h1 {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-secondary);
    font-size: 12px;
}

.header-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 50;
}

.btn-hamburger {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.btn-hamburger:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    text-align: left;
}

.dropdown-menu.active {
    display: flex;
}

.menu-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition);
    text-decoration: none;
}

.menu-item:hover {
    background: var(--bg-body);
}

.menu-item .material-icons-round {
    font-size: 18px;
    color: var(--text-muted);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 16px;
}

.stat-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 6px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 18px;
    margin-bottom: 2px;
    opacity: 0.5;
}

.stat-icon.blue { color: var(--accent-blue); }
.stat-icon.cyan { color: var(--accent-cyan); }
.stat-icon.indigo { color: var(--accent-indigo); }
.stat-icon.emerald { color: var(--accent-emerald); }

.stat-number {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-number.blue { color: var(--accent-blue); }
.stat-number.indigo { color: var(--accent-indigo); }
.stat-number.cyan { color: var(--accent-cyan); }
.stat-number.emerald { color: var(--accent-emerald); }

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.filter-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 16px;
}

.filter-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row+.filter-row {
    margin-top: 6px;
}

.filter-chip {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
}

.filter-chip.active {
    background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.btn-clear-filter {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.05);
    color: var(--accent-rose);
    font-size: 11px;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: none;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.btn-clear-filter.visible {
    display: inline-flex;
}

.btn-clear-filter:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--accent-rose);
}

.btn-clear-filter .material-icons-round {
    font-size: 13px;
}

.filter-select {
    padding: 5px 26px 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font);
    cursor: pointer;
    flex: 1;
    min-width: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.multiselect-wrap {
    position: relative;
    flex: 1.5;
    min-width: 0;
}

.multiselect-trigger {
    padding: 5px 26px 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.multiselect-trigger.has-values {
    color: var(--accent-indigo);
    font-weight: 600;
}

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glass);
    z-index: 200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 260px;
}

.multiselect-dropdown.open {
    display: flex;
}

.multiselect-search {
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid var(--border-light);
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    background: var(--bg-body);
}

.multiselect-options {
    overflow-y: auto;
    max-height: 200px;
    padding: 4px 0;
}

.multiselect-option {
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.multiselect-option:hover {
    background: var(--gradient-subtle);
}

.multiselect-option.selected {
    color: var(--accent-indigo);
    font-weight: 600;
}

.multiselect-option .check-icon {
    font-size: 14px;
    color: var(--accent-indigo);
    visibility: hidden;
}

.multiselect-option.selected .check-icon {
    visibility: visible;
}

.search-input {
    padding: 5px 10px 5px 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font);
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px center;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.results-count {
    padding: 4px 16px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-gradient-bar {
    height: 3px;
    transition: height 0.3s ease;
}

.project-card:hover .card-gradient-bar {
    height: 4px;
}

.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.card-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    color: var(--bg-white);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-buy { background-image: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.badge-sell { background-image: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.badge-priority-veryhigh { background-image: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%); }
.badge-priority-high { background-image: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.badge-priority-medium { background-image: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }
.badge-priority-low { background-image: linear-gradient(135deg, #64748b 0%, #94a3b8 100%); }

.card-stt {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-criteria {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.card-criteria.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-light);
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.tag .material-icons-round {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

.card-investor {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 8px 10px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.card-investor.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.card-footer {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-date {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-interest {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-interest:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-interest .material-icons-round {
    font-size: 14px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-modal-overlay);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px;
    width: 100%;
    max-width: 480px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-body);
}

.thank-you-msg {
    text-align: center;
    padding: 32px 16px;
}

.thank-you-msg p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 50px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-cancel {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cancel:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-submit {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-submit:hover {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.toast {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2000;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast.success .material-icons-round { color: var(--accent-emerald); }
.toast.error .material-icons-round { color: var(--accent-rose); }
.toast .material-icons-round { font-size: 20px; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--accent-indigo);
    transform-origin: left;
    animation: toastCountdown 3.5s linear forwards;
}

@keyframes toastCountdown {
    to { transform: scaleX(0); }
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.empty-state .material-icons-round {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 13px;
}

/* Results toolbar — count + view toggle */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 0;
}

.results-toolbar .results-count {
    padding: 0;
}

.view-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.view-btn:hover { color: var(--accent-indigo); }

.view-btn.active {
    background: var(--accent-indigo);
    color: #fff;
}

.view-btn .material-icons-round { font-size: 18px; }

/* List view */
.project-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 8px;
}

.list-view .project-card {
    flex-direction: row;
    border-radius: var(--radius-md);
}

.list-view .card-gradient-bar {
    width: 4px;
    height: auto;
    min-height: 100%;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.list-view .card-body {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
}

.list-view .card-header { flex: 0 0 auto; }

.list-view .card-title {
    flex: 1 1 200px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.list-view .card-criteria,
.list-view .card-investor { display: none; }

.list-view .card-tags { flex: 0 0 auto; }

.list-view .card-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 0;
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    transition: all var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
}

.page-btn.active {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-btn .material-icons-round { font-size: 18px; }

.page-info {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 8px;
}

/* Footer */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 16px;
}

.footer-inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-brand {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.footer-links a {
    color: var(--accent-indigo);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.7; text-decoration: underline; }
.footer-links .sep { color: var(--text-muted); }

@media (min-width: 600px) {
    .header { padding: 28px 24px 20px; }
    .header h1 { font-size: 24px; }
    .header-menu { top: 24px; right: 24px; }
    .stats-bar { padding: 16px 24px; gap: 12px; }
    .stat-card { padding: 14px 16px; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 11px; }
    .filter-section { padding: 12px 24px; }
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 16px;
        padding: 16px 24px 40px;
    }
    .card-body { padding: 18px 20px; gap: 12px; }
    .card-title { font-size: 15px; }
    .results-toolbar { padding: 8px 24px 0; }
    .results-count { font-size: 13px; }
    .modal { border-radius: var(--radius-xl); align-self: center; }
    .modal-overlay { align-items: center; padding: 20px; }
    .toast { left: auto; right: 24px; bottom: 24px; width: auto; }
    .list-view .card-title { flex: 1 1 300px; }
}
