/**
 * Community Hub Styles
 *
 * @package BadassNetwork
 * @since 1.5.0
 */

/* ============================================
   HERO SECTION
============================================ */
.hub-hero {
    background: linear-gradient(135deg, var(--color-electric) 0%, #2B4AC7 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 120px;
}

.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0px,
        transparent 20px,
        rgba(255,255,255,0.03) 20px,
        rgba(255,255,255,0.03) 40px
    );
    pointer-events: none;
}

.hub-hero-bg-emoji {
    position: absolute;
    font-size: 300px;
    opacity: 0.06;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    pointer-events: none;
}

.hub-hero-header {
    padding: 160px 0 40px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-mint);
    border: 3px solid var(--color-border);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.hub-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 16px;
}

.hub-hero-title .outline {
    -webkit-text-stroke: 3px white;
    color: transparent;
}

.hub-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Hero Cards */
.hub-hero-cards {
    position: relative;
    z-index: 10;
    margin-top: -20px;
}

.hub-hero-cards-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .hub-hero-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hub-hero-card {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    position: relative;
    transition: all 0.2s ease;
}

.hub-hero-card:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--color-border);
}

.hub-hero-card-label {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--color-hot);
    color: white;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid var(--color-border);
}

.hub-hero-card-label.mint {
    background: var(--color-mint);
    color: var(--color-text);
}

.hub-hero-card-label.sun {
    background: var(--color-sun);
    color: var(--color-text);
}

.hub-hero-card-title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hub-hero-card-text {
    font-size: 15px;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.hub-hero-card-text strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Hero Card with Blog Checker */
.hub-hero-card-checker {
    display: flex;
    flex-direction: column;
}

.hub-hero-card-checker .hub-hero-card-title {
    margin-bottom: 12px;
}

.hub-hero-checker {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-hero-checker-text {
    font-size: 14px;
    color: var(--color-text-soft);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.hub-hero-checker .hub-domain-form {
    display: flex;
    align-items: stretch;
}

.hub-hero-checker .hub-domain-btn {
    width: 100%;
    margin-top: 12px;
    box-shadow: var(--shadow);
}

.hub-hero-checker .hub-slug-result {
    margin-top: 16px;
    flex: 1;
}

/* Login Form in Hero */
.hub-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hub-form-input {
    flex: 1;
    padding: 14px 16px;
    font-family: var(--font-main);
    font-size: 14px;
    border: 3px solid var(--color-border);
    background: var(--color-bg);
    transition: all 0.2s ease;
}

.hub-form-input:focus {
    outline: none;
    box-shadow: var(--shadow-sm);
    background: white;
}

.hub-form-input::placeholder {
    color: #aaa;
}

.hub-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hub-radio-input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-electric);
}

.hub-btn-login {
    background: var(--color-hot);
    color: white;
    border: 3px solid var(--color-border);
    padding: 14px 24px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.15s ease;
}

.hub-btn-login:hover {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--color-border);
}

.hub-btn-dashboard {
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    text-align: center;
}

/* ============================================
   MARQUEE
============================================ */
.hub-marquee {
    background: var(--color-text);
    color: white;
    padding: 14px 0;
    overflow: hidden;
    border-top: 3px solid var(--color-border);
    border-bottom: 3px solid var(--color-border);
}

.hub-marquee-track {
    display: flex;
    width: fit-content;
    animation: hub-marquee 30s linear infinite;
}

@keyframes hub-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by exactly half since we have 4 copies (2 sets of 2) */
        transform: translateX(-50%);
    }
}

.hub-marquee-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hub-marquee-dot {
    width: 10px;
    height: 10px;
    background: var(--color-hot);
    flex-shrink: 0;
}

/* ============================================
   MAIN CONTENT
============================================ */
.hub-main-content {
    padding: 48px 0;
}

.hub-main-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .hub-main-grid {
        grid-template-columns: 280px 1fr 280px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hub-main-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hub-main-grid > .hub-left-column {
        grid-column: span 2;
    }
}

/* ============================================
   SECTIONS / CARDS
============================================ */
.hub-section {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-text);
    color: white;
    border-bottom: 3px solid var(--color-border);
}

.hub-section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.hub-section-title-icon {
    font-size: 18px;
}

.hub-section-link {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-mint);
    font-weight: 700;
    transition: color 0.2s;
    text-decoration: none;
}

.hub-section-link:hover {
    color: var(--color-sun);
}

