/* =========================================
   IRONPHANTOM THEME – BORDEAUX COMMERCIAL
   same ids / same naming / improved layout
   elegant / modern / matte black / bordeaux
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ironphantom-dashboard {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================= ROOT / TOKENS ================= */
:root {
    --ip-bg: #0a0a0b;
    --ip-bg-2: #111113;
    --ip-bg-3: #17171a;

    --ip-panel: #141417;
    --ip-panel-2: #1a1a1f;
    --ip-panel-3: #202027;

    --ip-border: rgba(255, 255, 255, 0.08);
    --ip-border-soft: rgba(255, 255, 255, 0.04);
    --ip-border-strong: rgba(130, 22, 38, 0.62);

    --ip-text: #f3f4f6;
    --ip-text-soft: #dddfe4;
    --ip-text-muted: #b7bcc6;

    --ip-title: #c33a4b;
    --ip-title-2: #db5061;
    --ip-accent: #8a1f31;
    --ip-accent-2: #651726;
    --ip-accent-3: #b42f43;
    --ip-accent-glow: rgba(138, 31, 49, 0.22);

    --ip-cyan: #446779;
    --ip-cyan-2: #5a8297;
    --ip-cyan-glow: rgba(68, 103, 121, 0.16);

    --ip-success: #4ca979;
    --ip-danger: #c64d5c;

    --ip-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
    --ip-shadow-md: 0 18px 40px rgba(0, 0, 0, 0.28);
    --ip-shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.44);

    --ip-radius-sm: 12px;
    --ip-radius-md: 18px;
    --ip-radius-lg: 24px;
    --ip-radius-xl: 30px;

    --ip-transition-fast: 0.18s ease;
    --ip-transition-mid: 0.28s ease;
}

/* ================= GLOBAL ================= */
html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ip-bg);
    color: var(--ip-text);
}

.ironphantom-dashboard {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(138, 31, 49, 0.10), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(138, 31, 49, 0.08), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.02), transparent 26%),
        linear-gradient(180deg, #09090a 0%, #111113 46%, #0a0a0b 100%);
    color: var(--ip-text);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ironphantom-dashboard::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.14;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.94), transparent 100%);
}

.ironphantom-dashboard::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(140deg, transparent 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
    opacity: 0.12;
}

/* ================= LAYOUT HELPERS ================= */
.ip-transactions-grid,
.ip-cards-grid,
.ip-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ip-stat-card,
.ip-sensor-card,
#ip-sensor-card,
#ip-system-card,
#suspicious-activity-card,
#cerebrusx-card {
    min-height: 100%;
}

/* ================= HEADER / HERO ================= */
.ip-header {
    position: relative;
    text-align: center;
    padding: 42px 24px 34px;
    background:
        linear-gradient(180deg, rgba(24, 24, 28, 0.94), rgba(13, 13, 15, 0.98)),
        radial-gradient(circle at top center, rgba(138, 31, 49, 0.12), transparent 35%);
    border-bottom: 1px solid rgba(180, 47, 67, 0.26);
    box-shadow:
        inset 0 -1px 0 rgba(255,255,255,0.03),
        0 18px 40px rgba(0,0,0,0.24);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ip-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -20%, rgba(180, 47, 67, 0.18), transparent 38%);
}

.ip-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(900px, 90%);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(180, 47, 67, 0.15),
        rgba(180, 47, 67, 0.85),
        rgba(180, 47, 67, 0.15),
        transparent
    );
}

.ip-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    word-break: break-word;
}

.ip-subtitle {
    margin: 12px auto 0;
    max-width: 980px;
    text-align: center;
    color: #c8ccd3;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1.45;
}

.ip-status {
    position: relative;
    margin: 18px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(180, 47, 67, 0.35);
    background: linear-gradient(180deg, rgba(138, 31, 49, 0.20), rgba(138, 31, 49, 0.10));
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 22px rgba(0, 0, 0, 0.16);
    text-align: center;
    white-space: normal;
}

.ip-status::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #7df0a8;
    box-shadow:
        0 0 0 4px rgba(125, 240, 168, 0.10),
        0 0 10px rgba(125, 240, 168, 0.34);
    animation: ipPulse 1.8s infinite ease-in-out;
}

/* ================= HERO META ================= */
.ip-header .ip-header-meta,
.ip-header .ip-hero-meta,
.ip-header .ip-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.ip-header .ip-header-meta span,
.ip-header .ip-hero-meta span,
.ip-header .ip-meta-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    color: #e9ebef;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 8px 16px rgba(0,0,0,0.12);
    text-align: center;
    line-height: 1.3;
}

.ip-header .ip-header-meta span::before,
.ip-header .ip-hero-meta span::before,
.ip-header .ip-meta-row span::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--ip-accent-3);
    box-shadow: 0 0 10px rgba(180, 47, 67, 0.45);
}

/* ================= SECTIONS ================= */
.ip-transactions-section {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.97), rgba(16, 16, 19, 0.97));
    border-radius: var(--ip-radius-lg);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        var(--ip-shadow-md);
    overflow: hidden;
}

.ip-transactions-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(180, 47, 67, 0.75), transparent);
}

.ip-section-title {
    margin: 0 0 20px;
    padding-left: 14px;
    border-left: 4px solid var(--ip-accent-3);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.3;
}

.ip-section-title::after {
    content: "";
    display: block;
    width: 78px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, rgba(180, 47, 67, 0.95), transparent);
    border-radius: 999px;
}

.ip-transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.ip-transactions-header .ip-section-title {
    margin-bottom: 0;
}

/* ================= CARDS ================= */
.ip-stat-card,
.ip-sensor-card,
#ip-sensor-card,
#ip-system-card,
#suspicious-activity-card,
#cerebrusx-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    border-radius: var(--ip-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(28, 28, 32, 0.98), rgba(18, 18, 21, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 14px 30px rgba(0,0,0,0.22);
    transition:
        transform var(--ip-transition-mid),
        box-shadow var(--ip-transition-mid),
        border-color var(--ip-transition-mid),
        background var(--ip-transition-mid);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ip-stat-card::before,
.ip-sensor-card::before,
#ip-system-card::before,
#suspicious-activity-card::before,
#cerebrusx-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 34%);
    pointer-events: none;
}

.ip-stat-card::after,
.ip-sensor-card::after,
#ip-system-card::after,
#suspicious-activity-card::after,
#cerebrusx-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(180, 47, 67, 0.70), transparent);
    opacity: 0.85;
}

.ip-stat-card:hover,
.ip-sensor-card:hover,
#ip-system-card:hover,
#suspicious-activity-card:hover,
#cerebrusx-card:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 47, 67, 0.32);
    box-shadow:
        0 0 0 1px rgba(180, 47, 67, 0.08),
        0 22px 46px rgba(0,0,0,0.32),
        0 10px 24px rgba(138, 31, 49, 0.10);
}

.ip-stat-title {
    margin: 0 0 12px;
    color: #f6f7f9;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.3;
}

