/* Late-loaded premium overrides for legacy inline styles */

/* ===== Leaderboard ===== */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); }
.rank-other { background: var(--surface-3); color: var(--text-muted); }

/* ===== Messages ===== */
.message-item:hover {
    background-color: var(--surface-2);
}
.message-list .message-item:last-child {
    border-bottom: none !important;
}

/* ===== Chat ===== */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 60%, var(--bg));
}
.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    margin-bottom: 0.5rem;
}
.own-message {
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, #000) 100%);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.other-message {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.message-sender {
    font-weight: bold;
    margin-bottom: 0.25rem;
}
.message-time {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}
.chat-input {
    border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    padding-top: 1rem;
}
.chat-input .form-control {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 20px;
    padding: 0.6rem 1.25rem;
}
.chat-input .form-control:focus {
    background: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--text);
}

/* ===== Rating Stars ===== */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rating-stars input {
    display: none;
}
.rating-stars label {
    cursor: pointer;
    font-size: 2rem;
    color: var(--border);
    margin: 0 2px;
    transition: color 0.2s;
}
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

.site-footer {
    padding: 20px 0 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--bg)) !important;
    color: var(--text);
    border-top: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.45fr);
    gap: 14px;
    align-items: stretch;
}

.footer-brand-panel,
.footer-links-panel {
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 18px 42px rgba(18, 36, 76, 0.08);
}

.footer-brand-panel {
    padding: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text) !important;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 28%, transparent);
}

.footer-brand-panel p {
    max-width: 430px;
    margin: 10px 0 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.footer-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 58%, transparent);
    color: var(--text) !important;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.footer-contact-list i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-2));
}

.footer-contact-list .footer-whatsapp-item {
    padding: 0;
    border-color: rgba(37, 211, 102, 0.28);
    background: transparent;
}

