/* Wrapper */
#dennis-seo-meta-box .inside { padding: 0 !important; margin: 0 !important; }
.dseo-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif; }

/* Tabs */
.dseo-tabs { display: flex; gap: 0; border-bottom: 2px solid #2271b1; background: #f6f7f7; margin: 0; padding: 0 12px; }
.dseo-tab { padding: 10px 18px; cursor: pointer; font-size: 13px; font-weight: 500; color: #50575e; border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0; margin-bottom: -2px; transition: all 0.15s ease; background: transparent; user-select: none; display: flex; align-items: center; gap: 6px; }
.dseo-tab:hover { color: #1d2327; background: rgba(0,0,0,0.04); }
.dseo-tab.active { background: #fff; color: #1d2327; font-weight: 600; border-color: #c3c4c7 #c3c4c7 #fff; }
.dseo-tab-icon { font-size: 16px; opacity: 0.7; }
.dseo-tab.active .dseo-tab-icon { opacity: 1; }
.dseo-tab[data-tab="seo"].active    { border-top: 2px solid #2271b1; }
.dseo-tab[data-tab="social"].active  { border-top: 2px solid #d63638; }
.dseo-tab[data-tab="schema"].active  { border-top: 2px solid #00a32a; }
.dseo-tab[data-tab="llm"].active     { border-top: 2px solid #7e5cef; }

/* Tab panels */
.dseo-panel { display: none; padding: 20px 24px; }
.dseo-panel.active { display: block; }

/* Panel tints */
[data-panel="seo"]    { background: #f0f6fc; }
[data-panel="social"] { background: #fef0f5; }
[data-panel="schema"] { background: #eef7f0; }
[data-panel="llm"]    { background: #f3f0ff; }

/* Field rows */
.dseo-row { margin-bottom: 18px; }
.dseo-row:last-child { margin-bottom: 0; }
.dseo-row label.dseo-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #1d2327; }
.dseo-row input[type="text"],
.dseo-row input[type="url"],
.dseo-row textarea,
.dseo-row select { width: 100%; box-sizing: border-box; border: 1px solid #c3c4c7; border-radius: 4px; padding: 8px 12px; font-size: 14px; line-height: 1.5; color: #1d2327; transition: border-color 0.15s ease, box-shadow 0.15s ease; background: #fff; }
.dseo-row input:focus, .dseo-row textarea:focus, .dseo-row select:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none; }
.dseo-row textarea { min-height: 72px; resize: vertical; }
.dseo-row select { max-width: 320px; padding: 7px 12px; appearance: auto; }

/* Two-column layout for shorter fields */
.dseo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 782px) { .dseo-cols { grid-template-columns: 1fr; } }

/* Character counter bar */
.dseo-char-bar { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.dseo-char-track { flex: 1; max-width: 260px; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
.dseo-char-fill { height: 100%; border-radius: 2px; transition: width 0.2s ease, background 0.2s ease; }
.dseo-char-fill.good { background: #00a32a; }
.dseo-char-fill.warn { background: #dba617; }
.dseo-char-fill.over { background: #d63638; }
.dseo-char-text { font-size: 12px; color: #757575; white-space: nowrap; }
.dseo-char-text.over { color: #d63638; font-weight: 500; }

/* Hints */
.dseo-hint { display: block; color: #757575; font-size: 12px; margin-top: 4px; line-height: 1.5; }

/* Checkbox row */
.dseo-checks { display: flex; gap: 20px; align-items: center; padding: 8px 0; }
.dseo-checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #50575e; cursor: pointer; }
.dseo-checks label:hover { color: #1d2327; }
.dseo-checks input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }

/* AI CTA button */
.dseo-ai-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: linear-gradient(135deg, #7e5cef 0%, #5b3dc7 100%); color: #fff !important; border: none; border-radius: 5px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; box-shadow: 0 1px 4px rgba(126,92,239,0.25); }
.dseo-ai-btn:hover { background: linear-gradient(135deg, #9171f5 0%, #6b4dd7 100%); box-shadow: 0 2px 8px rgba(126,92,239,0.35); }
.dseo-ai-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* AI Modal */
.dseo-ai-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 100000; align-items: center; justify-content: center; }
.dseo-ai-modal-overlay.active { display: flex; }
.dseo-ai-modal { background: #fff; border-radius: 12px; max-width: 520px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; animation: dseoModalIn 0.25s ease; }
@keyframes dseoModalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes dseo-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.dseo-ai-modal-header { background: linear-gradient(135deg, #7e5cef 0%, #5b3dc7 100%); padding:  30px 24px; color: #fff; }
.dseo-ai-modal-header h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: #fff; }
.dseo-ai-modal-header h3 .dashicons { color: #fff; }
.dseo-ai-modal-header p { margin: 0; font-size: 14px; opacity: 0.9; }
.dseo-ai-modal-body { padding: 28px; }
.dseo-ai-modal-body p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: #1d2327; }
.dseo-ai-modal-body p:last-child { margin-bottom: 0; }
.dseo-ai-modal-body ul { margin: 0 0 18px; padding-left: 22px; list-style: none; }
.dseo-ai-modal-body li { font-size: 14px; line-height: 1.8; color: #1d2327; }
.dseo-ai-modal-body li::before { content: '\2713\0020'; color: #7e5cef; font-weight: 700; }
.dseo-ai-modal-body a { color: #7e5cef; font-weight: 600; text-decoration: none; }
.dseo-ai-modal-body a:hover { text-decoration: underline; }
.dseo-ai-modal-footer { padding: 0 28px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dseo-ai-modal-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; background: linear-gradient(135deg, #7e5cef 0%, #5b3dc7 100%); color: #fff !important; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: all 0.2s ease; } .dseo-ai-modal-cta:hover { background: linear-gradient(135deg, #9171f5 0%, #6b4dd7 100%); }
.dseo-ai-modal-close { padding: 10px 20px; background: #f0f0f1; color: #50575e; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; } .dseo-ai-modal-close:hover { background: #e0e0e0; }

/* Section titles inside panels */
.dseo-section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #757575; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #f0f0f1; }
.dseo-section-title:first-child { margin-top: 0; }