.ip-stat-value {
    margin: 8px 0 10px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    word-break: break-word;
}

.ip-stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(138, 31, 49, 0.18);
    border: 1px solid rgba(180, 47, 67, 0.30);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.ip-stat-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
/* ================= CARD UPGRADE COMMERCIAL ================= */
.ip-stat-card,
.ip-sensor-card,
#ip-sensor-card,
#ip-system-card,
#suspicious-activity-card,
#cerebrusx-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 220px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(30, 30, 34, 0.98) 0%, rgba(18, 18, 22, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(255,255,255,0.02),
        0 14px 28px rgba(0,0,0,0.20);
}

.ip-stat-card::before,
.ip-sensor-card::before,
#ip-sensor-card::before,
#ip-system-card::before,
#suspicious-activity-card::before,
#cerebrusx-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(180, 47, 67, 0.10), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.015), transparent 30%);
}

.ip-stat-card::after,
.ip-sensor-card::after,
#ip-sensor-card::after,
#ip-system-card::after,
#suspicious-activity-card::after,
#cerebrusx-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(180, 47, 67, 0.15),
        rgba(180, 47, 67, 0.95),
        rgba(180, 47, 67, 0.15)
    );
    opacity: 0.95;
}

.ip-stat-card:hover,
.ip-sensor-card:hover,
#ip-sensor-card:hover,
#ip-system-card:hover,
#suspicious-activity-card:hover,
#cerebrusx-card:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 47, 67, 0.26);
    background:
        linear-gradient(180deg, rgba(34, 34, 39, 0.99) 0%, rgba(19, 19, 23, 0.99) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(255,255,255,0.02),
        0 20px 42px rgba(0,0,0,0.28),
        0 8px 20px rgba(138, 31, 49, 0.10);
}

/* ================= CARD TYPOGRAPHY ================= */
.ip-stat-title {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.78);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ip-stat-value {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    text-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.ip-text-muted {
    color: rgba(255,255,255,0.68);
    font-size: 0.82rem;
    line-height: 1.65;
}

/* ================= CARD BADGE BETTER ================= */
.ip-stat-badge,
.ip-sensor-card .ip-stat-badge,
#ip-sensor-card .ip-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(138, 31, 49, 0.22), rgba(138, 31, 49, 0.12));
    border: 1px solid rgba(180, 47, 67, 0.28);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ================= CARD CONTENT RHYTHM ================= */
.ip-stat-card > * + *,
.ip-sensor-card > * + *,
#ip-sensor-card > * + *,
#ip-system-card > * + *,
#suspicious-activity-card > * + *,
#cerebrusx-card > * + * {
    margin-top: 0;
}

.ip-stat-card .ip-actions,
.ip-sensor-card .ip-actions,
#ip-sensor-card .ip-actions,
#ip-system-card .ip-actions,
#suspicious-activity-card .ip-actions,
#cerebrusx-card .ip-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ================= SYSTEM / ACTIVITY CARD ROWS ================= */
#ip-system-card p,
#ip-system-card li,
#suspicious-activity-card p,
#suspicious-activity-card li {
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#ip-system-card p:last-child,
#ip-system-card li:last-child,
#suspicious-activity-card p:last-child,
#suspicious-activity-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ================= SENSOR CARD MATTE BLACK TRANSLUCENT ================= */
.ip-sensor-card,
#ip-sensor-card {
    border-color: rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.02), transparent 20%),
        linear-gradient(180deg, rgba(18, 18, 21, 0.80), rgba(9, 9, 11, 0.86));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ip-sensor-card:hover,
#ip-sensor-card:hover {
    border-color: rgba(180, 47, 67, 0.22);
    background:
        radial-gradient(circle at 85% 15%, rgba(180, 47, 67, 0.04), transparent 22%),
        linear-gradient(180deg, rgba(22, 22, 26, 0.86), rgba(10, 10, 12, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 20px 42px rgba(0,0,0,0.30);
}

/* ================= SPECIAL CEREBRUS CARD ================= */
#cerebrusx-card {
    background:
        radial-gradient(circle at top right, rgba(180, 47, 67, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(39, 20, 25, 0.98), rgba(22, 12, 15, 0.98));
    border-color: rgba(180, 47, 67, 0.30);
}

/* ================= SMALL FOOTER ZONE INSIDE CARD ================= */
.ip-card-footer,
.ip-stat-footer,
.ip-card-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.64);
    font-size: 0.74rem;
    line-height: 1.5;
}

/* ================= SPECIAL CARDS ================= */
#cerebrusx-card {
    border-color: rgba(180, 47, 67, 0.34);
    background:
        radial-gradient(circle at top right, rgba(180, 47, 67, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(34, 18, 22, 0.98), rgba(20, 12, 15, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 18px 36px rgba(0,0,0,0.26),
        0 0 18px rgba(138, 31, 49, 0.08);
}

#cerebrusx-card .ip-stat-title,
#cerebrusx-card .ip-stat-value {
    color: #ffffff;
}

.ip-sensor-card,
#ip-sensor-card {
    width: 100%;
    max-width: none;
    text-align: left;
    border-color: rgba(90, 130, 151, 0.28);
    background:
        radial-gradient(circle at 84% 14%, rgba(90, 130, 151, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(23, 27, 31, 0.98), rgba(16, 19, 22, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 18px 38px rgba(0,0,0,0.26);
}

.ip-sensor-card::before,
#ip-sensor-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4b6e80, #6d97ad, #4b6e80);
    background-size: 200% 100%;
    animation: sensorGlow 3.2s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(90, 130, 151, 0.18);
    pointer-events: none;
}

.ip-sensor-card > *,
#ip-sensor-card > * {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ip-sensor-card .ip-stat-header,
#ip-sensor-card .ip-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    text-align: left;
}

.ip-sensor-card .ip-stat-title,
#ip-sensor-card .ip-stat-title {
    margin: 0;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ip-sensor-card .ip-stat-title::before,
#ip-sensor-card .ip-stat-title::before {
    content: none;
}

.ip-sensor-card .ip-stat-badge,
#ip-sensor-card .ip-stat-badge {
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.ip-sensor-card .ip-stat-list,
#ip-sensor-card .ip-stat-list {
    display: none !important;
}

/* ================= TOGGLE ================= */
.ip-sensor-toggle-wrap,
.ip-sensor-card .ip-sensor-toggle-wrap,
#ip-sensor-card .ip-sensor-toggle-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto 16px;
}

.ip-toggle-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 240px;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid rgba(180, 47, 67, 0.48);
    background: linear-gradient(180deg, rgba(180, 47, 67, 0.96), rgba(105, 18, 32, 0.96));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 10px 24px rgba(180,47,67,0.24),
        0 8px 16px rgba(0,0,0,0.18);
    transition: all 0.20s ease;
}