.site-footer .footer-whatsapp-action {
    width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, #25d366, #16a34a);
    color: #fff !important;
    font-weight: 750;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-footer .footer-whatsapp-action i {
    width: 22px;
    height: 22px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1rem;
}

.site-footer .footer-whatsapp-action:hover,
.site-footer .footer-whatsapp-action:focus {
    transform: translateY(-1px);
    color: #fff !important;
    filter: saturate(1.08);
    box-shadow: 0 16px 32px rgba(22, 163, 74, 0.28);
}

.footer-payment {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.site-footer .footer-payment img {
    max-width: 220px;
    max-height: 24px;
    width: 100%;
    object-fit: contain;
    object-position: left center;
}

.footer-links-panel {
    padding: 12px;
}

.footer-panel-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.footer-panel-heading span {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
}

.footer-panel-heading small {
    color: var(--text-muted);
}

.footer-link-grid,
.footer-feature-links {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-feature-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer .footer-link-grid a,
.site-footer .footer-feature-links a {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
    color: var(--text) !important;
    text-align: center;
    text-decoration: none;
    font-weight: 650;
    line-height: 1.25;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-accordion {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-accordion-item {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 13%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.footer-accordion-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 750;
    text-align: left;
}

.footer-accordion-button span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.footer-accordion-button span i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.footer-accordion-button > i {
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-accordion-button:not(.collapsed) {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 7%, transparent);
}

.footer-accordion-button:not(.collapsed) > i {
    transform: rotate(180deg);
    color: var(--primary);
}

.footer-accordion .collapse,
.footer-accordion .collapsing {
    padding: 0 10px 10px;
}

.site-footer .footer-link-grid a:hover,
.site-footer .footer-link-grid a:focus,
.site-footer .footer-feature-links a:hover,
.site-footer .footer-feature-links a:focus {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 56%, var(--border));
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 16%, transparent);
}

.site-footer hr {
    border-color: var(--border) !important;
    margin: 12px 0 8px;
}

.site-footer .footer-copy {
    display: flex;
    justify-content: center;
    color: var(--text-muted) !important;
    text-align: center;
}

.site-footer .footer-copy p {
    margin: 0;
}

html[data-theme="light"] .site-footer {
    background:
        linear-gradient(180deg, #f8faff 0%, #eef4ff 100%) !important;
}

html[data-theme="light"] .footer-brand-panel,
html[data-theme="light"] .footer-links-panel {
    background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991px) {
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-feature-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html[data-theme="light"] body.site-body {
    background:
        radial-gradient(circle at 20% -6%, rgba(59, 130, 246, 0.12), transparent 34%),
        radial-gradient(circle at 98% 14%, rgba(14, 165, 233, 0.1), transparent 28%),
        linear-gradient(180deg, #f5f8ff 0%, #edf2ff 45%, #f8faff 100%) !important;
}

html[data-theme="light"] .hero-section,
html[data-theme="light"] .announcements-section,
html[data-theme="light"] .testimonials-section,
html[data-theme="light"] .features-section,
html[data-theme="light"] .info-section {
    background: transparent !important;
}

html[data-theme="light"] .hero-section h1,
html[data-theme="light"] .hero-section .lead,
html[data-theme="light"] .section-title,
html[data-theme="light"] .announce-title,
html[data-theme="light"] .announcement-date,
html[data-theme="light"] .announcement-excerpt,
html[data-theme="light"] .testimonial-body,
html[data-theme="light"] .testimonial-author h5,
html[data-theme="light"] .testimonial-author span,
html[data-theme="light"] .feature-item h4,
html[data-theme="light"] .feature-item p,
html[data-theme="light"] .info-card h3,
html[data-theme="light"] .info-card .info-body,
html[data-theme="light"] .info-card ul,
html[data-theme="light"] .list-unstyled li,
html[data-theme="light"] .page-content,
html[data-theme="light"] .page-content .card,
html[data-theme="light"] .page-content .card-body,
html[data-theme="light"] .page-content .card-header {
    color: var(--text) !important;
}

html[data-theme="light"] .section-title,
html[data-theme="light"] .lead,
html[data-theme="light"] .card-title {
    color: #12244c !important;
}

html[data-theme="light"] .text-muted,
html[data-theme="light"] .page-muted,
html[data-theme="light"] small.text-muted {
    color: #5e7197 !important;
}

html[data-theme="light"] .card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .page-content {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

html[data-theme="light"] .navbar-toggler {
    border-color: rgba(18, 36, 76, 0.15) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    padding: 6px 10px !important;
}

html[data-theme="light"] .navbar-toggler-icon {
    filter: invert(0.8) brightness(0.2) contrast(1.2) !important;
}
html[data-theme="light"] .bg-white,
html[data-theme="light"] .bg-light,
html[data-theme="light"] .table,
html[data-theme="light"] .list-group-item,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .dropdown-menu {
    color: var(--text) !important;
}



html[data-theme="light"] .card h1,
html[data-theme="light"] .card h2,
html[data-theme="light"] .card h3,
html[data-theme="light"] .card h4,
html[data-theme="light"] .card h5,
html[data-theme="light"] .card h6,
html[data-theme="light"] .bg-white h1,
html[data-theme="light"] .bg-white h2,
html[data-theme="light"] .bg-white h3,
html[data-theme="light"] .bg-white h4,
html[data-theme="light"] .bg-white h5,
html[data-theme="light"] .bg-white h6 {
    color: #12244c !important;
}

html[data-theme="light"] .card-header:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.text-white),
html[data-theme="light"] .card-header.bg-white,
html[data-theme="light"] .card-header.bg-light {
    color: #12244c !important;
}

html[data-theme="light"] .announcement-hero-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .testimonial-form-card,
html[data-theme="light"] .feature-item,
html[data-theme="light"] .info-card,
html[data-theme="light"] .page-content,
html[data-theme="light"] .packages-hero,
html[data-theme="light"] .page-content .card,
html[data-theme="light"] .hero-stats .stat-item,
html[data-theme="light"] .hero-image .hero-illustration {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

html[data-theme="light"] .packages-hero h2,
html[data-theme="light"] .packages-hero .lead,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .hero-stats .number,
html[data-theme="light"] .hero-stats .label {
    color: var(--text) !important;
}

html[data-theme="light"] .hero-highlight {
    color: #d97706 !important;
}

html[data-theme="light"] .hero-pill {
    background: #fff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme="light"] .hero-pill.accent {
    color: #92400e !important;
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(217, 119, 6, 0.36) !important;
}

html[data-theme="light"] .pricing-card.premium {
    border-color: rgba(29, 78, 216, 0.4) !important;
    box-shadow: 0 16px 36px rgba(29, 78, 216, 0.18) !important;
}

html[data-theme="light"] .pricing-card.premium .card-header {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
    color: #fff !important;
}

/* ===== Light Mode — Form & Input Readability ===== */

/* Form labels */
html[data-theme="light"] .form-label,
html[data-theme="light"] label {
    color: #12244c !important;
    font-weight: 500;
}

/* Form controls: visible border + slightly tinted background */
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] textarea.form-control {
    background: #f4f7fe !important;
    color: #12244c !important;
    border-color: rgba(18, 36, 76, 0.22) !important;
    border-width: 1px !important;
}

html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .form-select:focus {
    background: #ffffff !important;
    color: #12244c !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

html[data-theme="light"] .form-control::placeholder,
html[data-theme="light"] textarea.form-control::placeholder {
    color: #8296b4 !important;
    opacity: 1;
}

/* Input group */
html[data-theme="light"] .input-group-text {
    background: #eef1fb !important;
    color: #12244c !important;
    border-color: rgba(18, 36, 76, 0.22) !important;
}

/* Form text / help text */
html[data-theme="light"] .form-text {
    color: #6b80a8 !important;
}

/* Form check (checkbox/radio) */
html[data-theme="light"] .form-check-label {
    color: #12244c !important;
}

/* Btn outline secondary */
html[data-theme="light"] .btn-outline-secondary {
    background: #fff !important;
    color: #4a5b78 !important;
    border-color: rgba(18, 36, 76, 0.25) !important;
}

/* ===== Light Mode — Card & Surface Visibility ===== */

/* Cards need visible borders to separate from page background */
html[data-theme="light"] .card,
html[data-theme="light"] .card.shadow,
html[data-theme="light"] .card.shadow-sm,
html[data-theme="light"] .card.shadow-lg {
    border: 1px solid rgba(18, 36, 76, 0.1) !important;
    background: #ffffff !important;
    color: #12244c !important;
}

html[data-theme="light"] .card-header {
    background: rgba(18, 36, 76, 0.025) !important;
    border-bottom: 1px solid rgba(18, 36, 76, 0.1) !important;
    color: #12244c !important;
}

html[data-theme="light"] .card-body {
    color: #12244c !important;
}

html[data-theme="light"] .card-footer {
    background: rgba(18, 36, 76, 0.025) !important;
    border-top: 1px solid rgba(18, 36, 76, 0.1) !important;
    color: #5e7197 !important;
}

/* ===== Light Mode — Table Readability ===== */
html[data-theme="light"] .table {
    color: #12244c !important;
}
html[data-theme="light"] .table thead th {
    background: rgba(18, 36, 76, 0.04) !important;
    color: #12244c !important;
    border-color: rgba(18, 36, 76, 0.1) !important;
}
html[data-theme="light"] .table td,
html[data-theme="light"] .table th {
    border-color: rgba(18, 36, 76, 0.08) !important;
}
html[data-theme="light"] .table-hover tbody tr:hover {
    background: rgba(37, 99, 235, 0.04) !important;
}

/* ===== Light Mode — List Group ===== */
html[data-theme="light"] .list-group-item {
    background: #fff !important;
    border-color: rgba(18, 36, 76, 0.1) !important;
    color: #12244c !important;
}

/* ===== Light Mode — Modal ===== */
html[data-theme="light"] .modal-content {
    background: #fff !important;
    border: 1px solid rgba(18, 36, 76, 0.12) !important;
    color: #12244c !important;
}
html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-footer {
    border-color: rgba(18, 36, 76, 0.1) !important;
}

/* ===== Light Mode — Badge & Alert contrast ===== */
html[data-theme="light"] .badge.bg-secondary {
    background: #d1d9e8 !important;
    color: #12244c !important;
}
html[data-theme="light"] .badge.bg-light {
    background: #e8edf7 !important;
    color: #12244c !important;
}

/* Alert contrast */
html[data-theme="light"] .alert-info {
    background: rgba(37, 99, 235, 0.07) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: #1e3a8a !important;
}
html[data-theme="light"] .alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #92400e !important;
}
html[data-theme="light"] .alert-success {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #065f46 !important;
}
html[data-theme="light"] .alert-danger {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #991b1b !important;
}

/* ===== Light Mode — Dropdown ===== */
html[data-theme="light"] .dropdown-menu {
    background: #fff !important;
    border: 1px solid rgba(18, 36, 76, 0.12) !important;
    box-shadow: 0 8px 24px rgba(18, 36, 76, 0.1) !important;
}
html[data-theme="light"] .dropdown-item {
    color: #12244c !important;
}
html[data-theme="light"] .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.06) !important;
    color: #1d4ed8 !important;
}

/* ===== Light Mode — Progress bar ===== */
html[data-theme="light"] .progress {
    background: rgba(18, 36, 76, 0.08) !important;
}

/* btn-outline-secondary in light (already above, keep separated for clarity) */

html[data-theme="light"] .btn-outline-primary {
    background: #fff !important;
    color: #1d4ed8 !important;
    border-color: rgba(29, 78, 216, 0.35) !important;
}

html[data-theme="light"] .btn-outline-primary:hover {
    color: #fff !important;
    background: #1d4ed8 !important;
}

html[data-theme="light"] .dashboard-topic-item,
html[data-theme="light"] .branch-ranking tbody tr {
    background: var(--surface-2) !important;
    border-color: var(--border) !important;
}



@media (max-width: 767px) {
    .site-footer {
        padding-top: 24px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-brand-panel,
    .footer-links-panel {
        padding: 16px;
    }

    .footer-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .footer-link-grid,
    .footer-feature-links {
        grid-template-columns: 1fr;
    }
}

/* Strong override for question-solving fixed footer readability */
html[data-theme="dark"] body.sorucoz-page .footer-progress {
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text) !important;
}

html[data-theme="dark"] body.sorucoz-page .footer-progress .col {
    color: var(--text) !important;
}

html[data-theme="dark"] body.sorucoz-page .footer-progress #correct-count {
    color: var(--success) !important;
}

html[data-theme="dark"] body.sorucoz-page .footer-progress #incorrect-count {
    color: var(--danger) !important;
}

html[data-theme="light"] body.sorucoz-page .footer-progress {
    background: #f7f9ff !important;
    border-top: 1px solid #d9e2f5 !important;
    color: #1c315f !important;
}

html[data-theme="light"] body.sorucoz-page .footer-progress .col {
    color: #1c315f !important;
}

/* ===== Form Card (auth helper pages: forgot-password, reset, verify) ===== */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
    color: var(--text);
}
.form-card .card-header {
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    border-bottom: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
}
.form-card .card-header h2 {
    color: var(--primary);
}
.form-card .card-body {
    color: var(--text-muted);
}

/* ===== Info Card (shared across content pages) ===== */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--text);
}
.info-card .card-header,
.info-card .card-footer {
    background: transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    padding: 1.25rem 1.25rem 1rem;
    color: var(--text);
}
.info-card .card-body { padding: 1.25rem; color: var(--text); }
.info-card .list-group-item {
    background: transparent;
    border-color: color-mix(in srgb, var(--border) 40%, transparent);
    padding: 0.85rem 1rem;
}
.info-card .list-group-item a { color: var(--text); font-weight: 500; text-decoration: none; }
.info-card .list-group-item a:hover { color: var(--primary); }
.info-card .list-unstyled li { margin-bottom: 0.6rem; }
.info-card .list-unstyled li i { color: var(--primary); }

