/* What Is My IP Pro - Complete Styling */

.tool-page { padding-top: 0; }

.breadcrumb { padding: 20px 0; font-size: 14px; color: #666; }
.breadcrumb a { color: #666; transition: all 0.3s; }
.breadcrumb a:hover { color: #2563eb; }
.breadcrumb .separator { margin: 0 10px; color: #ddd; }
.breadcrumb .current { color: #333; font-weight: 600; }

.tool-header {
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #4f46e5 100%);
    color: white; padding: 60px 20px; text-align: center; position: relative; overflow: hidden;
}
.tool-header::before { content: '🌐'; position: absolute; font-size: 300px; opacity: 0.07; top: -50px; right: -50px; animation: rotate 20s linear infinite; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.tool-header-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.tool-icon-large { font-size: 72px; margin-bottom: 20px; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tool-header h1 { font-size: 48px; font-weight: 900; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.tool-subtitle { font-size: 20px; opacity: 0.95; margin-bottom: 25px; line-height: 1.6; }
.tool-meta { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; font-size: 16px; }
.meta-separator { opacity: 0.5; }

.tool-content { padding: 50px 20px 60px; background: #f8f9fa; }
.ip-root { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

.card { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h3 { font-size: 19px; color: #1f2937; margin: 0; }
.card-head h3 small { font-size: 12px; color: #6b7280; font-weight: 600; margin-left: 8px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: #6b7280; font-weight: 500; font-size: 12px; }
.lbl { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.txt { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; font-family: inherit; }
.txt:focus { outline: none; border-color: #2563eb; }

.seg { display: inline-flex; background: #f3f4f6; border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; border: none; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #4b5563; cursor: pointer; transition: all .2s; white-space: nowrap; }
.seg button:hover { color: #2563eb; }
.seg button.active { background: #fff; color: #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

.code-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #f3f4f6; padding: 3px; border-radius: 10px; }
.code-tabs button { border: none; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #4b5563; cursor: pointer; }
.code-tabs button.active { background: #fff; color: #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.code-box { width: 100%; box-sizing: border-box; background: #0f172a; color: #e2e8f0; border: none; border-radius: 12px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; resize: vertical; white-space: pre; overflow: auto; }
.code-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

.btn { padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; font-weight: 700; font-size: 14px; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-family: inherit; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%); color: white; }
.btn-ghost { background: white; border: 2px solid rgba(0,0,0,0.1); color: #1f2937; }
.btn-ghost:hover:not(:disabled) { border-color: #2563eb; color: #2563eb; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.link-btn { border: none; background: none; color: #2563eb; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }

.ip-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: #111827; color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 9999; max-width: 90vw; text-align: center; }
.ip-toast.show { opacity: 1; transform: translate(-50%, 0); }

.info-box { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.info-box h4 { font-size: 20px; margin-bottom: 20px; color: #1f2937; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-item { background: #eff6ff; border-left: 4px solid #2563eb; padding: 16px; border-radius: 10px; font-size: 14px; line-height: 1.6; color: #374151; }
.seo-content { padding: 50px 20px; background: #fff; }
.content-article { max-width: 900px; margin: 0 auto; }
.content-article h2 { font-size: 28px; margin: 32px 0 14px; color: #1f2937; }
.content-article p { font-size: 16px; line-height: 1.8; color: #4b5563; margin-bottom: 14px; }
.content-article code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 14px; }

@media (max-width: 600px) {
    .tool-header { padding: 40px 16px; }
    .tool-header h1 { font-size: 32px; }
    .tool-subtitle { font-size: 16px; }
    .tool-icon-large { font-size: 56px; }
    .tool-content { padding: 30px 12px 40px; }
    .content-article h2 { font-size: 22px; }
}

.mt { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px; align-items: start; }
.col-stack { display: flex; flex-direction: column; gap: 22px; }
.hero-card { background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%); border: 2px solid #dbeafe; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: #1d4ed8; }
.hero-ip-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ip-big { font-size: clamp(30px, 6vw, 56px); font-weight: 900; color: #0f172a; letter-spacing: -1px; word-break: break-all; line-height: 1.15; }
.ip-big.loading { opacity: .35; }
.ver-badge { background: #2563eb; color: #fff; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.ip-loc { margin-top: 10px; font-size: 18px; font-weight: 700; color: #1f2937; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ip-isp { margin-top: 2px; font-size: 14px; color: #6b7280; font-weight: 600; }
.flag { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: middle; }
.alt-row { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #4b5563; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alt-ip { border: 2px dashed #bfdbfe; background: #fff; border-radius: 10px; padding: 5px 11px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #1d4ed8; cursor: pointer; word-break: break-all; text-align: left; }
.alt-ip:hover { background: #eff6ff; }
.resolved { margin-top: 12px; font-size: 13.5px; color: #374151; background: #fff; border: 1px solid #dbeafe; border-radius: 12px; padding: 10px 12px; line-height: 2; }
.lookup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.txt.big { flex: 1 1 260px; width: auto; padding: 14px 16px; font-size: 16px; }
.lookup-msg { margin-top: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 10px; }
.chip-line { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hist { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.chip-ip { border: 2px solid #e5e7eb; background: #f9fafb; color: #374151; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all .15s; }
.chip-ip:hover { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }
.details .grp-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #1d4ed8; margin: 16px 0 6px; padding-bottom: 6px; border-bottom: 2px solid #eff6ff; }
.details .grp-title:first-child { margin-top: 0; }
.drow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.dk { flex: 0 0 38%; font-size: 13px; font-weight: 700; color: #6b7280; }
.dv { flex: 1; font-size: 14px; font-weight: 700; color: #111827; word-break: break-word; display: flex; align-items: center; gap: 8px; }
.dv.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.dv.small { font-size: 11.5px; font-weight: 600; color: #4b5563; }
.cp { border: none; background: #f3f4f6; color: #4b5563; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 14px; flex: 0 0 auto; }
.cp:hover { background: #dbeafe; color: #1d4ed8; }
.src { margin-top: 14px; font-size: 12px; color: #9ca3af; line-height: 1.5; }
.note-warn { margin-top: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.skeleton { color: #9ca3af; font-weight: 600; padding: 20px 0; }
.map-box { height: 280px; border-radius: 14px; overflow: hidden; border: 2px solid #e5e7eb; background: #f3f4f6; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-empty { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #6b7280; font-weight: 600; font-size: 14px; }
.clock-box { margin-top: 14px; background: #0f172a; border-radius: 14px; padding: 14px 18px; color: #fff; text-align: center; }
.clock-time { font-size: 34px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.clock-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #94a3b8; font-weight: 600; margin-top: 2px; }
.hints { display: flex; flex-direction: column; gap: 10px; }
.hint { display: flex; gap: 10px; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #374151; border: 1px solid #e5e7eb; background: #f9fafb; }
.hint.ok { background: #f0fdf4; border-color: #bbf7d0; }
.hint.warn { background: #fffbeb; border-color: #fde68a; }
.hint.info { background: #eff6ff; border-color: #dbeafe; }

@media (max-width: 960px) {
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .drow { flex-wrap: wrap; gap: 4px 8px; }
    .dk { flex: 1 0 100%; }
    .map-box { height: 230px; }
    .btn-primary, .btn-ghost { flex: 1 1 auto; }
}