.ip-toggle-label:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 95, 115, 0.72);
    background: linear-gradient(180deg, rgba(210, 58, 82, 0.98), rgba(130, 22, 38, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 12px 28px rgba(180,47,67,0.30),
        0 8px 16px rgba(0,0,0,0.22);
}

.ip-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ip-toggle-label span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    line-height: 1;
}

/* Track dello switch interno - OFF */
.ip-toggle-label span::before {
    content: "";
    width: 42px;
    height: 22px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: rgba(25, 8, 12, 0.55);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.28),
        0 0 0 1px rgba(255,255,255,0.03);
    transition: all 0.20s ease;
}

/* Pallina dello switch interno */
.ip-toggle-label span::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #d9dde2);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.35);
    transition: all 0.20s ease;
}

/* Track dello switch interno - ON */
.ip-toggle-label input[type="checkbox"]:checked + span::before {
    background: linear-gradient(180deg, rgba(255, 105, 125, 0.46), rgba(120, 18, 34, 0.42));
    border-color: rgba(255, 145, 160, 0.55);
    box-shadow:
        0 0 14px rgba(255, 75, 100, 0.28),
        inset 0 2px 6px rgba(0,0,0,0.24);
}

/* Pallina dello switch interno - ON */
.ip-toggle-label input[type="checkbox"]:checked + span::after {
    left: 24px;
    background: linear-gradient(180deg, #fff4f6, #ffb8c2);
    box-shadow:
        0 0 12px rgba(255, 95, 115, 0.48),
        0 3px 8px rgba(0,0,0,0.25);
}

.ip-sensor-description,
.ip-sensor-card .ip-sensor-description,
#ip-sensor-card .ip-sensor-description,
#ip-sensor-card p,
#ip-sensor-card .ip-text-muted,
#ip-sensor-card .ip-sensor-live {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.75;
    text-align: left;
}

/* ================= ACTIONS / BUTTONS ================= */
.ip-actions,
#ip-sensor-card .ip-actions,
#ip-sensor-card .ip-sensor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.ip-actions button,
.ip-system-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(33, 33, 38, 0.98), rgba(21, 21, 25, 0.98));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 8px 18px rgba(0,0,0,0.14);
    text-align: center;
}

.ip-actions button::before,
.ip-system-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 48%, transparent 56%);
    transform: translateX(-140%);
    transition: transform 0.65s ease;
}

.ip-actions button:hover,
.ip-system-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 47, 67, 0.44);
    background: linear-gradient(180deg, rgba(138, 31, 49, 0.30), rgba(101, 23, 38, 0.22));
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(180, 47, 67, 0.10),
        0 14px 28px rgba(0,0,0,0.18),
        0 10px 24px rgba(138, 31, 49, 0.14);
}

.ip-actions button:hover::before,
.ip-system-btn:hover::before {
    transform: translateX(140%);
}

#ip-sensor-card .ip-actions button,
#ip-sensor-card .ip-system-btn {
    border-color: rgba(90, 130, 151, 0.28);
    background: linear-gradient(180deg, rgba(28, 36, 41, 0.98), rgba(20, 26, 30, 0.98));
    color: #ffffff;
}

#ip-sensor-card .ip-actions button:hover,
#ip-sensor-card .ip-system-btn:hover {
    border-color: rgba(90, 130, 151, 0.44);
    background: linear-gradient(180deg, rgba(90, 130, 151, 0.30), rgba(68, 103, 121, 0.18));
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(90, 130, 151, 0.10),
        0 14px 28px rgba(0,0,0,0.18),
        0 10px 24px rgba(68, 103, 121, 0.14);
}

/* ================= TABLE ================= */
.ip-table-wrapper {
    position: relative;
    width: 100%;
}

.ip-transactions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(18, 18, 21, 0.98), rgba(14, 14, 17, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 12px 28px rgba(0,0,0,0.18);
}

.ip-transactions-table th {
    padding: 15px 16px;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(33, 33, 38, 0.98), rgba(24, 24, 28, 0.98));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

.ip-transactions-table td {
    padding: 15px 16px;
    font-size: 0.90rem;
    color: #f1f3f5;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.ip-transactions-table tbody tr:hover td {
    background: linear-gradient(90deg, rgba(138, 31, 49, 0.10), transparent 78%);
    color: #ffffff;
}

.ip-transactions-table tbody tr:last-child td {
    border-bottom: none;
}

/* ================= EMPTY STATE ================= */
.ironphantom-empty-state {
    margin: 12px auto 0;
    padding: 18px 18px;
    width: 100%;
    max-width: none;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        radial-gradient(circle at 84% 14%, rgba(255,255,255,0.02), transparent 20%),
        linear-gradient(180deg, rgba(22, 22, 26, 0.98), rgba(16, 16, 19, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 12px 24px rgba(0,0,0,0.14);
}

.ironphantom-empty-state .empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    border-radius: 14px;
    background: rgba(138, 31, 49, 0.12);
    border: 1px solid rgba(180, 47, 67, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 6px 14px rgba(0,0,0,0.10);
    font-size: 1.05rem;
}

.ironphantom-empty-state .empty-title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ironphantom-empty-state .empty-subtitle {
    max-width: 480px;
    margin: 0 auto;
    color: #d9dde3;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ================= SYSTEM CHECK / SUSPICIOUS ACTIVITY ================= */
#ip-system-card p,
#ip-system-card li,
#suspicious-activity-card p,
#suspicious-activity-card li {
    display: grid;
    grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    margin: 0 0 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

#ip-system-card p:last-child,
#ip-system-card li:last-child,
#suspicious-activity-card p:last-child,
#suspicious-activity-card li:last-child {
    border-bottom: none;
}

#ip-system-card p strong:first-child,
#ip-system-card li strong:first-child,
#suspicious-activity-card p strong:first-child,
#suspicious-activity-card li strong:first-child,
#ip-system-card p span:first-child,
#ip-system-card li span:first-child,
#suspicious-activity-card p span:first-child,
#suspicious-activity-card li span:first-child {
    display: block;
    text-align: left;
    line-height: 1.45;
    color: #d8dde3;
    font-weight: 700;
}

#ip-system-card p strong:last-child,
#ip-system-card li strong:last-child,
#suspicious-activity-card p strong:last-child,
#suspicious-activity-card li strong:last-child,
#ip-system-card p span:last-child,
#ip-system-card li span:last-child,
#suspicious-activity-card p span:last-child,
#suspicious-activity-card li span:last-child {
    display: block;
    text-align: right;
    justify-self: end;
    line-height: 1.45;
    color: #ffffff;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ================= FREE HEADER UPGRADE BUTTON ================= */
.ip-free-upgrade-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.ip-upgrade-pro-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 190px;
    max-width: 100%;
    padding: 11px 16px;
    border: 1px solid rgba(180, 47, 67, 0.70);
    border-radius: 14px;
    background: linear-gradient(180deg, #a02a3c 0%, #6b1a29 100%);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.20),
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 0 18px rgba(138, 31, 49, 0.16);
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.ip-upgrade-pro-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(219, 80, 97, 0.92);
    background: linear-gradient(180deg, #b73246 0%, #7b1f30 100%);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 0 22px rgba(138, 31, 49, 0.24);
}

.ip-upgrade-pro-btn:active {
    transform: translateY(0);
}

.ip-upgrade-pro-btn:focus {
    outline: none;
    border-color: rgba(219, 80, 97, 0.95);
    box-shadow:
        0 0 0 3px rgba(138, 31, 49, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.ip-upgrade-pro-btn-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.15;
}

.ip-upgrade-pro-btn-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.01em;
}

/* ================= MODAL ================= */
.ip-modal {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ip-modal-content {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(27, 27, 31, 0.98), rgba(17, 17, 20, 0.98));
    box-shadow:
        0 30px 70px rgba(0,0,0,0.42),
        0 0 0 1px rgba(138, 31, 49, 0.06);
}

.ip-modal-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(180, 47, 67, 0.8), transparent);
}