/* Global Generic Page Layout Elements (Used in Terms, Privacy, FAQ, etc) */
.page-background {
    position: relative;
    min-height: 100vh;
    padding: 130px 0 80px; /* extra top space for fixed navbar */
    background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 35%),
                radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--primary) 4%, transparent), transparent 30%);
}
.page-content {
    position: relative;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 2.5rem;
    overflow: hidden;
    z-index: 1;
}
.page-content::before,
.page-content::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    filter: blur(45px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}
.page-content::before {
    top: -25%;
    right: -12%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%);
}
.page-content::after {
    bottom: -30%;
    left: -12%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 8%, transparent), transparent 60%);
}
.page-title {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-lead { color: var(--text-muted); }

/* Ensure breadcrumb is correctly themed globally in page-background */
.page-background .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}
.page-background .breadcrumb .breadcrumb-item a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.page-background .breadcrumb .breadcrumb-item.active { color: var(--text); font-weight: 600; }
.page-background .breadcrumb .breadcrumb-item a:hover { color: var(--primary); }

/* --- PREMIUM V2 ENHANCEMENTS --- */

/* 1. Global Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Premium Heading Typography */
.section-title, 
.display-4, 
.hero-section h1, 
.page-title,
.info-card h3,
.feature-item h4 {
    font-family: var(--font-heading) !important;
}

