/* =============================================
   Narra Hub — hub.css
   Extends the root design tokens from ../style.css
   ============================================= */

/* ---- Hub Hero ---- */
.hub-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 222, 128, 0.06), transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.03), transparent 50%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(134, 239, 172, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134, 239, 172, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
    pointer-events: none;
}

.hub-hero-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.hub-hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hub-hero h1 span {
    color: var(--electric-leaf);
    font-style: italic;
}

.hub-hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

@media (prefers-reduced-motion: no-preference) {
    .hub-hero-inner > * {
        animation: hubFadeUp 0.8s ease both;
    }
    .hub-hero-inner .status-badge { animation-delay: 0.05s; }
    .hub-hero-inner h1 { animation-delay: 0.15s; }
    .hub-hero-inner .hub-hero-sub { animation-delay: 0.25s; }
    .hub-hero-inner .hub-hero-actions { animation-delay: 0.35s; }
}

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

.hub-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Billing Toggle ---- */
.billing-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0 1.5rem;
}

.billing-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.billing-label.active {
    color: var(--text-primary);
}

.billing-track {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(134, 239, 172, 0.15);
    border: 1px solid rgba(134, 239, 172, 0.3);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.billing-track:hover {
    background: rgba(134, 239, 172, 0.2);
}

.billing-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--electric-leaf);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(134, 239, 172, 0.5);
}

.billing-track.annual .billing-thumb {
    transform: translateX(24px);
}

.save-pill {
    display: inline-block;
    background: rgba(134, 239, 172, 0.15);
    border: 1px solid rgba(134, 239, 172, 0.3);
    color: var(--electric-leaf);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* =========================================
   Customer Portal — hub/index.html
   ========================================= */

/* ---- Portal Hero ---- */
.portal-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 3rem;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(74, 222, 128, 0.07), transparent 70%);
    position: relative;
}

.portal-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.portal-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.portal-hero h1 span {
    color: var(--electric-leaf);
    font-style: italic;
}

.portal-hero p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* ---- Account Lookup Form ---- */
.portal-lookup {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.portal-lookup input {
    flex: 1;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.portal-lookup input:focus {
    border-color: rgba(134, 239, 172, 0.5);
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.08);
}

.portal-lookup input::placeholder {
    opacity: 0.35;
}

.portal-notice {
    max-width: 600px;
    margin: 1.25rem auto 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.6;
}

/* ---- Portal Cards ---- */
.portal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 4rem 0 5rem;
}

.portal-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover {
    border-color: rgba(134, 239, 172, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.portal-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.portal-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.portal-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.portal-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--electric-leaf);
    opacity: 0.5;
}

.portal-card-status.available {
    opacity: 1;
    color: var(--electric-leaf);
}

.portal-card-status.coming-soon {
    color: #fbbf24;
    opacity: 0.8;
}

.portal-card-action {
    margin-top: 0.25rem;
}

.portal-card-action a {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--electric-leaf);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.portal-card-action a:hover {
    gap: 0.7rem;
    opacity: 0.85;
}

/* ---- Integration Banner ---- */
.integration-banner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.integration-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.integration-banner-text h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.integration-banner-text p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.integration-banner-text a {
    color: var(--electric-leaf);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.integration-banner-text a:hover {
    opacity: 0.8;
}

/* ---- Portal Responsive ---- */
@media (max-width: 900px) {
    .portal-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .portal-cards { grid-template-columns: 1fr; }
    .portal-hero h1 { font-size: 2.5rem; }
    .integration-banner { flex-direction: column; gap: 1rem; }
    .portal-cards { padding: 3rem 0 4rem; }
}

/* =========================================
   Plans Section — services.html & hub/index.html (storefront)
   ========================================= */

.plans-section {
    padding: 2rem 0 6rem;
}

.plans-section .container {
    max-width: 1300px;
}

/* plans-grid is now a full-width wrapper — subgrids handle columns */
.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.plans-subgrid {
    display: grid;
    gap: 1.25rem;
}

.plans-subgrid-standard {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plans-subgrid-student {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Section divider between business and student plans */
.plans-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 0;
}

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

.plans-divider span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--electric-leaf);
    opacity: 0.7;
    white-space: nowrap;
    padding: 0 0.5rem;
}