/* ================= FOOTER MINIMAL MODERN ================= */
.ip-footer {
    position: relative;
    margin-top: 36px;
    padding: 18px 24px 22px;
    background: linear-gradient(180deg, rgba(15, 15, 18, 0.84), rgba(8, 8, 10, 0.96));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 -10px 28px rgba(0,0,0,0.18);
}

.ip-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 88%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(180, 47, 67, 0.14),
        rgba(180, 47, 67, 0.72),
        rgba(180, 47, 67, 0.14),
        transparent
    );
}

.ip-footer-content {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-footer-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 6px 18px rgba(0,0,0,0.10);
}

.ip-footer-support a {
    color: rgba(255,255,255,0.90);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ip-footer-support a:hover {
    color: #ffffff;
    opacity: 1;
}

@media (max-width: 768px) {
    .ip-footer {
        padding: 16px 14px 20px;
    }

    .ip-footer-support {
        width: 100%;
    }

    .ip-footer-support a {
        font-size: 0.74rem;
        word-break: break-word;
    }
}

/* ================= UTILITIES ================= */
.ip-value-positive {
    color: #7be0ac;
    font-weight: 800;
}

.ip-value-negative {
    color: #ff7688;
    font-weight: 800;
}

.ip-text-muted {
    color: var(--ip-text-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.ip-center-text,
.ip-stat-card.ip-center-text,
.ip-stat-card .ip-center-text {
    text-align: center;
}

.ip-center-text .ip-stat-title,
.ip-center-text .ip-stat-value,
.ip-center-text .ip-stat-badge,
.ip-center-text .ip-text-muted {
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #111113;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b1a29, #411019);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8f2437, #541420);
}

/* ================= ANIMATIONS ================= */
@keyframes sensorGlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.55;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.55;
    }
}

@keyframes ipPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* ================= PERFORMANCE ================= */
.ip-stat-card,
.ip-sensor-card,
#ip-sensor-card,
#cerebrusx-card,
#ip-system-card,
#suspicious-activity-card,
.ip-transactions-section,
.ip-modal-content,
.ip-header,
.ip-transactions-table,
.ip-actions button,
.ip-system-btn {
    will-change: transform, box-shadow, opacity;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .ip-header {
        padding: 34px 20px 28px;
    }

    .ip-transactions-section,
    .ip-stat-card,
    .ip-sensor-card,
    #ip-sensor-card,
    #ip-system-card,
    #suspicious-activity-card,
    .ip-modal-content {
        padding: 20px;
    }

    .ip-stat-value,
    #ip-sensor-card .ip-stat-value {
        font-size: 1.72rem;
    }

    .ip-transactions-grid,
    .ip-cards-grid,
    .ip-dashboard-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .ironphantom-dashboard {
        overflow-x: hidden;
    }

    .ip-header {
        padding: 26px 14px 22px;
    }

    .ip-header::after {
        width: calc(100% - 28px);
    }

    .ip-header h1 {
        font-size: 1.34rem;
        line-height: 1.12;
        letter-spacing: -0.03em;
    }

    .ip-subtitle {
        margin-top: 10px;
        max-width: 100%;
        padding: 0 4px;
        font-size: 0.70rem;
        line-height: 1.45;
        letter-spacing: 0.08em;
    }

    .ip-status {
        width: 100%;
        padding: 9px 12px;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .ip-header .ip-header-meta,
    .ip-header .ip-hero-meta,
    .ip-header .ip-meta-row {
        gap: 8px;
        margin-top: 14px;
    }

    .ip-header .ip-header-meta span,
    .ip-header .ip-hero-meta span,
    .ip-header .ip-meta-row span {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.66rem;
        line-height: 1.35;
        white-space: normal;
    }

    .ip-transactions-section,
    .ip-stat-card,
    .ip-sensor-card,
    #ip-sensor-card,
    #ip-system-card,
    #suspicious-activity-card,
    .ip-modal-content {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .ip-transactions-header {
        align-items: stretch;
        justify-content: center;
        gap: 12px;
    }

    .ip-transactions-header > * {
        width: 100%;
    }

    .ip-transactions-header .ip-section-title {
        text-align: center;
    }

    .ip-section-title {
        margin-bottom: 16px;
        padding-left: 10px;
        font-size: 0.90rem;
    }

    .ip-stat-title,
    .ip-sensor-card .ip-stat-title,
    #ip-sensor-card .ip-stat-title {
        font-size: 0.68rem;
        letter-spacing: 0.11em;
    }

    .ip-stat-value,
    #ip-sensor-card .ip-stat-value {
        font-size: 1.44rem;
    }

    .ip-stat-badge,
    .ip-sensor-card .ip-stat-badge,
    #ip-sensor-card .ip-stat-badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    .ip-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }

    .ip-transactions-table {
        min-width: 720px;
        border-radius: 16px;
    }

    .ip-transactions-table th,
    .ip-transactions-table td {
        padding: 11px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .ip-actions,
    #ip-sensor-card .ip-actions,
    #ip-sensor-card .ip-sensor-actions {
        width: 100%;
        gap: 10px;
    }

    .ip-actions button,
    .ip-system-btn,
    #ip-sensor-card .ip-actions button,
    #ip-sensor-card .ip-system-btn {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 0.72rem;
        line-height: 1.25;
        white-space: normal;
    }

    .ip-sensor-card > *,
    #ip-sensor-card > * {
        max-width: 100%;
    }

    .ip-sensor-card .ip-stat-header,
    #ip-sensor-card .ip-stat-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
    }

    .ip-sensor-toggle-wrap,
    .ip-sensor-card .ip-sensor-toggle-wrap,
    #ip-sensor-card .ip-sensor-toggle-wrap {
        width: 100%;
        justify-content: stretch;
        margin-bottom: 14px;
    }

    .ip-toggle-label {
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        line-height: 1.25;
    }

    .ip-toggle-label span {
        width: 100%;
        white-space: normal;
    }

    .ip-sensor-description,
    .ip-sensor-card .ip-sensor-description,
    #ip-sensor-card .ip-sensor-description,
    #ip-sensor-card p,
    #ip-sensor-card .ip-text-muted,
    #ip-sensor-card .ip-sensor-live {
        max-width: 100%;
        font-size: 0.78rem;
        line-height: 1.6;
    }

    #ip-system-card p,
    #ip-system-card li,
    #suspicious-activity-card p,
    #suspicious-activity-card li {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 4px;
        margin-bottom: 14px;
    }

    #ip-system-card p strong:last-child,
    #ip-system-card li strong:last-child,
    #suspicious-activity-card p strong:last-child,
    #suspicious-activity-card li strong:last-child,
    #ip-system-card p span:last-child,
    #ip-system-card li span:last-child,
    #suspicious-activity-card p span:last-child,
    #suspicious-activity-card li span:last-child {
        text-align: left;
        justify-self: start;
    }

    .ironphantom-empty-state {
        margin-top: 18px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .ironphantom-empty-state .empty-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
        font-size: 1.4rem;
        border-radius: 16px;
    }

    .ironphantom-empty-state .empty-title {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    .ironphantom-empty-state .empty-subtitle {
        max-width: 100%;
        font-size: 0.80rem;
        line-height: 1.6;
    }

    .ip-free-upgrade-wrap {
        margin-top: 10px;
        width: 100%;
    }

    .ip-upgrade-pro-btn {
        width: 100%;
        min-width: 0;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .ip-upgrade-pro-btn-label {
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .ip-upgrade-pro-btn-sub {
        font-size: 0.68rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .ip-footer {
        padding: 18px 12px;
        font-size: 0.70rem;
    }
}

@media (max-width: 480px) {
    .ip-header {
        padding: 22px 12px 18px;
    }

    .ip-header h1 {
        font-size: 1.16rem;
    }

    .ip-subtitle {
        font-size: 0.64rem;
        letter-spacing: 0.06em;
    }

    .ip-status {
        font-size: 0.64rem;
        padding: 8px 10px;
    }

    .ip-transactions-section,
    .ip-stat-card,
    .ip-sensor-card,
    #ip-sensor-card,
    #ip-system-card,
    #suspicious-activity-card,
    .ip-modal-content {
        padding: 14px 12px;
        border-radius: 16px;
    }

    .ip-section-title {
        font-size: 0.84rem;
    }

    .ip-stat-title,
    .ip-sensor-card .ip-stat-title,
    #ip-sensor-card .ip-stat-title {
        font-size: 0.64rem;
        letter-spacing: 0.09em;
    }

    .ip-stat-value,
    #ip-sensor-card .ip-stat-value {
        font-size: 1.22rem;
    }

    .ip-toggle-label {
        padding: 9px 10px;
        font-size: 0.64rem;
    }

    .ip-sensor-description,
    .ip-sensor-card .ip-sensor-description,
    #ip-sensor-card .ip-sensor-description {
        font-size: 0.74rem;
    }

    .ip-upgrade-pro-btn {
        padding: 9px 12px;
        border-radius: 11px;
    }

    .ip-upgrade-pro-btn-label {
        font-size: 0.74rem;
        letter-spacing: 0.05em;
    }

    .ip-upgrade-pro-btn-sub {
        font-size: 0.66rem;
    }

    .ironphantom-empty-state .empty-title {
        font-size: 0.96rem;
    }

    .ironphantom-empty-state .empty-subtitle,
    .ip-footer {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ================= CARD TEXT GLOBAL OVERRIDE ================= */
.ip-stat-title,
.ip-stat-value,
.ip-text-muted,
.ip-transactions-table th,
.ip-transactions-table td,
#ip-system-card p strong:first-child,
#ip-system-card li strong:first-child,
#suspicious-activity-card p strong:first-child,
#suspicious-activity-card li strong:first-child,
#ip-system-card p span:first-child,
#ip-system-card li span:first-child,
#suspicious-activity-card p span:first-child,
#suspicious-activity-card li span:first-child {
    color: rgba(255,255,255,0.96);
}

.ip-stat-badge,
#ip-sensor-card .ip-stat-badge,
.ip-sensor-card .ip-stat-badge {
    color: #ffffff;
}

#cerebrusx-card .ip-stat-title,
#cerebrusx-card .ip-stat-value,
#ip-sensor-card .ip-stat-title,
#ip-sensor-card .ip-stat-value,
.ip-sensor-description,
.ip-sensor-card .ip-sensor-description,
#ip-sensor-card .ip-sensor-description,
#ip-sensor-card p,
#ip-sensor-card .ip-text-muted,
#ip-sensor-card .ip-sensor-live {
    color: rgba(255,255,255,0.94);
}
/* Hide the Password column in the admin transactions table */
.ip-transactions-table th:nth-child(5),
.ip-transactions-table td:nth-child(5) {
    display: none !important;
}
/* Hide the Status column in the admin transactions table */
.ip-transactions-table th:nth-child(8),
.ip-transactions-table td:nth-child(8) {
    display: none !important;
}