.hub-section-body {
    padding: 0;
}

/* ============================================
   FEED / LIST ITEMS
============================================ */
.hub-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 3px dashed rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.hub-feed-item:last-child {
    border-bottom: none;
}

.hub-feed-item:hover {
    background: var(--color-sun);
}

.hub-feed-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-soft);
    min-width: 45px;
}

.hub-feed-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-electric);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-feed-item:hover .hub-feed-link {
    color: var(--color-text);
}

.hub-feed-new {
    width: 10px;
    height: 10px;
    background: var(--color-hot);
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

/* ============================================
   ABOUT SECTION
============================================ */
.hub-about-content {
    padding: 24px;
}

.hub-about-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-electric), var(--color-hot));
    border: 3px solid var(--color-border);
    float: left;
    margin-right: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.hub-about-text {
    font-size: 14px;
    color: var(--color-text-soft);
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.hub-about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-mint);
    border: 3px solid var(--color-border);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    text-decoration: none;
    color: var(--color-text);
    clear: both;
}

.hub-about-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--color-border);
}

/* ============================================
   DOMAIN CHECKER / BLOG CHECKER
============================================ */
.hub-domain-checker {
    padding: 24px;
    border-top: 3px solid var(--color-border);
    background: var(--color-mint);
}

.hub-domain-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
}

.hub-domain-text {
    font-size: 14px;
    color: var(--color-text-soft);
    margin: 0 0 16px 0;
}

.hub-domain-form {
    display: flex;
    align-items: stretch;
}

.hub-domain-prefix {
    padding: 12px;
    background: var(--color-text);
    color: white;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    border: 3px solid var(--color-border);
    border-right: none;
    display: flex;
    align-items: center;
}

.hub-domain-input {
    flex: 1;
    padding: 12px 14px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    border: 3px solid var(--color-border);
    border-left: none;
    min-width: 0;
    background: var(--color-surface);
}

.hub-domain-input:focus {
    outline: none;
    background: white;
}

.hub-domain-suffix {
    padding: 12px;
    background: var(--color-surface);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-soft);
    border: 3px solid var(--color-border);
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.hub-domain-btn {
    padding: 12px 20px;
    background: var(--color-hot);
    color: white;
    border: 3px solid var(--color-border);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.hub-domain-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--color-border);
}

.hub-domain-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Slug Result */
.hub-slug-result {
    display: none;
    margin-top: 16px;
    padding: 16px;
    border: 3px solid var(--color-border);
    background: var(--color-surface);
}

.hub-slug-result.show {
    display: block;
}

.hub-slug-result.available {
    background: var(--color-surface);
}

.hub-slug-result.available .available {
    color: #00a32a;
}

.hub-slug-result.taken .taken {
    color: var(--color-hot);
}

.hub-slug-result.error .error {
    color: var(--color-hot);
}

.hub-slug-result.success .success {
    color: #00a32a;
    font-weight: 700;
}

.hub-claim-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--color-electric);
    color: white;
    border: 3px solid var(--color-border);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    cursor: pointer;
}

.hub-claim-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--color-border);
    color: white;
}

/* ============================================
   WAITLIST FORM (BAN Leads Mode)
============================================ */
.hub-available-header {
    margin-bottom: 16px;
    font-size: 16px;
}

.hub-waitlist-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px dashed var(--color-border);
}

.hub-waitlist-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hub-reserved-slug {
    background: var(--color-sun);
    border: 2px solid var(--color-border);
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.hub-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .hub-form-row {
        grid-template-columns: 1fr;
    }
}

.hub-form-group {
    margin-bottom: 12px;
}

.hub-form-label-small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.hub-slug-result .hub-form-input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-main);
    font-size: 14px;
    border: 3px solid var(--color-border);
    background: var(--color-bg);
    transition: all 0.2s ease;
}

.hub-slug-result .hub-form-input:focus {
    outline: none;
    background: white;
    box-shadow: var(--shadow-sm);
}

.hub-slug-result .hub-form-input.validating {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="%234361EE" stroke-width="2" stroke-dasharray="50.265" stroke-dashoffset="0"><animateTransform attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="1s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.hub-slug-result .hub-form-input.valid {
    border-color: #00a32a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M8 14l-4-4 1.5-1.5L8 11l6.5-6.5L16 6z" fill="%2300a32a"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.hub-slug-result .hub-form-input.invalid {
    border-color: #d63638;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16 8 8 0 000-16zm3.5 11L10 9.5 6.5 13 5 11.5 8.5 8 5 4.5 6.5 3 10 6.5 13.5 3 15 4.5 11.5 8 15 11.5z" fill="%23d63638"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.hub-email-validation {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.hub-email-validation.show {
    display: block;
}

