:root {
    --kkg-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --kkg-heading-weight: 600;
    --kkg-section-gap: 2.5rem;
    --kkg-muted: #64748b;
    --kkg-border-soft: rgba(15, 23, 42, 0.08);
}

body {
    font-family: var(--kkg-font-sans);
    line-height: 1.65;
    color: #1f2937;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-weight: var(--kkg-heading-weight);
    line-height: 1.25;
    color: #0f172a;
}

.kkg-section {
    padding-block: var(--kkg-section-gap);
}

.native-card,
.bridge-card,
.mobile-card {
    border-radius: 1rem;
    border: 1px solid var(--kkg-border-soft);
    background: #fff;
    box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.08);
}

.native-btn-primary,
.mobile-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    font-weight: 600;
}

.native-btn-secondary,
.mobile-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    background: #e2e8f0;
    border: 1px solid var(--kkg-border-soft);
    color: #0f172a;
    font-weight: 600;
}

/* Practice Page */
.page-practice .practice-hero {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 1.5rem;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 1.25rem 3rem rgba(37, 99, 235, 0.25);
}

.page-practice .practice-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.page-practice .practice-card,
.page-practice .stats-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.12);
}

.page-practice .filter-section {
    border: 1px solid var(--kkg-border-soft);
    border-radius: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
}

.page-practice .filter-section h5 {
    font-size: 1.1rem;
}

.page-practice #question-count-display {
    border-radius: 0.75rem;
}

.page-practice .stats-card i {
    font-size: 2.25rem;
}

.page-practice .btn-practice {
    min-width: 240px;
    border-radius: 999px;
}

/* Bookmarks Page */
.page-bookmarks .notebook-hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1.5rem;
    border: none;
    padding: 2rem;
    box-shadow: 0 1.5rem 3rem rgba(102, 126, 234, 0.25);
}

.page-bookmarks .bookmark-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-bookmarks .bookmark-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
}

.page-bookmarks .question-stem {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.page-bookmarks .option-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.page-bookmarks .option-item.correct {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.page-bookmarks .option-item.correct::before {
    content: "\2713";
    margin-right: 0.5rem;
    color: inherit;
}

.page-bookmarks .explanation-section {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 1rem 1rem 0;
}

.page-bookmarks .note-section {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
}

.page-bookmarks .empty-state {
    border: 2px dashed #cbd5f5;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    background: #f8fafc;
}

.page-bookmarks .empty-icon {
    font-size: 3rem;
    color: var(--kkg-muted);
}

.page-bookmarks .difficulty-badge {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Dashboard & Test Series headers */
.page-dashboard .dashboard-section {
    margin-bottom: 1.25rem;
}

.page-dashboard .dashboard-section:last-child {
    margin-bottom: 0;
}

.page-test-series .test-series-intro {
    margin-bottom: 2rem;
}

.page-test-series .test-series-section {
    margin-bottom: 2rem;
}

/* Profile Page */
.profile-page .profile-hero {
    border-radius: 1.25rem;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
}

.profile-page .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    overflow: hidden;
    background: #f4f6fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0.75rem 1.5rem rgba(15, 23, 42, 0.1);
}

.profile-page .profile-avatar img {
    width: 100%;
    height: 100%;
}

.profile-page .profile-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(25%, 25%);
    border-radius: 999px;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.25);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.profile-page .stat-tile {
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.05);
    min-height: 110px;
}


.btn.pulse {
    animation: btn-pulse 1.5s ease-in-out infinite;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.page-test-series {
    padding-block: 3rem;
}

.page-test-series .test-series-intro {
    margin-bottom: 2rem;
}

.page-test-series .test-series-survey {
    border-radius: 1.25rem;
    border: 1px solid var(--kkg-border-soft);
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.05);
}

.page-test-series .test-series-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.page-test-series .filter-chip {
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.page-test-series .filter-chip.active {
    transform: translateY(-1px);
}

.page-test-series .test-series-section {
    border-radius: 1.5rem;
    background: #fff;
    border: 1px solid var(--kkg-border-soft);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.page-test-series .test-series-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-test-series .test-series-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-test-series .test-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
}

.page-test-series .test-series-card .test-series-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.page-test-series .test-series-card .test-series-card-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.page-test-series .test-series-card .test-series-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.page-test-series .test-series-card .test-series-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--kkg-muted);
}

.page-test-series .test-series-grid {
    gap: 1.5rem;
}

.page-test-series .mb-4-divider {
    border: none;
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    margin: 2rem 0;
}