/* ================= TRANSACTIONS TABLE – DYNAMIC COLORS ================= */
.ip-cell-high {
    color: #ff5c7a !important;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 92, 122, 0.22);
}

.ip-cell-high * {
    color: #ff5c7a !important;
}

.ip-cell-medium {
    color: #ffbe5c !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 190, 92, 0.16);
}

.ip-cell-medium * {
    color: #ffbe5c !important;
}

.ip-cell-safe {
    color: #59e39a !important;
    font-weight: 800;
}

.ip-cell-safe * {
    color: #59e39a !important;
}

.ip-cell-amount-high,
.ip-cell-amount-high * {
    color: #ffd166 !important;
    font-weight: 900 !important;
}

.ip-cell-amount-critical,
.ip-cell-amount-critical * {
    color: #ff8a65 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 12px rgba(255, 138, 101, 0.18);
}

.ip-cell-blocked {
    color: #ff4d6d !important;
    font-weight: 900;
    text-transform: uppercase;
}

.ip-cell-blocked * {
    color: #ff4d6d !important;
}

.ip-cell-review {
    color: #ffb347 !important;
    font-weight: 900;
    text-transform: uppercase;
}

.ip-cell-review * {
    color: #ffb347 !important;
}

.ip-cell-allowed {
    color: #59e39a !important;
    font-weight: 900;
    text-transform: uppercase;
}

.ip-cell-allowed * {
    color: #59e39a !important;
}

/* Transaction ID in giallo */
.ip-transactions-table td.transaction-id,
.ip-transactions-table td.transaction-id a,
.ip-transactions-table td.transaction-id * {
    color: #ffd166 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.18);
}


/* ================= EMPTY PLACEHOLDER PROFESSIONAL SHIELD ================= */

