:root { --primary-color: #E63946; --primary-hover: #D62828; --bg-color: #F8F9FB; --card-bg: #FFFFFF; --text-main: #1F2937; --text-muted: #6B7280; --border-color: #D1D5DB; --input-bg: #FFFFFF; --radius: 8px; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; }

.navbar { background: var(--card-bg); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; max-width: 1150px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; }
.nav-logo { font-size: 1.4rem; font-weight: 700; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icon { background: var(--primary-color); color: white; padding: 4px 8px; border-radius: 6px; font-size: 1.2rem; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-links { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.nav-links li a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.2s; font-size: 1rem; }
.nav-links li a:hover { color: var(--primary-color); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-main); padding: 5px; }

/* --- NAYA: Common Coffee Button Style (Header aur Footer dono ke liye fixed) --- */
.coffee-btn, .coffee-btn-footer { display: inline-flex; align-items: center; justify-content: center; background-color: #FFDD00; color: #000000 !important; padding: 10px 24px; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); width: max-content; margin: 15px auto; }
.coffee-btn:hover, .coffee-btn-footer:hover { background-color: #FFEA00; transform: translateY(-2px); }

/* Baaki UI Styles */
.layout-container { display: flex; align-items: flex-start; gap: 30px; width: 100%; max-width: 1150px; margin: 40px auto; padding: 0 20px; flex: 1; }
.main-wrapper { flex: 1; width: 100%; }
.sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.ad-box { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; text-align: center; box-shadow: var(--shadow-sm); }
.ad-label { display: block; font-size: 1.15rem; font-weight: 900; color: #000000; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; }
.ad-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; border: 1px solid #E5E7EB; }
.ad-title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; line-height: 1.4; }
.ad-btn { display: block; background: var(--primary-color); color: white; text-decoration: none; padding: 12px 15px; border-radius: 6px; font-size: 0.95rem; font-weight: 700; transition: 0.2s; width: 100%; }
.ad-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2); }
.header { text-align: center; margin-bottom: 30px; }
.header h1 { color: var(--text-main); font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.header p { color: var(--text-muted); font-size: 1.05rem; }
.container { background: var(--card-bg); padding: 35px; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.form-section { background: #F9FAFB; padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 25px; }
.form-group { margin-bottom: 15px; }
.mt-15 { margin-top: 15px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.required { color: var(--primary-color); }
.topic-textarea { width: 100%; height: 100px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 1rem; resize: none; background: var(--input-bg); transition: 0.2s; outline: none; color: var(--text-main); }
.topic-textarea:focus, .form-select:focus, .form-input:focus { border-color: #9CA3AF; box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2); }
.char-count { text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.advanced-toggle { font-size: 0.95rem; font-weight: 600; color: var(--text-main); cursor: pointer; padding: 15px 0 5px 0; display: inline-flex; align-items: center; gap: 8px; user-select: none; }
.advanced-toggle:hover { color: var(--primary-color); }
.toggle-icon { transition: transform 0.3s ease; font-size: 0.8rem; }
.toggle-icon.open { transform: rotate(180deg); }
.advanced-panel { display: none; padding-top: 20px; margin-top: 10px; border-top: 1px dashed var(--border-color); }
.advanced-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 0.95rem; background: var(--input-bg); outline: none; transition: 0.2s; color: var(--text-main); }
.form-select { width: 100%; padding: 12px 40px 12px 15px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 0.95rem; background-color: var(--input-bg); outline: none; transition: 0.2s; color: var(--text-main); cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; }
.primary-btn { display: block; width: 100%; padding: 16px; background-color: var(--primary-color); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; font-weight: 600; margin-top: 30px; transition: 0.2s; box-shadow: var(--shadow-sm); }
.primary-btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.primary-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.hidden { display: none !important; }
#loading { text-align: center; padding: 40px 0; color: var(--text-muted); }
.spinner { border: 3px solid #f3f3f3; border-top: 3px solid var(--primary-color); border-radius: 50%; width: 35px; height: 35px; animation: spin 1s linear infinite; margin: 0 auto 15px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.result-card { margin-top: 25px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--card-bg); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-header { background-color: #F9FAFB; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
.card-header h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-main); }
.copy-btn { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: 0.2s; font-weight: 600; }
.copy-btn:hover { background: var(--text-main); color: white; border-color: var(--text-main); }
.content-box { padding: 25px; }
ul.list-box { list-style: none; }
ul.list-box li { padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; color: var(--text-main); line-height: 1.5; }
ul.list-box li:last-child { border-bottom: none; }
.desc-box { width: 100%; height: 200px; padding: 0; border: none; resize: vertical; font-size: 0.95rem; outline: none; line-height: 1.6; color: var(--text-main); background: transparent; }
.auto-height { height: auto; min-height: 100px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { background: #F3F4F6; border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 500;}
.highlight-card { border-left: 4px solid #3B82F6; }
.warning-card { border-left: 4px solid #F59E0B; }
.helper-text { font-size: 0.85rem; color: #6B7280; margin-bottom: 10px; font-style: italic; }
.page-content { background: var(--card-bg); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); width: 100%; }
.page-content h2 { color: var(--text-main); margin-bottom: 25px; font-size: 1.8rem; font-weight: 700; }
.page-content h3 { color: var(--text-main); margin-top: 25px; margin-bottom: 15px; font-size: 1.3rem; font-weight: 600; }
.page-content p { color: var(--text-muted); margin-bottom: 15px; line-height: 1.8; font-size: 1.05rem; }
.page-content ul { margin-left: 20px; margin-bottom: 20px; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.page-content li { margin-bottom: 10px; }
.page-content strong { color: var(--text-main); }
.seo-section { margin-top: 40px; padding: 35px; background: var(--card-bg); border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.seo-section h2 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 20px; font-weight: 700; }
.seo-section h3 { font-size: 1.3rem; color: var(--text-main); margin-top: 25px; margin-bottom: 12px; font-weight: 600; }
.seo-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 15px; font-size: 1.05rem; }
.seo-section ul { margin-left: 20px; margin-bottom: 20px; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.seo-section li { margin-bottom: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 25px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; background: var(--input-bg); color: var(--text-main); font-family: 'Inter', sans-serif; outline: none; transition: 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1); }
.contact-form textarea { resize: vertical; height: 150px; }
.contact-form button { background: var(--primary-color); color: white; border: none; padding: 15px; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.contact-form button:hover { background: var(--primary-hover); transform: translateY(-2px); }
.footer { background: #111827; color: white; padding: 40px 20px 20px; text-align: center; margin-top: auto; }
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #9CA3AF; text-decoration: none; font-size: 0.95rem; transition: 0.2s; }
.footer-links a:hover { color: white; }
.copyright { font-size: 0.85rem; color: #6B7280; margin-top: 15px; }

/* --- MOBILE RESPONSIVE UPDATES --- */
@media (max-width: 900px) { .layout-container { flex-direction: column; } .sidebar { width: 100%; position: relative; top: 0; } }
@media (max-width: 768px) {
    .nav-container { padding: 15px 20px; flex-wrap: wrap; }
    .nav-brand { flex-grow: 1; }
    .mobile-menu-toggle { display: block; }
    .nav-menu { display: none; width: 100%; flex-direction: column; gap: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); margin-top: 15px; }
    .nav-menu.active { display: flex; align-items: center; } 
    .nav-links { flex-direction: column; align-items: center; gap: 15px; }
}
@media (max-width: 600px) { .grid-2-col { grid-template-columns: 1fr; } .layout-container { padding: 0 15px; } .container, .page-content, .seo-section { padding: 20px; } .form-section { padding: 15px; } .card-header { flex-direction: column; align-items: flex-start; gap: 10px; } .copy-btn { align-self: flex-start; } }

/* --- SHARE IT SECTION STYLES --- */
.share-section { margin: 25px auto; padding-top: 20px; border-top: 1px solid #374151; text-align: center; max-width: 600px; }
.share-title { color: #ffffff; margin-bottom: 15px; font-size: 1.1rem; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; }
.share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn { padding: 8px 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: white; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.3); color: white; }
.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.twitter { background-color: #000000; border: 1px solid #333; }
.telegram { background-color: #0088cc; }