/* 3. Border Beam Utilities */
.premium-border-beam {
    position: relative;
    border: 1px solid transparent !important;
}

.premium-border-beam::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        var(--beam-angle, 0deg),
        transparent 0%,
        transparent 20%,
        var(--primary) 50%,
        transparent 80%,
        transparent 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: beam-rotate 4s linear infinite;
    opacity: 0.3;
}

@keyframes beam-rotate {
    from { --beam-angle: 0deg; }
    to { --beam-angle: 360deg; }
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* 4. Bento Grid Utilities */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-item {
    grid-column: span 1;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

/* 5. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 6. Question Solving (Soru Cozme) System Modernization */
body.sorucoz-page {
    padding-bottom: 100px; /* Space for fixed progress footer */
}

/* Soru Cozme Background Logic */
body.sorucoz-page.site-body {
    background: 
        radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 40%),
        radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary) 3%, transparent), transparent 40%),
        var(--bg) !important;
}

/* Fixed Navbar for Solving Screens */
body.sorucoz-page .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1060;
    box-shadow: var(--shadow-md);
    background: color-mix(in srgb, var(--surface) 95%, transparent) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

body.sorucoz-page {
    padding-top: 56px; /* Offset for fixed navbar */
}

.sorucoz-container {
    max-width: 900px; /* More readable measure for questions */
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Question image */
.question-img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    border-radius: 10px;
    margin: 0 auto 16px;
    object-fit: contain;
}