#ip-empty-placeholder .empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        radial-gradient(circle at 50% 24%, rgba(220, 38, 38, 0.20), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 18px 42px rgba(0,0,0,0.32),
        0 0 24px rgba(185, 28, 28, 0.14),
        inset 0 0 0 1px rgba(255,255,255,0.025);

    animation: ipEmptyIconFloat 3.4s ease-in-out infinite;
}

#ip-empty-placeholder .ip-empty-shield-svg {
    width: 58px;
    height: 58px;
    display: block;
}

#ip-empty-placeholder .ip-shield-main,
#ip-empty-placeholder .ip-shield-soft,
#ip-empty-placeholder .ip-shield-accent,
#ip-empty-placeholder .ip-shield-signal {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ip-empty-placeholder .ip-shield-main {
    stroke: rgba(255,255,255,0.78);
    stroke-width: 2.6;
}

#ip-empty-placeholder .ip-shield-soft {
    stroke: rgba(255,255,255,0.18);
    stroke-width: 2.1;
}

#ip-empty-placeholder .ip-shield-accent {
    stroke: #ef4444;
    stroke-width: 3.2;
    filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.80));
}

#ip-empty-placeholder .ip-shield-signal {
    stroke: #ef4444;
    stroke-width: 2.6;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.70));
}

@keyframes ipEmptyIconFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.90;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}
/* ================= TYPEWRITER CURSOR ================= */

#ip-typewriter-text {
    color: inherit;
}

.ip-typewriter-cursor {
    margin-left: 3px;
    color: #dc2626;
    font-weight: 900;
    animation: ipCursorBlink 0.8s infinite;
}

@keyframes ipCursorBlink {
    0%, 45% {
        opacity: 1;
    }

    46%, 100% {
        opacity: 0;
    }
}

/* ================= SYSTEM CHECK + SUSPICIOUS ACTIVITY ALIGNMENT ================= */

#ip-system-card,
#suspicious-activity-card {
    justify-content: flex-start !important;
    gap: 8px !important;
}

#ip-system-card .ip-stat-title,
#suspicious-activity-card .ip-stat-title {
    margin: 0 0 8px !important;
}

#ip-system-card p,
#ip-system-card li,
#suspicious-activity-card p,
#suspicious-activity-card li {
    display: grid !important;
    grid-template-columns: minmax(170px, 48%) minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 14px !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.045) !important;
}

#ip-system-card p:last-child,
#ip-system-card li:last-child,
#suspicious-activity-card p:last-child,
#suspicious-activity-card li:last-child {
    border-bottom: none !important;
}

#ip-system-card p strong:first-child,
#ip-system-card li strong:first-child,
#suspicious-activity-card p strong:first-child,
#suspicious-activity-card li strong:first-child,
#ip-system-card p span:first-child,
#ip-system-card li span:first-child,
#suspicious-activity-card p span:first-child,
#suspicious-activity-card li span:first-child {
    text-align: left !important;
    justify-self: start !important;
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

#ip-system-card p strong:last-child,
#ip-system-card li strong:last-child,
#suspicious-activity-card p strong:last-child,
#suspicious-activity-card li strong:last-child,
#ip-system-card p span:last-child,
#ip-system-card li span:last-child,
#suspicious-activity-card p span:last-child,
#suspicious-activity-card li span:last-child {
    text-align: right !important;
    justify-self: end !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
}

/* Mobile */
@media (max-width: 768px) {
    #ip-system-card p,
    #ip-system-card li,
    #suspicious-activity-card p,
    #suspicious-activity-card li {
        grid-template-columns: 1fr !important;
        row-gap: 3px !important;
    }

    #ip-system-card p strong:last-child,
    #ip-system-card li strong:last-child,
    #suspicious-activity-card p strong:last-child,
    #suspicious-activity-card li strong:last-child,
    #ip-system-card p span:last-child,
    #ip-system-card li span:last-child,
    #suspicious-activity-card p span:last-child,
    #suspicious-activity-card li span:last-child {
        text-align: left !important;
        justify-self: start !important;
    }
}
/* =========================================================
   IRONPHANTOM PRO MODAL
   Advanced Identity Protection
   ========================================================= */

#ip-pro-modal.ip-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(180, 47, 67, 0.20), transparent 34%),
        rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

#ip-pro-modal.ip-modal.is-active {
    display: flex;
}

#ip-pro-modal .ip-modal-content {
    width: 100%;
    max-width: 460px;
    padding: 32px 30px 28px;
    border-radius: 26px;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(24, 24, 29, 0.98), rgba(10, 10, 13, 0.98));
    border: 1px solid rgba(180, 47, 67, 0.42);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 42px rgba(180, 47, 67, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

#ip-pro-modal .ip-modal-content::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at top center, rgba(180, 47, 67, 0.30), transparent 42%);
    pointer-events: none;
}

#ip-pro-modal .ip-modal-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 125, 145, 0.85), transparent);
}

#ip-pro-modal .ip-modal-lock {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(180, 47, 67, 0.95), rgba(105, 18, 32, 0.95));
    border: 1px solid rgba(255, 130, 150, 0.42);
    box-shadow:
        0 16px 34px rgba(180, 47, 67, 0.28),
        0 0 24px rgba(180, 47, 67, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#ip-pro-modal .ip-modal-lock span {
    font-size: 2.1rem;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.30));
}

#ip-pro-modal .ip-modal-content h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#ip-pro-modal .ip-modal-content p {
    position: relative;
    z-index: 1;
    max-width: 370px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.7;
}

#ip-pro-modal .ip-modal-content p b {
    color: #ffffff;
    font-weight: 800;
}

#ip-pro-modal .ip-modal-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ip-pro-modal #ip-modal-close {
    min-width: 150px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 115, 135, 0.55);
    background:
        linear-gradient(180deg, rgba(190, 48, 70, 0.98), rgba(115, 18, 34, 0.98));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 12px 26px rgba(180, 47, 67, 0.28),
        0 8px 18px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.20s ease;
}

#ip-pro-modal #ip-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 145, 160, 0.78);
    background:
        linear-gradient(180deg, rgba(220, 60, 84, 0.98), rgba(135, 22, 40, 0.98));
    box-shadow:
        0 16px 32px rgba(180, 47, 67, 0.36),
        0 8px 18px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#ip-pro-modal #ip-modal-close:active {
    transform: translateY(0);
}
/* =========================================================
   IRONPHANTOM ACTIVATION MESSAGE
   Replaces browser-style alert/confirm messages
   ========================================================= */

