 *,
 *::before,
 *::after {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --primary-color: #667eea;
     --secondary-color: #764ba2;
     --success-color: #10b981;
     --error-color: #ef4444;
     --warning-color: #f59e0b;
     --dark-bg: #1f2937;
     --light-bg: #f8fafc;
     --border-color: #e5e7eb;
     --mono: 'Consolas', 'Monaco', monospace;
 }

 body {
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
     line-height: 1.6;
     background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
     min-height: 100vh;
     padding-top: 60px;
     color: #1f2937;
 }

 /* Back Button */
 .back-button {
     position: fixed;
     top: 10px;
     left: 20px;
     background: rgba(255, 255, 255, 0.95);
     color: #333;
     padding: 10px 20px;
     border-radius: 30px;
     text-decoration: none;
     font-weight: 600;
     font-size: 0.95rem;
     border: none;
     cursor: pointer;
     z-index: 1000;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     transition: all 0.2s;
 }

 .back-button:hover {
     background: white;
     transform: translateX(-3px);
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
 }

 /* Breadcrumb */
 .breadcrumb-nav {
     max-width: 1000px;
     margin: 0 auto;
     padding: 15px 20px 5px;
 }

 .breadcrumb {
     list-style: none;
     display: flex;
     gap: 8px;
     font-size: 0.9rem;
 }

 .breadcrumb li {
     display: flex;
     align-items: center;
     color: rgba(255, 255, 255, 0.9);
 }

 .breadcrumb li:not(:last-child)::after {
     content: '›';
     margin-left: 8px;
     color: rgba(255, 255, 255, 0.6);
     font-size: 1.2rem;
 }

 .breadcrumb a {
     color: white;
     text-decoration: none;
     transition: opacity 0.2s;
 }

 .breadcrumb a:hover {
     opacity: 0.8;
     text-decoration: underline;
 }

 .breadcrumb [aria-current="page"] {
     color: white;
     font-weight: 600;
 }

 /* Tool Switcher */
 .tool-switcher {
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
     background: rgba(255, 255, 255, 0.12);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 14px;
     padding: 10px 16px;
     margin-bottom: 16px;
     max-width: 1000px;
     margin-left: auto;
     margin-right: auto;
 }

 .tool-switcher-label {
     color: rgba(255, 255, 255, 0.7);
     font-size: 0.8rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     margin-right: 4px;
     white-space: nowrap;
 }

 .tool-switch-btn {
     color: rgba(255, 255, 255, 0.85);
     text-decoration: none;
     font-size: 0.85rem;
     font-weight: 500;
     padding: 6px 14px;
     border-radius: 20px;
     border: 1px solid rgba(255, 255, 255, 0.2);
     background: rgba(255, 255, 255, 0.1);
     transition: all 0.2s;
     white-space: nowrap;
     display: inline-block;
 }

 .tool-switch-btn:hover {
     background: rgba(255, 255, 255, 0.25);
     color: white;
 }

 .tool-switch-btn.active {
     background: white;
     color: var(--primary-color);
     font-weight: 700;
     border-color: white;
     pointer-events: none;
 }

 @media (max-width: 600px) {
     .tool-switcher {
         gap: 6px;
         padding: 8px 12px;
     }

     .tool-switch-btn {
         font-size: 0.78rem;
         padding: 5px 10px;
     }
 }

 /* Container */
 .container {
     max-width: 1000px;
     margin: 0 auto 40px;
 }

 /* Header */
 .header {
     text-align: center;
     margin-bottom: 30px;
     color: white;
     animation: fadeInDown 0.5s ease;
 }

 @keyframes fadeInDown {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .header h1 {
     font-size: 2.5rem;
     margin-bottom: 10px;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

 .header p {
     font-size: 1.1rem;
     opacity: 0.9;
 }

 .badge {
     display: inline-block;
     background: rgba(255, 255, 255, 0.2);
     border: 1px solid rgba(255, 255, 255, 0.3);
     border-radius: 30px;
     padding: 4px 14px;
     font-size: 0.75rem;
     font-family: var(--mono);
     margin-top: 12px;
     color: white;
 }

 /* Main Card */
 .card {
     background: white;
     border-radius: 15px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
     overflow: hidden;
     margin-bottom: 30px;
     animation: fadeIn 0.6s ease;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 .card-header {
     background: var(--dark-bg);
     color: white;
     padding: 20px 28px;
     border-bottom: 1px solid #374151;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 15px;
 }

 .card-header h2 {
     font-size: 1.3rem;
     font-weight: 600;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 /* Options Bar */
 .options-bar {
     padding: 16px 28px;
     background: #f8f9fa;
     border-bottom: 1px solid var(--border-color);
     display: flex;
     flex-wrap: wrap;
     gap: 24px;
     align-items: center;
 }

 .option-group {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .option-group label {
     font-size: 0.85rem;
     color: #555;
     cursor: pointer;
 }

 .option-group input[type="checkbox"] {
     width: 17px;
     height: 17px;
     cursor: pointer;
     accent-color: var(--primary-color);
 }

 .option-select {
     background: white;
     border: 1px solid var(--border-color);
     padding: 8px 14px;
     border-radius: 10px;
     color: #333;
     font-family: var(--mono);
     font-size: 0.8rem;
     cursor: pointer;
 }

 /* Panels Grid */
 .panels-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 0;
 }

 @media (max-width: 800px) {
     .panels-grid {
         grid-template-columns: 1fr;
     }
 }

 .panel {
     display: flex;
     flex-direction: column;
     min-height: 580px;
 }

 .panel:first-child {
     border-right: 1px solid var(--border-color);
 }

 @media (max-width: 800px) {
     .panel:first-child {
         border-right: none;
         border-bottom: 1px solid var(--border-color);
     }
 }

 .panel-header {
     padding: 14px 20px;
     background: #f8f9fa;
     border-bottom: 1px solid var(--border-color);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .panel-title {
     font-weight: 600;
     color: #333;
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 0.9rem;
 }

 .panel-actions {
     display: flex;
     gap: 8px;
 }

 .icon-btn {
     background: white;
     border: 1px solid var(--border-color);
     padding: 6px 12px;
     border-radius: 8px;
     font-size: 0.75rem;
     cursor: pointer;
     color: #555;
     transition: all 0.2s;
     font-family: inherit;
 }

 .icon-btn:hover {
     border-color: var(--primary-color);
     color: var(--primary-color);
     background: #f0f2ff;
 }

 textarea {
     flex: 1;
     width: 100%;
     min-height: 520px;
     padding: 20px;
     font-family: var(--mono);
     font-size: 13px;
     line-height: 1.6;
     background: #fafafa;
     color: #1f2937;
     border: none;
     resize: vertical;
     outline: none;
 }

 textarea:focus {
     background: #f0f4ff;
 }

 textarea::placeholder {
     color: #9ca3af;
 }

 textarea[readonly] {
     background: #f3f4f6;
 }

 /* ===== DARK MODE ===== */
 body.dark-theme {
     background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
     color: #f1f5f9;
 }

 body.dark-theme .card {
     background: #1e293b;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
 }

 body.dark-theme .card-header {
     background: #0f172a;
     border-color: #334155;
 }

 body.dark-theme .options-bar {
     background: #0f172a;
     border-color: #334155;
 }

 body.dark-theme .option-group label {
     color: #94a3b8;
 }

 body.dark-theme .option-select {
     background: #1e293b;
     border-color: #334155;
     color: #f1f5f9;
 }

 body.dark-theme .panel-header {
     background: #0f172a;
     border-color: #334155;
 }

 body.dark-theme .panel-title {
     color: #f1f5f9;
 }

 body.dark-theme .panel:first-child {
     border-color: #334155;
 }

 body.dark-theme .icon-btn {
     background: #1e293b;
     border-color: #334155;
     color: #94a3b8;
 }

 body.dark-theme .icon-btn:hover {
     border-color: var(--primary-color);
     color: var(--primary-color);
     background: rgba(102, 126, 234, 0.15);
 }

 body.dark-theme textarea {
     background: #1e293b;
     color: #f1f5f9;
 }

 body.dark-theme textarea:focus {
     background: #1a2538;
 }

 body.dark-theme textarea::placeholder {
     color: #64748b;
 }

 body.dark-theme textarea[readonly] {
     background: #162032;
 }

 body.dark-theme .panel-footer {
     background: #0f172a;
     border-color: #334155;
     color: #64748b;
 }

 body.dark-theme .action-bar {
     background: #0f172a;
     border-color: #334155;
 }

 body.dark-theme .btn-secondary {
     background: #1e293b;
     border-color: #334155;
     color: #f1f5f9;
 }

 body.dark-theme .btn-secondary:hover {
     border-color: var(--primary-color);
     color: var(--primary-color);
 }

 body.dark-theme .btn-danger {
     background: #1e293b;
 }

 body.dark-theme .stats-row {
     background: #0f172a;
     border-color: #334155;
 }

 body.dark-theme .stat-card {
     background: #1e293b;
     border-color: #334155;
 }

 body.dark-theme .stat-value {
     color: #818cf8;
 }

 body.dark-theme .stat-label {
     color: #64748b;
 }

 body.dark-theme .message-error {
     background: rgba(239, 68, 68, 0.15);
     color: #fecaca;
 }

 body.dark-theme .message-success {
     background: rgba(16, 185, 129, 0.15);
     color: #a7f3d0;
 }

 body.dark-theme .related-tools-section,
 body.dark-theme .faq-section,
 body.dark-theme .seo-content {
     background: #1e293b;
     box-shadow: none;
     border: 1px solid #334155;
 }

 body.dark-theme .related-tools-section h3,
 body.dark-theme .faq-section h3 {
     color: #f1f5f9;
 }

 body.dark-theme .seo-content h2 {
     color: #f1f5f9;
 }

 body.dark-theme .seo-content p {
     color: #94a3b8;
 }

 body.dark-theme .seo-content code {
     background: #0f172a;
     color: #a5b4fc;
 }

 body.dark-theme .related-link {
     background: #0f172a;
     color: #94a3b8;
     border-color: #334155;
 }

 body.dark-theme .faq-item {
     background: #0f172a;
     border-color: #334155;
 }

 body.dark-theme .faq-item summary {
     color: #f1f5f9;
 }

 body.dark-theme .faq-item p {
     color: #94a3b8;
 }

 .panel-footer {
     padding: 10px 20px;
     font-size: 0.75rem;
     color: #9ca3af;
     background: #f8f9fa;
     border-top: 1px solid var(--border-color);
     display: flex;
     justify-content: space-between;
 }

 /* Action Buttons */
 .action-bar {
     padding: 20px 28px;
     background: #f8f9fa;
     border-top: 1px solid var(--border-color);
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     align-items: center;
 }

 .btn {
     padding: 12px 28px;
     border-radius: 40px;
     font-weight: 600;
     font-size: 0.9rem;
     cursor: pointer;
     transition: all 0.25s;
     border: none;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-family: inherit;
 }

 .btn-primary {
     background: var(--primary-color);
     color: white;
 }

 .btn-primary:hover {
     background: #5a6fd8;
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
 }

 .btn-success {
     background: var(--success-color);
     color: white;
 }

 .btn-success:hover {
     background: #059669;
     transform: translateY(-2px);
 }

 .btn-secondary {
     background: white;
     border: 1px solid var(--border-color);
     color: #333;
 }

 .btn-secondary:hover {
     border-color: var(--primary-color);
     color: var(--primary-color);
     background: #f0f2ff;
 }

 .btn-danger {
     background: white;
     border: 1px solid var(--error-color);
     color: var(--error-color);
 }

 .btn-danger:hover {
     background: #fef2f2;
     transform: translateY(-2px);
 }

 /* Stats Row */
 .stats-row {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
     gap: 16px;
     padding: 20px 28px;
     background: #f8f9fa;
     border-top: 1px solid var(--border-color);
 }

 .stat-card {
     text-align: center;
     padding: 12px;
     background: white;
     border-radius: 12px;
     border: 1px solid var(--border-color);
 }

 .stat-value {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--primary-color);
     font-family: var(--mono);
 }

 .stat-label {
     font-size: 0.7rem;
     color: #9ca3af;
     margin-top: 4px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* Message */
 .message {
     margin: 0 28px 20px 28px;
     padding: 12px 18px;
     border-radius: 12px;
     display: none;
     animation: slideIn 0.25s ease;
     font-size: 0.85rem;
 }

 .message.show {
     display: block;
 }

 .message-error {
     background: #fef2f2;
     border-left: 4px solid var(--error-color);
     color: #b91c1c;
 }

 .message-success {
     background: #f0fdf4;
     border-left: 4px solid var(--success-color);
     color: #065f46;
 }

 @keyframes slideIn {
     from {
         opacity: 0;
         transform: translateY(-5px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Related Tools & FAQ & SEO */
 .related-tools-section,
 .faq-section,
 .seo-content {
     background: white;
     border-radius: 15px;
     padding: 24px 28px;
     margin-top: 24px;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 }

 .related-tools-section h3,
 .faq-section h3 {
     color: #333;
     font-size: 1.1rem;
     margin-bottom: 16px;
 }

 .seo-content h2 {
     color: #2c3e50;
     font-size: 1.2rem;
     margin-bottom: 10px;
     margin-top: 20px;
 }

 .seo-content h2:first-child {
     margin-top: 0;
 }

 .related-links {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
 }

 .related-link {
     display: inline-block;
     padding: 8px 18px;
     background: #e9ecef;
     color: #333;
     text-decoration: none;
     border-radius: 20px;
     font-weight: 500;
     font-size: 0.85rem;
     transition: all 0.2s;
 }

 .related-link:hover {
     background: var(--primary-color);
     color: white;
     transform: translateY(-2px);
 }

 .faq-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 12px;
 }

 .faq-item {
     background: #f8f9fa;
     padding: 14px 18px;
     border-radius: 8px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
 }

 .faq-item summary {
     font-weight: 600;
     color: #333;
     cursor: pointer;
     font-size: 0.9rem;
     padding: 5px 0;
 }

 .faq-item summary:hover {
     color: var(--primary-color);
 }

 .faq-item p {
     margin-top: 8px;
     color: #555;
     line-height: 1.6;
     font-size: 0.9rem;
 }

 .seo-content p {
     color: #555;
     line-height: 1.7;
     font-size: 0.95rem;
     margin-bottom: 16px;
 }

 .seo-content code {
     background: #f3f4f6;
     padding: 2px 6px;
     border-radius: 4px;
     font-family: var(--mono);
     font-size: 0.85rem;
     color: #374151;
 }

 /* Footer */
 .footer {
     background: #2c3e50;
     color: white;
     padding: 20px;
     text-align: center;
     font-size: 0.9rem;
     margin-top: 0;
     border-radius: 0 0 15px 15px;
 }

 .footer a {
     color: rgba(255, 255, 255, 0.8);
     text-decoration: none;
 }

 .footer a:hover {
     color: white;
     text-decoration: underline;
 }

 .shortcuts {
     margin-left: auto;
     font-size: 0.7rem;
     color: #9ca3af;
 }

 .kbd {
     background: #374151;
     color: #d1d5db;
     padding: 2px 8px;
     border-radius: 6px;
     font-family: var(--mono);
     font-size: 0.7rem;
 }

 .theme-toggle {
     background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.3);
     color: white;
     cursor: pointer;
     font-size: 1.1rem;
     padding: 8px 14px;
     border-radius: 8px;
     transition: all 0.2s;
 }

 .theme-toggle:hover {
     background: rgba(255, 255, 255, 0.2);
 }

 /* site-nav hide karo — back-button use hoga */
 .site-nav {
     display: none;
 }

 @media (max-width: 768px) {
     body {
         padding-top: 50px;
     }

     .header h1 {
         font-size: 1.8rem;
     }

     .action-bar {
         padding: 15px;
     }

     .stats-row {
         padding: 15px;
     }
 }