/* ==================== Variables ==================== */
:root {
    --primary: #0085ff;
    --twitch: #9146ff;
    --twitch-hover: #772ce8;
    --success: #00c853;
    --danger: #ff1744;
    --dark: #0e0e10;
    --dark-light: #18181b;
    --dark-card: #1f1f23;
    --text: #efeff1;
    --text-muted: #adadb8;
    --border: #2d2d35;
}

/* ==================== Reset & Global ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Navbar ==================== */
.navbar {
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-twitch { color: var(--twitch); }
.logo-arrow { color: var(--text-muted); }
.logo-bsky { color: var(--primary); }

.logo-purple {
    color: var(--twitch);
    font-weight: 800;
}

.logo-sky {
    color: var(--primary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 101, 234, 0.2);
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.active {
    background: rgba(138, 101, 234, 0.1);
    color: var(--primary);
}

.lang-name {
    font-weight: 500;
}

.lang-check {
    color: var(--primary);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.nav-links a:not(.btn):not(.lang-link) {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:not(.btn):not(.lang-link):hover {
    color: var(--primary);
}

.admin-link {
    color: #ffc107 !important;
    font-weight: 600 !important;
}

.admin-link:hover {
    color: #ffca28 !important;
}

/* ==================== Hero Section ==================== */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(145, 70, 255, 0.1) 0%, transparent 70%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge .arrow {
    font-size: 2rem;
    color: var(--text-muted);
}

.hero-badge .bsky-icon-large {
    font-size: 3.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--twitch) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-live {
    color: #ff4444;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.cta-buttons {
    margin-bottom: 2rem;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.note-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-twitch {
    background: var(--twitch);
    color: white;
}

.btn-twitch:hover {
    background: var(--twitch-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.4);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0070dd;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--dark-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.btn-danger {
    background: #e65100;
    color: white;
}

.btn-danger:hover {
    background: #d84315;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-icon-small {
    width: 16px;
    height: 16px;
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 5rem 0;
    background: var(--dark-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--twitch);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-icon-wrapper.purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.feature-icon-wrapper.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.feature-icon-wrapper.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== How it Works Section ==================== */
.how-it-works-section {
    padding: 5rem 0;
    background: var(--dark);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--twitch);
    transform: scale(1.05);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--twitch) 0%, var(--primary) 100%);
    border-radius: 50%;
    color: white;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--text-muted);
    display: none;
}

@media (min-width: 768px) {
    .step-arrow {
        display: block;
    }
}

/* ==================== CTA Section ==================== */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.1) 0%, rgba(0, 133, 255, 0.1) 100%);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==================== Setup Section ==================== */
.setup-section {
    padding: 4rem 0;
    min-height: 70vh;
}

.setup-container {
    max-width: 700px;
    margin: 0 auto;
}

.setup-header {
    text-align: center;
    margin-bottom: 3rem;
}

.setup-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.setup-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.setup-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 133, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.button-group {
    display: flex;
    justify-content: center;
}

/* ==================== Dashboard ==================== */
.dashboard-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.card-icon-twitch {
    width: 24px;
    height: 24px;
    color: var(--twitch);
}

.card-body {
    padding: 1.5rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--twitch) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.account-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.account-status {
    margin-top: 0.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.connected {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
}

.empty-state {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 1rem;
}

.stream-status {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.status-indicator.live {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
}

.status-indicator.offline {
    background: rgba(173, 173, 184, 0.1);
    border: 1px solid var(--border);
}

.pulse {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
}

.status-indicator .dot {
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    border-radius: 50%;
}

.status-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.status-description {
    color: var(--text-muted);
    flex: 1;
}

/* ==================== Alerts ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 23, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.alert-info {
    background: rgba(0, 133, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==================== Admin Page ==================== */

.admin-header {
    margin-bottom: 2rem;
}

.admin-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.admin-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(138, 101, 234, 0.1);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    font-size: 0.9rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

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

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.account-cell {
    min-width: 200px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-avatar-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-table code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-live {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.badge-offline {
    background: rgba(173, 173, 184, 0.2);
    color: var(--text-muted);
}

.badge-info {
    background: rgba(138, 101, 234, 0.2);
    color: var(--primary);
}

.badge-admin {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.bluesky-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bluesky-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bluesky-handle.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: rgba(138, 101, 234, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* ==================== Responsive Admin ==================== */

@media (max-width: 1024px) {
    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 900px;
    }
}

/* ==================== Footer ==================== */
footer {
    background: var(--dark-light);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    margin-top: 4rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stream-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ==================== Multi-Bluesky Accounts ==================== */
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.actions-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bluesky-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.bluesky-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.bluesky-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bluesky-card.disabled {
    opacity: 0.6;
}

.bluesky-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.bluesky-card .account-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bluesky-card .account-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.nickname {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge.enabled {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
}

.status-badge.disabled {
    background: rgba(173, 173, 184, 0.2);
    color: var(--text-muted);
}

.status-badge.live {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.status-badge.live-pulse {
    animation: pulse-badge 2s infinite;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.empty-state-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state-card h2 {
    margin-bottom: 1rem;
}

.empty-state-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==================== Forms ==================== */
.form-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.form-header p {
    color: var(--text-muted);
}

.bluesky-form {
    width: 100%;
}

.form-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.label-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-box ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.info-box li {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== Bluesky List (Dashboard) ==================== */
.bluesky-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bluesky-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.bluesky-item.disabled {
    opacity: 0.5;
}

.bsky-icon {
    font-size: 1.5rem;
}

.bsky-info {
    flex: 1;
}

.bsky-info strong {
    display: block;
}

.bsky-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bsky-status {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.badge-mini {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.badge-mini.enabled {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
}

.badge-mini.disabled {
    background: rgba(173, 173, 184, 0.2);
    color: var(--text-muted);
}

.badge-mini.live {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

/* ==================== Dashboard Enhanced ==================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.twitch-card {
    grid-column: span 1;
}

.bluesky-section {
    background: var(--dark-card);
}

.account-info-large {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.account-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--twitch) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.twitch-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--twitch);
}

.account-details-large {
    flex: 1;
}

.account-name-large {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.account-id {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.account-status-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.card-actions-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.bluesky-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bluesky-account-item {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.bluesky-account-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.bluesky-account-item.disabled {
    opacity: 0.6;
}

.bluesky-account-item.disabled:hover {
    transform: none;
}

.bsky-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bsky-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.bsky-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.bsky-item-details {
    flex: 1;
}

.bsky-handle {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.bsky-nickname {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.bsky-item-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-pill.success {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
}

.badge-pill.disabled {
    background: rgba(173, 173, 184, 0.2);
    color: var(--text-muted);
}

.badge-pill.live-pulse {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(255, 68, 68, 0);
    }
}

.bsky-item-meta {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.meta-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.bsky-item-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-inline svg {
    width: 16px;
    height: 16px;
}

.btn-inline:hover {
    transform: translateY(-1px);
}

.btn-inline-success {
    border-color: var(--success);
    color: var(--success);
}

.btn-inline-success:hover {
    background: rgba(0, 200, 83, 0.1);
}

.btn-inline-warning {
    border-color: #ffa726;
    color: #ffa726;
}

.btn-inline-warning:hover {
    background: rgba(255, 167, 38, 0.1);
}

.btn-inline-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-inline-danger:hover {
    background: rgba(255, 23, 68, 0.1);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Responsive Dashboard ==================== */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .account-info-large {
        flex-direction: column;
        text-align: center;
    }

    .account-status-row {
        justify-content: center;
    }

    .bsky-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-items {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==================== Dashboard Redesign ==================== */
.twitch-card-horizontal {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.twitch-horizontal-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.twitch-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.twitch-info {
    flex: 1;
}

.twitch-username {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.twitch-id {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
}

.twitch-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.status-badge.offline {
    background: rgba(173, 173, 184, 0.2);
    color: var(--text-muted);
}

.twitch-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.twitch-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.bluesky-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bsky-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bsky-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bsky-card-disabled {
    opacity: 0.5;
}

.bsky-card-disabled:hover {
    transform: none;
}

.bsky-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bsky-card-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.bsky-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.bsky-card-avatar {
    font-size: 3rem;
    flex-shrink: 0;
}

.bsky-card-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.bsky-card-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bsky-card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.bsky-card-display-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    word-break: break-word;
}

.bsky-card-handle-small {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.bsky-card-handle {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.bsky-card-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    word-wrap: break-word;
}

.bsky-card-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value-small {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

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

.bsky-card-nickname {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.bsky-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.meta-icon-small {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.bsky-card-actions {
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.bsky-card-actions form {
    flex: 1;
}

.btn-card-action {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--dark);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-card-action.btn-success {
    border-color: var(--success);
    color: var(--success);
}

.btn-card-action.btn-success:hover {
    background: rgba(0, 200, 83, 0.1);
}

.btn-card-action.btn-warning {
    border-color: #ffa726;
    color: #ffa726;
}

.btn-card-action.btn-warning:hover {
    background: rgba(255, 167, 38, 0.1);
}

.btn-card-action.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-card-action.btn-danger:hover {
    background: rgba(255, 23, 68, 0.1);
}

.bsky-card-add {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.1) 0%, rgba(0, 133, 255, 0.1) 100%);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    text-decoration: none;
    cursor: pointer;
}

.bsky-card-add:hover {
    border-color: var(--primary);
    border-style: solid;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.2) 0%, rgba(0, 133, 255, 0.2) 100%);
}

.bsky-card-add-content {
    text-align: center;
}

.add-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.bsky-card-add h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.bsky-card-add p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.badge-mini.live-pulse {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    animation: pulse-badge 2s infinite;
}

/* ==================== Responsive Dashboard Grid ==================== */
@media (max-width: 1200px) {
    .bluesky-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .twitch-horizontal-content {
        flex-direction: column;
        gap: 2rem;
    }

    .twitch-left {
        flex-direction: column;
        text-align: center;
        min-width: auto;
        width: 100%;
    }

    .twitch-stats {
        width: 100%;
        justify-content: space-around;
    }

    .twitch-actions {
        width: 100%;
    }

    .twitch-badges {
        justify-content: center;
    }

    .bluesky-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Main Footer ==================== */
.main-footer {
    background: var(--dark-card);
    border-top: 2px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 2rem 0;
}

.footer-credits {
    text-align: center;
    margin-bottom: 2rem;
}

.credits-title {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.credits-title strong {
    background: linear-gradient(135deg, var(--twitch) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.25rem;
}

.credits-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--dark-light);
}

.credit-link.website {
    color: #10b981;
}

.credit-link.website:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.credit-link.twitch {
    color: var(--twitch);
}

.credit-link.twitch:hover {
    background: rgba(145, 70, 255, 0.15);
    border-color: var(--twitch);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(145, 70, 255, 0.3);
}

.credit-link.bluesky {
    color: var(--primary);
}

.credit-link.bluesky:hover {
    background: rgba(0, 133, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 133, 255, 0.3);
}

.credit-link.kofi {
    color: #ff5e5b;
}

.credit-link.kofi:hover {
    background: rgba(255, 94, 91, 0.15);
    border-color: #ff5e5b;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 94, 91, 0.3);
}

.credit-link.discord {
    color: #5865f2;
}

.credit-link.discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865f2;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
}

.credit-icon {
    width: 20px;
    height: 20px;
}

.credit-separator {
    color: var(--border);
    font-size: 1.5rem;
}


.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
    .credits-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .credit-separator {
        display: none;
    }

    .credit-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