/* ---- Plan Card ---- */
.plan-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(134, 239, 172, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(134, 239, 172, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(134, 239, 172, 0.1);
}

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

/* featured class kept for selected-state CTA styling — no scale transform */
.plan-card.featured {
    border-color: rgba(134, 239, 172, 0.3);
    background: rgba(134, 239, 172, 0.02);
}

.plan-card.featured:hover {
    transform: translateY(-6px);
}

.plan-card.selected {
    border-color: var(--electric-leaf);
    box-shadow:
        0 0 0 2px rgba(134, 239, 172, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.plan-card.selected::before {
    opacity: 1;
}

/* ---- Plan Badge ---- */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.badge-popular {
    background: var(--electric-leaf);
    color: var(--forest-floor);
}

.badge-academic {
    background: rgba(134, 239, 172, 0.15);
    border: 1px solid rgba(134, 239, 172, 0.4);
    color: var(--electric-leaf);
}

/* ---- Plan Header ---- */
.plan-header {
    padding-right: 5rem; /* leave room for absolute-positioned badge */
}

/* If no badge, remove the padding */
.plan-card:not(:has(.plan-badge)) .plan-header {
    padding-right: 0;
}
.plan-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.plan-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ---- Plan Price ---- */
.plan-price-wrapper {
    line-height: 1.2;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.plan-currency {
    font-size: 1.25rem;
    color: var(--electric-leaf);
    font-weight: 700;
    align-self: flex-start;
    margin-top: 8px;
}

.plan-amount {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.plan-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.plan-annual-note {
    font-size: 0.78rem;
    color: var(--electric-leaf);
    opacity: 0.7;
    margin-top: 0.4rem;
    height: 1.1em;
    transition: opacity 0.3s ease;
}

/* ---- Plan Features ---- */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.feature-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.plan-feature.included .feature-check {
    color: var(--electric-leaf);
}

.plan-feature.excluded {
    opacity: 0.3;
}

.plan-feature.excluded .feature-check {
    color: var(--text-muted);
}

/* ---- Plan CTA ---- */
.plan-cta {
    border: none;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    margin-top: auto;
}

.plan-card.featured .plan-cta,
.plan-card.selected .plan-cta {
    background: var(--electric-leaf);
    color: var(--forest-floor);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.plan-card:not(.featured):not(.selected) .plan-cta {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.plan-card:not(.featured):not(.selected) .plan-cta:hover {
    border-color: var(--electric-leaf);
    color: var(--electric-leaf);
    background: rgba(134, 239, 172, 0.05);
}

/* ---- Add-ons Section ---- */
.addons-section {
    padding: 4rem 0 8rem;
    border-top: 1px solid var(--glass-border);
}

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

.addons-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

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

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.addon-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.addon-card:hover {
    border-color: rgba(134, 239, 172, 0.4);
    transform: translateY(-4px);
    background: rgba(134, 239, 172, 0.03);
}

.addon-icon {
    font-size: 2rem;
    line-height: 1;
}

.addon-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
}

.addon-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.addon-price {
    font-size: 0.82rem;
    color: var(--electric-leaf);
    font-family: var(--font-mono);
}

.addon-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.addon-card:hover .addon-arrow {
    transform: translateX(4px);
    color: var(--electric-leaf);
}

/* ---- Nav "New" Badge ---- */
.nav-new-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    background: var(--electric-leaf);
    color: var(--forest-floor);
    padding: 1px 6px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ---- Checkout Drawer ---- */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.drawer-backdrop.visible {
    display: block;
}

.drawer-backdrop.open {
    opacity: 1;
}

.checkout-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    height: 100vh;
    background: rgba(13, 23, 13, 0.97);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.checkout-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: rgba(13, 23, 13, 0.97);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.drawer-header h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
    font-family: var(--font-mono);
}

.drawer-close:hover {
    color: var(--text-primary);
}

.drawer-plan-summary {
    margin: 2rem;
    padding: 1.25rem;
    background: rgba(134, 239, 172, 0.05);
    border: 1px solid rgba(134, 239, 172, 0.2);
    border-radius: 12px;
}

.drawer-plan-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--electric-leaf);
    margin-bottom: 0.25rem;
}

.drawer-plan-price {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.drawer-plan-price strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.drawer-form {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: default;
}

.form-field input,
.form-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(134, 239, 172, 0.5);
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.08);
}

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

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.drawer-submit {
    border: none;
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.form-status {
    font-size: 0.82rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(134, 239, 172, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.3);
    color: var(--electric-leaf);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* ---- Plans Placeholder Note ---- */
.pricing-notice {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(134, 239, 172, 0.06);
    border: 1px solid rgba(134, 239, 172, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.pricing-notice strong {
    color: var(--electric-leaf);
}

/* =========================================
   Checkout Success Page
   ========================================= */
.success-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74, 222, 128, 0.07), transparent 70%);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.success-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-hero h1 span {
    color: var(--electric-leaf);
    font-style: italic;
}

.success-card {
    max-width: 600px;
    margin: 2.5rem auto 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    margin-top: 2rem;
}

.timeline-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding-bottom: 1.75rem;
    position: relative;
}

.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 1px;
    background: var(--glass-border);
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(134, 239, 172, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--electric-leaf);
    font-family: var(--font-mono);
    font-weight: 700;
}

.step-dot.completed {
    background: rgba(134, 239, 172, 0.15);
    border-color: var(--electric-leaf);
}

.step-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.step-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   Hosting Dedicated Page
   ========================================= */
.hosting-hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.hosting-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.25rem;
}

.hosting-hero h1 span {
    color: var(--electric-leaf);
    font-style: italic;
}

.hosting-hero p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.hosting-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.hosting-plan-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.hosting-plan-card.featured {
    border-color: rgba(134, 239, 172, 0.5);
    background: rgba(134, 239, 172, 0.04);
}

.hosting-plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(134, 239, 172, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hosting-plans-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 4rem auto 0;
    }
}