/* Modernized Question Card */
.question-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    margin-bottom: 3.5rem;
    box-shadow: 0 15px 50px -12px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 6px solid var(--primary);
}

.question-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.22);
}

.question-header {
    padding: 1.5rem 2rem 2rem;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface-3));
    border-bottom: 2px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.header-main {
    width: 100%;
}

.header-alert {
    width: 100%;
}

.header-alert .alert {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-2));
    border-radius: 12px;
    display: inline-block;
    padding: 0.6rem 1rem !important;
}

[data-theme="dark"] .question-header {
    background: color-mix(in srgb, var(--primary) 15%, #1a1a2e);
    border-bottom-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.question-number {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
    letter-spacing: -0.01em;
}

.options-body {
    padding: 3rem;
    background: var(--surface);
}

/* Premium Option Items */
.option-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    position: relative;
    border-left: 6px solid transparent;
}

.option-item:hover {
    background: var(--surface-3);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.option-item.selected {
    border-left-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-2));
    border-color: var(--primary);
}

.option-item.correct {
    border-left-color: var(--success);
    background: color-mix(in srgb, var(--success) 12%, var(--surface-2));
    border-color: var(--success);
    color: var(--text);
}

.option-item.incorrect {
    border-left-color: var(--danger);
    background: color-mix(in srgb, var(--danger) 12%, var(--surface-2));
    border-color: var(--danger);
}

.option-item strong {
    font-family: var(--font-heading);
    font-weight: 800;
    min-width: 25px;
    opacity: 0.7;
}

/* Action Buttons Area */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 2rem 2rem;
}

/* Progress Bar Modernization */
.footer-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
    backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    z-index: 1050;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

.footer-progress .col {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

.footer-progress .col strong {
    font-weight: 800;
}

#correct-count { color: var(--success) !important; }
#incorrect-count { color: var(--danger) !important; }
#remaining-count { color: var(--text-muted) !important; }

@media (max-width: 768px) {
    .sorucoz-container { margin: 1rem auto; }
    .question-header { padding: 1.1rem 1.1rem 1.4rem; }
    .options-body, .action-buttons { padding: 1.1rem; }
    .question-text { font-size: 1.05rem; }
    .footer-progress { padding: 0.6rem 0.4rem; }
    .footer-progress .col { font-size: 0.82rem; }
    .footer-progress .btn { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: 100%; }
}

/* =============================================
   AUTH PAGES — Login & Register Premium Layout
   ============================================= */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    background: var(--bg);
}

.auth-brand-side {
    width: 440px;
    flex-shrink: 0;
    background: linear-gradient(150deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, #3730a3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 340px;
}

.auth-logo-badge {
    width: 68px;
    height: 68px;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
}

.auth-brand-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.auth-brand-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82) !important;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