.hub-email-validation .success {
    color: #00a32a;
}

.hub-email-validation .error {
    color: #d63638;
}

.hub-config-notice {
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-mint);
    border-radius: var(--radius);
}

.hub-submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 24px;
    background: var(--color-hot);
}

.hub-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hub-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: hub-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes hub-spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.hub-success-message {
    text-align: center;
    padding: 24px 16px;
}

.hub-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.hub-success-title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    color: #00a32a;
}

.hub-success-text {
    font-size: 14px;
    color: var(--color-text-soft);
    margin: 0 0 16px 0;
}

.hub-success-slug {
    display: inline-block;
    background: var(--color-mint);
    border: 3px solid var(--color-border);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.hub-slug-result.success {
    background: var(--color-surface);
}

/* ============================================
   BAN LEADS MODAL
============================================ */
.hub-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hub-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hub-modal {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.hub-modal-overlay.active .hub-modal {
    transform: translateY(0) scale(1);
}

.hub-modal-header {
    background: var(--color-electric);
    color: white;
    padding: 20px 24px;
    border-bottom: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub-modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.hub-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hub-modal-title {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0;
}

.hub-modal-slug {
    display: block;
    background: var(--color-mint);
    color: var(--color-text);
    border: 3px solid var(--color-border);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}

.hub-slug-display {
    margin-bottom: 16px;
}

.hub-modal-body {
    padding: 24px;
}

.hub-modal-text {
    font-size: 14px;
    color: var(--color-text-soft);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.hub-modal .hub-form-group {
    margin-bottom: 16px;
}

.hub-modal .hub-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 500px) {
    .hub-modal .hub-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.hub-modal .hub-form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 3px solid var(--color-border);
    background: var(--color-bg);
}

.hub-modal .hub-form-input:focus {
    outline: none;
    background: white;
    box-shadow: var(--shadow-sm);
}

.hub-modal .hub-form-input.validating {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="%234361EE" stroke-width="2" stroke-dasharray="50.265" stroke-dashoffset="0"><animateTransform attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="1s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.hub-modal .hub-form-input.valid {
    border-color: #00a32a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M8 14l-4-4 1.5-1.5L8 11l6.5-6.5L16 6z" fill="%2300a32a"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.hub-modal .hub-form-input.invalid {
    border-color: #d63638;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16 8 8 0 000-16zm3.5 11L10 9.5 6.5 13 5 11.5 8.5 8 5 4.5 6.5 3 10 6.5 13.5 3 15 4.5 11.5 8 15 11.5z" fill="%23d63638"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.hub-modal .hub-email-validation {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.hub-modal .hub-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--color-hot);
    color: white;
    border: 3px solid var(--color-border);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.15s ease;
    margin-top: 8px;
}

.hub-modal .hub-submit-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--color-border);
}

.hub-modal .hub-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal Success State */
.hub-modal-success {
    text-align: center;
    padding: 40px 24px;
}

.hub-modal-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hub-modal-success-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: #00a32a;
    margin: 0 0 12px 0;
}

.hub-modal-success-text {
    font-size: 14px;
    color: var(--color-text-soft);
    margin: 0 0 20px 0;
}

.hub-modal-success-slug {
    display: inline-block;
    background: var(--color-mint);
    border: 3px solid var(--color-border);
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Loading state for check button */
.hub-domain-btn.loading {
    position: relative;
    color: transparent;
}

.hub-domain-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: hub-spin 0.8s linear infinite;
}

/* ============================================
   ONLINE USERS
============================================ */
.hub-online-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-online-dot {
    width: 12px;
    height: 12px;
    background: var(--color-mint);
    border: 2px solid var(--color-border);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.hub-online-list {
    padding: 20px;
}

.hub-online-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-online-user {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    padding: 6px 12px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    transition: all 0.15s ease;
    text-decoration: none;
}

.hub-online-user:hover {
    background: var(--color-sun);
    transform: translateY(-2px);
}

.hub-online-user.highlight {
    background: var(--color-hot);
    color: white;
}

.hub-online-count {
    padding: 14px 20px;
    border-top: 3px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-soft);
    text-align: center;
    background: var(--color-bg);
}