.ironphantom_activation_message {
    width: 100%;
    max-width: 520px;
    margin: 18px auto 0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(180, 47, 67, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(26, 26, 31, 0.98), rgba(10, 10, 13, 0.98));
    border: 1px solid rgba(180, 47, 67, 0.42);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(180, 47, 67, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.ironphantom_activation_message_icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(180, 47, 67, 0.96), rgba(105, 18, 32, 0.96));
    border: 1px solid rgba(255, 130, 150, 0.42);
    box-shadow:
        0 10px 22px rgba(180, 47, 67, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    line-height: 1;
}

.ironphantom_activation_message_text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.ironphantom_activation_message_text strong {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.ironphantom_activation_message_text span {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* INFO */
.ironphantom_activation_message.is-info {
    border-color: rgba(180, 47, 67, 0.48);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(180, 47, 67, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ironphantom_activation_message.is-info .ironphantom_activation_message_icon {
    background:
        linear-gradient(180deg, rgba(180, 47, 67, 0.96), rgba(105, 18, 32, 0.96));
    border-color: rgba(255, 130, 150, 0.45);
}

/* SUCCESS */
.ironphantom_activation_message.is-success {
    border-color: rgba(76, 169, 121, 0.52);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(76, 169, 121, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ironphantom_activation_message.is-success .ironphantom_activation_message_icon {
    background:
        linear-gradient(180deg, rgba(76, 169, 121, 0.96), rgba(28, 105, 69, 0.96));
    border-color: rgba(120, 220, 165, 0.45);
}

/* ERROR */
.ironphantom_activation_message.is-error {
    border-color: rgba(255, 75, 100, 0.62);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255, 75, 100, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ironphantom_activation_message.is-error .ironphantom_activation_message_icon {
    background:
        linear-gradient(180deg, rgba(220, 58, 82, 0.98), rgba(120, 18, 34, 0.98));
    border-color: rgba(255, 145, 160, 0.55);
}

/* WARNING */
.ironphantom_activation_message.is-warning {
    border-color: rgba(255, 185, 80, 0.58);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(255, 185, 80, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ironphantom_activation_message.is-warning .ironphantom_activation_message_icon {
    background:
        linear-gradient(180deg, rgba(255, 185, 80, 0.96), rgba(150, 86, 20, 0.96));
    border-color: rgba(255, 210, 120, 0.48);
}

/* Responsive */
@media (max-width: 560px) {
    .ironphantom_activation_message {
        max-width: 100%;
        padding: 13px 14px;
        gap: 10px;
    }

    .ironphantom_activation_message_icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .ironphantom_activation_message_text strong {
        font-size: 0.82rem;
    }

    .ironphantom_activation_message_text span {
        font-size: 0.75rem;
    }
}
/* =========================================
   SYSTEM CHECK STATUS TEXT FIX
========================================= */

#ip-system-status {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: normal;
}
/* =========================================
   IRONPHANTOM PRO TRIAL MODAL
   14-Day Free Trial Confirmation
========================================= */

#ip-pro-trial-modal.ip-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(circle at top, rgba(130, 22, 38, 0.24), transparent 36%),
        rgba(3, 3, 6, 0.78);
    backdrop-filter: blur(10px);
    z-index: 99999;
}

#ip-pro-trial-modal.ip-modal.is-active {
    display: flex;
}

#ip-pro-trial-modal .ip-trial-modal-content {
    position: relative;
    width: 100%;
    max-width: 660px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 26px;
    padding: 34px 32px 28px;
    color: #f4f5f7;
    background:
        linear-gradient(180deg, rgba(25, 25, 30, 0.98) 0%, rgba(10, 10, 13, 0.98) 100%);
    border: 1px solid rgba(130, 22, 38, 0.62);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(255, 255, 255, 0.035) inset,
        0 0 38px rgba(130, 22, 38, 0.18);
}

#ip-pro-trial-modal .ip-trial-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.075), transparent 34%),
        radial-gradient(circle at 50% 0%, rgba(198, 29, 61, 0.16), transparent 45%);
}

#ip-pro-trial-modal .ip-modal-x {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    font-size: 25px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

#ip-pro-trial-modal .ip-modal-x:hover {
    background: rgba(130, 22, 38, 0.35);
    border-color: rgba(198, 29, 61, 0.42);
    transform: translateY(-1px);
}

#ip-pro-trial-modal .ip-modal-lock {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(130, 22, 38, 0.28), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(198, 29, 61, 0.38);
    box-shadow: 0 14px 34px rgba(130, 22, 38, 0.20);
    font-size: 30px;
}

#ip-pro-trial-modal h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    text-align: center;
    color: #ffffff;
    font-size: 1.52rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#ip-pro-trial-modal .ip-trial-intro {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto 20px;
    color: #dfe3ea;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}

#ip-pro-trial-modal .ip-trial-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

#ip-pro-trial-modal .ip-trial-benefits li {
    position: relative;
    padding: 12px 14px 12px 42px;
    border-radius: 16px;
    color: #edf0f3;
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

#ip-pro-trial-modal .ip-trial-benefits li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #8d1026 0%, #c61d3d 100%);
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(130, 22, 38, 0.28);
}

#ip-pro-trial-modal .ip-trial-benefits strong {
    color: #ffffff;
    font-weight: 800;
}

#ip-pro-trial-modal .ip-trial-note {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    padding: 15px 16px;
    border-radius: 18px;
    color: #e8ebef;
    line-height: 1.62;
    background:
        linear-gradient(180deg, rgba(130, 22, 38, 0.16), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(130, 22, 38, 0.32);
}

#ip-pro-trial-modal .ip-trial-note p {
    margin: 0 0 8px;
}

#ip-pro-trial-modal .ip-trial-note p:last-child {
    margin-bottom: 0;
}

#ip-pro-trial-modal .ip-trial-checkbox {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #eef1f5;
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#ip-pro-trial-modal .ip-trial-checkbox input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #c61d3d;
    cursor: pointer;
}

#ip-pro-trial-modal .ip-trial-checkbox a {
    color: #ff6d82;
    text-decoration: none;
    font-weight: 800;
}

#ip-pro-trial-modal .ip-trial-checkbox a:hover {
    text-decoration: underline;
}

#ip-pro-trial-modal .ip-modal-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

#ip-pro-trial-modal #ip-trial-modal-close {
    min-width: 118px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    color: #f4f5f7;
    background: rgba(255, 255, 255, 0.055);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

#ip-pro-trial-modal #ip-trial-modal-close:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

#ip-pro-trial-modal #ip-confirm-trial {
    min-width: 210px;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #8d1026 0%, #c61d3d 52%, #f0445f 100%);
    font-weight: 850;
    letter-spacing: -0.01em;
    box-shadow: 0 14px 32px rgba(130, 22, 38, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#ip-pro-trial-modal #ip-confirm-trial:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(130, 22, 38, 0.44);
}

#ip-pro-trial-modal #ip-confirm-trial:active:not(:disabled) {
    transform: translateY(0);
}

#ip-pro-trial-modal #ip-confirm-trial:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

#ip-pro-trial-modal #ip-confirm-trial.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

#ip-pro-trial-modal #ip-confirm-trial.is-loading::after {
    content: "…";
    display: inline-block;
    margin-left: 4px;
}

