/* ========================================================================
   SEO AUDITOR 360° - STYLES
   ======================================================================== */
.sa-card { background: var(--bg-card); border-radius: 16px; padding: 25px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-bottom: 25px; position: relative; }
.sa-section { background: rgba(0,0,0,0.2); border-radius: 12px; padding: 20px; border: 1px solid rgba(255,255,255,0.03); margin-bottom: 20px; }

.sa-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.sa-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 25px; }

.sa-input-wrapper { position: relative; flex: 1; min-width: 250px; }
.sa-icon-input { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #3b82f6; font-size: 14px; transition: 0.3s; }
.sa-input { width: 100%; box-sizing: border-box; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 10px; padding: 14px 15px 14px 40px; font-size: 14px; font-weight: bold; outline: none; transition: 0.3s; margin:0;}
.sa-input:focus { border-color: #3b82f6 !important; box-shadow: 0 0 10px rgba(59, 130, 246, 0.2) !important; background: rgba(0,0,0,0.5) !important; }
.sa-input:focus + .sa-icon-input { color: #3b82f6; }

.tg-dark-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(10px); padding: 14px 25px; border-radius: 10px; font-weight: 900; font-size: 13px; text-transform: uppercase; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: none; text-decoration: none; box-sizing: border-box; }
.tg-blue-btn { color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); border: none; }
.tg-blue-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); filter: brightness(1.1); }
.tg-red-btn { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); border: none; }
.tg-red-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4); filter: brightness(1.1); }
.tg-green-btn { color: #fff; background: linear-gradient(135deg, #10b981, #059669); border: none; }
.tg-green-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); filter: brightness(1.1); }
.tg-purple-btn { color: #fff; background: linear-gradient(135deg, #a855f7, #7e22ce); border: none; }
.tg-purple-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4); filter: brightness(1.1); }