.hub-online-count strong {
    color: var(--color-hot);
    font-size: 16px;
}

/* ============================================
   MIDDLE COLUMNS
============================================ */
.hub-middle-columns {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) and (max-width: 767px) {
    .hub-middle-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .hub-middle-columns {
        display: contents;
    }

    .hub-middle-columns > .hub-section:first-child {
        grid-column: 2;
        grid-row: 1;
    }

    .hub-middle-columns > .hub-section:last-child {
        grid-column: 2;
        grid-row: 2;
    }
}

/* ============================================
   LEFT COLUMN
============================================ */
.hub-left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   RIGHT COLUMN
============================================ */
.hub-right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .hub-right-column {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

/* ============================================
   UTILITIES
============================================ */
.hub-mt-24 {
    margin-top: 24px;
}

.hub-hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 767px) {
    .hub-hero-header {
        padding: 100px 0 30px;
    }

    .hub-hero-bg-emoji {
        font-size: 150px;
        opacity: 0.04;
    }

    .hub-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .hub-form-label {
        min-width: auto;
    }

    .hub-radio-row {
        justify-content: space-between;
    }

    .hub-domain-form {
        flex-wrap: wrap;
    }

    .hub-domain-prefix,
    .hub-domain-suffix {
        font-size: 10px;
        padding: 10px 8px;
    }

    .hub-domain-input {
        min-width: 80px;
    }

    .hub-domain-btn {
        width: 100%;
        margin-top: 12px;
    }
}

/* ============================================
   ACTIVITY FEED LAYOUT
============================================ */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .main-layout .sidebar {
        order: -1;
    }
}

/* ============================================
   ACTIVITY FEED
============================================ */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.activity-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--color-border);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.activity-icon.post {
    background: rgba(67, 97, 238, 0.15);
}

.activity-icon.milestone {
    background: var(--color-mint);
}

.activity-icon.new-blog {
    background: rgba(255, 0, 110, 0.15);
}

.activity-icon.trending {
    background: var(--color-sun);
}

.activity-icon.comment {
    background: rgba(139, 92, 246, 0.15);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.activity-header .blog-name {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.activity-header .blog-name:hover {
    color: var(--color-electric);
}

.activity-action {
    color: var(--color-text-soft);
    font-size: 14px;
}

.activity-time {
    color: var(--color-text-soft);
    font-size: 11px;
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
}

.activity-title {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.activity-title:hover {
    color: var(--color-hot);
}

.activity-excerpt {
    font-size: 14px;
    color: var(--color-text-soft);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-meta {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-soft);
    text-transform: uppercase;
    margin-top: 12px;
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 24px;
    position: relative;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-soft);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-hot);
    border-radius: 50%;
    animation: pulse-sidebar 2s ease-in-out infinite;
}

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

/* Live Stats */
.live-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px dashed rgba(0,0,0,0.1);
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-soft);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
}

.stat-value.green {
    color: #22c55e;
}

.stat-value.blue {
    color: var(--color-electric);
}

.stat-value.orange {
    color: #f59e0b;
}

.stat-value.pink {
    color: var(--color-hot);
}

/* Top Blogs */
.top-blogs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-blog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}

.top-blog-item:hover {
    background: var(--color-sun);
}

.blog-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-electric);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.top-blog-item:nth-child(2) .blog-avatar {
    background: var(--color-hot);
}

.top-blog-item:nth-child(3) .blog-avatar {
    background: var(--color-sun);
    color: var(--color-text);
}

.top-blog-item:nth-child(4) .blog-avatar {
    background: var(--color-mint);
    color: var(--color-text);
}

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

.blog-info .name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-info .posts {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-soft);
    text-transform: uppercase;
}

.top-blog-empty {
    padding: 20px;
    text-align: center;
    color: var(--color-text-soft);
    font-size: 14px;
}

/* ============================================
   ACTIVITY FEED RESPONSIVE
============================================ */
@media (max-width: 640px) {
    .activity-item {
        flex-direction: column;
        gap: 12px;
    }

    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .activity-header {
        flex-wrap: wrap;
    }

    .activity-time {
        margin-left: 0;
        width: 100%;
        order: -1;
        margin-bottom: 4px;
    }

    .activity-title {
        font-size: 15px;
    }
}