@media (max-width: 768px) {
    .hub-hero h1 { font-size: 3.2rem; }
    .checkout-drawer {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        top: auto;
        bottom: 0;
        height: 90vh;
        transform: translateY(100%);
    }
    .checkout-drawer.open { transform: translateY(0); }
    .hub-hero-inner { padding: 7rem 1.5rem 3rem; }
    .plans-subgrid-student { max-width: 100%; }
}

@media (max-width: 580px) {
    .plans-subgrid-standard { grid-template-columns: 1fr; }
    .plans-subgrid-student  { grid-template-columns: 1fr; }
    .addons-grid { grid-template-columns: 1fr; }
    .hub-hero h1 { font-size: 2.6rem; }
    .success-hero h1 { font-size: 2.2rem; }
    .hosting-hero h1 { font-size: 2.5rem; }
}

/* =============================================
   APPLE/HOSTINGER DASHBOARD WIDGETS
   ============================================= */

.apple-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 4px 24px -8px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.apple-widget:hover {
    border-color: rgba(134, 239, 172, 0.2);
    box-shadow: 
        0 12px 32px -8px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(134, 239, 172, 0.08);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.widget-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.3rem;
}

.server-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 1.5rem;
}

.server-icon {
    width: 40px; height: 40px;
    background: rgba(134, 239, 172, 0.1);
    color: var(--electric-leaf);
    border-radius: 10px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.server-details .detail-row {
    display: flex; justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.server-details .detail-row:last-child {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

.server-details .label { color: var(--text-muted); }
.server-details .val { color: var(--text-primary); }

.metrics-container .metric-block {
    margin-bottom: 1.5rem;
}
.metric-header {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; margin-bottom: 0.6rem;
}
.progress-track {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 4px;
    width: 0%;
}
.progress-fill.fill-green {
    background: linear-gradient(90deg, #86efac, #22c55e);
}
@keyframes progress-grow {
    from { width: 0%; opacity: 0; }
    to { opacity: 1; }
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.billing-item:last-child { border-bottom: none; }
.billing-item .b-left {
    display: flex; align-items: center; gap: 1rem;
}
.b-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
}
.badge-green {
    background: rgba(134, 239, 172, 0.15);
    color: var(--electric-leaf);
    border: 1px solid rgba(134, 239, 172, 0.3);
}
.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.addon-mini-card {
    display: block;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.addon-mini-card:hover {
    background: rgba(134, 239, 172, 0.05);
    border-color: rgba(134, 239, 172, 0.3);
    transform: translateY(-2px);
}
.addon-mini-card .a-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.addon-mini-card h4 { margin: 0 0 0.4rem; color: var(--text-primary); font-size: 0.95rem; }
.addon-mini-card p { margin: 0; font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

.settings-list .s-row {
    display: flex; justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.settings-list .s-lbl { color: var(--text-muted); }
.settings-list .s-val { color: var(--text-primary); font-family: var(--font-mono); text-align: right; }

.p-scale-in {
    animation: pScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pScaleIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* =============================================
   HUB PROFILE DROPDOWN
   ============================================= */
.profile-dropdown {
    position: relative;
    display: inline-block;
}
.profile-toggle {
    background: transparent; border: none; outline: none;
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-primary); cursor: pointer;
}
.profile-avatar {
    width: 36px; height: 36px;
    background: rgba(134, 239, 172, 0.15);
    color: var(--electric-leaf);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-family: var(--font-serif);
}
.profile-menu {
    position: absolute; right: 0; top: 120%;
    background: rgba(13, 23, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    min-width: 200px;
    list-style: none; padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 9999;
}
.profile-menu.active {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.profile-menu .profile-name {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0.5rem;
    font-weight: bold; font-size: 0.85rem;
    color: var(--electric-leaf);
}
.profile-menu a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 1.25rem; font-size: 0.85rem;
    color: var(--text-primary); text-decoration: none;
    transition: background 0.2s;
}
.profile-menu a:hover {
    background: rgba(134, 239, 172, 0.1);
}
.hide-mobile {
    display: inline-block;
}
@media(max-width:600px) {
    .hide-mobile { display: none !important; }
}

/* =============================================
   DASHBOARD LAYOUT — Sidebar + Content
   ============================================= */

/*
  Hub layout uses two CSS custom properties as
  the single source of truth. Adjust only here.
  Header actual height = 1rem top + 40px logo + 1rem bottom = ~72px.
  We use 72px. Sidebar width = 240px.
*/
:root {
    --hub-header-h: 72px;
    --hub-sidebar-w: 240px;
}

/* Neutralize the global status-badge margin-bottom
   when it appears inside the hub header */
header .status-badge {
    margin-bottom: 0;
}

.hub-layout {
    display: block;
    min-height: 100vh;
    /* Push content below the fixed header */
    padding-top: var(--hub-header-h);
    position: relative;
}

/* ---- Icon-only action button ---- */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* ---- Sidebar ---- */
.hub-sidebar {
    position: fixed;
    top: var(--hub-header-h);
    left: 0;
    bottom: 0;
    width: var(--hub-sidebar-w);
    background: rgba(8, 15, 8, 0.97);
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 900;
    overflow-y: auto;
    overflow-x: hidden;
    /* no transition needed — sidebar is always visible on desktop */
}

.hub-sidebar-section {
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
}

.hub-sidebar-label {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.5;
    padding: 0.5rem 0.75rem;
    display: block;
}

.hub-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    position: relative;
    margin-bottom: 2px;
    white-space: nowrap;
}

.hub-nav-item i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.hub-nav-item:hover {
    background: rgba(134, 239, 172, 0.06);
    color: var(--text-primary);
    padding-left: 1rem;
}

.hub-nav-item.active {
    background: rgba(134, 239, 172, 0.08);
    color: var(--electric-leaf);
    border: 1px solid rgba(134, 239, 172, 0.15);
}

.hub-nav-item.active i {
    color: var(--electric-leaf);
}

.hub-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--electric-leaf);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(134, 239, 172, 0.6);
}

.hub-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1rem 1.25rem;
}

.hub-sidebar-footer {
    margin-top: auto;
    padding: 0 0.75rem 0.5rem;
}

/* ---- Main Content Area ---- */
.hub-content {
    margin-left: var(--hub-sidebar-w); /* clear the fixed sidebar */
    padding: 2rem 2.5rem 5rem;         /* top/right/bottom/left content padding */
    box-sizing: border-box;
    min-width: 0;
    /* Prevent content from being invisible if sidebar is wider than viewport */
    overflow-x: hidden;
}

/* ---- Page Header ---- */
.hub-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-page-title h1 {
    font-size: 2rem;
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.hub-page-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* =============================================
   STAT SUMMARY CARDS
   ============================================= */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(134, 239, 172, 0.15);
    transform: translateY(-2px);
}

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

.stat-card-label {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-label i {
    opacity: 0.6;
}

.stat-card-value {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card-value.green {
    color: var(--electric-leaf);
}

.stat-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    margin-top: 0.5rem;
    padding: 2px 8px;
    border-radius: 100px;
}

.stat-card-trend.up {
    background: rgba(134, 239, 172, 0.1);
    color: var(--electric-leaf);
}

.stat-card-trend.neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* =============================================
   ENHANCED WIDGET STYLES
   ============================================= */

.apple-widget.widget-glow {
    border-color: rgba(134, 239, 172, 0.15);
    box-shadow:
        0 4px 24px -8px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(134, 239, 172, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.widget-action-link {
    color: var(--electric-leaf);
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease, opacity 0.2s ease;
    font-family: var(--font-mono);
}

.widget-action-link:hover {
    gap: 0.6rem;
    opacity: 0.85;
}

/* Live pulse dot */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--electric-leaf);
    box-shadow: 0 0 6px rgba(134, 239, 172, 0.8);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.live-dot.stopped {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    animation: none;
}

.live-dot.provisioning {
    background: #60a5fa;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.8);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(134, 239, 172, 0.8); }
    50% { opacity: 0.6; box-shadow: 0 0 12px rgba(134, 239, 172, 0.4); }
}

/* ---- Enhanced Server Card ---- */
.server-card-enhanced {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.server-card-enhanced.running {
    border-color: rgba(134, 239, 172, 0.12);
}

.server-card-enhanced.running:hover {
    border-color: rgba(134, 239, 172, 0.25);
    box-shadow: 0 0 24px rgba(134, 239, 172, 0.05);
}

.server-card-enhanced.stopped {
    opacity: 0.75;
}

.server-card-enhanced.provisioning {
    border-color: rgba(96, 165, 250, 0.15);
}

/* ---- Instance Grid (full page) ---- */
.instance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

/* =============================================
   AUTH PAGE ENHANCEMENTS — Floating Labels
   ============================================= */

.auth-field {
    position: relative;
}

.auth-field input,
.auth-field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.1rem 1rem 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.auth-field input:focus,
.auth-field input:not(:placeholder-shown),
.auth-field select:focus {
    border-color: rgba(134, 239, 172, 0.4);
    background: rgba(134, 239, 172, 0.02);
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.06);
}

.auth-field input:focus ~ label,
.auth-field input:not(:placeholder-shown) ~ label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.68rem;
    color: var(--electric-leaf);
    letter-spacing: 0.5px;
}

/* Password toggle button */
.auth-field .pw-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.auth-field .pw-toggle:hover {
    color: var(--text-primary);
}

/* Auth card v2 — wider, more refined */
.auth-card-v2 {
    width: 100%;
    max-width: 460px;
    background: rgba(10, 20, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.75rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.auth-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.6), transparent);
}

.auth-card-v2::after {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(74, 222, 128, 0.07), transparent 70%);
    pointer-events: none;
}

/* Auth logo glow */
.auth-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: rgba(134, 239, 172, 0.08);
    border: 1px solid rgba(134, 239, 172, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(134, 239, 172, 0.1);
}

.auth-logo-icon img {
    width: 32px;
    height: 32px;
}

.auth-title {
    font-size: 1.7rem;
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Submit button with loading state */
.auth-submit {
    width: 100%;
    padding: 0.95rem;
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
}

.auth-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0s;
}

.auth-submit:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

/* =============================================
   SIDEBAR TOGGLE (Mobile)
   ============================================= */

/* sidebar-toggle: kept for JS compatibility but hidden — bottom nav handles mobile */
.sidebar-toggle { display: none !important; }

/* ── Global button appearance reset inside Hub ────────────────────────────
   Prevents browser-default white backgrounds on <button> elements.
   Must use -webkit-appearance for Chrome/Safari on Linux/macOS.
──────────────────────────────────────────────────────────────────────── */
.hub-content button,
.hub-bottom-nav button,
header button,
.hub-sidebar button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: inherit;
}

/* ---- Sidebar overlay on mobile ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 899;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
    display: block;
}

.sidebar-overlay.open {
    opacity: 1;
}

/* ---- Quick action row ---- */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
}

.quick-action-btn:hover {
    background: rgba(134, 239, 172, 0.06);
    border-color: rgba(134, 239, 172, 0.2);
    color: var(--electric-leaf);
    transform: translateY(-1px);
}

.quick-action-btn i {
    font-size: 0.78rem;
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* =============================================
   MOBILE BOTTOM TAB BAR
   ============================================= */

.hub-bottom-nav {
    display: none; /* shown only on mobile via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(6, 12, 6, 0.97);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0); /* iPhone notch */
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

.hub-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 60px;
}

.hub-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    padding: 0.5rem 0.25rem;
    position: relative;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

.hub-bottom-nav-item i {
    font-size: 1.1rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.hub-bottom-nav-item:active i {
    transform: scale(0.88);
}

.hub-bottom-nav-item.active {
    color: var(--electric-leaf);
}

.hub-bottom-nav-item.active i {
    transform: scale(1.1);
}

.hub-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--electric-leaf);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 8px rgba(134, 239, 172, 0.8);
}

/* =============================================
   RESPONSIVE — Dashboard Layout
   ============================================= */

@media (max-width: 1024px) {
    /* Hide desktop sidebar, show bottom nav */
    .hub-sidebar {
        display: none;
    }

    .hub-bottom-nav {
        display: block;
    }

    .hub-content {
        margin-left: 0;
        padding: 1.75rem 1.25rem 5rem; /* extra bottom clearance for nav bar */
    }

    /* Sidebar overlay not needed without sidebar */
    .sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .hub-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-page-title h1 {
        font-size: 1.65rem;
    }

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

    .hub-bottom-nav-inner {
        height: 56px;
    }
}

@media (max-width: 400px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }

    .hub-content {
        padding: 1.25rem 1rem 5rem;
    }
}
