* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: #f8f4f0;
    color: #2c2a2a;
    line-height: 1.6;
    background-image: 
        linear-gradient(#f0e9e0 1px, transparent 1px),
        linear-gradient(90deg, #f0e9e0 1px, transparent 1px);
    background-size: 40px 40px;
}

body.dark {
    background: #1f1b24;
    color: #e8d9c9;
}

/* Header */
header {
    background: linear-gradient(135deg, #c9a7eb, #a8d5ba);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    border-bottom: 7px solid #4a3f5c;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 1.2rem;
    padding: 0 1rem;
}

.logo {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.4rem;
    letter-spacing: -1px;
    color: white;
    text-shadow: 3px 3px 0 #4a3f5c;
    text-decoration: none;           /* Removed underline */
    border-bottom: none;
}

/* SUPER CLEAN TOGGLE - No icons at all */
.theme-toggle {
    cursor: pointer;
    text-align: center;
}

.slider {
    width: 70px;
    height: 32px;
    background: #fffdf7;
    border: 4px solid #4a3f5c;
    border-radius: 50px;
    position: relative;
    margin: 0 auto;
    box-shadow: 4px 4px 0 #4a3f5c;
}

.slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #4a3f5c;
    border-radius: 50%;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    transition: all 0.4s ease;
}

body.dark .slider::before {
    left: 38px;
    background: #e8d9c9;
}

.theme-toggle::after {
    content: "Dark Mode";
    display: block;
    margin-top: 8px;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.95rem;
    color: #4a3f5c;
}

body.dark .theme-toggle::after {
    color: #e8d9c9;
}

/* Title & Tagline */
h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.4rem;
    color: #4a3f5c;
    margin-bottom: 0.4rem;
}

.tagline {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 1.8rem;
    color: #4a3f5c;
    font-weight: 700;
}

/* Search & Filters */
.search-filter {
    max-width: 820px;
    margin: 0 auto;
}

#search-input {
    width: 100%;
    max-width: 520px;
    padding: 16px 22px;
    border: 5px solid #4a3f5c;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: 'Permanent Marker', cursive;
    background: #fffdf7;
    box-shadow: 5px 5px 0 #4a3f5c;
    margin-bottom: 1.2rem;
}

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

.filter-btn {
    padding: 10px 20px;
    border: 4px solid #4a3f5c;
    background: #e8d9c9;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #4a3f5c;
    transition: all 0.25s;
    color: #2c2a2a;
}

.filter-btn.active,
.filter-btn:hover {
    background: #c9a7eb;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #4a3f5c;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1.5rem;
    max-width: 1250px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.card {
    background: #fffdf7;
    padding: 1.7rem 1.3rem;
    border: 5px solid #4a3f5c;
    border-radius: 6px;
    box-shadow: 7px 7px 0 #4a3f5c;
    transition: all 0.3s;
    text-align: center;
    min-height: 152px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.card h3, .card p {
    color: #5e4b7c;
}

.card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 12px 12px 0 #4a3f5c;
}

.card h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.42rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 1.03rem;
    opacity: 0.9;
}

/* Dark Mode Cards */
body.dark .card {
    background: #2c2533;
    border-color: #d4b8a8;
    box-shadow: 7px 7px 0 #d4b8a8;
}

body.dark .card h3,
body.dark .card p {
    color: #e8d9c9;
}

body.dark header {
    background: linear-gradient(135deg, #9b7fd1, #7ab8a0);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    color: #5c5248;
    font-size: 1.05rem;
    border-top: 6px solid #4a3f5c;
}

body.dark footer {
    color: #d4b8a8;
    border-color: #d4b8a8;
}

/* ====================== CALCULATOR PAGES ====================== */

.page-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.8rem;
    color: #4a3f5c;
    margin: 1.5rem 0 2rem;
    text-align: center;

}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.big-card {
    background: #fffdf7;
    border: 6px solid #4a3f5c;
    border-radius: 12px;
    box-shadow: 8px 8px 0 #4a3f5c;
    padding: 2.5rem 2rem;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

body.dark .big-card {
    background: #2c2533;
    border-color: #d4b8a8;
    box-shadow: 8px 8px 0 #d4b8a8;
}

.big-card label {
    display: block;
    margin: 1.2rem 0 0.5rem;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    color: #5e4b7c;
}

body.dark .big-card label {
    color: #d4b8a8;
}

.big-card input,
.big-card select {
    width: 100%;
    padding: 14px;
    border: 4px solid #4a3f5c;
    border-radius: 6px;
    font-size: 1.1rem;
    background: #fffdf7;
    margin-bottom: 1rem;
}

body.dark .big-card input,
body.dark .big-card select {
    background: #2c2533;
    border-color: #d4b8a8;
    color: #e8d9c9;
}

.big-card button {
    background: #c9a7eb;
    color: #2c2a2a;
    border: 5px solid #4a3f5c;
    padding: 14px 40px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 5px 5px 0 #4a3f5c;
    margin-top: 1rem;
}

.big-card button:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 #4a3f5c;
}

.result {
    margin-top: 2rem;
    font-size: 1.5rem;
    min-height: 60px;
}

/* Why Choose Section */
.why-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.why-section h2 {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.6rem;
    color: #4a3f5c;
    margin-bottom: 0.8rem;
}

.why-subtitle {
    font-size: 1.2rem;
    color: #5e4b7c;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.why-card {
    background: #fffdf7;
    border: 5px solid #4a3f5c;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 6px 6px 0 #4a3f5c;
    transition: all 0.3s;
}

.why-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 #4a3f5c;
}

.why-icon {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.55rem;
    color: #5e4b7c;
    margin-bottom: 0.8rem;
}

.why-card p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Dark Mode */
body.dark .why-card {
    background: #2c2533;
    border-color: #d4b8a8;
    box-shadow: 6px 6px 0 #d4b8a8;
}

body.dark .why-section h2,
body.dark .why-card h3 {
    color: #d4b8a8;
}

/* Footer Links */
.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #5e4b7c;
    text-decoration: none;
    margin: 0 12px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: #c9a7eb;
}

body.dark .footer-links a {
    color: #d4b8a8;
}

body.dark .footer-links a:hover {
    color: #c9a7eb;
}