body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(120% 80% at 10% -15%, rgba(129, 140, 248, 0.18), transparent 60%),
                radial-gradient(80% 60% at 80% -10%, rgba(236, 72, 153, 0.12), transparent 55%),
                radial-gradient(50% 60% at 90% 120%, rgba(79, 70, 229, 0.16), transparent 60%),
                linear-gradient(180deg, #f5f7ff 0%, #ffffff 65%);
    min-height: 100vh;
}

html[lang="km"] body,
html[lang="km"] body *,
body[lang="km"],
body[lang="km"] * {
    font-family: 'Battambang', 'Khmer', 'Noto Sans Khmer', 'Siemreap', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.brand-gradient {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    padding: 0;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    color: #475569;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
    background-color: rgba(99, 102, 241, 0.08);
}

.nav-link:focus {
    color: #6366f1;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .navbar-nav {
        align-items: flex-start !important;
        text-align: left;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: 1px solid rgba(148, 163, 184, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Desktop Menu Styles */
@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu {
        border: 1px solid rgba(148, 163, 184, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0.75rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background-color: rgba(99, 102, 241, 0.08);
        color: #6366f1;
    }
    
    .dropdown-item.active {
        background-color: rgba(99, 102, 241, 0.12);
        color: #6366f1;
    }
}

.tool-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
    background: #ffffff;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

.tool-card .card-body {
    padding: 1.5rem;
}

.tool-card .badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    padding: 0;
}

.tool-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-card .stretched-link {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tool-card:hover .stretched-link::after {
    transform: translateX(4px);
}

.pin-tool-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border: none;
    background: rgba(244, 246, 255, 0.88);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    color: #64748b;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    z-index: 5;
}

.pin-tool-btn i {
    font-size: 1rem;
}

.pin-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
    color: #1d4ed8;
    background: rgba(224, 231, 255, 0.95);
}

.pin-tool-btn.is-pinned {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.32));
    color: #fff;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.pinned-tools-bar .pinned-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 500;
    font-size: 0.82rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pinned-tools-bar .pinned-pill:hover {
    background: rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

.tool-search-bar .form-control:focus {
    box-shadow: none;
}

.tool-search-bar {
    background: #fff;
}

.tool-search-bar .input-group-text {
    font-size: 1.25rem;
}

.pinned-pill .unpin-btn {
    border: none;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 18px;
    height: 18px;
    font-size: 0.85rem;
}

.favorites-empty {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.favorites-empty .btn {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.related-tool-card {
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.15);
}

.related-tool-card .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

.footer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links li a {
    color: #475569;
}

.footer-links li a:hover {
    color: #1d4ed8;
}

.footer-brand-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.resource-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-brand-card,
.resource-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.newsletter-card {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.related-tool-card h3 {
    font-size: 1rem;
    margin: 0.75rem 0 0.5rem;
}

.related-tool-card p {
    font-size: 0.85rem;
    color: #4b5563;
}

.related-tool-card a {
    font-weight: 600;
    font-size: 0.85rem;
}
.card-body .badge{
    padding: 1rem;
}
.hero-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
}

.hero-orb.orb-1 {
    top: -180px;
    left: -120px;
    background: radial-gradient(circle at center, rgba(129, 140, 248, 0.4), transparent 70%);
}

.hero-orb.orb-2 {
    bottom: -220px;
    right: -160px;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.25), transparent 65%);
}

.hero-orb.orb-3 {
    top: 20%;
    right: 25%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.22), transparent 60%);
}

.hero-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(129, 140, 248, 0.38), transparent 70%);
    filter: blur(14px);
    pointer-events: none;
}

.hero-visual-sphere {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide hero visual sphere on mobile */
@media (max-width: 991.98px) {
    .hero-visual-sphere {
        display: none;
    }
}

.hero-sphere-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2), transparent 70%);
    filter: blur(60px);
    opacity: 0.8;
    animation: pulse 4s ease-in-out infinite;
}

.hero-sphere-icons {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sphere-icons i {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hero-sphere-icons i:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.hero-sphere-icons i:nth-child(2) {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.hero-sphere-icons i:nth-child(3) {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.hero-sphere-icons i:nth-child(4) {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation-delay: 3s;
}

.hero-sphere-icons i:nth-child(5) {
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(5px) translateX(10px);
    }
}

.hero-search-bar {
    max-width: 600px;
}

.hero-search-bar .form-control {
    font-size: 1rem;
}

.hero-search-bar .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.cta-button {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.32);
}

.cta-button:hover {
    color: #fff;
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.45);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
}

.sticky-placeholder {
    min-height: 90px;
}

.analytics-counter {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.analytics-counter i {
    font-size: 1.5rem;
    color: #2563eb;
}

.tool-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    color: #4c1d95;
}

/* AdSense Ad Styling - AdSense Compliant */
.ad-placeholder {
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 1rem 0;
}

/* Ensure proper spacing around ads for AdSense compliance */
.ad-placeholder ins.adsbygoogle {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Content-to-ad ratio: Ensure sufficient content between ads */
section + .ad-placeholder {
    margin-top: 3rem;
}

.ad-placeholder + section {
    margin-top: 3rem;
}

/* Sidebar ad styling */
aside .ad-placeholder {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

/* In-article ad styling */
.ad-placeholder[data-ad-layout="in-article"] {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
}

.bg-checkerboard {
    background-image:
        linear-gradient(45deg, #f3f4f6 25%, transparent 25%),
        linear-gradient(-45deg, #f3f4f6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f3f4f6 75%),
        linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.ai-text-output {
    color: #1f2937;
    font-size: 1.02rem;
    line-height: 1.75;
}

.ai-text-output p {
    margin-bottom: 1rem;
}

.ai-text-output ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.ai-text-output li {
    margin-bottom: 0.5rem;
}

.border-dashed {
    border-style: dashed !important;
}

.password-list .password-entry {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(129, 140, 248, 0.12));
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.08);
}

.password-entry code {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}

.password-entry .btn {
    min-width: 120px;
}

.thumbnail-preview-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.thumbnail-preview-container {
    position: relative;
    background: repeating-linear-gradient(45deg, rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.8) 20px, rgba(226, 232, 240, 0.6) 20px, rgba(226, 232, 240, 0.6) 40px);
    border-radius: 1.25rem;
    padding: 1rem;
}

.thumbnail-preview-container canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    background: #111827;
}

.outline-output {
    min-height: 260px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(56, 189, 248, 0.04));
    border-radius: 1rem;
    padding: 1.5rem;
}

.outline-output h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.25rem;
}

