:root {
    --primary-color: #2c2c2c;
    --secondary-color: #4a4a4a;
    --accent-color: #666666;
    --light-gray: #e8e8e8;
    --medium-gray: #cccccc;
    --dark-gray: #333333;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #d5d5d5 100%);
    background-size: 60px 60px, 40px 40px, 100% 100%;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--primary-color);
}

html {
    overflow-x: hidden;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: var(--primary-color) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--primary-color);
}

.calculator-card {
    transition: all 0.4s ease;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.8) 0px,
            rgba(255, 255, 255, 0.8) 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px),
        linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.calculator-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.25),
        inset 1px 1px 4px rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

.calculator-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.card-title {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.result-card {
    background:
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px,
            transparent 20px),
        linear-gradient(135deg, var(--primary-color), var(--dark-gray));
    color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
    border: 3px solid var(--medium-gray);
    position: relative;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 3px, transparent 3px);
    background-size: 50px 50px, 80px 80px;
    border-radius: inherit;
    pointer-events: none;
}

.fun-fact {
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 0, 0.1) 0px,
            rgba(255, 255, 0, 0.1) 8px,
            rgba(255, 200, 0, 0.1) 8px,
            rgba(255, 200, 0, 0.1) 16px),
        rgba(255, 248, 200, 0.6);
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 6px solid #FFD700;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
    color: #000000;
    position: relative;
    overflow: hidden;
}

.fun-fact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.fun-fact>* {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background:
        repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 20px,
            var(--dark-gray) 20px,
            var(--dark-gray) 21px);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.2),
        inset 1px 1px 2px rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        5px 5px 10px rgba(0, 0, 0, 0.3),
        inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    background:
        repeating-linear-gradient(90deg,
            var(--dark-gray) 0px,
            var(--dark-gray) 20px,
            var(--primary-color) 20px,
            var(--primary-color) 21px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.container-main {
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%);
    background-size: 30px 30px, 50px 50px, 100% 100%;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    backdrop-filter: blur(5px);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.15),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8);
    max-width: 100%;
    overflow-x: hidden;
    border: 3px solid var(--medium-gray);
    position: relative;
}

.container-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 10px,
            var(--medium-gray) 10px,
            var(--medium-gray) 20px);
}

.hero-section {
    text-align: center;
    padding: 4rem 0 2rem;
    color: var(--primary-color);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 40px);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 5px,
            transparent 5px,
            transparent 10px);
}

.hero-section img.hero-logo {
    height: 56px;
    max-height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 0.5rem;
    filter:
        grayscale(100%) contrast(1.2) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    object-fit: contain;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    padding: 8px;
    background: white;
}

@media (min-width: 576px) {
    .hero-section img.hero-logo {
        height: 64px;
        max-height: 64px;
    }
}

@media (min-width: 992px) {
    .hero-section img.hero-logo {
        height: 72px;
        max-height: 72px;
    }
}

.share-buttons {
    margin-top: 1rem;
}

.share-btn {
    margin: 0.2rem;
    border-radius: 6px;
    padding: 8px 16px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

footer {
    background:
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.8) 0px,
            rgba(0, 0, 0, 0.8) 40px,
            rgba(0, 0, 0, 0.9) 40px,
            rgba(0, 0, 0, 0.9) 41px);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--medium-gray);
}

footer h5,
footer h6 {
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: underline;
}

/* Fix horizontal scroll issues */
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.col,
[class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
}

/* Ensure cards don't overflow */
.card,
.result-card,
.calculator-card {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Fix button overflow */
.btn {
    max-width: 100%;
    word-wrap: break-word;
}

/* Enhanced Date Picker Styling - Vintage */
.date-input-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.enhanced-date-picker {
    border-radius: 6px;
    border: 3px solid var(--medium-gray);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 15px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 20px),
        linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.1),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-family: 'Georgia', serif;
    color: var(--primary-color);
}

.enhanced-date-picker:focus {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 0.3rem rgba(44, 44, 44, 0.25),
        5px 5px 10px rgba(0, 0, 0, 0.15),
        inset 1px 1px 3px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 2px,
            transparent 2px,
            transparent 20px),
        linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.enhanced-date-picker:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.12),
        inset 1px 1px 3px rgba(255, 255, 255, 0.9);
}

.date-input-wrapper .position-relative.focused {
    transform: scale(1.02);
}

