/* =========================================================
   SocialAuto - Modern Glassmorphic Dark Design System
   ========================================================= */

:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #101623;
    --bg-card: rgba(23, 30, 48, 0.7);
    --bg-card-hover: rgba(30, 41, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #6366f1;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    
    --glow-indigo: 0 0 25px rgba(99, 102, 241, 0.35);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Links & Typography */
a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Navbar */
.app-header {
    background: rgba(16, 22, 35, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--glow-indigo);
}
.brand-info h1 {
    font-size: 22px;
    line-height: 1.1;
    color: #fff;
}
.badge-free {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.platform-indicators {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.indicator-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
}
.indicator-pill.connected {
    color: var(--text-primary);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}
.indicator-pill.connected .dot {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.nav-links {
    display: flex;
    gap: 10px;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}
.nav-btn.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Page Titles */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px 0;
    flex-wrap: wrap;
    gap: 16px;
}
.page-title-bar h2 {
    font-size: 26px;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    backdrop-filter: blur(10px);
}
.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 6px;
    color: #fff;
}
.text-success { color: var(--accent-emerald) !important; }
.text-info { color: var(--accent-cyan) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Cards & Glassmorphism */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Tags */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.tag-accent { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.meta-tag { background: rgba(6, 182, 212, 0.15); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }
.li-tag { background: rgba(10, 102, 194, 0.2); color: #60a5fa; border: 1px solid rgba(10, 102, 194, 0.4); }
.tw-tag { background: rgba(255, 255, 255, 0.1); color: #f1f5f9; border: 1px solid rgba(255, 255, 255, 0.2); }
.host-tag { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }

/* Main Split Grid */
.composer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-bottom: 30px;
}
@media (max-width: 1024px) {
    .composer-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 20px;
}
.label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.badge-optional {
    font-size: 11px;
    color: var(--text-muted);
}
.required {
    color: var(--accent-rose);
}
.char-counters {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.counter-separator { color: var(--text-muted); }
.tw-char-badge {
    color: var(--accent-cyan);
    font-weight: 600;
}
.tw-char-badge.warning { color: var(--accent-amber); }
.tw-char-badge.danger { color: var(--accent-rose); }

input[type="text"],
input[type="password"],
input[type="url"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    background: rgba(16, 22, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
input:focus, textarea:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(20, 28, 45, 0.95);
}
textarea {
    resize: vertical;
    line-height: 1.5;
}
.character-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    transition: width 0.2s, background-color 0.2s;
}

/* Upload Dropzone */
.file-hidden {
    display: none;
}
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(16, 22, 35, 0.5);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
}
.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.file-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.dropzone-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.dropzone-preview img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.preview-meta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filename {
    font-weight: 600;
    color: #fff;
    word-break: break-all;
}
.btn-remove-media {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.btn-remove-media:hover {
    background: var(--accent-rose);
    color: #fff;
}

/* Platform Toggles */
.select-all-link {
    font-size: 12px;
    color: var(--accent-indigo);
    cursor: pointer;
    font-weight: 600;
}
.select-all-link:hover { text-decoration: underline; }
.platform-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .platform-checkbox-grid {
        grid-template-columns: 1fr;
    }
}
.platform-toggle {
    cursor: pointer;
    position: relative;
    user-select: none;
}
.platform-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.platform-toggle-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 22, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.platform-toggle:hover .platform-toggle-box {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(24, 33, 52, 0.9);
}
.platform-toggle input:checked + .platform-toggle-box {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.platform-toggle.disabled {
    opacity: 0.5;
}
.platform-icon {
    font-size: 24px;
}
.platform-text strong {
    display: block;
    font-size: 14px;
    color: #fff;
}
.platform-text small {
    color: var(--text-muted);
    font-size: 11px;
}

/* Schedule Box */
.schedule-drawer-box {
    background: rgba(16, 22, 35, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 24px;
}
.schedule-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.schedule-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.schedule-inputs {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.schedule-inputs label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.schedule-inputs small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: #fff;
    box-shadow: var(--glow-indigo);
}
.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}
.btn-publish {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Tabs */
.tab-header {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn:hover {
    color: #fff;
}
.tab-btn.active {
    color: #fff;
    border-bottom-color: var(--accent-indigo);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* =========================================================
   Realistic Social Media Post Previews
   ========================================================= */
.preview-tabs {
    display: flex;
    gap: 6px;
    background: rgba(16, 22, 35, 0.8);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.preview-tab {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.preview-tab:hover { color: #fff; }
.preview-tab.active {
    background: var(--accent-indigo);
    color: #fff;
}

.preview-mockup-wrapper {
    display: none;
    animation: fadeIn 0.3s ease;
}
.preview-mockup-wrapper.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mockup-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 10px;
}

/* 1. Instagram Card */
.instagram-mockup {
    background: #000;
    border: 1px solid #262626;
    color: #fff;
}
.mockup-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
}
.user-avatar-gradient {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
}
.user-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.user-info {
    flex: 1;
}
.user-info strong {
    display: block;
    font-size: 13px;
}
.user-info span {
    font-size: 11px;
    color: #8e8e8e;
}
.more-dots { color: #8e8e8e; cursor: pointer; }
.mockup-media-box {
    width: 100%;
    background: #111;
    position: relative;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-render-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
}
.mockup-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 18px;
}
.action-icons-left { display: flex; gap: 14px; }
.mockup-caption-box {
    padding: 0 14px 10px 14px;
    font-size: 13px;
    line-height: 1.4;
}
.bold-user { font-weight: 600; margin-right: 6px; }
.preview-render-caption {
    white-space: pre-wrap;
    word-break: break-word;
}
.mockup-timestamp {
    font-size: 10px;
    color: #8e8e8e;
    padding: 0 14px 14px 14px;
}

/* 2. Facebook Card */
.facebook-mockup {
    background: #242526;
    border: 1px solid #3a3b3c;
    color: #e4e6eb;
}
.user-avatar-fb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.mockup-caption-box-fb {
    padding: 0 14px 12px 14px;
    font-size: 14px;
}
.mockup-fb-reactions {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 12px;
    color: #b0b3b8;
    border-bottom: 1px solid #3a3b3c;
}
.mockup-fb-footer {
    display: flex;
    padding: 4px;
}
.mockup-fb-footer button {
    flex: 1;
    background: transparent;
    border: none;
    color: #b0b3b8;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}
.mockup-fb-footer button:hover { background: #3a3b3c; }

/* 3. LinkedIn Card */
.linkedin-mockup {
    background: #1b1f23;
    border: 1px solid #38434f;
    color: #fff;
}
.user-avatar-li {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0a66c2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.user-info small { display: block; color: #9aa4af; font-size: 11px; }
.mockup-caption-box-li {
    padding: 0 14px 12px 14px;
    font-size: 13px;
}
.mockup-li-reactions {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 11px;
    color: #9aa4af;
    border-bottom: 1px solid #38434f;
}
.mockup-li-footer {
    display: flex;
    padding: 4px;
}
.mockup-li-footer button {
    flex: 1;
    background: transparent;
    border: none;
    color: #9aa4af;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}
.mockup-li-footer button:hover { background: #283038; color: #fff; }

/* 4. Twitter / X Card */
.twitter-mockup {
    background: #000;
    border: 1px solid #2f3336;
    color: #e7e9ea;
    padding: 14px;
}
.mockup-header-tw {
    display: flex;
    gap: 12px;
}
.user-avatar-tw {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #16181c;
    border: 1px solid #2f3336;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}
.user-info-tw {
    flex: 1;
}
.tw-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    margin-bottom: 4px;
}
.tw-badge {
    color: #1d9bf0;
    font-size: 12px;
}
.tw-handle {
    color: #71767b;
    font-size: 13px;
}
.tw-tweet-text {
    font-size: 14px;
    margin-bottom: 10px;
}
.tw-media-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2f3336;
    margin-bottom: 10px;
}
.mockup-tw-footer {
    display: flex;
    justify-content: space-between;
    color: #71767b;
    font-size: 12px;
    padding-top: 4px;
    max-width: 90%;
}

/* =========================================================
   Table & History Activity
   ========================================================= */
.history-card {
    margin-top: 30px;
}
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.data-table th {
    padding: 12px 16px;
    background: rgba(16, 22, 35, 0.9);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
.table-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.table-caption-cell {
    max-width: 250px;
}
.platform-badge-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.badge-plat {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.badge-facebook { background: rgba(24, 119, 242, 0.2); color: #60a5fa; }
.badge-instagram { background: rgba(225, 48, 108, 0.2); color: #f472b6; }
.badge-linkedin { background: rgba(10, 102, 194, 0.2); color: #38bdf8; }
.badge-twitter { background: rgba(255, 255, 255, 0.15); color: #fff; }

.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}
.status-published { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.status-scheduled { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.status-failed { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }
.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

/* Guides */
.guide-box {
    background: rgba(16, 22, 35, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin: 20px 0;
    overflow: hidden;
}
.guide-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}
.guide-header:hover { background: rgba(255, 255, 255, 0.05); }
.guide-arrow { font-size: 10px; transition: transform 0.2s; }
.guide-body {
    padding: 16px 20px 20px 30px;
    display: none;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}
.guide-body.open { display: block; }
.guide-body ol { padding-left: 10px; }
.guide-body li { margin-bottom: 8px; }

/* Grid Forms */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}
.form-col-2 { grid-column: span 2; }
@media (max-width: 768px) { .form-col-2 { grid-column: span 1; } }

/* Input Copy */
.input-copy-wrap {
    display: flex;
    gap: 8px;
}

/* Feedback Alert */
.test-feedback {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}
.test-feedback.loading { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.test-feedback.success { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.test-feedback.error { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
}
.modal-body pre {
    background: #0b0f19;
    padding: 14px;
    border-radius: var(--radius-sm);
    color: #38bdf8;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}
.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.error { border-left: 4px solid var(--accent-rose); }
@keyframes slideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Delete / Danger Button */
.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: #f43f5e;
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
}
.action-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
