* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Georgia', serif; background: #f7f5f0; color: #1a1a1a; min-height: 100vh; }

/* NAV */
nav { background: #1a1a1a; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
nav a.logo { color: #f7f5f0; text-decoration: none; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.5px; }
nav ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav ul a { color: #aaa; text-decoration: none; font-size: 0.82rem; letter-spacing: 0.5px; transition: color 0.2s; }
nav ul a:hover { color: #f7f5f0; }

/* ADS */
.ad-banner { background: #e8e4dc; border: 1px dashed #bbb; text-align: center; padding: 0.6rem; font-size: 11px; color: #888; letter-spacing: 1px; text-transform: uppercase; }
.ad-mid { background: #e8e4dc; border: 1px dashed #bbb; text-align: center; padding: 0.75rem; margin: 0.75rem 1rem; font-size: 11px; color: #888; letter-spacing: 1px; text-transform: uppercase; border-radius: 8px; }

/* HERO */
.hero { background: #1a1a1a; color: #f7f5f0; padding: 2rem 1.5rem 1.5rem; text-align: center; }
.hero h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.25rem; }
.hero p { font-size: 0.95rem; color: #aaa; }

/* CARD */
.card { background: #fff; border-radius: 16px; padding: 1.5rem; margin: 1.25rem 1rem; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }

/* INPUTS */
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #888; margin-bottom: 6px; }
.input-group { position: relative; margin-bottom: 1.25rem; }
.prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: #555; }
input[type="number"] { width: 100%; padding: 12px 14px 12px 32px; font-size: 1.2rem; border: 1.5px solid #ddd; border-radius: 10px; background: #fafafa; font-family: Georgia, serif; outline: none; transition: border-color 0.2s; }
input[type="number"]:focus { border-color: #1a1a1a; }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* TIP BUTTONS */
.tip-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 1.25rem; }
.tip-btn { padding: 10px 4px; border: 1.5px solid #ddd; border-radius: 10px; background: #fff; font-size: 0.95rem; font-family: Georgia, serif; cursor: pointer; transition: all 0.15s; color: #1a1a1a; }
.tip-btn:hover { border-color: #1a1a1a; }
.tip-btn.active { background: #1a1a1a; color: #f7f5f0; border-color: #1a1a1a; }

/* SPLIT */
.split-row { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.split-btn { width: 36px; height: 36px; border: 1.5px solid #ddd; border-radius: 8px; background: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.split-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.split-count { font-size: 1.3rem; font-weight: 700; min-width: 28px; text-align: center; }

/* RESULTS */
.results { background: #1a1a1a; border-radius: 16px; padding: 1.5rem; margin: 0 1rem 0.5rem; color: #f7f5f0; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #333; }
.result-row:last-child { border-bottom: none; padding-top: 14px; }
.result-label { font-size: 13px; color: #aaa; }
.result-value { font-size: 1.3rem; font-family: Georgia, serif; }
.result-row.total .result-value { font-size: 1.8rem; font-weight: 700; }
.result-row.total .result-label { color: #f7f5f0; font-size: 14px; }

/* SEO CONTENT */
.seo-section { padding: 1.5rem 1rem 2rem; max-width: 720px; margin: 0 auto; }
.seo-section h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.seo-section h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; color: #333; }
.seo-section p, .seo-section li { font-size: 0.88rem; color: #555; line-height: 1.75; }
.seo-section ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.faq-item { border-top: 1px solid #e0e0e0; padding: 0.75rem 0; }
.faq-item strong { display: block; font-size: 0.9rem; margin-bottom: 4px; color: #1a1a1a; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.8rem; color: #999; padding: 0.6rem 1rem; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #1a1a1a; }

/* RELATED LINKS */
.related { padding: 1rem; margin: 0.5rem 1rem 1.5rem; }
.related h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #888; margin-bottom: 0.75rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.related-grid a { display: block; padding: 10px 14px; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 0.83rem; color: #1a1a1a; text-decoration: none; transition: all 0.15s; }
.related-grid a:hover { border-color: #1a1a1a; }

/* FOOTER */
footer { background: #1a1a1a; color: #666; text-align: center; padding: 1.5rem; font-size: 0.8rem; margin-top: 2rem; }
footer a { color: #888; text-decoration: none; margin: 0 0.5rem; }
