/* ============================================================
   NevaOne IP Tool — Modern UI
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────────── */
:root {
    --bg:            #070d1a;
    --bg-2:          #0d1424;
    --card-bg:       rgba(255, 255, 255, 0.03);
    --card-border:   rgba(255, 255, 255, 0.07);
    --accent:        #00cf8e;
    --accent-dim:    rgba(0, 207, 142, 0.12);
    --accent-glow:   rgba(0, 207, 142, 0.25);
    --blue:          #3b82f6;
    --blue-dim:      rgba(59, 130, 246, 0.12);
    --text:          #e2e8f0;
    --text-muted:    #94a3b8;
    --text-dim:      #475569;
    --success-bg:    rgba(0, 207, 142, 0.09);
    --warning-bg:    rgba(245, 158, 11, 0.09);
    --warning-text:  #f59e0b;
    --radius-xl:     22px;
    --radius-lg:     16px;
    --radius-md:     10px;
    --radius-sm:     6px;
    --shadow:        0 4px 32px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-glow:   0 0 80px rgba(0, 207, 142, 0.07);
    --transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:     'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse 900px 700px at 0% 0%, rgba(0, 207, 142, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 700px 600px at 100% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 600; line-height: 1.3; color: var(--text); }

/* ─── Header ─────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(7, 13, 26, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--card-border);
}

.header-logo img {
    height: 34px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ─── Main Layout ────────────────────────────────────────────── */
.main {
    padding: 2.5rem 1.5rem 5rem;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ─── Grid ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.04);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.card-title i { color: var(--accent); }

/* ─── IP Hero Card ───────────────────────────────────────────── */
.card--hero {
    background: linear-gradient(
        140deg,
        rgba(0, 207, 142, 0.08) 0%,
        rgba(59, 130, 246, 0.04) 60%,
        transparent 100%
    );
    border-color: rgba(0, 207, 142, 0.18);
    box-shadow: var(--shadow), var(--shadow-glow);
    text-align: center;
    padding: 3rem 2rem 2.5rem;
}

.card--hero:hover {
    border-color: rgba(0, 207, 142, 0.28);
    background: linear-gradient(
        140deg,
        rgba(0, 207, 142, 0.11) 0%,
        rgba(59, 130, 246, 0.05) 60%,
        transparent 100%
    );
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--success-bg);
    border: 1px solid rgba(0, 207, 142, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.2); }
}

.ip-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.ip-display { margin: 0.25rem 0; }

.ip-address {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 50px rgba(0, 207, 142, 0.22);
    user-select: all;
    cursor: text;
}

.ip-hostname {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ip-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.ip-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ip-meta i { color: var(--accent); opacity: 0.7; font-size: 0.75rem; }

.ip-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
    line-height: 1;
}

.btn--primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

.btn--primary:hover {
    background: #00e09a;
    border-color: #00e09a;
    box-shadow: 0 4px 24px rgba(0, 207, 142, 0.4);
    transform: translateY(-1px);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border-color: var(--card-border);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--card-border);
}

.btn--ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn--accent {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(0, 207, 142, 0.2);
    font-weight: 600;
}

.btn--accent:hover {
    background: rgba(0, 207, 142, 0.18);
    box-shadow: 0 2px 16px rgba(0, 207, 142, 0.2);
    transform: translateY(-1px);
}

.btn--sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* ─── Support Panel ──────────────────────────────────────────── */
.support-panel {
    background: rgba(0, 207, 142, 0.03);
    border: 1px solid rgba(0, 207, 142, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: none;
    animation: slide-down 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-panel.is-open { display: block; }

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.support-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.support-panel__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.support-panel__title i { color: var(--accent); }

.support-panel__subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.support-panel__subtitle strong { color: var(--accent); font-weight: 500; }

.support-panel__info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.info-chip i { color: var(--accent); font-size: 0.7rem; }

.support-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ─── Form ───────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-label__optional {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.875rem;
    resize: vertical;
    min-height: 90px;
    transition: var(--transition);
}

.form-textarea::placeholder { color: var(--text-dim); }

.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 207, 142, 0.4);
    background: rgba(0, 207, 142, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 207, 142, 0.08);
}

/* ─── Status List ────────────────────────────────────────────── */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}

.status-item--ok {
    background: var(--success-bg);
    border-color: rgba(0, 207, 142, 0.15);
}

.status-item--pending {
    background: var(--warning-bg);
    border-color: rgba(245, 158, 11, 0.15);
}

.status-item__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.status-item--ok .status-item__icon {
    background: rgba(0, 207, 142, 0.15);
    color: var(--accent);
}

.status-item--pending .status-item__icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-text);
}

.status-item__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-item__label {
    font-size: 0.875rem;
    color: var(--text);
}

.status-item__label strong { font-weight: 600; }

.status-item__badge {
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-item__badge--ok {
    background: rgba(0, 207, 142, 0.15);
    color: var(--accent);
}

.status-item__badge--pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-text);
}

/* ─── Feature List ───────────────────────────────────────────── */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ─── Contact List ───────────────────────────────────────────── */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.contact-item__icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--blue-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.contact-item--support .contact-item__icon {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 1.5rem 2rem;
}

.footer-inner {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social { display: flex; gap: 0.5rem; }

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent);
    border-color: rgba(0, 207, 142, 0.3);
    background: var(--accent-dim);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--accent); }

/* ─── Toast ──────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: rgba(13, 20, 36, 0.97);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
}

.toast.is-visible {
    transform: translateX(-50%) translateY(0);
}

.toast--success { border-color: rgba(0, 207, 142, 0.3); }
.toast--success .toast__icon { color: var(--accent); }
.toast--error { border-color: rgba(239, 68, 68, 0.3); }
.toast--error .toast__icon { color: #ef4444; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .header { padding: 0.875rem 1.25rem; }

    .header-nav .btn--sm .btn-text { display: none; }

    .main { padding: 1.5rem 1rem 3.5rem; }

    .card--hero { padding: 2.25rem 1.5rem 2rem; }

    .ip-address { font-size: clamp(1.85rem, 8vw, 2.5rem); }

    .support-panel { padding: 1.25rem; }

    .support-panel__actions {
        flex-direction: column-reverse;
    }

    .support-panel__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer { padding: 1.25rem 1rem; }
}

@media (max-width: 580px) {
    .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ip-actions {
        flex-direction: column;
        width: 100%;
    }

    .ip-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .ip-meta {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ─── Spinner (for button loading state) ─────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin { animation: spin 0.7s linear infinite; }