.auth-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.auth-features-list li .auth-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.auth-stats-row {
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

.auth-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.auth-stat span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.72);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--bg);
    overflow-y: auto;
    min-height: 100vh;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

.auth-mobile-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-mobile-logo a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.auth-mobile-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.auth-mobile-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.auth-form-header {
    margin-bottom: 1.75rem;
}

.auth-form-header h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text) !important;
    margin-bottom: 0.4rem;
    letter-spacing: -0.025em;
}

.auth-form-header p {
    color: var(--text-muted) !important;
    margin: 0;
    font-size: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-form-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-form-footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.auth-form-footer a, .auth-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.auth-form-footer a:hover, .auth-link:hover { text-decoration: underline; }

.auth-section-divider {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin: 1.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}

/* Form inputs inside auth wrapper */
.auth-form-inner .form-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.auth-form-inner .form-control,
.auth-form-inner .form-select {
    background: color-mix(in srgb, var(--surface-2) 80%, var(--surface)) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}

.auth-form-inner .form-control:focus,
.auth-form-inner .form-select:focus {
    background: var(--surface) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent) !important;
}

.auth-form-inner .input-group .form-control {
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.auth-form-inner .input-group .btn {
    border-left: none;
    border-color: var(--border) !important;
    border-radius: 0 12px 12px 0 !important;
    background: color-mix(in srgb, var(--surface-2) 80%, var(--surface)) !important;
    color: var(--text-muted) !important;
    padding: 0.65rem 1rem;
}

.auth-form-inner .input-group .btn:hover {
    background: var(--surface) !important;
    color: var(--primary) !important;
}

.auth-submit-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent);
    letter-spacing: 0.01em;
}

.auth-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 50%, transparent);
}

.auth-submit-btn:active { transform: translateY(0); }

/* =============================================
   DASHBOARD — Theme-Aware Card Headers
   ============================================= */

/* Remove Bootstrap color overrides from card headers — use theme-aware defaults */
.card-header.bg-primary.text-white,
.card-header.bg-success.text-white,
.card-header.bg-secondary.text-white,
.card-header.bg-info.text-white,
.card-header.bg-warning.text-white {
    background: transparent !important;
    color: var(--text) !important;
}

/* Dashboard profile avatar */
.dashboard-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid color-mix(in srgb, var(--primary) 30%, var(--border));
    border-radius: 50%;
}

.dashboard-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface-2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid color-mix(in srgb, var(--primary) 20%, var(--border));
}

