.se-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1000px;
    margin: 0 auto 2em;
    padding: 2.5em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}
.se-header { text-align: center; margin-bottom: 2em; }
.se-header h2 { margin: 0 0 10px 0; color: #0f172a; font-size: 26px; font-weight: 700; }
.se-header p { color: #64748b; margin: 0; }

.se-usage-badge {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 2.5em;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-form { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.se-input {
    width: 100%; box-sizing: border-box; padding: 15px 20px;
    border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px;
    background: #f8fafc; font-family: 'Fira Code', monospace; resize: vertical;
}
.se-input:focus { border-color: #3b82f6; outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

.se-btn {
    height: 52px; padding: 0 30px; background: #3b82f6; color: #fff;
    border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; width: 100%;
}
.se-btn:hover { background: #2563eb; }
.se-btn:disabled { background: #94a3b8; cursor: not-allowed; }

/* The Pulse Loader */
.se-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: #475569; font-weight: 600; margin: 40px 0; }
.se-pulse-loader { display: flex; gap: 8px; }
.se-pulse-dot {
    width: 12px; height: 12px; background-color: #3b82f6; border-radius: 50%;
    animation: se-pulse-anim 1.4s infinite ease-in-out both;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}
.se-pulse-dot:nth-child(1) { animation-delay: -0.32s; }
.se-pulse-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes se-pulse-anim { 0%, 80%, 100% { transform: scale(0); opacity: 0.3; } 40% { transform: scale(1); opacity: 1; background-color: #2563eb; } }

/* Premium Dashboard UI */
.se-dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.se-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.se-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.se-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Header Section */
.se-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.se-url-wrap {
    flex: 1;
    padding-right: 20px;
}

.se-target-url {
    font-size: 16px;
    color: #0f172a;
    word-break: break-all;
    line-height: 1.4;
}

.se-tech-wrap {
    text-align: right;
    min-width: 100px;
}

/* Body Section (Bot Grid) */
.se-card-body {
    padding: 20px;
}

.se-bot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.se-bot-item {
    flex: 1;
    min-width: 120px;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.se-bot-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

/* Footer Section */
.se-card-footer {
    padding: 15px 20px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.se-archive-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.se-archive-wrap .se-label {
    margin-bottom: 0;
}

/* Disclaimer / Pro Tip */
.se-disclaimer {
    margin-top: 25px;
    padding: 15px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.se-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.se-pill { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; white-space: nowrap; }
.status-green { background: #d1fae5; color: #065f46; }
.status-red { background: #fee2e2; color: #991b1b; }
.status-grey { background: #f1f5f9; color: #475569; }
/* Deep Archive Data Styling */
.se-archive-data {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.se-archive-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.se-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.se-stat-val {
    font-size: 14px;
    color: #0f172a;
}

.se-archive-actions {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Pushes the buttons to the far right */
}

.se-btn-small {
    padding: 8px 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.se-btn-small:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.se-btn-outline {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.se-btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Adjust the footer to accommodate the wider data */
.se-card-footer {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: block;
}
.se-archive-wrap { display: block; }
.se-archive-wrap > .se-label { margin-bottom: 15px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px;}
/* Lead Gate Styling */
.se-blurred-data {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}