/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   TOP NAVIGATION
   ======================================== */

.top-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 900;
}

.top-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.uk-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.uk-logo span[uk-svg] svg {
    height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.logo-text {
    padding-top: 4px;
}
@media (max-width: 639px) {
    .uk-logo span[uk-svg] svg {
        height: 18px;
    }

    .uk-logo {
        font-size: 1rem;
    }
    .logo-text {
        display: none;
    }
}


.search-bar-container {
    flex-grow: 1;
    max-width: 100%;
    position: relative;
}

.uk-search-input {
    border-radius: 25px !important;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.auth-buttons .uk-button {
    border-radius: 25px !important;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

/* ========================================
   CATEGORY MENU
   ======================================== */

.category-navbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 70px;
    z-index: 899;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 5px;
    max-width: 100%;
    box-sizing: border-box;
}

.category-menu li {
    flex-shrink: 1;
    min-width: 0;
}

.category-menu a {
    display: block;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.category-menu a:hover,
.category-menu a.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

/* Responsive category menu */
@media (max-width: 1450px) {
    .category-menu {
        gap: 4px !important;
    }
    .category-menu a {
        font-size: 0.92rem !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 1400px) {
    .category-menu {
        gap: 3px !important;
    }
    .category-menu a {
        font-size: 0.9rem !important;
        padding: 12px 12px !important;
    }
}

@media (max-width: 1300px) {
    .category-menu {
        gap: 2px !important;
    }
    .category-menu a {
        font-size: 0.88rem !important;
        padding: 11px 10px !important;
    }
}

@media (max-width: 1200px) {
    .category-menu {
        gap: 1px !important;
    }
    .category-menu a {
        font-size: 0.85rem !important;
        padding: 10px 8px !important;
    }
}

@media (max-width: 1100px) {
    .category-menu {
        gap: 0 !important;
    }
    .category-menu a {
        font-size: 0.82rem !important;
        padding: 10px 6px !important;
    }
}

@media (max-width: 1000px) {
    .category-menu a {
        font-size: 0.8rem !important;
        padding: 10px 4px !important;
    }
}

@media (max-width: 960px) {
    .category-menu {
        display: none;
    }
}

/* ========================================
   OFF-CANVAS NAVIGATION
   ======================================== */

.offcanvas-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offcanvas-buttons .uk-button {
    text-align: center;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
}

/* ========================================
   SECTIONS
   ======================================== */

.uk-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e5e5e5;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.category-icon {
    color: #007bff;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.category-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.category-count {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* ========================================
   CALCULATOR CARDS
   ======================================== */

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.calculator-icon {
    color: #007bff;
    margin-bottom: 15px;
}

.calculator-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.calculator-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.calculator-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: none;
    padding-top: 0;
}

.calculator-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.calculator-views {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   CATEGORY CALCULATOR CARDS
   ======================================== */

.category-calculator-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.category-calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.calculator-badge-new,
.calculator-badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.calculator-badge-popular {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.calculator-icon-wrapper {
    margin-bottom: 20px;
    text-align: center;
    color: #667eea;
}

.calculator-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.calculator-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.calculator-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
    color: #999;
}

.calculator-card-views,
.calculator-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calculator-card-rating {
    color: #ffa500;
}

a:hover .calculator-card-title {
    color: #667eea;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination-wrapper {
    padding: 30px 0;
}

.uk-pagination > * > * {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.uk-pagination > .uk-active > * {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.uk-pagination > * > *:hover {
    background: #f0f0f0;
}

.uk-pagination > .uk-active > *:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.uk-pagination > .uk-disabled > * {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: #999;
    font-size: 0.9rem;
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */

.calculators-grid-section {
    padding: 40px 0;
}

/* Category Header */
.category-header {
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="60" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.category-header-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.category-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-header-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
}

.category-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.category-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.stat-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e5e5e5;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.feature-icon {
    color: #007bff;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-size: 0.9rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 5px;
}

.footer-list a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-list a:hover {
    color: #fff;
}

.footer-categories-block {
    grid-column: span 2;
}

.footer-categories {
    columns: 3;
    column-gap: 20px;
}

.footer-categories li {
    break-inside: avoid;
}

@media (max-width: 768px) {
    .footer-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-categories-block {
        grid-column: span 1;
    }
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: 1px solid #7f8c8d;
    color: #bdc3c7;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #fff;
    color: #fff;
}

.lang-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}

.cookie-text strong {
    display: block;
    margin-bottom: 5px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cookie-link {
    color: #007bff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs-section {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* ========================================
   CATEGORY PAGE
   ======================================== */

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.category-header-icon {
    flex-shrink: 0;
}

.category-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-header-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.category-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.category-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

@media (max-width: 639px) {
    .category-header-content {
        flex-direction: column;
        text-align: center;
    }

    .category-header-title {
        font-size: 1.2rem;
    }
}

.category-filters-section {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-filter-button {
    background: #fff;
    border: 2px solid #e5e5e5;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-filter-button:hover,
.category-filter-button.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

@media (max-width: 639px) {
    .category-filters-section {
        padding: 14px 0;
    }

    .category-filters {
        gap: 6px;
    }

    .category-filters .uk-button {
        font-size: 0.75rem;
        padding: 4px 10px;
        line-height: 1.4;
    }
}

.category-calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.calculator-badge-popular,
.calculator-badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.calculator-badge-popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.calculator-badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.calculator-icon-small {
    color: #007bff;
    margin-bottom: 15px;
}

.calculator-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.calculator-card-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.calculator-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 0;
}

.calculator-card-views,
.calculator-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #999;
}

.category-related-section {
    background: #f8f9fa;
}

.related-category-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    height: 100%;
}

.related-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.related-category-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #333;
}

/* ========================================
   CALCULATOR PAGE
   ======================================== */

.calculator-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 50px 0;
}

.calculator-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.calculator-header-icon {
    flex-shrink: 0;
}

.calculator-header-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.calculator-header-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.6;
}

.calculator-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.calculator-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

/* Tablet: 640px – 959px */
@media (min-width: 640px) and (max-width: 959px) {
    .calculator-header {
        padding: 28px 0;
    }

    .calculator-header-content {
        gap: 18px;
    }

    .calculator-header-icon svg {
        width: 44px;
        height: 44px;
    }

    .calculator-header-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .calculator-header-description {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .calculator-section {
        padding: 25px 0 40px 0;
    }

    .calculator-form-card {
        padding: 22px;
    }

    .calculator-form-title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .calculator-form {
        gap: 14px;
    }
}

/* Mobile: < 640px */
@media (max-width: 639px) {
    .calculator-header {
        padding: 18px 0;
    }

    .calculator-header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .calculator-header-icon {
        display: none;
    }

    .calculator-header-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .calculator-header-description {
        font-size: 0.82rem;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .calculator-meta {
        gap: 10px;
        justify-content: center;
    }

    .calculator-meta-item {
        font-size: 0.78rem;
    }

    .calculator-section {
        padding: 16px 0 24px 0;
    }

    .calculator-form-card {
        padding: 16px;
    }

    .calculator-form-title {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .calculator-form {
        gap: 12px;
    }
}

.calculator-section {
    padding: 40px 0 60px 0;
}

.calculator-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e5e5e5;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.calculator-form-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.calculator-form-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.form-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-tooltip {
    color: #999;
    cursor: help;
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-currency input {
    flex: 1;
    padding-right: 45px;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    color: #999;
    font-weight: 600;
    pointer-events: none;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.results-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.results-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.results-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.results-placeholder h3 {
    margin: 15px 0 10px 0;
    color: #999;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.result-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .result-value {
        font-size: 1.8rem;
    }
}

@media (min-width: 960px) {
    .result-value {
        font-size: 2rem;
    }
}

.result-description {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 10px;
}

.formula-block {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.formula-block p {
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.results-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.description-section {
    padding: 60px 0;
}

.calculator-description {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    border: none;
}

.calculator-description h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.calculator-description h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.calculator-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.calculator-description ul {
    margin-bottom: 20px;
}

.calculator-description li {
    margin-bottom: 10px;
    color: #666;
}

.related-calculators-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.calc-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.calc-icon {
    color: #007bff;
    margin-bottom: 15px;
}

.calc-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.calc-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.calc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.calc-views {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   SHARE LINK SECTION
   ======================================== */

.share-link-section {
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.share-link-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-link-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}

.share-link-input {
    flex: 1;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 10px 15px;
    font-size: 0.9rem;
    background: #fff;
    color: #555;
    font-family: monospace;
}

.share-copy-btn {
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 0 5px 5px 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.share-copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
}

.share-link-description {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .share-link-input-group {
        flex-direction: column;
    }
    
    .share-link-input {
        border-radius: 5px 5px 0 0;
        border-right: 1px solid #ccc;
    }
    
    .share-copy-btn {
        border-radius: 0 0 5px 5px;
        justify-content: center;
    }
}

/* ========================================
   ADDITIONAL ACTIONS
   ======================================== */

.additional-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.action-btn-secondary {
    min-width: 200px;
}

/* ========================================
   HISTORY PANEL
   ======================================== */

.history-panel {
    padding: 20px;
}

.history-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.history-panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.history-clear-btn {
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.history-clear-btn:hover {
    opacity: 0.7;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.history-item-date {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
}

.history-item-params {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.history-item-result {
    font-size: 1rem;
    font-weight: 600;
    color: #007bff;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.history-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.history-empty h4 {
    margin: 10px 0;
    color: #999;
}

.history-empty p {
    font-size: 0.9rem;
}

/* ========================================
   FEEDBACK PANEL
   ======================================== */

.feedback-panel {
    padding: 20px;
}

.feedback-panel-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.feedback-panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.feedback-panel-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

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

.feedback-type-buttons {
    display: flex;
    gap: 0;
}

.feedback-type-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e5e5;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-type-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.feedback-type-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.feedback-type-btn:hover {
    background: #f8f9fa;
}

.feedback-type-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.feedback-textarea {
    min-height: 150px;
    resize: vertical;
}

.feedback-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #155724;
    display: none;
}

.feedback-success.show {
    display: block;
}

/* Inflation Calculator Specific Styles */
.inflation-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.inflation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
}

.inflation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.warning-card {
    border-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0.02) 100%);
}

.info-card {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.02) 100%);
}

.success-card {
    border-color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(46, 204, 113, 0.02) 100%);
}

.inflation-card-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.inflation-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.warning-card .inflation-card-value {
    color: #e74c3c;
}

.info-card .inflation-card-value {
    color: #3498db;
}

.success-card .inflation-card-value {
    color: #2ecc71;
}

.inflation-card-subtitle {
    font-size: 0.75rem;
    color: #999;
}

.inflation-chart {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inflation-chart canvas {
    max-width: 100%;
    max-height: 300px;
}

/* ========================================
   BUDGET CALCULATOR STYLES
   ======================================== */

.budget-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.budget-category {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    border: 2px solid;
    transition: all 0.3s ease;
    text-align: center;
}

.budget-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.needs-category {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.wants-category {
    border-color: #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.savings-category {
    border-color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
}

.budget-category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.budget-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.needs-category .budget-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.wants-category .budget-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.savings-category .budget-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.budget-category:hover .budget-icon {
    transform: scale(1.1);
}

.budget-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #333;
    line-height: 1.2;
}

.budget-category-subtitle {
    font-size: 0.7rem;
    color: #999;
    margin: 0;
    line-height: 1.3;
}

.budget-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.needs-category .budget-amount {
    color: #3498db;
}

.wants-category .budget-amount {
    color: #f39c12;
}

.savings-category .budget-amount {
    color: #2ecc71;
}

.budget-percentage {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 960px) {
    .budget-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ========================================
   FEEDBACK & SHARE PANELS
   ======================================== */

.feedback-panel {
    padding: 20px;
}

.feedback-panel-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.feedback-panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.feedback-panel-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

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

.feedback-type-buttons {
    display: flex;
    gap: 0;
}

.feedback-type-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e5e5;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-type-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.feedback-type-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.feedback-type-btn:hover {
    background: #f8f9fa;
}

.feedback-type-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.feedback-textarea {
    min-height: 150px;
    resize: vertical;
}

.share-panel {
    padding: 20px;
}

.share-panel-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.share-panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-panel-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ========================================
   MAIN CATALOG
   ======================================== */

.main-category-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.main-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.main-category-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.main-category-card:hover .main-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.main-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.main-category-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.main-category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.main-category-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.95rem;
}

.main-category-arrow {
    color: #667eea;
    transition: all 0.3s ease;
}

.main-category-card:hover .main-category-arrow {
    transform: translateX(5px);
}


/* ========================================
   RESPONSIVE - CATEGORY
   ======================================== */

/* Tablet: 640px – 959px */
@media (min-width: 640px) and (max-width: 959px) {
    .category-header {
        padding: 28px 0;
    }

    .category-header-content {
        gap: 20px;
    }

    .category-header-icon {
        width: 70px;
        height: 70px;
    }

    .category-header-icon svg {
        width: 40px;
        height: 40px;
    }

    .category-header-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .category-header-description {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .category-stats {
        gap: 20px;
    }
}

/* Mobile: < 640px */
@media (max-width: 639px) {
    .category-header {
        padding: 18px 0;
    }

    .category-header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .category-header-icon {
        display: none;
    }

    .category-header-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .category-header-description {
        font-size: 0.82rem;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .category-stats {
        justify-content: center;
        gap: 10px;
    }

    .category-stat-item {
        font-size: 0.78rem;
    }
}

@media (max-width: 639px) {
    .calculators-grid-section {
        padding: 16px 0 !important;
    }

    .category-calculator-card {
        padding: 12px;
        min-height: 0;
        border-radius: 8px;
        justify-content: center;
    }

    .category-calculator-card:hover {
        transform: none;
    }

    .calculator-card-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.3;
        text-align: center;
    }

    .calculator-card-description {
        display: none;
    }

    .calculator-card-footer {
        margin-top: 6px;
        justify-content: center;
    }

    .calculator-card-views,
    .calculator-card-rating {
        font-size: 0.72rem;
    }
}