:root {
    --bg-base: #0a0d14;
    --bg-surface: #111622;
    --bg-elevated: #182032;
    --bg-card: rgba(20, 27, 43, 0.7);
    --bg-glass: rgba(24, 32, 50, 0.55);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(0, 230, 255, 0.3);

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

    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #9d4edd;
    --accent-pink: #f72585;
    --accent-green: #06d6a0;
    --accent-amber: #ffb703;
    --accent-danger: #ef4444;

    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at 10% 20%, #0d1322 0%, var(--bg-base) 90%);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 270px;
    background: rgba(13, 18, 30, 0.85);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 28px 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}
.brand-logo svg {
    width: 24px;
    height: 24px;
}

.brand-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.brand-text h2 span {
    color: var(--accent-cyan);
}

.version-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.nav-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}
.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}
.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.15), rgba(157, 78, 221, 0.1));
    border-left: 3px solid var(--accent-cyan);
    box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.05);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--accent-green);
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}

.uptime-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 40px;
    max-width: 1500px;
    margin: 0 auto;
    width: calc(100% - 270px);
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title-group h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.page-title-group p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.topbar-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    font-family: var(--font-main);
    text-decoration: none;
}
.btn svg {
    width: 18px;
    height: 18px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #050b14;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}
.btn-outline {
    background: var(--bg-elevated);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
}
.btn-danger:hover {
    background: var(--accent-danger);
    color: #fff;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}
.w-100 { width: 100%; }

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-out;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Intro */
.section-intro {
    margin-bottom: 24px;
}
.section-intro h2 {
    font-size: 1.45rem;
    font-weight: 700;
}
.section-intro p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 6px;
    max-width: 850px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.glow-cyan::before { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
.glow-pink::before { background: var(--accent-pink); box-shadow: 0 0 10px var(--accent-pink); }
.glow-purple::before { background: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }
.glow-green::before { background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }
.glow-amber::before { background: var(--accent-amber); box-shadow: 0 0 10px var(--accent-amber); }
.glow-blue::before { background: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.metric-icon {
    color: var(--text-muted);
}
.metric-icon svg {
    width: 20px;
    height: 20px;
}
.metric-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 12px 0 4px 0;
    font-family: var(--font-mono);
}
.metric-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Panel Card */
.panel-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}
.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.link-btn {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}
.link-btn:hover {
    text-decoration: underline;
}

.dashboard-controls-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-align-end { align-self: flex-end; }
.span-all { grid-column: 1 / -1; }
.form-input[readonly] { opacity: 0.75; cursor: default; }
.d-block { display: block; }
.auto-ip-row { display: flex; align-items: center; gap: 14px; }
.auto-ip-row strong { font-weight: 600; }
.flex-justify-end { justify-content: flex-end; }
.col-span-4 { grid-column: span 4; }

/* Switch Toggle Glow */
.switch-glow {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}
.switch-glow.large {
    width: 68px;
    height: 36px;
}
.switch-glow input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    inset: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}
.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
}
.switch-glow.large .slider::before {
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 3px;
}
.switch-glow input:checked + .slider {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}
.switch-glow input:checked + .slider::before {
    transform: translateX(23px);
    background-color: #050b14;
}
.switch-glow.large input:checked + .slider::before {
    transform: translateX(31px);
}

/* Quick Device Presets Chips */
.quick-preset-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.preset-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
}
.preset-chip:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}
.preset-chip.active {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}
.preset-chip-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.preset-chip-title {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Devices Full Grid */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.device-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.device-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.device-card.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
}
.device-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.device-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    border: 1px solid var(--border-color);
}
.device-icon-box svg {
    width: 26px;
    height: 26px;
}
.device-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 10px;
}
.device-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}
.device-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
}
.device-tag {
    font-size: 0.72rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

/* SmartDNS Master Panel */
.proxy-master-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--radius-md);
}
.master-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.status-bubble-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    border: 1px solid rgba(157, 78, 221, 0.4);
}
.status-bubble-large.active {
    background: var(--accent-cyan);
    color: #050b14;
    box-shadow: 0 0 20px var(--accent-cyan);
}
.proxy-quick-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

/* Forms & Inputs */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    gap: 16px;
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-input, .form-select, .form-textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}
.form-input-sm, .form-select-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
}

/* Dropzone */
.upload-dropzone {
    border: 2px dashed rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.02);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.06);
}
.upload-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-cyan);
}
.dropzone-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.import-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Tag Clouds */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
}
.rule-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.rule-tag:hover {
    border-color: var(--border-hover);
}
.rule-tag-del {
    color: var(--text-muted);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-fast);
}
.rule-tag-del:hover {
    color: var(--accent-danger);
}

/* Subtabs */
.tabs-subnav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.subtab-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}
.subtab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}
.subtab-content {
    display: none;
}
.subtab-content.active {
    display: block;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.badge-success { background: rgba(6, 214, 160, 0.15); color: var(--accent-green); border: 1px solid rgba(6, 214, 160, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-purple { background: rgba(157, 78, 221, 0.15); color: var(--accent-purple); border: 1px solid rgba(157, 78, 221, 0.3); }
.badge-cyan { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.badge-amber { background: rgba(255, 183, 3, 0.15); color: var(--accent-amber); border: 1px solid rgba(255, 183, 3, 0.3); }

/* Protocols List */
.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.protocol-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.protocol-badge {
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}
.protocol-info {
    flex: 1;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.protocol-info code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Toast Alerts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-cyan);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .main-content { width: 100%; padding: 20px; }
    .form-grid-4 { grid-template-columns: 1fr 1fr; }
    .col-span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
    .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
    .col-span-4 { grid-column: span 1; }
    .dashboard-controls-row { flex-direction: column; }
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrap {
    width: 100%;
    max-width: 380px;
    padding: 16px;
}
.login-brand {
    margin-bottom: 1.5rem;
}
.login-error {
    color: var(--accent-danger);
    min-height: 1.2em;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
.login-hint {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Invite join page */
.join-wrap {
    max-width: 460px;
}
.join-section h3 {
    margin-bottom: 0.75rem;
}
.join-section p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}
.join-section details {
    margin-bottom: 0.5rem;
}
.join-section summary {
    cursor: pointer;
    color: var(--accent-cyan);
}
.join-dns code {
    font-size: 1.4rem;
    direction: ltr;
    display: inline-block;
}
.join-ip code, #done-ip {
    direction: ltr;
    display: inline-block;
}
.join-note {
    font-size: 0.85rem;
}
.invite-link-cell code {
    direction: ltr;
    font-size: 0.75rem;
    word-break: break-all;
}

/* Spacing utilities used by the markup */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
