:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition-base: all 0.3s ease
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

a {
    transition: var(--transition-base)
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important
}

.bg-gradient-success {
    background: var(--success-gradient) !important
}

.bg-gradient-danger {
    background: var(--danger-gradient) !important
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

.fade-in {
    animation: fadeIn .6s ease-out
}

.pulse {
    animation: pulse 2s infinite
}

.hover-lift {
    transition: var(--transition-base)
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important
}

.hover-shadow:hover {
    box-shadow: var(--shadow-md) !important
}

.hover-scale:hover {
    transform: scale(1.05)
}

.card {
    border-radius: .5rem;
    overflow: hidden
}

.card-hover {
    transition: var(--transition-base);
    cursor: pointer
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg)
}

.btn {
    border-radius: .375rem;
    font-weight: 500;
    transition: var(--transition-base)
}

.btn-gradient-primary {
    background: var(--primary-gradient);
    border: none;
    color: #fff
}

.btn-gradient-primary:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md)
}

.ad-slot {
    background: none;
    border: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: .5rem
}

.ad-slot-sidebar {
    min-height: 600px
}

.ad-slot-banner {
    min-height: 90px
}

.ad-slot-leaderboard {
    min-height: 90px
}

.ad-container {
    margin: 2rem 0;
    padding: 1rem 0
}

.calculator-container {
    background: var(--omni-white);
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm)
}

.calculator-input {
    font-size: 1.1rem;
    padding: .75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: .375rem;
    transition: var(--transition-base)
}

.calculator-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 .2rem rgba(102, 126, 234, .25)
}

.calculator-result {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: .375rem;
    font-size: 1.25rem;
    font-weight: 600
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: .375rem
}

@keyframes loading {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.breadcrumb {
    background: #f8f9fa;
    border-radius: .375rem;
    padding: .75rem 1rem
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem
}

.badge {
    font-weight: 500;
    padding: .35em .65em;
    border-radius: .25rem
}

.badge-gradient {
    background: var(--primary-gradient);
    color: #fff
}

.alert {
    border-radius: .5rem;
    border-left-width: 4px
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 .2rem rgba(102, 126, 234, .25)
}

.form-label {
    font-weight: 500;
    margin-bottom: .5rem
}

img[loading=lazy] {
    opacity: 1;
    transition: opacity .3s
}

img[loading=lazy].loaded {
    opacity: 1
}

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000
}

#back-to-top.show {
    opacity: 1;
    visibility: visible
}

#back-to-top:hover {
    transform: translateY(-5px)
}

@media print {

    .ad-slot,
    .btn,
    .no-print,
    footer,
    nav {
        display: none !important
    }

    body {
        font-size: 12pt
    }

    a[href]:after {
        content: " (" attr(href) ")"
    }
}

@media (max-width:767.98px) {
    h1 {
        font-size: 2rem
    }

    .display-1 {
        font-size: 3rem
    }

    .display-5 {
        font-size: 2rem
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

::-webkit-scrollbar-track {
    background: #f1f1f1
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px
}

::-webkit-scrollbar-thumb:hover {
    background: #555
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7
}

.cursor-pointer {
    cursor: pointer
}

.object-fit-cover {
    object-fit: cover
}

.overflow-hidden {
    overflow: hidden
}

.position-relative {
    position: relative
}

.container-page {
    max-width: 1200px;
    margin: 0 auto
}

.animate-slide-up {
    animation: slideUp .6s ease-out
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.font-display {
    font-family: Inter, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700
}

.card-calculator {
    background: var(--omni-white);
    border-radius: .5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: var(--transition-base)
}

@media (min-width:640px) {
    .card-calculator {
        padding: 2rem
    }
}

.card-calculator:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px)
}

.prose-content {
    max-width: none
}

.prose-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--omni-text)
}

.prose-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    color: var(--omni-text)
}

.prose-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--omni-muted)
}

.prose-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem
}

.prose-content li {
    margin-bottom: .5rem
}

.prose-content a {
    color: #667eea;
    text-decoration: underline
}

.prose-content a:hover {
    color: #5a67d8
}

.hidden {
    display: none !important
}

.block {
    display: block !important
}

.flex {
    display: flex !important
}

@media(min-width:768px) {
    .md\:hidden {
        display: none !important
    }

    .md\:block {
        display: block !important
    }

    .md\:flex {
        display: flex !important
    }
}

@media(min-width:1024px) {
    .lg\:hidden {
        display: none !important
    }

    .lg\:block {
        display: block !important
    }

    .lg\:flex {
        display: flex !important
    }
}

.ad-desktop-only {
    display: none
}

.ad-mobile-only {
    display: block
}

.ad-sidebar-only {
    display: none
}

@media(min-width:768px) {
    .ad-desktop-only {
        display: block
    }

    .ad-mobile-only {
        display: none
    }
}

@media(min-width:1024px) {
    .ad-sidebar-only {
        display: block
    }
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2
}

.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3
}