.date-picker-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.position-relative.focused .date-picker-icon {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.date-preview-enhanced {
    background:
        repeating-linear-gradient(45deg,
            rgba(44, 44, 44, 0.1) 0px,
            rgba(44, 44, 44, 0.1) 4px,
            rgba(74, 74, 74, 0.1) 4px,
            rgba(74, 74, 74, 0.1) 8px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9)) !important;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    animation: slideInUp 0.4s ease;
    box-shadow:
        4px 4px 8px rgba(44, 44, 44, 0.2),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.date-preview-enhanced.animate-in {
    animation: bounceIn 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Submit Button - Vintage */
.enhanced-submit-btn {
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 30px,
            var(--dark-gray) 30px,
            var(--dark-gray) 31px);
    border: 3px solid var(--primary-color);
    border-radius: 6px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(44, 44, 44, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.enhanced-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        6px 6px 12px rgba(44, 44, 44, 0.4),
        inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    background:
        repeating-linear-gradient(90deg,
            var(--dark-gray) 0px,
            var(--dark-gray) 30px,
            var(--primary-color) 30px,
            var(--primary-color) 31px);
}

.enhanced-submit-btn:active {
    transform: translateY(-1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.enhanced-submit-btn:hover .btn-shine {
    left: 100%;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .calculator-card {
        transition: none;
    }

    .btn-primary {
        transition: background-color 0.2s ease;
    }

    .calculator-card:active {
        transform: scale(0.98);
    }

    .custom-date-picker .form-select {
        font-size: 16px;
    }
}

/* Learn / Article section - Vintage */
.learn-section .toc-card {
    border-radius: 8px;
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 20px),
        rgba(255, 255, 255, 0.96);
    border: 2px solid var(--medium-gray);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.learn-section .learn-content {
    border-radius: 8px;
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 20px),
        rgba(255, 255, 255, 0.98);
    border: 2px solid var(--medium-gray);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.learn-section .toc-list {
    list-style: none;
    margin: 0;
    padding-left: 0.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.25rem 1rem;
}

.learn-section .toc-list li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.learn-section .toc-list li a:hover {
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.learn-section h2,
.learn-section h3 {
    scroll-margin-top: 100px;
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.learn-section .info-callout {
    background:
        repeating-linear-gradient(90deg,
            rgba(74, 74, 74, 0.08) 0px,
            rgba(74, 74, 74, 0.08) 20px,
            rgba(102, 102, 102, 0.05) 20px,
            rgba(102, 102, 102, 0.05) 21px);
    border-left: 6px solid var(--secondary-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.learn-section code,
.learn-section kbd {
    background: var(--light-gray);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--medium-gray);
    font-family: 'Courier New', monospace;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form elements vintage styling */
.form-control,
.form-select {
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 20px),
        white;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.05),
        1px 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 0.2rem rgba(44, 44, 44, 0.25),
        inset 2px 2px 4px rgba(0, 0, 0, 0.08),
        2px 2px 4px rgba(255, 255, 255, 0.9);
}

/* Mobile First Responsive Design */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .container-main {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
    }

    .calculator-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .calculator-card {
        margin-bottom: 1rem;
    }

    .result-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .fun-fact {
        padding: 1rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img.logo {
        height: 24px !important;
        width: auto !important;
        margin-right: 8px;
        vertical-align: middle;
        display: inline-block;
    }

    @media (min-width: 992px) {
        .navbar-brand img.logo {
            height: 28px !important;
        }
    }

    footer {
        padding: 1rem 0;
        margin-top: 1.5rem;
    }

    footer h5,
    footer h6 {
        font-size: 1rem;
    }

    footer p,
    footer a {
        font-size: 0.85rem;
    }

    footer .row {
        margin: 0;
    }

    .share-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 0.1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .container-main {
        margin: 1rem;
        padding: 1.5rem;
    }

    .calculator-icon {
        font-size: 2.5rem;
    }

    .result-card {
        padding: 1.75rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .container-main {
        margin: 1.5rem auto;
        padding: 2rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3.2rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container-main {
        max-width: 1140px;
    }
}

/* Form responsiveness */
@media (max-width: 767.98px) {

    .form-control,
    .form-select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Calculator page title responsiveness */
    .container-main h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .container-main .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Result card columns stack on mobile */
    .result-card .col-md-4,
    .result-card .col-md-6 {
        margin-bottom: 1rem;
    }

    .result-card .col-md-4:last-child,
    .result-card .col-md-6:last-child {
        margin-bottom: 0;
    }

    /* Display numbers smaller on mobile */
    .result-card .display-4 {
        font-size: 2rem;
    }

    .result-card h2 {
        font-size: 1.5rem;
    }

    .result-card h4 {
        font-size: 1.2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container-main h1 {
        font-size: 2.2rem;
    }

    .result-card .display-4 {
        font-size: 2.5rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container-main h1 {
        font-size: 2.5rem;
    }
}

/* Navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background:
            repeating-linear-gradient(45deg,
                rgba(0, 0, 0, 0.02) 0px,
                rgba(0, 0, 0, 0.02) 2px,
                transparent 2px,
                transparent 20px),
            rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--medium-gray);
    }
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .calculator-card:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow:
            8px 8px 16px rgba(0, 0, 0, 0.25),
            inset 1px 1px 4px rgba(255, 255, 255, 0.9);
        border-color: var(--primary-color);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow:
            5px 5px 10px rgba(0, 0, 0, 0.3),
            inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    }
}

/* Additional vintage elements */
.vintage-divider {
    border: none;
    height: 3px;
    background:
        repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 10px,
            var(--medium-gray) 10px,
            var(--medium-gray) 20px);
    margin: 2rem 0;
}

.vintage-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--dark-gray);
}

/* Typewriter effect for headers */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.1em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color);
    }
}

/* Newspaper-style columns for text content */
.newspaper-columns {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 2px solid var(--medium-gray);
    text-align: justify;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .newspaper-columns {
        column-count: 1;
    }
}

/* Vintage stamp effect */
.vintage-stamp {
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.9) 0px,
            rgba(255, 255, 255, 0.9) 8px,
            rgba(0, 0, 0, 0.05) 8px,
            rgba(0, 0, 0, 0.05) 16px);
    position: relative;
    margin: 1rem 0;
}

.vintage-stamp::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px dashed var(--primary-color);
    border-radius: 12px;
    pointer-events: none;
}

/* Share System Vintage Styling */
.vintage-modal .modal-content {
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 20px),
        linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 3px solid var(--medium-gray);
    border-radius: 8px;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.2),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.vintage-modal-header {
    background:
        repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 20px,
            var(--dark-gray) 20px,
            var(--dark-gray) 21px);
    color: white;
    border-bottom: 3px solid var(--medium-gray);
    font-family: 'Georgia', serif;
}

