/* ============================================================
   COMPONENTS.CSS — Buttons, Cards, Forms, Discord UI, Founders
   ============================================================ */

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(6, 71, 224, 0.35);
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 71, 224, 0.48);
}

.btn-outline {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue-light);
    background: rgba(6, 71, 224, 0.07);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
}

/* ── Generic Card ── */

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(6, 71, 224, 0.4);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

/* ── Stat Cards ── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(6, 71, 224, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--blue-light);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text3);
    font-size: 0.85rem;
}

/* ── Feature Cards ── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.feature-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(6, 71, 224, 0.07), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(6, 71, 224, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(6, 71, 224, 0.15);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(6, 71, 224, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(3deg);
    background: rgba(6, 71, 224, 0.22);
}

.feature-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--blue-light);
}

.feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text3);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ── Founder Cards ── */

.founders-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(6, 71, 224, 0.08) 0%, transparent 70%);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.founder-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #60a5fa, var(--blue));
    background-size: 200%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.founder-card:hover {
    border-color: rgba(6, 71, 224, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(6, 71, 224, 0.18);
}

.founder-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.founder-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(6, 71, 224, 0.4);
    box-shadow: 0 0 0 6px rgba(6, 71, 224, 0.08), 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.35s;
}

.founder-card:hover .founder-avatar {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 8px rgba(6, 71, 224, 0.12), 0 8px 30px rgba(6, 71, 224, 0.3);
}

.founder-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    border: 3px solid rgba(6, 71, 224, 0.4);
    box-shadow: 0 0 0 6px rgba(6, 71, 224, 0.08), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.founder-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #5865F2;
    border: 2px solid var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.founder-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}

.founder-username {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-light);
    background: rgba(6, 71, 224, 0.1);
    border: 1px solid rgba(6, 71, 224, 0.25);
    border-radius: 100px;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.founder-username::before {
    content: '@';
    opacity: 0.6;
}

.founder-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 14px;
}

.founder-bio {
    color: var(--text3);
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.founder-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.founder-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text3);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
}

.founder-link:hover {
    background: rgba(6, 71, 224, 0.12);
    border-color: rgba(6, 71, 224, 0.35);
    color: var(--blue-light);
}

.founder-link svg {
    width: 14px;
    height: 14px;
}

/* ── Discord UI Mock ── */

.hero-discord-card {
    background: #36393f;
    border-radius: 14px;
    padding: 20px 24px;
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
    animation: float 4s ease-in-out infinite;
}

.discord-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.discord-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.discord-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-bot-tag {
    background: #5865F2;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.discord-text {
    color: #dcddde;
    font-size: 0.9rem;
    line-height: 1.5;
}

.discord-embed {
    margin-top: 12px;
    border-left: 4px solid var(--blue);
    background: #2f3136;
    border-radius: 0 6px 6px 0;
    padding: 12px 14px;
}

.discord-embed-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
}

.discord-embed-desc {
    font-size: 0.82rem;
    color: #b9bbbe;
    line-height: 1.5;
}

/* ── Discord Preview (webhook) ── */

.discord-preview {
    background: #36393f;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.dp-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #72767d;
    margin-bottom: 14px;
}

.dp-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.dp-right {
    flex: 1;
    min-width: 0;
}

.dp-username {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.dp-bot-badge {
    background: #5865F2;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.dp-content {
    color: #dcddde;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}

.dp-embed {
    margin-top: 10px;
    border-left: 4px solid var(--blue);
    background: #2f3136;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
}

.dp-embed-author {
    font-size: 0.72rem;
    font-weight: 700;
    color: #dcddde;
    margin-bottom: 4px;
}

.dp-embed-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 5px;
}

.dp-embed-desc {
    font-size: 0.8rem;
    color: #b9bbbe;
    line-height: 1.5;
}

.dp-embed-fields {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dp-embed-field {
    flex: 1;
    min-width: 100px;
}

.dp-embed-field-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.dp-embed-field-value {
    font-size: 0.75rem;
    color: #b9bbbe;
}

.dp-embed-footer {
    font-size: 0.68rem;
    color: #72767d;
    margin-top: 8px;
}

.dp-embed-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 10px;
}

.dp-embed-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    float: right;
    margin-left: 10px;
}

/* ── Form Elements ── */

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text3);
    margin-bottom: 7px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: rgba(6, 71, 224, 0.6);
    box-shadow: 0 0 0 3px rgba(6, 71, 224, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text3);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.form-select option {
    background: var(--bg2);
}

/* ── Contact info mini-cards ── */

.contact-info-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.25s;
}

.contact-info-card:hover {
    border-color: rgba(6, 71, 224, 0.4);
    box-shadow: var(--glow);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(6, 71, 224, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--blue-light);
}

.contact-info-card h3 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.contact-info-card p {
    color: var(--text3);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ── Form success state ── */

.form-success {
    text-align: center;
    padding: 40px 24px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.form-success.show {
    display: flex;
}

.form-success-icon {
    font-size: 3.5rem;
}

.form-success h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: #4ade80;
}

.form-success p {
    color: var(--text3);
    font-size: 0.9rem;
}

/* ── CTA Box ── */

.cta-box {
    background: linear-gradient(135deg, rgba(6, 71, 224, 0.14), rgba(59, 130, 246, 0.07));
    border: 1px solid rgba(6, 71, 224, 0.25);
    border-radius: 24px;
    padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(6, 71, 224, 0.18), transparent 70%);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-sub {
    color: var(--text3);
    margin-bottom: 32px;
    font-size: 1rem;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ── Status Cards ── */

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 620px;
    margin: 0 auto 24px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg2);
    transition: all 0.25s;
}

.service-card:hover {
    transform: translateY(-1px);
}