.outline-output ul {
    margin-bottom: 1rem;
}

.translator-output {
    min-height: 260px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), rgba(129, 140, 248, 0.08));
    border-radius: 1rem;
    padding: 1.5rem;
    line-height: 1.7;
}

.translator-output h6 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 0.5rem;
}

.translator-output blockquote {
    border-left: 4px solid rgba(79, 70, 229, 0.35);
    padding-left: 1rem;
    margin: 1rem 0;
    font-size: 1.05rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
}

.currency-result,
.unit-result {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.1), rgba(59, 130, 246, 0.08));
    border-radius: 1.1rem;
    min-height: 140px;
}

.currency-result p {
    font-size: 1.05rem;
}

.loan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.loan-summary-grid .summary-card {
    background: rgba(249, 250, 251, 0.9);
    border-radius: 0.9rem;
    padding: 1rem 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.6);
}

.loan-summary-grid .summary-card .label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 23, 42, 0.6);
}

.loan-summary-grid .summary-card .value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
}

.invoice-builder-card {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, #ffffff 100%);
}

.invoice-builder-card table td,
.invoice-builder-card table th {
    vertical-align: middle;
}

.invoice-summary span {
    font-weight: 500;
}

.invoice-summary span[data-invoice-total] {
    font-size: 1.35rem;
}

.word-counter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    background: rgba(226, 232, 240, 0.35);
    border-radius: 1rem;
    padding: 1.25rem;
}

.word-counter-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.6);
}

.word-counter-stats .stat-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #111827;
}

.pomodoro-display {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(129, 140, 248, 0.12));
    border-radius: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.pomodoro-time {
    font-size: clamp(2.8rem, 7vw, 4rem);
    letter-spacing: 0.08em;
}

.markdown-preview {
    min-height: 320px;
    background: #ffffff;
    overflow: auto;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    color: #111827;
    margin-top: 1.5rem;
}

.markdown-preview pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
}

.markdown-preview code {
    background: rgba(15, 23, 42, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 0.4rem;
}

.flashcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.flashcard-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.7);
    position: relative;
}

.flashcard-card .card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.35rem;
}

.flashcard-card .question {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.flashcard-card .answer {
    color: #475569;
    font-size: 0.95rem;
}

.flashcard-practice {
    min-height: 180px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.4), rgba(148, 163, 184, 0.15));
}

.flashcard-face {
    font-size: 1.1rem;
}

.flashcard-face.question {
    font-weight: 600;
}

.flashcard-face.answer {
    color: #1d4ed8;
}

.resume-preview {
    min-height: 400px;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    font-size: 0.98rem;
    line-height: 1.6;
}

.resume-preview h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.resume-preview h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    color: #1f2937;
}

.resume-preview ul {
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.khmer-typing-board {
    background: linear-gradient(140deg, rgba(59, 130, 246, 0.12), rgba(147, 197, 253, 0.12));
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.khmer-typing-area {
    font-size: 1.3rem;
    line-height: 1.8;
    font-family: "Battambang", "Noto Sans Khmer", "Siemreap", sans-serif;
}

.khmer-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gpa-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.gpa-summary-grid .summary-card {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.gpa-summary-grid .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 23, 42, 0.5);
}

.gpa-summary-grid .value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
}

.budget-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.budget-summary-grid .summary-card {
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.14), rgba(59, 130, 246, 0.14));
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.budget-summary-grid .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 23, 42, 0.6);
}

.budget-summary-grid .value {
    font-size: 1.45rem;
    font-weight: 600;
    color: #111827;
}

.document-translation {
    min-height: 320px;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.12));
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.bill-people-list .person-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bill-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.bill-summary-grid .summary-card {
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* AdSense Placeholder - hide on mobile to save space */
@media (max-width: 767.98px) {
    header .bg-light {
        display: none !important;
        min-height: 0 !important;
        padding: 0 !important;
    }
}

/* Cookie Consent Banner */
#cookieConsentBanner {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    header .bg-light {
        font-size: 0.75rem;
    }
}

/* Go to Top Button */
.go-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.go-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
}

.go-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.go-to-top-btn i {
    display: block;
    transition: transform 0.2s ease;
}

.go-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .go-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }
}

/* Ensure button doesn't overlap with cookie consent */
@media (max-width: 991.98px) {
    .go-to-top-btn {
        bottom: 6rem;
    }
}

