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

:root {
    --primary: #7F77DD;
    --primary-dark: #534AB7;
    --primary-light: #EEEDFE;
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    --border: #e0e0e0;
    --radius: 14px;
    --nav-bg: rgba(255,255,255,0.92);
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --card-bg: #141414;
    --card-alt: #1a1a2e;
    --text: #f0f0f0;
    --text-muted: #888888;
    --border: #2a2a2a;
    --primary-light: #1e1b3a;
    --nav-bg: rgba(10,10,10,0.92);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* ── Navbar ── */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn-primary {
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.admin-link {
    background: var(--primary-light);
    color: var(--primary) !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--border);
    gap: 14px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.mobile-menu.open { display: flex; }

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    margin-top: 4px;
}
.mobile-theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Hero ── */
.hero {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 80px 24px 70px;
    text-align: center;
}

.hero-content { max-width: 720px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: var(--text);
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 12px 22px;
    max-width: 560px;
    margin: 0 auto 36px;
    transition: border-color 0.2s;
}

.hero-search:focus-within {
    border-color: var(--primary);
    background: var(--card-bg);
}

.hero-search svg { color: var(--text-muted); flex-shrink: 0; }

.hero-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    width: 100%;
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

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

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ── Browse Section ── */
.browse-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.browse-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.browse-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.browse-header-left h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.results-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.browse-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.sort-select {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--primary); }


.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card-bg);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }

/* ── Project Grid ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(127,119,221,0.15);
}

.card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-light);
    flex-shrink: 0;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .card-thumbnail img {
    transform: scale(1.04);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.card-top { display: flex; gap: 8px; align-items: center; }

.domain-badge, .difficulty-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.domain-badge.ai { background: #EEEDFE; color: #3C3489; }
.domain-badge.web { background: #E1F5EE; color: #085041; }
.domain-badge.iot { background: #E6F1FB; color: #0C447C; }
.domain-badge.ml { background: #FAEEDA; color: #633806; }
.domain-badge.cybersecurity { background: #FAECE7; color: #712B13; }

.difficulty-badge.beginner { background: #EAF3DE; color: #27500A; }
.difficulty-badge.intermediate { background: #FAEEDA; color: #633806; }
.difficulty-badge.advanced { background: #FAECE7; color: #712B13; }

.project-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.project-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.downloads {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.view-link { font-size: 13px; color: var(--primary); font-weight: 600; }

.price-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.price-badge.free {
    background: #EAF3DE;
    color: #27500A;
}
.price-badge.premium {
    background: linear-gradient(135deg, var(--primary-light), rgba(127,119,221,0.25));
    color: var(--primary-dark);
}
[data-theme="dark"] .price-badge.free {
    background: rgba(39, 80, 10, 0.3);
    color: #97C459;
}
[data-theme="dark"] .price-badge.premium {
    background: rgba(127, 119, 221, 0.2);
    color: #b3adee;
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Detail Page ── */
.detail-container {
    max-width: 860px;
    margin: 48px auto;
    padding: 0 24px 80px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 28px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover { color: var(--primary); }

.detail-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.detail-badges { display: flex; gap: 8px; margin-bottom: 16px; }

.detail-header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.detail-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.detail-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.detail-meta span { font-size: 14px; color: var(--text-muted); }
.detail-meta strong { color: var(--text); }

.detail-body { display: flex; flex-direction: column; gap: 48px; }

.detail-includes h2,
.detail-download h2,
.viva-section h2,
.resume-section h2,
.related-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.include-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 22px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.include-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.include-icon { font-size: 34px; margin-bottom: 12px; }
.include-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.include-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Editor Form ── */
.detail-download p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.editor-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }

.form-group input, .form-group textarea, .form-group select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }

.download-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
    font-family: inherit;
}

.download-btn:hover { background: var(--primary-dark); }
.download-btn:active { transform: scale(0.99); }

/* ── Viva Questions ── */
.viva-list { display: flex; flex-direction: column; gap: 10px; }