.service-info {
    flex: 1;
}

.service-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.service-message {
    font-size: 0.8rem;
    color: var(--text3);
    margin-top: 2px;
}

.service-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.service-card.operational {
    border-color: rgba(34, 197, 94, 0.25);
}

.service-card.operational .service-label {
    color: #4ade80;
}

.service-card.operational .service-status-badge {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.service-card.partial {
    border-color: rgba(234, 179, 8, 0.25);
}

.service-card.partial .service-label {
    color: #facc15;
}

.service-card.partial .service-status-badge {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}

.service-card.outage {
    border-color: rgba(239, 68, 68, 0.25);
}

.service-card.outage .service-label {
    color: #f87171;
}

.service-card.outage .service-status-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.service-card.maintenance {
    border-color: rgba(59, 130, 246, 0.25);
}

.service-card.maintenance .service-label {
    color: #60a5fa;
}

.service-card.maintenance .service-status-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

/* ── Status overall banner ── */

.status-overall {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 14px;
    margin-bottom: 36px;
    font-weight: 700;
    font-size: 1rem;
}

.status-overall.all-ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.status-overall.has-issues {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.status-overall.all-ok .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

.status-overall.has-issues .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 2s infinite;
}

/* ── Status popup ── */

.status-popup {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    z-index: 9999;
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideUp 0.3s ease;
    white-space: nowrap;
}

/* ── Status spinner ── */

.status-loading {
    text-align: center;
    padding: 64px;
    color: var(--text3);
}

.status-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* ── Privacy ── */

.privacy-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.privacy-tab {
    flex: 1;
    padding: 10px 20px;
    border-radius: 9px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text3);
    transition: all 0.2s;
    font-family: inherit;
}

.privacy-tab.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 71, 224, 0.3);
}

.privacy-content {
    display: none;
}

.privacy-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.privacy-section {
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.privacy-section-head {
    padding: 17px 22px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-section-head h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.privacy-section-body {
    padding: 20px 22px;
    background: rgba(0, 0, 0, 0.14);
}

.privacy-section-body p {
    color: var(--text3);
    font-size: 0.88rem;
    line-height: 1.75;
}

.privacy-section-body ul {
    padding-left: 18px;
    margin-top: 10px;
    list-style: disc;
}

.privacy-section-body li {
    color: var(--text3);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.privacy-section-body li:hover {
    color: var(--blue-light);
}

/* ── Webhook builder ── */

.webhook-panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.webhook-panel h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text2);
}

.webhook-panel h3 svg {
    width: 15px;
    height: 15px;
    color: var(--blue-light);
}

.toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.toggle-label svg {
    width: 14px;
    height: 14px;
}

.toggle {
    position: relative;
    width: 46px;
    height: 25px;
    background: var(--bg3);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.25s;
}

.toggle.on {
    background: var(--blue);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s;
}

.toggle.on::after {
    transform: translateX(21px);
}

.embed-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.embed-tab {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text3);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.embed-tab.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.embed-add-btn {
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.embed-add-btn:hover {
    background: rgba(34, 197, 94, 0.2);
}

.embed-fields {
    display: none;
}

.embed-fields.show {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.embed-color-row {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 10px;
    align-items: end;
}

.color-input {
    width: 100%;
    height: 40px;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg3);
    cursor: pointer;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text3);
    white-space: nowrap;
    cursor: pointer;
}

.inline-check input {
    accent-color: var(--blue);
}

.remove-field-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.remove-field-btn:hover {
    background: rgba(239, 68, 68, 0.22);
}

.add-field-btn {
    font-size: 0.78rem;
    background: rgba(6, 71, 224, 0.1);
    border: 1px solid rgba(6, 71, 224, 0.25);
    border-radius: 8px;
    color: var(--blue-light);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 4px;
    transition: all 0.2s;
    font-family: inherit;
}

.add-field-btn:hover {
    background: rgba(6, 71, 224, 0.2);
}

.send-log {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    max-height: 260px;
    overflow-y: auto;
}

.send-log h3 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text3);
    margin-bottom: 12px;
}

.log-empty {
    text-align: center;
    color: var(--text3);
    font-size: 0.8rem;
    padding: 20px 0;
    font-family: monospace;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-family: monospace;
    margin-bottom: 5px;
}

.log-entry.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.log-entry.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.log-time {
    color: var(--text3);
    flex-shrink: 0;
}

/* ── Command items ── */

.command-section {
    margin-bottom: 20px;
}

.command-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 13px 20px;
    background: var(--bg2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
    user-select: none;
}

.command-section-header:hover {
    border-color: rgba(6, 71, 224, 0.4);
}

.command-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}

.command-section-count {
    font-size: 0.73rem;
    color: var(--text3);
    background: var(--bg3);
    padding: 3px 10px;
    border-radius: 100px;
}

.command-section-chevron {
    color: var(--text3);
    transition: transform 0.25s;
    line-height: 0;
}

.command-section-chevron.open {
    transform: rotate(180deg);
}

.command-section-chevron svg {
    width: 16px;
    height: 16px;
}

.command-list {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.command-list.open {
    display: grid;
    animation: fadeIn 0.2s ease;
}

.command-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.command-item:hover {
    border-color: rgba(6, 71, 224, 0.35);
    background: rgba(6, 71, 224, 0.04);
}

.command-name {
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--blue-light);
    margin-bottom: 4px;
    font-family: monospace;
}

.command-desc {
    font-size: 0.79rem;
    color: var(--text3);
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--text3);
}

.no-results svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.35;
}

/* ── Last checked / retry ── */

.last-checked {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text3);
}

.retry-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 10px;
    font-family: inherit;
}

.retry-btn:hover {
    background: var(--blue-hover);
}