/* Quick action cards */
.quick-action-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.quick-action-card .card-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.quick-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.quick-action-icon.qa-warning  { background: color-mix(in srgb, #f59e0b 12%, var(--surface-2)); color: #f59e0b; }
.quick-action-icon.qa-danger   { background: color-mix(in srgb, #ef4444 12%, var(--surface-2)); color: #ef4444; }
.quick-action-icon.qa-info     { background: color-mix(in srgb, #06b6d4 12%, var(--surface-2)); color: #06b6d4; }
.quick-action-icon.qa-success  { background: color-mix(in srgb, #22c55e 12%, var(--surface-2)); color: #22c55e; }
.quick-action-icon.qa-primary  { background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)); color: var(--primary); }

.quick-action-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.quick-action-card .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .auth-brand-side { display: none !important; }
    .auth-form-side { min-height: 100vh; padding: 2rem 1.25rem; }
    .auth-form-inner { max-width: 100%; }
}

@media (max-width: 575.98px) {
    .auth-form-side { padding: 1.5rem 1rem; }
    .auth-form-header h2 { font-size: 1.4rem; }
    .auth-stats-row { gap: 1rem; }
}

/* ── pusula.php ─────────────────────────────────────────────────────────────── */
.pusula-mini-chart {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 0.9rem;
}
.pusula-mini-chart-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.pusula-bar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}
.pusula-bar-col { text-align: center; }
.pusula-bar-track {
    height: 90px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 80%, var(--border));
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    padding: 3px;
}
.pusula-bar-fill {
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(180deg, #4aa3ff 0%, #2575d9 100%);
}
.pusula-bar-value {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.pusula-bar-label {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pusula-progress-list { display: grid; gap: 0.6rem; }
.pusula-progress-item .progress {
    background: color-mix(in srgb, var(--border) 60%, transparent);
    height: 8px;
}
.pusula-progress-item .progress-bar {
    background: linear-gradient(90deg, #4aa3ff, #38d9ff);
}
.pusula-plan-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--primary) 70%, #fff) 0%, var(--primary) 45%, color-mix(in srgb, var(--primary) 80%, #000) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 40%, transparent), inset 0 0 10px rgba(255, 255, 255, 0.2);
}
.compass-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.25) 100%);
}
.compass-dir {
    position: absolute;
    font-size: 0.56rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 1px rgba(0,0,0,0.45);
    line-height: 1;
}
.compass-dir.north { top: 4px; left: 50%; transform: translateX(-50%); color: #ffffff; }
.compass-dir.east  { top: 50%; right: 4px; transform: translateY(-50%); }
.compass-dir.south { bottom: 4px; left: 50%; transform: translateX(-50%); }
.compass-dir.west  { top: 50%; left: 4px; transform: translateY(-50%); }
.compass-needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 28px;
    transform: translate(-50%, -50%) rotate(25deg);
    background: linear-gradient(to top, #ff4d4d 0%, #ff4d4d 50%, #ffffff 50%, #ffffff 100%);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0,0,0,0.35);
}
.compass-cap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.2);
}

/* ── mi-page (paylaşılan kurum GYS sayfaları şablonu) ───────────────────────── */
.mi-page {
    color: var(--text);
    background: transparent;
    border-radius: 16px;
    padding: 28px 24px 32px;
}
.mi-hero {
    background: var(--surface);
    color: var(--text);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.mi-hero p { color: var(--text-muted); }
.mi-hero .btn {
    padding: 10px 18px;
    font-weight: 600;
    background: var(--mi-accent, var(--primary));
    border-color: var(--mi-accent, var(--primary));
    color: #fff;
}
.mi-hero .btn-outline-light {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.mi-hero .btn-outline-light:hover { background: var(--surface-2); }
.mi-hero .feature-pill {
    background: color-mix(in srgb, var(--mi-accent, var(--primary)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--mi-accent, var(--primary)) 20%, transparent);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text);
}
.mi-section { margin-top: 32px; }
.mi-section h2,
.mi-section h3 { font-weight: 700; color: var(--text); }
.mi-section p,
.mi-section li { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
.mi-section ul { padding-left: 1.1rem; }
.mi-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    height: 100%;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}
.mi-highlight {
    background: color-mix(in srgb, var(--mi-accent, var(--primary)) 5%, transparent);
    border-left: 4px solid var(--mi-accent, var(--primary));
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text);
}
.mi-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
}
.mi-cta p { color: var(--text-muted); }
.mi-cta .btn { padding: 10px 18px; font-weight: 600; }
.mi-cta .btn-light {
    color: #fff;
    background: var(--mi-accent, var(--primary));
    border-color: var(--mi-accent, var(--primary));
}
.mi-cta .btn-outline-light { border-color: var(--border); color: var(--text); }
.mi-cta .btn-outline-light:hover { background: var(--surface-2); }
.mi-section .accordion-item { background: var(--surface); border: 1px solid var(--border); }
.mi-section .accordion-button { background: transparent; color: var(--text); font-weight: 600; }
.mi-section .accordion-body { color: var(--text-muted); }
.mi-section .accordion-button:not(.collapsed) { background: var(--surface-2); color: var(--text); }

