* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif; background: #f4f4f5; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.logo { font-size: 1.5rem; font-weight: 800; color: #111111; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: #555; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: #111111; }
.user-badge { background: #111111; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #333; padding: 4px 8px; line-height: 1; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; transition: all 0.2s; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-primary { background: #111111; color: #fff; }
.btn-primary:hover { background: #000000; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: #111111; border: 2px solid #111111; }
.btn-secondary:hover { background: #f7f7f7; }
.btn-danger { background: #000000; color: #fff; }
.btn-danger:hover { background: #000000; }
.btn-success { background: #1f1f1f; color: #fff; }
.btn-success:hover { background: #000000; }

.hero { text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 3rem; font-weight: 800; color: #2d3436; margin-bottom: 20px; }
.hero h1 span { color: #111111; }
.hero p { font-size: 1.2rem; color: #636e72; max-width: 600px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.features { padding: 60px 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: #2d3436; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.feature-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); text-align: center; }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.feature-card h3 { margin-bottom: 10px; color: #2d3436; }
.feature-card p { color: #636e72; font-size: 0.95rem; }

.pricing { padding: 60px 0; }
.pricing h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: #2d3436; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.pricing-card { background: #fff; border-radius: 12px; padding: 35px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); text-align: center; position: relative; }
.pricing-card.featured { border: 2px solid #111111; transform: scale(1.03); }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #111111; color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: #2d3436; margin-bottom: 5px; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: #636e72; }
.pricing-card .credits-count { color: #111111; font-weight: 600; margin-bottom: 20px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 25px; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; color: #555; }
.pricing-card ul li::before { content: '✓ '; color: #1f1f1f; font-weight: 700; }

.form-card { background: #fff; border-radius: 12px; padding: 40px; max-width: 450px; margin: 40px auto; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.form-card h2 { text-align: center; margin-bottom: 25px; color: #2d3436; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #555; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #111111; }
.form-group textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.pw-field { position: relative; }
.pw-field.input-wrap input { padding-right: 60px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); background: transparent; border: none; color: #111111; font-size: 0.85rem; font-weight: 600; padding: 6px 8px; cursor: pointer; }
.pw-toggle:hover { color: #000000; }
.form-hint { font-size: 0.85rem; color: #636e72; margin-top: 4px; }
.form-error { color: #000000; font-size: 0.9rem; margin-bottom: 15px; text-align: center; }
.form-success { color: #1f1f1f; font-size: 0.9rem; margin-bottom: 15px; text-align: center; }

.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e9e9e9; color: #1a1a1a; border: 1px solid #d6d6d6; }
.alert-error { background: #ededed; color: #1a1a1a; border: 1px solid #d6d6d6; }
.alert-info { background: #e9e9e9; color: #222222; border: 1px solid #d6d6d6; }

.dashboard { display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin: 30px 0; min-height: 60vh; }
.sidebar { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.sidebar .user-info { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.sidebar .user-info .avatar { width: 60px; height: 60px; border-radius: 50%; background: #111111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 10px; }
.sidebar .user-info h3 { font-size: 1rem; }
.sidebar .user-info p { font-size: 0.85rem; color: #636e72; }
.sidebar nav a { display: block; padding: 10px 15px; border-radius: 8px; color: #555; text-decoration: none; margin-bottom: 5px; transition: all 0.2s; font-weight: 500; }
.sidebar nav a:hover, .sidebar nav a.active { background: #f0f0f0; color: #111111; }
.main-content { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.main-content table { width: 100%; border-collapse: collapse; }
.main-content .table-wrap { overflow-x: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #f8f9fa; padding: 20px; border-radius: 10px; text-align: center; }
.stat-card h4 { font-size: 0.85rem; color: #636e72; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; color: #2d3436; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; }
.tool-btn { padding: 20px; background: #f8f9fa; border: 2px solid transparent; border-radius: 10px; cursor: pointer; text-align: center; transition: all 0.2s; font-weight: 600; color: #555; }
.tool-btn:hover { border-color: #111111; background: #f7f7f7; color: #111111; }
.tool-btn.active { border-color: #111111; background: #f0f0f0; color: #111111; }
.tool-btn .tool-icon { font-size: 2rem; margin-bottom: 8px; }

.chat-area { margin-top: 20px; max-height: 600px; overflow-y: auto; padding-right: 5px; }
.chat-area::-webkit-scrollbar { width: 6px; }
.chat-area::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

.msg { display: flex; gap: 14px; margin-bottom: 20px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.msg-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; margin-top: 2px; }
.msg-user .msg-avatar { background: #111111; color: #fff; }
.msg-ai .msg-avatar { background: #222222; color: #fff; }

.msg-bubble { flex: 1; min-width: 0; }
.msg-label { font-size: 0.8rem; font-weight: 600; color: #888; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.msg-content { background: #fff; border-radius: 14px; padding: 18px 22px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); line-height: 1.7; font-size: 0.95rem; color: #2d3436; overflow-wrap: break-word; }
.msg-user .msg-content { background: #f0f0f0; border-bottom-right-radius: 4px; }
.msg-ai .msg-content { border-bottom-left-radius: 4px; }

.msg-content h1, .msg-content h2, .msg-content h3, .msg-content h4 { margin: 18px 0 8px; color: #1a1a2e; font-weight: 700; }
.msg-content h1 { font-size: 1.4rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 6px; }
.msg-content h2 { font-size: 1.2rem; }
.msg-content h3 { font-size: 1.1rem; }
.msg-content h4 { font-size: 1rem; }
.msg-content p { margin-bottom: 10px; }
.msg-content p:last-child { margin-bottom: 0; }
.msg-content ul, .msg-content ol { padding-left: 22px; margin-bottom: 10px; }
.msg-content li { margin-bottom: 4px; }
.msg-content strong { color: #111827; font-weight: 700; }
.msg-content a { color: #111111; text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, 0.3); }
.msg-content a:hover { color: #000000; }
.msg-content blockquote { border-left: 3px solid #e5e7eb; padding: 10px 16px; margin: 12px 0; background: #f9fafb; border-radius: 6px; color: #4b5563; }
.msg-content hr { border: none; border-top: 1px solid #e8e8e8; margin: 16px 0; }
.msg-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.9rem; }
.msg-content th, .msg-content td { border: 1px solid #e0e0e0; padding: 8px 12px; text-align: left; }
.msg-content th { background: #f7f7f7; font-weight: 600; color: #2d3436; }
.msg-content tr:nth-child(even) { background: #fafafa; }
.msg-content code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; color: #555555; }
.msg-content pre { background: #0d1117; color: #e6edf3; padding: 16px 20px; border-radius: 10px; overflow-x: auto; margin: 12px 0; font-size: 0.85rem; line-height: 1.5; }
.msg-content pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
.msg-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

.msg-loading .msg-content { display: flex; align-items: center; gap: 10px; color: #888; }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots span { width: 7px; height: 7px; background: #aaa; border-radius: 50%; animation: dotPulse 1.4s infinite ease-in-out both; }
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotPulse { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

.chat-input-area { margin-top: 20px; }
.chat-input-area textarea { min-height: 80px; resize: vertical; }

/* ---------- Professional AI result styles ---------- */

.msg-ai .msg-bubble { max-width: 100%; }
.msg-ai .msg-avatar { background: linear-gradient(135deg, #111111, #5a5a5a); box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25); }

.result-card { background: #fff; border: 1px solid #e9ecf2; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05); }

.result-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fbfcfe; border-bottom: 1px solid #eef1f6; flex-wrap: wrap; }
.result-tool { font-size: 0.75rem; font-weight: 600; color: #6b7280; display: inline-flex; align-items: center; gap: 8px; }
.result-tool::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #111111; }
.result-words { font-size: 0.72rem; color: #9aa3b2; font-weight: 500; margin-left: auto; }
.copy-btn { background: #fff; color: #374151; border: 1px solid #d8dde5; padding: 5px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.copy-btn:hover { background: #f3f4f6; border-color: #c3cbd6; }
.copy-btn.copied { background: #f1f1f1; border-color: #cfcfcf; color: #1a1a1a; }
.view-btn { background: #fff; color: #111111; border: 1px solid #d8dde5; padding: 5px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.view-btn:hover { background: #f5f5f5; border-color: #cccccc; }

.result-viewer { position: fixed; inset: 0; z-index: 9999; display: none; }
.result-viewer.open { display: block; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.viewer-sheet { position: absolute; inset: 0; margin: auto; background: #fff; display: flex; flex-direction: column; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef1f6; }
.viewer-tool { font-size: 0.85rem; font-weight: 700; color: #111827; text-transform: uppercase; letter-spacing: 0.4px; }
.viewer-close { background: none; border: none; font-size: 1.3rem; line-height: 1; color: #6b7280; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.viewer-close:hover { background: #f3f4f6; color: #111827; }
.viewer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 22px; font-size: 0.98rem; line-height: 1.75; color: #1f2937; }
.viewer-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid #eef1f6; background: #fff; }
.viewer-copy.copied { background: #1f1f1f; color: #fff; }
.no-scroll { overflow: hidden; }

@media (min-width: 1024px) {
    .viewer-sheet { inset: 40px; max-width: 900px; border-radius: 16px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35); overflow: hidden; }
}

.msg-ai .result-card .msg-content { border: none; border-radius: 0; box-shadow: none; background: #fff; padding: 22px 24px; font-size: 0.98rem; line-height: 1.75; color: #1f2937; }

.msg-content h1, .msg-content h2, .msg-content h3, .msg-content h4, .viewer-body h1, .viewer-body h2, .viewer-body h3, .viewer-body h4 { color: #111827; }
.msg-content h1, .viewer-body h1 { font-size: 1.4rem; border-bottom: 1px solid #eef1f6; padding-bottom: 10px; }
.msg-content h2, .viewer-body h2 { margin: 24px 0 10px; font-size: 1.22rem; }
.msg-content h3, .viewer-body h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.msg-content h4, .viewer-body h4 { margin: 20px 0 8px; font-size: 1rem; }

.msg-content table, .viewer-body table { border-collapse: separate; border-spacing: 0; border: 1px solid #e6e9f0; border-radius: 10px; overflow: hidden; font-size: 0.88rem; margin: 14px 0; }
.msg-content th, .viewer-body th { background: #f3f4f6; color: #374151; font-weight: 600; padding: 10px 14px; border: none; }
.msg-content td, .viewer-body td { padding: 10px 14px; border-color: #eff1f6; }
.msg-content tr:nth-child(even) td, .viewer-body tr:nth-child(even) td { background: #fafbfc; }
.msg-content tr:hover td, .viewer-body tr:hover td { background: #f5f7fa; }

.msg-content ul li, .viewer-body ul li { margin-bottom: 5px; }
.msg-content ol li, .viewer-body ol li { margin-bottom: 5px; }
.msg-content li::marker, .viewer-body li::marker { color: #6b7280; }
.msg-content li::marker, .viewer-body li::marker { font-weight: 600; }

.msg-content p, .viewer-body p { margin-bottom: 10px; }
.msg-content p:last-child, .viewer-body p:last-child { margin-bottom: 0; }
.msg-content ul, .msg-content ol, .viewer-body ul, .viewer-body ol { padding-left: 22px; margin-bottom: 10px; }
.msg-content strong, .viewer-body strong { color: #111827; font-weight: 700; }
.msg-content a, .viewer-body a { color: #111111; text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, 0.3); }
.msg-content a:hover, .viewer-body a:hover { color: #000000; }
.msg-content blockquote, .viewer-body blockquote { border-left: 3px solid #e5e7eb; padding: 10px 16px; margin: 12px 0; background: #f9fafb; border-radius: 6px; color: #4b5563; }
.msg-content hr, .viewer-body hr { border: none; border-top: 1px solid #e8e8e8; margin: 16px 0; }
.msg-content code, .viewer-body code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; color: #555555; }
.msg-content pre, .viewer-body pre { background: #0d1117; color: #e6edf3; padding: 16px 20px; border-radius: 10px; overflow-x: auto; margin: 12px 0; font-size: 0.85rem; line-height: 1.5; }
.msg-content pre code, .viewer-body pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
.msg-content img, .viewer-body img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; }
.table-scroll table { margin: 0; }

.subscription-status { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.subscription-status.active { background: #e9e9e9; color: #1a1a1a; }
.subscription-status.expired { background: #ededed; color: #1a1a1a; }
.subscription-status.free { background: #efefef; color: #4a4a4a; }

.footer { text-align: center; padding: 30px 0; color: #636e72; font-size: 0.9rem; margin-top: 40px; border-top: 1px solid #e0e0e0; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #333; padding: 4px 8px; line-height: 1; }

@media (max-width: 900px) {
    .pricing-card.featured { transform: none; }
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr !important; }
    .hamburger { display: block; }
    .nav-links { display: none; flex-direction: column; width: 100%; gap: 0; background: #fff; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-radius: 0 0 12px 12px; z-index: 99; max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid #f0f0f0; width: 100%; font-size: 0.95rem; background: none; border-radius: 0; }
    .nav-links a:last-of-type { border-bottom: none; }
    .nav-links .btn-sm { width: 100%; text-align: center; margin-top: 5px; }
    .nav-links .user-badge { width: 100%; text-align: center; padding: 10px; margin-top: 5px; }
    .nav-inner { flex-wrap: wrap; justify-content: space-between; }
    .hero { padding: 50px 15px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }

    .dashboard { grid-template-columns: 1fr; gap: 15px; margin: 15px 0; }
    .subscription-dash { display: flex; flex-direction: column; }
    .subscription-dash .main-content { order: -1; }
    .subscription-dash .sidebar { order: 1; }
    .admin-dash { display: flex; flex-direction: column; }
    .admin-dash .main-content { order: -1; }
    .admin-dash .sidebar { order: 1; }
    .sidebar { padding: 15px; }
    .sidebar nav a { padding: 12px 15px; font-size: 1rem; }
    .main-content { padding: 20px; }

    .pricing-card.featured { transform: none; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 20px; }

    .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tool-btn { padding: 15px 10px; }
    .tool-btn .tool-icon { font-size: 1.5rem; margin-bottom: 4px; }
    .tool-btn { font-size: 0.85rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card .value { font-size: 1.4rem; }

    .form-card { margin: 20px 15px; padding: 25px; }

    .chat-area { max-height: 400px; overflow-x: hidden; }
    .msg-content { padding: 14px 16px; font-size: 0.9rem; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
    .chat-area .msg-content table { display: block; overflow-x: auto; white-space: normal; width: 100%; table-layout: fixed; font-size: 0.8rem; }
    .chat-area .msg-content th, .chat-area .msg-content td { word-break: break-word; }
    .msg-content pre { padding: 12px 14px; font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
    .msg-content a { overflow-wrap: anywhere; word-break: break-all; }

    .main-content h2 { font-size: 1.3rem; }
    .main-content h3 { font-size: 1.1rem; }

    .main-content table { display: block; overflow-x: auto; white-space: nowrap; font-size: 0.85rem; }
    th, td { padding: 8px 4px !important; }

    .footer { padding: 20px 15px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 12px; }
    .hero h1 { font-size: 1.5rem; }

    .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .tool-btn { padding: 12px 8px; font-size: 0.8rem; }
    .tool-btn .tool-icon { font-size: 1.3rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-card .value { font-size: 1.2rem; }
    .stat-card h4 { font-size: 0.75rem; }

    .pricing-grid { grid-template-columns: 1fr; gap: 15px; }
    .pricing-card { padding: 25px; }

    .main-content { padding: 15px; }
    .msg-content { padding: 12px 14px; font-size: 0.85rem; }

    .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 0.95rem; }
    .btn { padding: 10px 20px; font-size: 0.95rem; }

    .sidebar .user-info .avatar { width: 45px; height: 45px; font-size: 1.2rem; }

    .result-toolbar { padding: 9px 12px; gap: 8px; }
    .result-words { order: 3; width: 100%; margin-left: 0; }
    .msg-ai .result-card .msg-content { padding: 16px 16px; font-size: 0.88rem; line-height: 1.7; }
    .result-card { border-radius: 12px; }
}

/* ---------- New feature styles ---------- */

.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.rank-top { color: #1f1f1f; font-weight: 800; }
.rank-good { color: #111111; font-weight: 800; }
.rank-nf { color: #000000; font-weight: 700; }

.diff-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.diff-low { background: #e9e9e9; color: #1a1a1a; }
.diff-medium { background: #efefef; color: #4a4a4a; }
.diff-high { background: #ededed; color: #1a1a1a; }
.diff-unknown { background: #e2e3e5; color: #383d41; }

.editor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.editor-pane:first-child { padding-right: 10px; }
.score-empty { border: 2px dashed #e0e0e0; border-radius: 12px; min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.score-result { border: 1px solid #f0f0f0; border-radius: 12px; padding: 24px; min-height: 320px; }

.score-head { display: flex; align-items: center; gap: 20px; }
.score-ring { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800; color: #fff; flex-shrink: 0; background: #111111; }
.score-ring.good { background: #1f1f1f; }
.score-ring.mid { background: #444444; }
.score-ring.low { background: #000000; }

.score-pill { display: inline-block; padding: 3px 12px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; }
.score-good { background: #e9e9e9; color: #1a1a1a; }
.score-mid { background: #efefef; color: #4a4a4a; }
.score-low { background: #ededed; color: #1a1a1a; }

.bar { height: 8px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #111111, #5a5a5a); border-radius: 6px; transition: width 0.6s ease; }

.audit-card { border: 1px solid #f0f0f0; border-radius: 12px; padding: 24px; margin-bottom: 15px; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 10px; background: #f8f9fa; border-radius: 10px; overflow-x: auto; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; min-width: 18px; }
.chart-bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: #111111; transition: height 0.4s ease; min-height: 3px; }
.chart-col:hover .chart-bar { background: #5a5a5a; }
.chart-label { font-size: 0.68rem; color: #888; margin-top: 5px; }

.schema-code { background: #1e1e2e; color: #cdd6f4; padding: 16px 20px; border-radius: 10px; overflow-x: auto; margin: 10px 0; font-size: 0.82rem; line-height: 1.5; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; white-space: pre-wrap; }

.report-toolbar { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 57px; z-index: 90; }
.report-main { margin: 30px 0 60px; }
.report-cover { background: linear-gradient(135deg, #111111, #5a5a5a); color: #fff; border-radius: 16px; padding: 40px; margin-bottom: 30px; }
.report-brand { font-size: 1.1rem; font-weight: 800; letter-spacing: 1px; opacity: 0.9; }
.report-title { font-size: 2.2rem; font-weight: 800; margin: 10px 0 20px; }
.report-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; background: rgba(255,255,255,0.15); border-radius: 10px; padding: 18px; }
.report-meta span { display: block; font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.report-section { background: #fff; border-radius: 12px; padding: 25px; margin-bottom: 22px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.report-section h3 { color: #2d3436; margin-bottom: 15px; }
.report-footer { text-align: center; color: #888; font-size: 0.85rem; margin-top: 30px; }

@media print {
    body { background: #fff; }
    .navbar, .report-toolbar, .footer, .sidebar, .report-toolbar .btn, .footer { display: none !important; }
    .container { max-width: 100%; padding: 0; }
    .dashboard { display: block; }
    .main-content { box-shadow: none; padding: 0; }
    .report-main { margin: 0; }
    .report-cover { border-radius: 0; padding: 25px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .report-section { box-shadow: none; border: 1px solid #e0e0e0; page-break-inside: avoid; }
    .score-ring, .score-pill, .diff-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 900px) {
    .editor-layout { grid-template-columns: 1fr; }
}

/* ---------- Subscription page styles ---------- */

.sub-title { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; margin-bottom: 20px; }

.plan-card { background: linear-gradient(135deg, #111111, #5a5a5a); border-radius: 16px; padding: 28px 30px; color: #fff; margin-bottom: 24px; position: relative; overflow: hidden; }
.plan-card::after { content: ''; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; background: rgba(255, 255, 255, 0.12); border-radius: 50%; }
.plan-card::before { content: ''; position: absolute; right: 70px; bottom: -70px; width: 150px; height: 150px; background: rgba(255, 255, 255, 0.08); border-radius: 50%; }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.plan-name { font-size: 1.3rem; font-weight: 800; text-transform: capitalize; }
.plan-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.plan-badge.badge-active { background: #e9e9e9; color: #1a1a1a; }
.plan-badge.badge-expired { background: #ededed; color: #1a1a1a; }
.plan-badge.badge-free { background: rgba(255, 255, 255, 0.25); color: #fff; }
.plan-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.plan-stat { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; padding: 14px 16px; }
.plan-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }
.plan-stat-value { font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.plan-actions { margin-top: 22px; position: relative; z-index: 1; }
.plan-actions .btn-primary { background: #fff; color: #111111; }
.plan-actions .btn-primary:hover { background: #f0f0f0; transform: translateY(-1px); }

.dash-card { background: #fff; border: 1px solid #eceff5; border-radius: 14px; padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); }
.dash-card h3 { font-size: 1.05rem; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.dash-card-sub { color: #636e72; font-size: 0.9rem; margin-bottom: 16px; }

.api-generate-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.api-generate-form input { padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px; flex: 1; min-width: 150px; font-size: 0.95rem; }
.api-generate-form input:focus { outline: none; border-color: #111111; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; padding: 10px 12px; color: #8892a6; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #f0f0f0; white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid #f2f4f8; font-size: 0.9rem; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #fafbff; }
.tbl .mono { font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 0.82rem; color: #636e72; }

.pay-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; background: #e2e3e5; color: #383d41; }
.pay-status.s-active { background: #e9e9e9; color: #1a1a1a; }
.pay-status.s-pending { background: #efefef; color: #4a4a4a; }
.pay-status.s-expired, .pay-status.s-failed { background: #ededed; color: #1a1a1a; }

.status-pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; }
.pill-green { background: #e9e9e9; color: #1a1a1a; }
.pill-red { background: #ededed; color: #1a1a1a; }
.pill-amber { background: #efefef; color: #4a4a4a; }

.search-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input { padding: 10px 15px; border: 2px solid #e0e0e0; border-radius: 8px; flex: 1; min-width: 200px; font-size: 0.95rem; }
.search-bar input:focus { outline: none; border-color: #111111; }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions input[type="number"], .row-actions select { padding: 6px 8px; border: 2px solid #e0e0e0; border-radius: 6px; width: 70px; font-size: 0.85rem; }
.row-actions select { width: auto; text-transform: capitalize; }
.row-actions input[title="Days"] { width: 60px; }

.code-block { background: #1e1e2e; color: #cdd6f4; padding: 14px 16px; border-radius: 10px; margin-top: 12px; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; white-space: pre; }

@media (max-width: 640px) {
    .plan-card { padding: 22px 20px; }
    .plan-name { font-size: 1.15rem; }
    .plan-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .plan-stat { padding: 12px 14px; }
    .plan-actions .btn { width: 100%; text-align: center; }

    .dash-card { padding: 18px 16px; }
    .api-generate-form { flex-direction: column; }
    .api-generate-form input, .api-generate-form .btn { width: 100%; }

    .main-content .tbl { display: block; overflow: visible; white-space: normal; }
    .tbl thead { display: none; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl tbody tr { border: 1px solid #eff1f6; border-radius: 12px; margin-bottom: 10px; padding: 4px 12px; }
    .tbl tbody tr:hover { background: transparent; }
    .tbl tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: none; padding: 10px 4px !important; }
    .tbl td::before { content: attr(data-label); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px; color: #8892a6; font-weight: 700; text-align: left; }
    .tbl td.no-label::before { display: none; }
    .tbl td.no-label { justify-content: flex-end; }

    .search-bar { flex-direction: column; }
    .search-bar input, .search-bar .btn { width: 100%; }

    .tbl .row-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .tbl .row-actions input[type="number"], .tbl .row-actions select, .tbl .row-actions .btn { width: 100%; }
    .tbl td.no-label.row-actions-cell { justify-content: stretch; }

    .code-block { white-space: pre-wrap; word-break: break-word; }

    .msg-content .table-scroll { overflow: visible; margin: 12px 0; }
    .msg-content .table-scroll table.has-head, .viewer-body .table-scroll table.has-head { display: block; width: 100%; table-layout: auto; border: none; overflow: visible; }
    .msg-content .table-scroll table.has-head thead, .viewer-body .table-scroll table.has-head thead { display: none; }
    .msg-content .table-scroll table.has-head tbody, .msg-content .table-scroll table.has-head tbody tr, .viewer-body .table-scroll table.has-head tbody, .viewer-body .table-scroll table.has-head tbody tr { display: block; width: 100%; }
    .msg-content .table-scroll table.has-head tbody tr, .viewer-body .table-scroll table.has-head tbody tr { border: 1px solid #eff1f6; border-radius: 12px; margin-bottom: 10px; padding: 4px 12px; }
    .msg-content .table-scroll table.has-head tbody tr:hover td, .viewer-body .table-scroll table.has-head tbody tr:hover td { background: transparent; }
    .msg-content .table-scroll table.has-head tbody tr:nth-child(even) td, .viewer-body .table-scroll table.has-head tbody tr:nth-child(even) td { background: transparent; }
    .msg-content .table-scroll table.has-head tbody td, .viewer-body .table-scroll table.has-head tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: none; padding: 10px 4px !important; background: transparent; }
    .msg-content .table-scroll table.has-head td::before, .viewer-body .table-scroll table.has-head td::before { content: attr(data-label); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4px; color: #8892a6; font-weight: 700; text-align: left; }
    .msg-content .table-scroll table.has-head td:last-child, .viewer-body .table-scroll table.has-head td:last-child { border-bottom: none; }
    .msg-content .table-scroll table.has-head .gfm-checkbox input { width: auto; }

    .viewer-body { padding: 16px 16px; font-size: 0.95rem; line-height: 1.72; }
    .viewer-body h1 { font-size: 1.28rem; }
    .viewer-body h2 { font-size: 1.14rem; }
    .viewer-body h3 { font-size: 1.04rem; }
    .viewer-body pre { padding: 12px 14px; font-size: 0.8rem; }
    .viewer-header { padding: 12px 14px; }
    .viewer-footer { padding: 10px 14px; }
    .viewer-footer .btn { flex: 1; text-align: center; }

    .msg { gap: 10px; margin-bottom: 16px; }
    .msg-avatar { width: 30px; height: 30px; font-size: 0.78rem; }
    .msg-content { border-radius: 14px; font-size: 0.95rem; line-height: 1.72; }

    .result-card { border-radius: 14px; }
    .result-toolbar { padding: 8px 12px; gap: 8px; border-radius: 14px 14px 0 0; }
    .result-tool { font-size: 0.72rem; }
    .result-words { font-size: 0.68rem; }
    .copy-btn { padding: 4px 12px; font-size: 0.72rem; }
    .msg-ai .result-card .msg-content { padding: 16px 16px 18px; font-size: 0.95rem; line-height: 1.72; }

    .msg-content h1 { font-size: 1.28rem; padding-bottom: 8px; margin-top: 16px; }
    .msg-content h2 { font-size: 1.14rem; margin: 20px 0 9px; }
    .msg-content h3 { font-size: 1.04rem; margin: 18px 0 8px; }
    .msg-content h4 { font-size: 0.98rem; }
    .msg-content p { margin-bottom: 8px; }
    .msg-content ul, .msg-content ol { padding-left: 20px; }
    .msg-content blockquote { padding: 8px 12px; margin: 10px 0; }
    .msg-content pre { padding: 12px 14px; font-size: 0.8rem; margin: 10px 0; }

    .msg-content .table-scroll table.has-head tbody tr { padding: 2px 10px; border-radius: 10px; margin-bottom: 8px; }
    .msg-content .table-scroll table.has-head tbody td { padding: 8px 2px !important; gap: 10px; }
}

/* ============================================================
   SEOAI Pro — Monochrome design system (additive, safe)
   Only the logo carries colour; everything else is black/white.
   ============================================================ */

:root {
    --ink: #0b0b0c;
    --ink-soft: #3a3a3f;
    --muted: #6b6b70;
    --line: #e6e6e8;
    --line-strong: #d5d5d8;
    --surface: #ffffff;
    --bg: #f6f6f7;
    --brand-1: #7C3AED;
    --brand-2: #B5179E;
    --brand-3: #F72585;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection { background: #111; color: #fff; }
img { max-width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; display: block; flex-shrink: 0; }
.logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.logo-pro {
    margin-left: 1px;
    background: linear-gradient(135deg, #111111, #6b6b70);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}
.nav-inner { padding: 11px 20px; }
.nav-links a { color: #4a4a4f; }
.nav-links a:hover { color: var(--ink); }
.user-badge { background: #111; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: 0.01em; }
.btn-primary { background: #111; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.28); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.btn-secondary { background: #fff; color: #111; border: 1.5px solid #111; }
.btn-secondary:hover { background: #111; color: #fff; }

/* ---------- Reusable section pieces ---------- */
.eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #111;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding: 74px 0 56px;
}
.hero-split h1 {
    font-size: 3.4rem;
    line-height: 1.03;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
}
.hero-split h1 .accent { background-image: linear-gradient(transparent 64%, #dcdce0 64%); }
.hero-split p { font-size: 1.14rem; color: #55555a; max-width: 560px; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hero-trust span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--line);
    filter: grayscale(1) contrast(1.05);
    box-shadow: 0 40px 70px -40px rgba(0,0,0,.55);
}
.hero-visual-badge {
    position: absolute;
    left: -18px;
    bottom: -18px;
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 20px 44px -20px rgba(0,0,0,.65);
}
.hero-visual-badge strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-visual-badge span { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.65; }

/* ---------- Bands (image + dark overlay) ---------- */
.band {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    filter: grayscale(1);
    margin: 26px 0;
}
.band::before { content: ''; position: absolute; inset: 0; background: rgba(9,9,11,.76); }
.band-inner { position: relative; z-index: 1; padding: 58px 42px; }
.band .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.band h2 { color: #fff; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; line-height: 1.12; }
.band p { color: rgba(255,255,255,.75); max-width: 580px; }
.band .hero-actions { justify-content: flex-start; margin-top: 26px; }
.band .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.band .btn-secondary:hover { background: #fff; color: #111; }

.stats-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.stat-tile {
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 22px 14px;
    background: rgba(255,255,255,.05);
}
.stat-tile strong { display: block; font-size: 2.15rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-tile span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.7); }

/* ---------- Showcase (image + copy) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 70px 0; }
.showcase img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--line);
    filter: grayscale(1) contrast(1.05);
}
.showcase h2 { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 14px; line-height: 1.12; }
.showcase p { color: #55555a; margin-bottom: 16px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 10px 0 10px 30px; color: var(--ink-soft); border-bottom: 1px solid #f0f0f2; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 15px;
    width: 15px;
    height: 8px;
    border-left: 2.5px solid #111;
    border-bottom: 2.5px solid #111;
    transform: rotate(-45deg);
}

/* ---------- Feature cards ---------- */
.features { padding: 74px 0; }
.feature-card {
    text-align: left;
    border: 1px solid var(--line);
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(0,0,0,.45); border-color: var(--line-strong); }
.feature-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #111;
    color: #fff;
    margin-bottom: 18px;
    font-size: 0;
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Pricing ---------- */
.pricing { padding: 74px 0; }
.pricing-card { border: 1px solid var(--line); box-shadow: none; }
.pricing-card.featured { border: 2px solid #111; box-shadow: 0 34px 64px -38px rgba(0,0,0,.5); }
.pricing-card .badge { background: #111; }
.pricing-card .credits-count { color: #111; }

/* ---------- Dashboard surfaces ---------- */
.tool-btn .tool-icon, .stat-card .icon, .footer-wa { filter: grayscale(1); }
.sidebar, .main-content {
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px -34px rgba(0,0,0,.45);
}
.sidebar nav a:hover { background: #f2f2f4; color: #111; }
.sidebar nav a.active { background: #111; color: #fff; }
.stat-card { background: #f4f4f5; border: 1px solid var(--line); }
.score-ring { background: #111; }

/* ---------- Footer ---------- */
.footer {
    background: #0b0b0c;
    color: #a8a8ad;
    border-top: none;
    margin-top: 64px;
    padding: 48px 0 30px;
    text-align: left;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand .logo-text { color: #fff; }
.footer-tag { margin-top: 12px; color: #8f8f95; max-width: 330px; font-size: 0.9rem; }
.footer-meta { text-align: right; }
.footer-meta p { font-size: 0.85rem; color: #8f8f95; }
.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: #1c1c1f;
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #2a2a2e;
    transition: background 0.2s, color 0.2s;
}
.footer-wa:hover { background: #fff; color: #111; }

/* ---------- About page ---------- */
.about-page { max-width: 920px; margin: 0 auto; }
.about-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 44px;
    margin-top: 26px;
    box-shadow: 0 18px 44px -38px rgba(0,0,0,.45);
}
.about-card h2 { font-size: 1.3rem; color: var(--ink); margin: 30px 0 10px; letter-spacing: -0.01em; }
.about-card h2:first-child { margin-top: 0; }
.about-card p { color: #55555a; line-height: 1.8; }
.about-card .check-list { margin-top: 8px; }
.about-card .check-list li { line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 38px; }
    .hero-split h1 { font-size: 2.4rem; }
    .hero-split p { font-size: 1.05rem; }
    .hero-visual img { height: 300px; }
    .hero-visual-badge { left: 14px; bottom: -14px; }
    .stats-band-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
    .showcase img { height: 270px; }
    .showcase-media { order: -1; }
    .footer-inner { flex-direction: column; }
    .footer-meta { text-align: left; }
}
@media (max-width: 520px) {
    .hero-split h1 { font-size: 2rem; }
    .hero-visual img { height: 240px; }
    .stats-band-grid { grid-template-columns: 1fr; }
    .band-inner { padding: 38px 22px; }
    .section-head h2 { font-size: 1.7rem; }
    .showcase h2 { font-size: 1.7rem; }
}