.viva-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.viva-item:hover { border-color: var(--primary); }
.viva-item.open { border-color: var(--primary); }

.viva-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    gap: 12px;
}

.viva-arrow {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.viva-item.open .viva-arrow { transform: rotate(180deg); }

.viva-answer {
    display: none;
    padding: 14px 20px 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border);
}

.viva-item.open .viva-answer { display: block; }

/* ── Resume Bullets ── */
.resume-bullets { display: flex; flex-direction: column; gap: 10px; }

.resume-bullet {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.resume-bullet p { font-size: 14px; color: var(--text); line-height: 1.6; flex: 1; }

.copy-btn {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn:hover { background: var(--primary); color: #ffffff; }
.copy-btn.copied { background: #EAF3DE; color: #27500A; border-color: #97C459; }

/* ── Related Projects ── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ── Auth Pages ── */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-card .form-group { margin-bottom: 16px; }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 600; }

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-error { background: #FAECE7; color: #712B13; border: 1px solid #F0997B; }
.alert-success { background: #EAF3DE; color: #27500A; border: 1px solid #97C459; }

/* ── Admin Panel ── */
.admin-container {
    max-width: 1000px;
    margin: 48px auto;
    padding: 0 24px 80px;
}

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

.admin-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }

.admin-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.admin-table thead { background: var(--bg); border-bottom: 1px solid var(--border); }

.admin-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }

.admin-actions { display: flex; gap: 8px; }

.action-btn {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.action-btn.edit { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); }
.action-btn.delete { background: #FAECE7; color: #712B13; border: 1px solid #F0997B; }

/* ── Profile Page ── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-header p { font-size: 14px; color: var(--text-muted); }

.profile-stats { display: flex; gap: 32px; margin-bottom: 40px; }

.profile-stat { display: flex; flex-direction: column; }

.profile-stat strong { font-size: 28px; font-weight: 700; color: var(--primary); }

.profile-stat span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.profile-section { margin-bottom: 40px; }

.profile-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ── Submit Page ── */
.submit-note {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── File Upload ── */
.form-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    margin-top: 8px;
}

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

.file-upload-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-icon { font-size: 22px; }
.file-upload-card label { font-size: 13px; font-weight: 600; color: var(--text); }
.file-upload-card input[type="file"] { font-size: 12px; color: var(--text-muted); }
.file-exists { font-size: 12px; color: #27500A; font-weight: 600; }

/* ── Error Pages ── */
.error-container {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.error-code {
    font-size: 100px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -4px;
}

.error-container h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.error-container p { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }

/* ── Footer ── */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 48px 24px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-brand { max-width: 280px; }

.footer-brand .logo { display: block; margin-bottom: 12px; }

.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.footer-links { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

.footer-col a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 16px; }
    .stat strong { font-size: 18px; }
    .includes-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .browse-header { flex-direction: column; align-items: flex-start; }
    .detail-header h1 { font-size: 24px; }
    .projects-grid { grid-template-columns: 1fr; }
    .file-upload-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 24px; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 10px 12px; }
}


/* About Page */
.about-hero {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 80px 24px 70px;
    text-align: center;
}

.about-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
    margin-top: 20px;
}

.about-hero h1 span { color: var(--primary); }

.about-hero p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-section h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

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

.about-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: border-color 0.2s, transform 0.2s;
}

.about-feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.about-feature-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.about-feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-mission {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.about-mission h2 { margin-bottom: 16px; }

.about-mission p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-mission p:last-child { margin-bottom: 0; }

.about-cta {
    text-align: center;
    padding: 48px 40px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
}

.about-cta h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.about-cta p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .about-hero h1 { font-size: 28px; }
    .about-features-grid { grid-template-columns: 1fr; }
    .about-mission { padding: 24px; }
    .about-cta { padding: 32px 20px; }
}


/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

.toast-success {
    border-left: 4px solid #639922;
    color: var(--text);
}

.toast-error {
    border-left: 4px solid #D85A30;
    color: var(--text);
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    padding: 0;
    flex-shrink: 0;
    font-family: inherit;
}

.toast-close:hover { color: var(--text); }





/* Feedback Cards in Admin */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s;
}

.feedback-card.unread {
    border-left: 4px solid var(--primary);
}

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

.feedback-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-right: 8px;
}