/* ── gys-pusula-nedir.php (.compass-*) ─────────────────────────────────────── */
.compass-intro-page {
    background: radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 38%),
                radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 34%);
    color: var(--text);
    padding: 130px 0 72px;
    min-height: 100vh;
}
.compass-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.compass-hero-content { padding: 32px; }
.compass-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.compass-hero h1 {
    margin-top: 14px;
    margin-bottom: 14px;
    font-weight: 800;
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    color: var(--text);
}
.compass-hero p { color: var(--text-muted); margin-bottom: 0; }
.compass-hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.compass-hero-actions .btn-primary { background: var(--primary); border: none; color: #fff; font-weight: 700; }
.compass-hero-actions .btn-outline-light { border-color: var(--border); color: var(--text); }
.compass-hero-actions .btn-outline-light:hover { background: var(--surface-2); }
.compass-showcase {
    padding: 24px;
    height: 100%;
    min-height: 280px;
    background: var(--surface-2);
    border-left: 1px solid var(--border);
    display: grid;
    align-content: center;
    gap: 14px;
}
.compass-dial-wrap { display: grid; place-items: center; }
.compass-dial {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 100%), var(--surface);
    border: 2px solid var(--border);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.compass-dial .dir { position: absolute; color: var(--text-muted); font-size: 0.85rem; font-weight: 700; }
.compass-dial .n { top: 10px; left: 50%; transform: translateX(-50%); color: var(--primary); }
.compass-dial .e { right: 10px; top: 50%; transform: translateY(-50%); }
.compass-dial .s { bottom: 10px; left: 50%; transform: translateX(-50%); }
.compass-dial .w { left: 10px; top: 50%; transform: translateY(-50%); }
.compass-dial .needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 92px;
    transform: translate(-50%, -50%) rotate(24deg);
    border-radius: 999px;
    background: linear-gradient(to top, var(--danger) 0%, var(--danger) 50%, var(--border) 50%, var(--border) 100%);
}
.compass-dial .core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
}
.compass-signal { display: grid; gap: 8px; }
.compass-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.compass-section { margin-top: 34px; }
.compass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}
.compass-panel h2 { color: var(--primary); font-size: 1.38rem; margin-bottom: 12px; font-weight: 700; }
.compass-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compass-feature {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}
.compass-feature i { color: var(--primary); font-size: 1.15rem; margin-bottom: 8px; }
.compass-feature h3 { color: var(--text); font-size: 1.02rem; margin-bottom: 6px; font-weight: 700; }
.compass-feature p { color: var(--text-muted); margin-bottom: 0; font-size: 0.94rem; }
.compass-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.compass-step {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}
.compass-step .num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}
.compass-step h3 { font-size: 0.98rem; color: var(--text); margin-bottom: 5px; font-weight: 700; }
.compass-step p { color: var(--text-muted); margin-bottom: 0; font-size: 0.9rem; }
.compass-cta {
    margin-top: 34px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.compass-cta h3 { margin-bottom: 4px; color: var(--text); font-size: 1.2rem; font-weight: 700; }
.compass-cta p { margin-bottom: 0; color: var(--text-muted); }
.compass-cta .btn { min-width: 190px; font-weight: 700; }
@media (max-width: 991px) {
    .compass-grid,
    .compass-flow { grid-template-columns: 1fr; }
    .compass-showcase { border-left: 0; border-top: 1px solid var(--border); }
    .compass-cta { flex-direction: column; align-items: stretch; }
}

/* ── shared page utilities ──────────────────────────────────────────────────── */
.section-title-sm { color: var(--text); font-weight: 700; }

/* ── faq.php ────────────────────────────────────────────────────────────────── */
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    margin-bottom: 0.5rem;
}
.accordion-button {
    border-radius: 14px !important;
    padding: 1.25rem 1.5rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
}
.accordion-button:focus { box-shadow: none; }
.accordion-button:not(.collapsed) {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button::after { filter: var(--bs-accordion-btn-icon-filter, none); }
.accordion-body {
    background: transparent;
    color: var(--text-muted);
    padding: 1rem 1.5rem 1.25rem;
    line-height: 1.7;
}
.cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
}

/* ── duyurular.php ──────────────────────────────────────────────────────────── */
.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--text);
}

/* ── resources.php ──────────────────────────────────────────────────────────── */
.material-card { height: auto; }
.material-card .card-body {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* ── profile.php — light mode ───────────────────────────────────────────────── */
html[data-theme="light"] .profile-card-header {
    background: #ffffff;
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .profile-heading h4 {
    color: #1e293b;
}

html[data-theme="light"] .profile-heading .text-muted {
    color: #64748b !important;
}

html[data-theme="light"] .profile-detail-row {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .profile-detail-label {
    color: #475569;
}

html[data-theme="light"] .profile-detail-value {
    color: #1e293b;
}

/* ── profile.php — dark mode (zaten karanlık arka plan üstüne yazılmış, ince ayar) */
html[data-theme="dark"] .profile-card-header {
    background: rgba(8, 15, 30, 0.55);
    border-bottom-color: #253452;
}

html[data-theme="dark"] .profile-heading h4 {
    color: #f0f4ff;
}

html[data-theme="dark"] .profile-heading .text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .profile-detail-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: #253452;
}

html[data-theme="dark"] .profile-detail-label {
    color: #94a3b8;
}

html[data-theme="dark"] .profile-detail-value {
    color: #e2e8f0;
}
