/* ====================================================
   FINX9 MAILER PRO v3.0 — Dark Glassmorphism Theme
   Developed by @Finx9
   ==================================================== */

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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(17, 24, 39, 0.85);
    --bg-input: rgba(15, 23, 42, 0.8);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);
    --border-focus: rgba(99, 102, 241, 0.6);

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #06b6d4;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Background Effects ---- */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1, transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: 50%;
    left: 40%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.03); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Header ---- */
.app-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: var(--radius);
    font-size: 20px;
    color: #fff;
    box-shadow: var(--shadow-glow);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 35px var(--accent-glow), 0 0 60px rgba(99, 102, 241, 0.1); }
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-text h1 span {
    font-weight: 400;
    letter-spacing: 3px;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.server-badge, .credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.credits-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-light);
    font-weight: 600;
}

/* ---- Main Layout ---- */
.main-container {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    gap: 20px;
    padding: 20px 28px;
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

@media (max-width: 1400px) {
    .main-container {
        grid-template-columns: 280px 1fr 340px;
        gap: 16px;
        padding: 16px 20px;
    }
}

@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Card ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.card-header h2 i {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.card-body {
    padding: 16px 18px;
}

.card-body.collapsed {
    display: none;
}

.card-header.clickable {
    cursor: pointer;
    user-select: none;
}

.card-header.clickable:hover {
    background: rgba(99, 102, 241, 0.05);
}

.collapse-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.collapse-icon.rotated {
    transform: rotate(180deg);
}

.header-actions {
    display: flex;
    gap: 6px;
}

/* ---- Form Controls ---- */
.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.7rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

textarea.code-editor {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    tab-size: 2;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .flex-2 {
    flex: 2;
}

.form-row .flex-1 {
    flex: 1;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    outline: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow), 0 0 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.05);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
}

.btn-ghost:hover {
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 0.7rem;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ---- Services List ---- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.25s;
    cursor: default;
}

.service-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--border-hover);
}

.service-item.available {
    border-color: rgba(16, 185, 129, 0.3);
}

.service-item.available .service-status {
    color: var(--success);
}

.service-item.unavailable .service-status {
    color: var(--text-muted);
}

.service-item.partial .service-status {
    color: var(--warning);
}

.service-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.service-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Info Grid ---- */
.info-grid {
    display: grid;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-align: right;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Upload Zone ---- */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.upload-zone.drag-over {
    border-style: solid;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.upload-zone:hover .upload-icon {
    transform: translateY(-4px);
}

.upload-zone p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.upload-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ---- Progress Bar ---- */
.progress-wrapper {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--info));
    background-size: 200% 100%;
    border-radius: 50px;
    transition: width 0.4s ease;
    animation: progressShimmer 2s linear infinite;
}

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

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-total .stat-value { color: var(--text-primary); }
.stat-sent .stat-value { color: var(--success); }
.stat-failed .stat-value { color: var(--danger); }
.stat-rate .stat-value { color: var(--info); }

/* ---- Status Indicator ---- */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.pulse.active {
    background: var(--success);
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.pulse.error {
    background: var(--danger);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ---- Log ---- */
.log-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-body {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.8;
    background: rgba(10, 14, 23, 0.6);
}

.log-body::-webkit-scrollbar {
    width: 5px;
}

.log-body::-webkit-scrollbar-track {
    background: transparent;
}

.log-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 50px;
}

.log-entry {
    display: flex;
    gap: 8px;
    padding: 3px 6px;
    border-radius: 4px;
    animation: logSlideIn 0.3s ease;
}

.log-entry:hover {
    background: rgba(99, 102, 241, 0.05);
}

@keyframes logSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.log-icon {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.log-msg {
    color: var(--text-secondary);
    word-break: break-all;
}

.log-entry.sent .log-icon { color: var(--success); }
.log-entry.failed .log-icon { color: var(--danger); }
.log-entry.info .log-icon { color: var(--info); }
.log-entry.warn .log-icon { color: var(--warning); }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-light);
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow: auto;
}

.preview-frame {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

/* ---- Footer ---- */
.app-footer {
    position: relative;
    z-index: 10;
    padding: 14px 28px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-content strong {
    color: var(--accent-light);
}

.separator {
    color: var(--border-color);
}

/* ---- Loading Shimmer ---- */
.loading-shimmer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shimmer-line {
    height: 38px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 25%, rgba(99, 102, 241, 0.1) 50%, rgba(99, 102, 241, 0.05) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius);
    animation: shimmer 1.5s ease-in-out infinite;
}

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

/* ---- Method Config ---- */
.method-config {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

/* ---- Scrollbar Global ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-header {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }
    .header-right {
        width: 100%;
        justify-content: center;
    }
    .main-container {
        padding: 12px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Toast / Notification ---- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
    animation: toastSlideIn 0.3s ease, toastFadeOut 0.3s ease 3.7s forwards;
    max-width: 360px;
}

.toast.toast-success { border-color: rgba(16, 185, 129, 0.4); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.4); }
.toast.toast-info { border-color: rgba(6, 182, 212, 0.4); }

.toast.toast-success i { color: var(--success); }
.toast.toast-error i { color: var(--danger); }
.toast.toast-info i { color: var(--info); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(50px); }
}

/* ---- Send Button Animation ---- */
.btn-primary.sending {
    background: linear-gradient(135deg, var(--success), #059669);
    animation: sendPulse 1.5s ease-in-out infinite;
}

@keyframes sendPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25); }
    50% { box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4); }
}

/* ---- Complete Banner ---- */
.complete-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.complete-banner.success {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.complete-banner.has-errors {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}