.feedback-email {
    font-size: 13px;
    color: var(--text-muted);
}

.feedback-type {
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
}

.feedback-date {
    font-size: 12px;
    color: var(--text-muted);
}

.feedback-subject {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.feedback-message {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
}


/* FAQ Page */
.faq-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

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

.faq-cta {
    text-align: center;
    padding: 40px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
}

.faq-cta p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

/* Legal Pages */
.legal-container {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 24px 80px;
}

.legal-container h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.legal-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.legal-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}


/* Navbar search */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 16px;
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
    transition: border-color 0.2s;
}

.nav-search:focus-within {
    border-color: var(--primary);
    background: var(--card-bg);
}

.nav-search svg { color: var(--text-muted); flex-shrink: 0; }

.nav-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    width: 100%;
}

.nav-search input::placeholder { color: var(--text-muted); }

.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
}

.mobile-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    width: 100%;
}

/* Login to download */
.login-to-download {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-top: 8px;
}

.login-to-download p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.admin-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-search { display: none; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}


[data-theme="dark"] .submit-note,
[data-theme="dark"] .about-cta,
[data-theme="dark"] .faq-cta,
[data-theme="dark"] .login-to-download {
    background: var(--card-alt);
    border-color: var(--primary);
}

[data-theme="dark"] .hero-badge,
[data-theme="dark"] .admin-link,
[data-theme="dark"] .feedback-type {
    background: var(--card-alt);
}
/* -- Mobile load more -- */
.mobile-hidden { display: none !important; }

.mobile-load-more-btn {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 28px auto 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
}
.mobile-load-more-btn:hover {
    background: var(--primary-dark, #5a52c5);
    transform: translateY(-1px);
}

/* ── Custom/Global Services and Contact Layouts (rp- classes) ── */
.rp-page {
    width: 100%;
    margin-bottom: 60px;
}

.rp-hero {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 60px 24px 50px;
    text-align: center;
}

.rp-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.rp-hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.rp-hero h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: var(--text);
}

.rp-hero h1 span {
    color: var(--primary);
}

.rp-hero p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.rp-hero-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.rp-hero-pills span {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Steps Block */
.rp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.rp-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
}

.rp-step-num {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.rp-step strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.rp-step p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.rp-step-arrow {
    font-size: 24px;
    color: var(--text-muted);
}

/* Form Container */
.rp-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.rp-form-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.rp-form-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.rp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rp-section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-top: 10px;
}

.rp-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.rp-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rp-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.rp-group input, 
.rp-group textarea, 
.rp-group select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
}

.rp-group input:focus, 
.rp-group textarea:focus, 
.rp-group select:focus {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.15);
}

.rp-submit-btn {
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 10px;
}

.rp-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.rp-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin-top: 10px;
}

[data-theme="dark"] .rp-hero {
    background: var(--card-bg);
}

[data-theme="dark"] .rp-hero-badge {
    background: var(--card-alt);
    color: var(--primary);
}

[data-theme="dark"] .rp-step {
    background: var(--card-bg);
}

[data-theme="dark"] .rp-form-container {
    background: var(--card-bg);
}

[data-theme="dark"] .rp-group input:focus, 
[data-theme="dark"] .rp-group textarea:focus, 
[data-theme="dark"] .rp-group select:focus {
    background: var(--card-bg);
}

@media (max-width: 768px) {
    .rp-steps {
        flex-direction: column;
        gap: 15px;
    }
    .rp-step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    .rp-step {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .rp-row {
        flex-direction: column;
        gap: 15px;
    }
    .rp-form-container {
        padding: 24px;
    }
}