@media (max-width: 640px) {
    #ip-pro-trial-modal.ip-modal {
        padding: 14px;
    }

    #ip-pro-trial-modal .ip-trial-modal-content {
        max-height: 94vh;
        padding: 28px 18px 22px;
        border-radius: 22px;
    }

    #ip-pro-trial-modal h3 {
        font-size: 1.28rem;
    }

    #ip-pro-trial-modal .ip-trial-intro {
        font-size: 0.9rem;
    }

    #ip-pro-trial-modal .ip-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #ip-pro-trial-modal #ip-trial-modal-close,
    #ip-pro-trial-modal #ip-confirm-trial {
        width: 100%;
    }
}
/* =========================================
   IRONPHANTOM PRO TRIAL MODAL — TYPOGRAPHY
========================================= */

#ip-pro-trial-modal,
#ip-pro-trial-modal * {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#ip-pro-trial-modal h3 {
    font-size: 1.62rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

#ip-pro-trial-modal .ip-trial-intro {
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

#ip-pro-trial-modal .ip-trial-benefits li {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.012em;
}

#ip-pro-trial-modal .ip-trial-benefits strong {
    font-weight: 800;
    letter-spacing: -0.018em;
}

#ip-pro-trial-modal .ip-trial-note {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

#ip-pro-trial-modal .ip-trial-checkbox {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

#ip-pro-trial-modal #ip-trial-modal-close,
#ip-pro-trial-modal #ip-confirm-trial {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.012em;
}
/* =========================================
   IRONPHANTOM PRO TRIAL MODAL — PREMIUM EDGES
   More rounded, elegant bordeaux border/glow
========================================= */

#ip-pro-trial-modal .ip-trial-modal-content {
    border-radius: 34px;
    border: 1px solid rgba(190, 24, 50, 0.72);
    background:
        linear-gradient(180deg, rgba(24, 24, 29, 0.985) 0%, rgba(8, 8, 11, 0.99) 100%);
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.045) inset,
        0 0 0 2px rgba(120, 16, 34, 0.10),
        0 0 52px rgba(190, 24, 50, 0.26);
}

#ip-pro-trial-modal .ip-trial-modal-content::before {
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.085), transparent 32%),
        radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.20), transparent 44%),
        linear-gradient(180deg, rgba(120, 16, 34, 0.08), transparent 58%);
}

/* subtle red top accent */
#ip-pro-trial-modal .ip-trial-modal-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 34px;
    right: 34px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(244, 63, 94, 0.85),
        transparent
    );
}

/* make inner blocks softer and more premium */
#ip-pro-trial-modal .ip-trial-benefits li,
#ip-pro-trial-modal .ip-trial-note,
#ip-pro-trial-modal .ip-trial-checkbox {
    border-radius: 22px;
    border-color: rgba(190, 24, 50, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026));
}

/* more elegant close button */
#ip-pro-trial-modal .ip-modal-x {
    border-radius: 16px;
    border-color: rgba(190, 24, 50, 0.22);
    background: rgba(255, 255, 255, 0.052);
}

#ip-pro-trial-modal .ip-modal-x:hover {
    background: rgba(190, 24, 50, 0.26);
    border-color: rgba(244, 63, 94, 0.55);
}

/* lock icon with stronger bordeaux identity */
#ip-pro-trial-modal .ip-modal-lock {
    border-radius: 24px;
    border-color: rgba(244, 63, 94, 0.42);
    background:
        radial-gradient(circle at 35% 20%, rgba(244, 63, 94, 0.26), transparent 42%),
        linear-gradient(145deg, rgba(120, 16, 34, 0.36), rgba(255, 255, 255, 0.045));
    box-shadow:
        0 16px 38px rgba(120, 16, 34, 0.30),
        0 0 24px rgba(244, 63, 94, 0.12);
}

/* premium red CTA */
#ip-pro-trial-modal #ip-confirm-trial {
    border-radius: 18px;
    background:
        linear-gradient(135deg, #7f1024 0%, #be123c 48%, #f43f5e 100%);
    box-shadow:
        0 16px 38px rgba(190, 24, 50, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

#ip-pro-trial-modal #ip-confirm-trial:hover:not(:disabled) {
    box-shadow:
        0 20px 48px rgba(190, 24, 50, 0.50),
        0 0 0 1px rgba(255, 255, 255, 0.11) inset;
}

/* close button softer */
#ip-pro-trial-modal #ip-trial-modal-close {
    border-radius: 18px;
}
/* =========================================
   VERIFY USER — PRO TRIAL DISABLED MODAL
   ========================================= */

#ip-verify-trial-modal.ip-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(circle at top, rgba(130, 22, 38, 0.26), transparent 38%),
        rgba(3, 3, 6, 0.82);
    backdrop-filter: blur(12px);
    z-index: 99999;
}

#ip-verify-trial-modal.ip-modal.is-active {
    display: flex;
}

#ip-verify-trial-modal .ip-verify-trial-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 26px;
    padding: 34px 32px 28px;
    background:
        linear-gradient(180deg, rgba(24, 24, 29, 0.98), rgba(10, 10, 12, 0.98));
    border: 1px solid rgba(160, 35, 52, 0.58);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 36px rgba(130, 22, 38, 0.28);
    color: #f4f5f7;
    text-align: center;
    animation: ipVerifyTrialModalIn 0.22s ease-out;
}

#ip-verify-trial-modal .ip-modal-x {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

#ip-verify-trial-modal .ip-modal-x:hover {
    background: rgba(160, 35, 52, 0.35);
    border-color: rgba(220, 60, 80, 0.75);
    transform: scale(1.04);
}

#ip-verify-trial-modal .ip-modal-lock {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, #7f1024, #b91f3c);
    box-shadow: 0 14px 32px rgba(130, 22, 38, 0.36);
    font-size: 26px;
}

#ip-verify-trial-modal h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#ip-verify-trial-modal p {
    margin: 0 auto 14px;
    max-width: 540px;
    color: #cfd3da;
    font-size: 0.94rem;
    line-height: 1.7;
}

#ip-verify-trial-modal .ip-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

#ip-verify-trial-modal .ip-modal-actions button {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #9f1730, #d12a48);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(130, 22, 38, 0.32);
    transition: all 0.18s ease;
}

#ip-verify-trial-modal .ip-modal-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(130, 22, 38, 0.42);
}

/* Verify User button during trial: clickable preview, not real action */
.ip-verify-user-preview {
    opacity: 0.78;
    cursor: pointer;
    position: relative;
    border-color: rgba(160, 35, 52, 0.48) !important;
}

.ip-verify-user-preview:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.ip-verify-user-preview::after {
    content: "Preview";
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(160, 35, 52, 0.22);
    border: 1px solid rgba(220, 60, 80, 0.35);
    color: #ffd6de;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@keyframes ipVerifyTrialModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    #ip-verify-trial-modal .ip-verify-trial-content {
        padding: 30px 22px 24px;
        border-radius: 22px;
    }

    #ip-verify-trial-modal h3 {
        font-size: 1.15rem;
    }

    #ip-verify-trial-modal p {
        font-size: 0.88rem;
    }
}