.tg-loading { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.sa-top-card { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 20px 15px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.3s;}
.sa-top-card:hover { background: rgba(0,0,0,0.3); border-color: rgba(59, 130, 246, 0.2); }
.sa-big-num { font-size: 32px; font-weight: 900; margin-bottom: 5px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.sa-score-circle { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1e293b; margin: 0 auto; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: background 0.5s; }
.sa-score-inner { width: 74px; height: 74px; background: var(--bg-card); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sa-score-val { font-size: 26px; font-weight: 900; line-height: 1; margin-bottom: 2px; }

.sa-sec-title { margin: 0 0 15px 0; color: #fff; font-size: 15px; font-weight: 900; text-transform: uppercase; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.1); }

.sa-item-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.02); }
.sa-item-row:last-child { border-bottom: none; }
.sa-flex-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sa-item-lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase;}
.sa-item-val { font-size: 13px; font-weight: 900; color: #fff; text-align: right;}

.sa-bar-bg { width: 100%; height: 6px; background: rgba(0,0,0,0.5); border-radius: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.sa-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease-in-out; }
.sa-bar-green { background: linear-gradient(90deg, #059669, #10b981); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.sa-bar-orange { background: linear-gradient(90deg, #d97706, #f59e0b); box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.sa-bar-red { background: linear-gradient(90deg, #dc2626, #ef4444); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }

.sa-todo-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: rgba(0,0,0,0.2); border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.03); font-size: 13px; line-height: 1.5; color: #e2e8f0; font-weight: 600;}
.sa-todo-item i { margin-top: 2px; font-size: 14px; flex-shrink: 0; }
.sa-todo-item.crit { border-left: 3px solid #ef4444; }
.sa-todo-item.warn { border-left: 3px solid #f59e0b; }
.sa-todo-item.ok { border-left: 3px solid #10b981; }

.sa-badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.sa-badge-ok { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.sa-badge-err { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.sa-badge-info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

.sa-google-preview { background: #fff; border-radius: 8px; padding: 15px; font-family: Arial, sans-serif; text-align: left; }
.sa-g-url { font-size: 12px; color: #202124; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sa-g-title { font-size: 18px; color: #1a0dab; text-decoration: none; margin-bottom: 4px; display: block; line-height: 1.3; font-weight: normal;}
.sa-g-title:hover { text-decoration: underline; }
.sa-g-desc { font-size: 13px; color: #4d5156; line-height: 1.5; word-wrap: break-word; }

.sa-tg-preview { border-left: 3px solid #38bdf8; background: rgba(56, 189, 248, 0.05); padding: 10px; border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.sa-tg-img { width: 100%; height: 120px; background: rgba(0,0,0,0.3); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); overflow: hidden; }
.sa-tg-title { font-size: 13px; font-weight: bold; color: #38bdf8; line-height: 1.3; }
.sa-tg-desc { font-size: 12px; color: #cbd5e1; line-height: 1.4; }

.sa-terminal { display: none; background: #0f172a; border-radius: 12px; padding: 20px; border: 1px solid rgba(16, 185, 129, 0.4); font-family: 'Courier New', monospace; font-size: 12px; margin-bottom: 25px; box-shadow: inset 0 0 30px rgba(0,0,0,0.9); height: 220px; overflow-y: auto; color: #10b981; }
.sa-term-line { margin-bottom: 8px; line-height: 1.4; border-bottom: 1px dashed rgba(16,185,129,0.2); padding-bottom: 4px; font-weight: bold;}
.sa-term-cursor { display: inline-block; width: 8px; height: 14px; background: #10b981; animation: blink 1s step-end infinite; vertical-align: bottom;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.sa-kw-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sa-kw-table th { text-align: left; padding: 8px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); text-transform: uppercase; font-size: 10px; font-weight: 900;}
.sa-kw-table td { padding: 8px; border-bottom: 1px dashed rgba(255,255,255,0.02); color: #e2e8f0; font-weight: 600;}
.sa-tr-hover { transition: 0.2s; }
.sa-tr-hover:hover { background: rgba(255,255,255,0.02); }

.sa-share-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; background: rgba(59, 130, 246, 0.05); border: 1px dashed rgba(59, 130, 246, 0.3); padding: 20px; border-radius: 12px; margin-bottom: 25px; }
.sa-share-url { font-family: monospace; color: #60a5fa; font-size: 12px; background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 6px; margin-top: 5px; word-break: break-all; font-weight: bold;}

.social-share-btns { display: flex; gap: 8px; align-items: center; }
.btn-share { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 16px; transition: 0.2s; }
.btn-share:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-share.tg { background: #229ED9; }
.btn-share.wa { background: #25D366; }
.btn-share.vb { background: #7360F2; }
.btn-share.fb { background: #1877F2; }
.btn-share.tw { background: #000000; border: 1px solid rgba(255,255,255,0.2); }
.btn-share.in { background: #0A66C2; }

/* БЛОКИРОВКА АУДИТА ДЛЯ ГОСТЕЙ (PAYWALL) */
.sa-locked-container { position: relative; }
.sa-locked-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); z-index: 10; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; box-sizing: border-box; }
.sa-locked-overlay i { color: #3b82f6; font-size: 50px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(59,130,246,0.5)); }
.sa-locked-overlay h3 { color: #fff; font-size: 22px; font-weight: 900; margin: 0 0 10px 0; text-transform: uppercase; }
.sa-locked-overlay p { color: #cbd5e1; font-size: 14px; max-width: 400px; line-height: 1.6; margin: 0 0 25px 0; font-weight: bold; }

.seo-article { background: var(--bg-card); border-radius: 16px; padding: 35px; border: 1px solid rgba(255,255,255,0.05); margin-top: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); line-height: 1.7; color: #cbd5e1; font-size: 14px; }
.seo-article h2 { color: #fff; font-size: 22px; font-weight: 900; margin: 0 0 20px 0; text-transform: uppercase; display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 15px; }
.seo-article h3 { color: #3b82f6; font-size: 16px; font-weight: 800; margin: 25px 0 10px 0; text-transform: uppercase; display: flex; align-items: center; gap: 8px;}
.seo-article p { margin: 0 0 15px 0; }
.seo-article ul { margin: 0 0 20px 0; padding-left: 20px; }
.seo-article li { margin-bottom: 8px; }
.seo-article li::marker { color: #3b82f6; }
.seo-highlight { background: rgba(59, 130, 246, 0.05); border-left: 3px solid #3b82f6; padding: 15px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

.tool-ext-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: rgba(0,0,0,0.3); border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.05); color: #e2e8f0; font-weight: bold; text-decoration: none; font-size: 13px; transition: 0.2s;}
.tool-ext-link:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #fff; transform: translateX(5px); }

@media (max-width: 768px) {
    .sa-card { padding: 20px 15px; }
    .sa-grid-2 { grid-template-columns: 1fr; }
    #saForm { flex-direction: column; }
    .sa-input-wrapper { width: 100%; }
    .tg-dark-btn { width: 100%; }
    .sa-share-box { flex-direction: column; text-align: center; }
    .seo-article { padding: 20px; }
    .seo-article h2 { font-size: 18px; }
}