.vintage-modal-header .modal-title {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.vintage-close {
    filter: invert(1);
}

.vintage-modal-body {
    padding: 2rem;
}

.vintage-subtitle {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}

.btn-vintage-primary {
    background:
        repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 15px,
            var(--dark-gray) 15px,
            var(--dark-gray) 16px);
    border: 2px solid var(--primary-color);
    color: white;
    font-family: 'Georgia', serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-vintage-primary:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    background:
        repeating-linear-gradient(90deg,
            var(--dark-gray) 0px,
            var(--dark-gray) 15px,
            var(--primary-color) 15px,
            var(--primary-color) 16px);
}

.btn-vintage-twitter {
    background: #1da1f2;
    border: 2px solid #1da1f2;
    color: white;
    font-family: 'Georgia', serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-vintage-twitter:hover {
    background: #0d8bd9;
    border-color: #0d8bd9;
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-vintage-facebook {
    background: #4267B2;
    border: 2px solid #4267B2;
    color: white;
    font-family: 'Georgia', serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-vintage-facebook:hover {
    background: #365899;
    border-color: #365899;
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-vintage-whatsapp {
    background: #25D366;
    border: 2px solid #25D366;
    color: white;
    font-family: 'Georgia', serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-vintage-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.vintage-toast {
    background:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 20px),
        rgba(255, 255, 255, 0.98);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.vintage-toast-header {
    background: var(--primary-color);
    color: white;
    font-family: 'Georgia', serif;
    border-bottom: 2px solid var(--medium-gray);
}

.vintage-toast-body {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
}

/* Share button positioning */
.share-section {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modern-share-btn {
    background:
        repeating-linear-gradient(90deg,
            var(--primary-color) 0px,
            var(--primary-color) 15px,
            var(--dark-gray) 15px,
            var(--dark-gray) 16px);
    border: 2px solid var(--primary-color);
    color: white;
    font-family: 'Georgia', serif;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

.modern-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    background:
        repeating-linear-gradient(90deg,
            var(--dark-gray) 0px,
            var(--dark-gray) 15px,
            var(--primary-color) 15px,
            var(--primary-color) 16px);
    color: white;
}