/* â”€â”€ Nav icon next to text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-icon {
    font-size: 1rem;
    opacity: 0.7;
}

/* â”€â”€ Toolbar icon-only buttons (theme / language) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toolbar-btn-icon-only {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    font-size: 1.1rem;
}
.toolbar-btn-icon-only .toolbar-btn-icon {
    font-size: 1.15rem;
}

/* â”€â”€ User avatar circle â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.user-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.user-avatar-btn {
    gap: 0.5rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    border-radius: 999px;
}
.user-avatar-btn:hover {
    background: var(--bg-elevated-strong);
    border-color: var(--border);
}

.user-display-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
}

/* â”€â”€ Dropdown chevron â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dropdown-chevron {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform var(--transition);
}
.dropdown.show .dropdown-chevron {
    transform: rotate(180deg);
}

/* â”€â”€ Nav dropdown toggle (admin) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-dropdown-toggle {
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.88rem;
}
.admin-badge-icon {
    font-size: 1rem;
}

/* â”€â”€ Glass dropdown menu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-dropdown-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 220px;
    z-index: 1050;
    animation: dropdownFadeIn 0.18s ease;
}
.nav-dropdown-menu .dropdown-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem 0.35rem;
}
.nav-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    transition: background var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.nav-dropdown-menu .dropdown-item:hover,
.nav-dropdown-menu .dropdown-item:focus {
    background: var(--bg-elevated-strong);
    color: var(--brand);
}
.nav-dropdown-menu .dropdown-item i {
    font-size: 1rem;
    opacity: 0.6;
    width: 1.25rem;
    text-align: center;
}
.nav-dropdown-menu .dropdown-item:hover i,
.nav-dropdown-menu .dropdown-item:focus i {
    opacity: 1;
}
.nav-dropdown-menu .dropdown-divider {
    border-color: var(--border);
    margin: 0.35rem 0;
    opacity: 0.5;
}

/* â”€â”€ Register button in nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-register-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btn-brand {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--brand-glow);
    transition: all var(--transition);
}

.btn-brand:hover,
.btn-brand:focus-visible {
    color: white;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px var(--brand-glow), 0 0 0 2px var(--bg), 0 0 0 4px var(--brand);
}

.hero-section,
.page-header {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    line-height: 1.25;
    margin: 0.5rem 0 0.75rem;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-title-sm {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.hero-subtitle,
.section-subtitle,
.form-heading-row p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.eyebrow-pill,
.type-pill,
.info-badge,
.badge-soft,
.stat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    background: var(--bg-elevated-strong);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badges,
.landing-actions,
.dashboard-actions,
.result-actions,
.dashboard-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-card,
.landing-panel,
.content-panel,
.preview-shell,
.empty-state,
.auth-card {
    border-radius: var(--radius-xl);
    padding: 2rem;
}

/* â”€â”€ Section dividers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
hr:not(.dropdown-divider) {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 1.5rem 0;
    opacity: 0.7;
}

hr.my-4 {
    margin: 2rem 0;
}

/* â”€â”€ Consistent glass-panel content padding â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
section.glass-panel {
    padding: 2rem;
    border-radius: var(--radius-xl);
}

/* â”€â”€ Form section spacing â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stack-form .mb-3 {
    margin-bottom: 1.25rem !important;
}

.stack-form .row.mb-3 {
    margin-bottom: 1.25rem !important;
}

/* â”€â”€ Styled alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
}

.alert-success {
    background: color-mix(in srgb, var(--success) 12%, var(--bg-elevated));
    color: var(--success);
    border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
}

.alert-danger {
    background: color-mix(in srgb, var(--danger) 12%, var(--bg-elevated));
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
}

.alert-info {
    background: color-mix(in srgb, var(--brand-3) 12%, var(--bg-elevated));
    color: var(--brand-3);
    border: 1px solid color-mix(in srgb, var(--brand-3) 25%, transparent);
}

.alert-warning {
    background: color-mix(in srgb, #eab308 12%, var(--bg-elevated));
    color: #eab308;
    border: 1px solid color-mix(in srgb, #eab308 25%, transparent);
}

.hero-card {
    padding: 1.25rem !important;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.hero-stat-grid div {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated-strong);
    border: 1px solid var(--border);
    text-align: center;
}

.hero-stat-grid strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    line-height: 1.15;
}

.hero-stat-grid span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.section-heading {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.8rem;
    margin: 0 0 0.35rem;
}

.modern-tabs {
    background: var(--surface-2);
    padding: 5px;
    border-radius: 999px;
    display: inline-flex;
    border: 1px solid var(--border);
    gap: 4px;
    flex-wrap: wrap;
}

.modern-tabs .nav-link {
    border: none;
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 550;
    background: transparent;
    transition: all var(--transition);
}

.modern-tabs .nav-link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.modern-tabs .nav-link.active {
    color: var(--surface) !important;
    background: var(--text) !important;
    box-shadow: var(--shadow-md);
}

.feature-card {
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.stack-form {
    display: grid;
    gap: 0.65rem;
}

.form-heading-row {
    margin-bottom: 0.25rem;
}

.form-heading-row h3 {
    margin-bottom: 0.3rem;
    font-size: 1.35rem;
}

/* â”€â”€ Unified form labels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.form-label .text-danger {
    font-weight: 700;
}

.form-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.form-check-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.form-check-input {
    border-color: var(--border);
    background-color: var(--bg-elevated-strong);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* â”€â”€ Unified input fields â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modern-input,
.form-control,
.form-select {
    min-height: 50px;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated-strong);
    color: var(--text);
    font-size: 0.92rem;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.modern-input,
textarea.form-control {
    min-height: 120px;
    line-height: 1.6;
}

.modern-input::placeholder,
.form-control::placeholder {
    color: color-mix(in srgb, var(--text-muted) 70%, transparent);
    font-weight: 400;
}

.modern-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 1px var(--border-active), 0 0 0 4px var(--brand-glow) !important;
    background: var(--bg-elevated-strong);
    color: var(--text);
}

/* Small variant for nested card forms */
.form-control-sm,
.form-select-sm {
    min-height: 40px !important;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 12px;
}

.form-label-sm {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Read-only / disabled inputs */
.form-control[aria-readonly="true"],
.form-control:disabled,
.form-control[readonly] {
    background: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: default;
    opacity: 0.85;
}

.cta-grid {
    display: grid;
    gap: 0.8rem;
}

.cta-button-group {
    padding: 0.8rem;
    border-radius: 18px;
    background: var(--bg-elevated-strong);
    border: 1px solid var(--border);
}

.result-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
}

.short-link-display {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.98rem;
    word-break: break-word;
    color: var(--brand);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-card {
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
    box-shadow: var(--shadow-lg), 0 0 24px var(--brand-glow);
}

.dashboard-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.dashboard-card-title {
    margin: 0;
    font-size: 1.15rem;
}

.landing-shell,
.preview-shell,
.auth-shell {
    max-width: 860px;
    margin-inline: auto;
}

.landing-hero-media,
.preview-image-wrap {
    overflow: hidden;
    border-radius: 28px;
    padding: 0.5rem;
    background: var(--bg-elevated-strong);
    border: 1px solid var(--border);
}

.landing-actions {
    justify-content: center;
    margin-top: 2rem;
}

.empty-state {
    max-width: 760px;
    margin-inline: auto;
}

.empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 20px 40px rgba(91, 108, 255, 0.28);
}

.site-footer {
    padding-bottom: 2rem;
}

.footer-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 2rem 1.5rem;
    border-radius: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr;
    gap: 3rem;
}

@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link-item a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-link-item a:hover {
    color: var(--brand);
    transform: translateX(3px);
}

html[dir='rtl'] .footer-link-item a:hover {
    transform: translateX(-3px);
}

.footer-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Legal pages */
.legal-card {
    border-radius: 20px;
    border: 1px solid var(--border);
}

.legal-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-list {
    padding-left: 1.25rem;
    line-height: 1.7;
}

html[dir='rtl'] .legal-list {
    padding-left: 0;
    padding-right: 1.25rem;
}


.inline-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.custom-toggler {
    border-radius: 14px;
    border: 1px solid var(--border);
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    z-index: 1000;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 16px;
}

.skip-link:focus {
    top: 1rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms cubic-bezier(.16, 1, .3, 1), transform 500ms cubic-bezier(.16, 1, .3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-card {
    animation: floatCard 8s ease-in-out infinite;
}

.btn-copy.copied {
    background: linear-gradient(135deg, var(--success), #16a34a);
    border-color: transparent;
    color: #fff;
}

.char-counter {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

*:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 75%, white);
    outline-offset: 3px;
}

html[dir='rtl'] .skip-link {
    left: auto;
    right: 1rem;
}

html[dir='rtl'] .dashboard-card-top,
html[dir='rtl'] .footer-card,
html[dir='rtl'] .result-panel {
    direction: rtl;
}

html[dir='rtl'] .brand-copy,
html[dir='rtl'] .hero-copy,
html[dir='rtl'] .section-heading,
html[dir='rtl'] .feature-card,
html[dir='rtl'] .auth-card,
html[dir='rtl'] .landing-panel {
    text-align: right;
}

/* â”€â”€ Dashboard filter bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.dashboard-filter-bar {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.filter-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

html[dir='rtl'] .search-icon {
    left: auto;
    right: 0.85rem;
}

.search-input {
    padding-inline-start: 2.5rem !important;
}

.filter-group {
    flex: 0 1 auto;
    min-width: 150px;
}

.filter-select {
    cursor: pointer;
}

.filter-submit {
    flex-shrink: 0;
}

.filter-clear {
    flex-shrink: 0;
}

/* â”€â”€ Dashboard sort bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.dashboard-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.sort-btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    min-width: 72px;
    text-align: center;
}

.result-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* â”€â”€ Tag chips on dashboard cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.dashboard-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
    line-height: 1.5;
}

/* â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0 0.5rem;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.pagination-link:hover:not(.pagination-disabled):not(.pagination-active) {
    background: color-mix(in srgb, var(--brand) 12%, var(--surface));
    border-color: var(--brand);
    color: var(--brand);
}

.pagination-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.pagination-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    font-weight: 700;
    color: var(--text-muted);
}

.pagination-info {
    font-size: 0.82rem;
}

html[dir='rtl'] .filter-row,
html[dir='rtl'] .sort-controls,
html[dir='rtl'] .dashboard-sort-bar,
html[dir='rtl'] .pagination-list {
    direction: rtl;
}

@keyframes floatOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(22px, -18px, 0) scale(1.06); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* â”€â”€ Admin Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€ Admin accent color palette â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --accent-blue: hsl(221, 83%, 53%);
    --accent-blue-bg: hsla(221, 83%, 53%, 0.10);
    --accent-blue-border: hsla(221, 83%, 53%, 0.35);
    --accent-emerald: hsl(160, 84%, 39%);
    --accent-emerald-bg: hsla(160, 84%, 39%, 0.10);
    --accent-emerald-border: hsla(160, 84%, 39%, 0.35);
    --accent-violet: hsl(263, 70%, 58%);
    --accent-violet-bg: hsla(263, 70%, 58%, 0.10);
    --accent-violet-border: hsla(263, 70%, 58%, 0.35);
    --accent-amber: hsl(38, 92%, 50%);
    --accent-amber-bg: hsla(38, 92%, 50%, 0.10);
    --accent-amber-border: hsla(38, 92%, 50%, 0.35);
    --accent-cyan: hsl(192, 91%, 46%);
    --accent-cyan-bg: hsla(192, 91%, 46%, 0.10);
    --accent-cyan-border: hsla(192, 91%, 46%, 0.35);
    --accent-rose: hsl(347, 77%, 55%);
    --accent-rose-bg: hsla(347, 77%, 55%, 0.10);
    --accent-rose-border: hsla(347, 77%, 55%, 0.35);
}

html[data-theme='dark'] {
    --accent-blue-bg: hsla(221, 83%, 53%, 0.14);
    --accent-blue-border: hsla(221, 83%, 53%, 0.30);
    --accent-emerald-bg: hsla(160, 84%, 39%, 0.14);
    --accent-emerald-border: hsla(160, 84%, 39%, 0.30);
    --accent-violet-bg: hsla(263, 70%, 58%, 0.14);
    --accent-violet-border: hsla(263, 70%, 58%, 0.30);
    --accent-amber-bg: hsla(38, 92%, 50%, 0.14);
    --accent-amber-border: hsla(38, 92%, 50%, 0.30);
    --accent-cyan-bg: hsla(192, 91%, 46%, 0.14);
    --accent-cyan-border: hsla(192, 91%, 46%, 0.30);
    --accent-rose-bg: hsla(347, 77%, 55%, 0.14);
    --accent-rose-border: hsla(347, 77%, 55%, 0.30);
}

/* â”€â”€ Admin Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-sidebar {
    padding: 0.5rem 0.65rem !important;
}

.admin-nav-items {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    font-weight: 550;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.admin-nav-link i {
    font-size: 1rem;
    opacity: 0.75;
}

.admin-nav-link:hover {
    color: var(--brand);
    background: var(--accent-blue-bg);
}

.admin-nav-link:hover i {
    opacity: 1;
}

.admin-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 2px 10px rgba(91, 108, 255, 0.25);
}

.admin-nav-link.active i {
    opacity: 1;
}

@media (max-width: 576px) {
    .admin-nav-link span {
        display: none;
    }
    .admin-nav-link {
        padding: 0.55rem;
    }
    .admin-nav-link i {
        font-size: 1.15rem;
    }
}

/* â”€â”€ Admin compact section labels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-section-label {
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    opacity: 0.6;
}

/* â”€â”€ Admin Stats Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* â”€â”€ Stat Card â€” new left-aligned design â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-lg);
    border-left: 3.5px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-card:hover .stat-card__icon {
    transform: scale(1.08);
}

.stat-card__content {
    min-width: 0;
}

.stat-card__value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-card__label {
    font-size: 0.74rem;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Stat card color variants */
.stat-card--blue    { border-left-color: var(--accent-blue); }
.stat-card--blue .stat-card__icon    { background: var(--accent-blue-bg); color: var(--accent-blue); }

.stat-card--emerald { border-left-color: var(--accent-emerald); }
.stat-card--emerald .stat-card__icon { background: var(--accent-emerald-bg); color: var(--accent-emerald); }

.stat-card--violet  { border-left-color: var(--accent-violet); }
.stat-card--violet .stat-card__icon  { background: var(--accent-violet-bg); color: var(--accent-violet); }

.stat-card--amber   { border-left-color: var(--accent-amber); }
.stat-card--amber .stat-card__icon   { background: var(--accent-amber-bg); color: var(--accent-amber); }

.stat-card--cyan    { border-left-color: var(--accent-cyan); }
.stat-card--cyan .stat-card__icon    { background: var(--accent-cyan-bg); color: var(--accent-cyan); }

.stat-card--rose    { border-left-color: var(--accent-rose); }
.stat-card--rose .stat-card__icon    { background: var(--accent-rose-bg); color: var(--accent-rose); }

/* â”€â”€ Admin Tabbed Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    padding: 0 0.25rem;
}

.admin-tab-btn {
    padding: 0.7rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    margin-bottom: -1px;
}

.admin-tab-btn:hover {
    color: var(--text);
}

.admin-tab-btn.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.admin-tab-btn i {
    font-size: 0.95rem;
    opacity: 0.7;
}

.admin-tab-btn.active i {
    opacity: 1;
}

.admin-tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.admin-tab-pane.active {
    display: block;
}

/* â”€â”€ Admin Tables â€” refined styling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
    background: var(--accent-blue-bg);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Short code pill badge */
.short-code-pill {
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--brand);
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-block;
}

.short-code-pill:hover {
    background: var(--accent-blue-bg);
    border-color: var(--accent-blue-border);
    color: var(--brand);
}

/* Type badge â€” compact inline */
.type-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--text-muted);
}

.type-badge-inline i {
    font-size: 0.85rem;
}

/* User rank badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.rank-badge.rank-1 { background: var(--accent-amber-bg); color: var(--accent-amber); }
.rank-badge.rank-2 { background: var(--accent-blue-bg); color: var(--accent-blue); }
.rank-badge.rank-3 { background: var(--accent-emerald-bg); color: var(--accent-emerald); }

/* Ghost action button */
.btn-ghost {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 550;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}

/* â”€â”€ Admin chart section header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-chart-label {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-chart-label i {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* â”€â”€ Admin page header â€” compact â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-page-header {
    display: block;
    margin-bottom: 1.5rem;
}

.admin-page-header .eyebrow-pill {
    margin-bottom: 0.5rem;
}

.admin-page-header .hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin: 0.35rem 0 0.3rem;
}

.admin-page-header .hero-subtitle {
    font-size: 0.92rem;
}

/* â”€â”€ Stats row label (Overview / Today) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-row-label {
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    margin-top: 0.3rem;
    opacity: 0.7;
}

/* â”€â”€ Admin table row hover effect â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modern-table tbody tr {
    transition: background 0.15s ease;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.badge.bg-success {
    background: hsla(142.1, 76.2%, 36.3%, 0.08) !important;
    color: var(--success) !important;
    border: 1px solid hsla(142.1, 76.2%, 36.3%, 0.18);
    box-shadow: 0 0 8px hsla(142.1, 76.2%, 36.3%, 0.08);
}

.badge.bg-danger {
    background: hsla(0, 84.2%, 60.2%, 0.08) !important;
    color: var(--danger) !important;
    border: 1px solid hsla(0, 84.2%, 60.2%, 0.18);
    box-shadow: 0 0 8px hsla(0, 84.2%, 60.2%, 0.08);
}

.badge.bg-warning {
    background: hsla(45, 93%, 47%, 0.08) !important;
    color: hsl(45, 93%, 47%) !important;
    border: 1px solid hsla(45, 93%, 47%, 0.18);
}

.badge.bg-secondary {
    background: var(--surface-2) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
}

/* â”€â”€ Advanced Features â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Brand text color utility */
.text-brand {
    color: var(--brand);
}

/* Eyebrow label above hero titles */
.hero-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* Notification badge on bell icon */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    pointer-events: none;
}

/* Brand outline button variant */
.btn-outline-brand {
    border: 1px solid var(--brand);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--brand);
    background: transparent;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Tag suggestion button */
.btn-tag-suggest {
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn-tag-suggest:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Sort info container */
.sort-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Redirect rule group row */
.redirect-rule-group {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

.redirect-rule-group:hover {
    background: var(--bg-elevated-strong);
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

/* A/B variant group card */
.ab-variant-group {
    border-radius: var(--radius-md) !important;
    border-color: var(--border);
    background: var(--surface-2);
    padding: 0.85rem 1rem !important;
    transition: border-color var(--transition), background var(--transition);
}

.ab-variant-group:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, transparent);
    background: var(--bg-elevated-strong);
}

/* A/B weight percentage input */
.ab-weight-input {
    max-width: 80px;
    text-align: center;
    font-weight: 600;
}

/* Scheduled redirect group card */
.schedule-group {
    border-radius: var(--radius-md) !important;
    border-color: var(--border);
    background: var(--surface-2);
    padding: 0.85rem 1rem !important;
    transition: border-color var(--transition), background var(--transition);
}

.schedule-group:hover {
    border-color: color-mix(in srgb, var(--brand-3) 35%, transparent);
    background: var(--bg-elevated-strong);
}

/* Health status badges */
.health-badge-healthy {
    color: var(--success);
    font-weight: 600;
}

.health-badge-broken {
    color: var(--danger);
    font-weight: 600;
}

/* API key display (show-once banner) */
.api-key-display {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    word-break: break-all;
    background: var(--surface-2);
    border: 1px dashed var(--brand);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

/* â•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گ
   RTL / Arabic â€” Comprehensive overrides
   Bootstrap RTL bundle handles utility classes (me-*, ms-*, text-start,
   text-end, etc.). The rules below fix custom component positioning
   that relies on physical CSS properties (left/right, border-left, etc.)
   â•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گâ•گ */

/* â”€â”€ Toast notification system â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html[dir='rtl'] .toast-container {
    right: auto;
    left: 1rem;
}

html[dir='rtl'] .toast-item {
    animation-name: slideInLeft;
}

html[dir='rtl'] .toast-item.success { border-left: none;  border-right: 4px solid var(--success); }
html[dir='rtl'] .toast-item.error   { border-left: none;  border-right: 4px solid var(--danger); }
html[dir='rtl'] .toast-item.info    { border-left: none;  border-right: 4px solid var(--brand); }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* â”€â”€ Notification badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html[dir='rtl'] .notification-badge {
    right: auto;
    left: -6px;
}

/* â”€â”€ API key / code displays â€” keep LTR for readability â”€â”€ */
html[dir='rtl'] .api-key-display,
html[dir='rtl'] .short-link-display,
html[dir='rtl'] code,
html[dir='rtl'] pre {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

/* â”€â”€ Pricing badge inline style uses left:50% â€” stays centered, no fix needed â”€â”€ */

/* â”€â”€ Dropdown alignment (already handled by Bootstrap RTL, but kept for safety) â”€â”€ */
html[dir='rtl'] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

/* â”€â”€ Custom Branding Logos (Pure CSS) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --brand-dark: #121826;     /* Sleek premium slate */
    --brand-primary: #1d4ed8;  /* Vibrant blue */
    --brand-muted: #6b7280;    /* Gray for tagline and dot-link */
}

html[data-theme="dark"] {
    --brand-dark: #f8fafc;
    --brand-primary: #3b82f6;
    --brand-muted: #9ca3af;
}

.brand-logo-css {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    user-select: none;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s ease;
    direction: ltr !important;
    text-align: left !important;
}
.brand-logo-css:hover {
    opacity: 0.95;
}

.brand-logo-css .brand-name {
    display: flex;
    align-items: center;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-logo-css .text-36 {
    color: var(--brand-dark);
    font-weight: 800;
}

.brand-logo-css .icon-0 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-css .text-uni {
    color: var(--brand-primary);
    font-weight: 700;
}

.brand-logo-css .text-link {
    color: var(--brand-muted);
    font-weight: 400;
}

.brand-logo-css .tagline {
    font-weight: 500;
    color: var(--brand-muted);
    text-transform: capitalize;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Header Specific Scaling (navbar) */
.logo-header .brand-name {
    font-size: 24px;
}
.logo-header .icon-0 {
    width: 22px;
    height: 22px;
    margin: 0 2px;
}
.logo-header .tagline {
    font-size: 7px;
    letter-spacing: 0.14em;
    margin-top: 4px;
    padding-left: 1px;
}

/* Footer Specific Scaling */
.logo-footer .brand-name {
    font-size: 26px;
}
.logo-footer .icon-0 {
    width: 24px;
    height: 24px;
    margin: 0 2px;
}
.logo-footer .tagline {
    font-size: 7.5px;
    letter-spacing: 0.14em;
    margin-top: 4px;
    padding-left: 1px;
}

/* â”€â”€ QR Accessibility styling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid var(--border) !important;
    }
}

.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.qr-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.qr-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 420px;
    padding: 1.75rem;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal-overlay.active .qr-modal {
    transform: translateY(0);
}

.qr-modal__close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.qr-modal__close:hover {
    color: var(--text);
}

.qr-modal__preview {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.qr-action-buttons .btn {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
}

/* Premium Advanced Feature Cards */
.advanced-features-container {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.advanced-features-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advanced-features-subtitle {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.feature-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .feature-card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-toggle-card.active {
        grid-column: span 2;
    }
}

.feature-toggle-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-toggle-card:hover {
    border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-toggle-card.active {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 4%, var(--bg-elevated));
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.feature-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
    color: var(--brand);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.feature-toggle-card.active .feature-icon-wrapper {
    background: var(--brand);
    color: #ffffff;
}

.feature-details {
    flex-grow: 1;
}

.feature-title-text {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.feature-content-area {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border);
    animation: slideDownFade 0.25s ease-out;
    width: 100%;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[data-theme='dark'] .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.error-code-display {
    font-size: 7rem;
    font-weight: 850;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px var(--brand-glow));
}

.powered-by-badge {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.powered-by-badge a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.825rem;
    font-family: var(--font-primary);
    font-weight: 500;
}

.powered-by-badge a strong {
    color: var(--brand);
    font-weight: 700;
}

.powered-by-badge:hover {
    transform: translate(-50%, -2px);
    box-shadow: var(--shadow-md), 0 0 15px var(--brand-glow);
    border-color: var(--brand);
}

/* Landing page standalone styles */
.landing-shell {
    max-width: 680px;
    width: 100%;
    margin: 40px auto;
    padding: 0 1.25rem;
}

.landing-panel {
    padding: 3rem 2.5rem;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.landing-panel .eyebrow-pill,
.phone-screen .eyebrow-pill {
    align-self: flex-start;
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* Handle RTL eyebrow alignment */
html[dir="rtl"] .landing-panel .eyebrow-pill,
html[dir="rtl"] .phone-screen .eyebrow-pill {
    align-self: flex-start;
}

.landing-panel .hero-title-sm,
.phone-screen .hero-title-sm {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.landing-panel .hero-subtitle,
.phone-screen .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.landing-hero-media {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.landing-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 360px;
    margin: 1.5rem auto 0;
}

.landing-actions .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 14px;
    width: 100%;
    transition: all var(--transition);
}

/* â”€â”€ Enhanced Bio Link Layout & Component Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.landing-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
}

.landing-avatar img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.landing-avatar img:hover {
    transform: scale(1.05);
}

.landing-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    transition: all var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--brand);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Dynamic button custom styles */
.btn-soft-brand {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--brand) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
}

.btn-soft-brand:hover {
    background: var(--brand) !important;
    color: #fff !important;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text) !important;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-glow {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4) !important;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.7) !important;
    transform: translateY(-2px);
}

/* â”€â”€ Dynamic Custom Themes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* 1. Dark Glassmorphism Theme */
body.landing-theme-dark-glass, .phone-screen.landing-theme-dark-glass {
    background: radial-gradient(circle at top left, #120e2e, #03001e) !important;
    color: #f3f4f6 !important;
}
body.landing-theme-dark-glass .landing-panel, .phone-screen.landing-theme-dark-glass .landing-panel {
    background: rgba(18, 18, 36, 0.5) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}
body.landing-theme-dark-glass .hero-title-sm, .phone-screen.landing-theme-dark-glass .hero-title-sm {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}
body.landing-theme-dark-glass .hero-subtitle, .phone-screen.landing-theme-dark-glass .hero-subtitle {
    color: #9ca3af !important;
}
body.landing-theme-dark-glass .btn-brand, .phone-screen.landing-theme-dark-glass .btn-brand {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    border: none !important;
    color: #ffffff !important;
}
body.landing-theme-dark-glass .btn-outline-brand, .phone-screen.landing-theme-dark-glass .btn-outline-brand {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #f3f4f6 !important;
}
body.landing-theme-dark-glass .btn-outline-brand:hover, .phone-screen.landing-theme-dark-glass .btn-outline-brand:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
body.landing-theme-dark-glass .social-icon, .phone-screen.landing-theme-dark-glass .social-icon {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #d1d5db !important;
}
body.landing-theme-dark-glass .social-icon:hover, .phone-screen.landing-theme-dark-glass .social-icon:hover {
    background: #7c3aed !important;
    color: #fff !important;
}

/* 2. Cyberpunk Glow Theme */
body.landing-theme-cyberpunk, .phone-screen.landing-theme-cyberpunk {
    background: #03001e !important;
    color: #00ffcc !important;
    font-family: 'Plus Jakarta Sans', monospace !important;
}
body.landing-theme-cyberpunk .landing-panel, .phone-screen.landing-theme-cyberpunk .landing-panel {
    background: #060814 !important;
    border: 2px solid #ff007f !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4), inset 0 0 10px rgba(0, 255, 204, 0.1) !important;
}
body.landing-theme-cyberpunk .hero-title-sm, .phone-screen.landing-theme-cyberpunk .hero-title-sm {
    color: #ffffff !important;
    text-shadow: 0 0 8px #00ffcc, 0 0 20px #ff007f !important;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}
body.landing-theme-cyberpunk .hero-subtitle, .phone-screen.landing-theme-cyberpunk .hero-subtitle {
    color: #8b9bb4 !important;
}
body.landing-theme-cyberpunk .eyebrow-pill, .phone-screen.landing-theme-cyberpunk .eyebrow-pill {
    color: #ff007f !important;
    background: rgba(255, 0, 127, 0.1) !important;
    border: 1px solid #ff007f !important;
}
body.landing-theme-cyberpunk .btn-brand, .phone-screen.landing-theme-cyberpunk .btn-brand {
    background: #ff007f !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px #ff007f !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body.landing-theme-cyberpunk .btn-brand:hover, .phone-screen.landing-theme-cyberpunk .btn-brand:hover {
    background: #00ffcc !important;
    color: #03001e !important;
    box-shadow: 0 0 15px #00ffcc !important;
}
body.landing-theme-cyberpunk .btn-outline-brand, .phone-screen.landing-theme-cyberpunk .btn-outline-brand {
    border: 1px solid #00ffcc !important;
    color: #00ffcc !important;
    background: transparent !important;
}
body.landing-theme-cyberpunk .btn-outline-brand:hover, .phone-screen.landing-theme-cyberpunk .btn-outline-brand:hover {
    background: rgba(0, 255, 204, 0.1) !important;
}
body.landing-theme-cyberpunk .social-icon, .phone-screen.landing-theme-cyberpunk .social-icon {
    background: #0c0f24 !important;
    border: 1px solid #ff007f !important;
    color: #ff007f !important;
}
body.landing-theme-cyberpunk .social-icon:hover, .phone-screen.landing-theme-cyberpunk .social-icon:hover {
    background: #00ffcc !important;
    color: #03001e !important;
    box-shadow: 0 0 10px #00ffcc !important;
}

/* 3. Sunset Breeze Theme */
body.landing-theme-sunset, .phone-screen.landing-theme-sunset {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6) !important;
}
body.landing-theme-sunset .landing-panel, .phone-screen.landing-theme-sunset .landing-panel {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}
body.landing-theme-sunset .hero-title-sm, .phone-screen.landing-theme-sunset .hero-title-sm {
    color: #ffffff !important;
}
body.landing-theme-sunset .hero-subtitle, .phone-screen.landing-theme-sunset .hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}
body.landing-theme-sunset .eyebrow-pill, .phone-screen.landing-theme-sunset .eyebrow-pill {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
body.landing-theme-sunset .btn-brand, .phone-screen.landing-theme-sunset .btn-brand {
    background: #ffffff !important;
    color: #ec4899 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3) !important;
}
body.landing-theme-sunset .btn-brand:hover, .phone-screen.landing-theme-sunset .btn-brand:hover {
    background: #fdf2f8 !important;
    transform: translateY(-2px);
}
body.landing-theme-sunset .btn-outline-brand, .phone-screen.landing-theme-sunset .btn-outline-brand {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}
body.landing-theme-sunset .social-icon, .phone-screen.landing-theme-sunset .social-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
body.landing-theme-sunset .social-icon:hover, .phone-screen.landing-theme-sunset .social-icon:hover {
    background: #ffffff !important;
    color: #ec4899 !important;
}

/* 4. Forest Moss Theme */
body.landing-theme-forest, .phone-screen.landing-theme-forest {
    background: linear-gradient(180deg, #0f1c15, #050b07) !important;
    color: #e2e8f0 !important;
}
body.landing-theme-forest .landing-panel, .phone-screen.landing-theme-forest .landing-panel {
    background: rgba(16, 29, 21, 0.7) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}
body.landing-theme-forest .hero-title-sm, .phone-screen.landing-theme-forest .hero-title-sm {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
}
body.landing-theme-forest .hero-subtitle, .phone-screen.landing-theme-forest .hero-subtitle {
    color: #a7f3d0 !important;
}
body.landing-theme-forest .eyebrow-pill, .phone-screen.landing-theme-forest .eyebrow-pill {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.1) !important;
    border: 1px solid rgba(52, 211, 153, 0.2) !important;
}
body.landing-theme-forest .btn-brand, .phone-screen.landing-theme-forest .btn-brand {
    background: #10b981 !important;
    border: none !important;
    color: #ffffff !important;
}
body.landing-theme-forest .btn-brand:hover, .phone-screen.landing-theme-forest .btn-brand:hover {
    background: #059669 !important;
}
body.landing-theme-forest .btn-outline-brand, .phone-screen.landing-theme-forest .btn-outline-brand {
    border: 1px solid #34d399 !important;
    color: #34d399 !important;
}
body.landing-theme-forest .social-icon, .phone-screen.landing-theme-forest .social-icon {
    background: rgba(16, 29, 21, 0.5) !important;
    border: 1px solid rgba(52, 211, 153, 0.2) !important;
    color: #a7f3d0 !important;
}
body.landing-theme-forest .social-icon:hover, .phone-screen.landing-theme-forest .social-icon:hover {
    background: #10b981 !important;
    color: #ffffff !important;
}

/* 5. Clean Minimalist Theme */
body.landing-theme-minimal, .phone-screen.landing-theme-minimal {
    background: #f8fafc !important;
    color: #0f172a !important;
}
body.landing-theme-minimal .landing-panel, .phone-screen.landing-theme-minimal .landing-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    border-radius: 12px !important;
}
body.landing-theme-minimal .hero-title-sm, .phone-screen.landing-theme-minimal .hero-title-sm {
    color: #0f172a !important;
    font-weight: 700;
}
body.landing-theme-minimal .hero-subtitle, .phone-screen.landing-theme-minimal .hero-subtitle {
    color: #475569 !important;
}
body.landing-theme-minimal .eyebrow-pill, .phone-screen.landing-theme-minimal .eyebrow-pill {
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}
body.landing-theme-minimal .btn-brand, .phone-screen.landing-theme-minimal .btn-brand {
    background: #0f172a !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}
body.landing-theme-minimal .btn-brand:hover, .phone-screen.landing-theme-minimal .btn-brand:hover {
    background: #1e293b !important;
}
body.landing-theme-minimal .btn-outline-brand, .phone-screen.landing-theme-minimal .btn-outline-brand {
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 6px !important;
}
body.landing-theme-minimal .btn-outline-brand:hover, .phone-screen.landing-theme-minimal .btn-outline-brand:hover {
    background: #f1f5f9 !important;
}
body.landing-theme-minimal .social-icon, .phone-screen.landing-theme-minimal .social-icon {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 6px !important;
}
body.landing-theme-minimal .social-icon:hover, .phone-screen.landing-theme-minimal .social-icon:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* â”€â”€ Theme Selector Visual Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.theme-card {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 0.6rem;
    cursor: pointer;
    text-align: center;
    background: var(--bg-elevated);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.theme-card.active {
    border-color: var(--brand);
    background: var(--brand-glow);
    box-shadow: 0 4px 12px var(--brand-glow);
}

.theme-card span {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--text);
}

.theme-preview {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.theme-preview-default {
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
}
[data-theme="dark"] .theme-preview-default {
    background: linear-gradient(135deg, #09090b, #18181b);
}

.theme-preview-dark-glass {
    background: radial-gradient(circle at top left, #120e2e, #03001e);
}

.theme-preview-cyberpunk {
    background: linear-gradient(135deg, #03001e, #ff007f);
}

.theme-preview-sunset {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
}

.theme-preview-forest {
    background: linear-gradient(135deg, #0f1c15, #050b07);
}

.theme-preview-minimal {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

/* â”€â”€ Live Preview Simulator Mockup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.landing-preview-sticky {
    position: sticky;
    top: 2rem;
    z-index: 10;
    margin-bottom: 2rem;
}

.phone-mockup {
    width: 100%;
    max-width: 320px;
    height: 580px;
    border: 12px solid #1e293b;
    border-radius: 36px;
    background: #000;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--bg);
    padding: 2.25rem 1rem 1rem;
    scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}

.phone-screen .landing-panel {
    min-height: 100%;
    border-radius: 16px;
    transition: all var(--transition);
}

.social-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

/* ── Skeleton Loading Components ── */
.skeleton-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    height: 12px;
    background: var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.skeleton-text.title {
    height: 20px;
    width: 60%;
    margin-bottom: 1.25rem;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    background: var(--border);
    border-radius: var(--radius-round);
    position: relative;
    overflow: hidden;
}

.skeleton-chart {
    height: 200px;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.skeleton-chart-bar {
    flex: 1;
    background: var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 20px;
    position: relative;
    overflow: hidden;
}

/* Shimmer Animation overlay */
.skeleton-card::after,
.skeleton-text::after,
.skeleton-avatar::after,
.skeleton-chart::after,
.skeleton-chart-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: skeletonShimmer 1.6s infinite linear;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Keyboard focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px var(--brand-glow) !important;
}

/* ── Dashboard List View Layout ── */
.dashboard-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-grid.list-view .dashboard-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
}

.dashboard-grid.list-view .dashboard-card-top {
    margin-bottom: 0 !important;
}

.dashboard-grid.list-view .dashboard-card-title {
    margin: 0 !important;
    font-size: 1.1rem;
    flex: 1 1 200px;
}

.dashboard-grid.list-view .short-link-display {
    margin: 0 !important;
    font-size: 0.95rem;
    flex: 1 1 200px;
}

.dashboard-grid.list-view .dashboard-tag-chips {
    margin: 0 !important;
    flex: 0 1 auto;
}

.dashboard-grid.list-view .dashboard-meta {
    margin: 0 !important;
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-grid.list-view .dashboard-actions {
    margin-top: 0 !important;
}

.dashboard-grid.list-view form {
    margin-top: 0 !important;
    width: auto !important;
}

.dashboard-grid.list-view form .btn-outline-danger {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* ── Wizard UI Components ── */
.wizard-steps-container {
    padding: 1rem 0;
    max-width: 500px;
    margin: 0 auto 2rem;
}
.wizard-steps-row {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.wizard-progress-bar {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    z-index: 1;
}
.wizard-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    cursor: pointer;
}
.wizard-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.wizard-step.active .step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 0 0 4px var(--brand-glow);
}
.wizard-step.completed .step-num {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.wizard-step .step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.wizard-step.active .step-label {
    color: var(--brand);
    font-weight: 700;
}
.wizard-step.completed .step-label {
    color: var(--success);
}
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.wizard-step-panel {
    display: none;
}
.wizard-step-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ── Drag & Drop Zones ── */
.drag-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    padding: 2.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}
.drag-drop-zone:hover,
.drag-drop-zone.dragover {
    border-color: var(--brand);
    background: var(--brand-glow);
    transform: scale(0.99);
}
.drag-drop-zone i {
    transition: transform var(--transition);
}
.drag-drop-zone:hover i {
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════
   UX REDESIGN — New Premium Components
   ═══════════════════════════════════════════════════════════ */

/* ── Create page header ──────────────────────────────────── */
.create-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.create-page-header-text h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
}
.create-page-header-text p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

/* ── Link type selector cards (2×2 grid) ─────────────────── */
.link-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .link-type-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}
.link-type-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    text-align: center;
    font: inherit;
    user-select: none;
}
.link-type-card:hover {
    border-color: var(--brand);
    background: var(--brand-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.link-type-card.selected {
    border-color: var(--brand);
    background: var(--brand-glow);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.link-type-card .ltc-icon {
    font-size: 1.75rem;
    line-height: 1;
}
.link-type-card .ltc-label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
}
.link-type-card .ltc-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* ── Create form single-page layout ─────────────────────── */
.create-form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.create-form-panel-title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}
.create-form-panel-title i {
    color: var(--brand);
    font-size: 1.1rem;
}
.create-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.create-submit-row .btn-brand {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

/* ── Dashboard v2 card grid (3 per row) ─────────────────── */
.dashboard-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .dashboard-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .dashboard-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}
.link-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
    position: relative;
    overflow: hidden;
}
.link-card-v2:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-active);
}
.link-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-3));
    opacity: 0;
    transition: opacity 200ms ease;
}
.link-card-v2:hover::before {
    opacity: 1;
}
.link-card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}
.link-card-v2-short-url {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.link-card-v2-short-url:hover {
    text-decoration: underline;
    color: var(--brand-2);
}
.link-card-v2-destination {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
    display: block;
}
.link-card-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex: 1;
}
.link-card-v2-actions {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 0.4rem;
    align-items: center;
    margin-top: auto;
}
.link-card-v2-actions .btn-copy-main {
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.4rem 0.75rem;
}
.link-card-v2-actions .btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.9rem;
    transition: background 150ms ease, color 150ms ease;
}
.link-card-v2-actions .btn-icon-sm:hover {
    background: var(--surface-2);
}

/* ── Floating Action Button ──────────────────────────────── */
.fab-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    z-index: 900;
    text-decoration: none;
}
@media (min-width: 576px) {
    .fab-btn {
        display: none;
    }
}
.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
    color: #fff;
}
@media (max-width: 767px) {
    .fab-btn {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* ── Analytics stat card with gradient accent ────────────── */
.stat-card-accent {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    padding-inline-start: 1.75rem;
    overflow: hidden;
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.stat-card-accent:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.stat-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand), var(--brand-3));
    border-radius: 4px;
}
.stat-card-accent .stat-value {
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-card-accent .stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.stat-card-accent .stat-icon {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    font-size: 1.5rem;
    opacity: 0.15;
}
.analytics-filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.analytics-presets,
.analytics-custom-range,
.analytics-date-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.analytics-custom-range {
    flex: 1 1 520px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.analytics-date-field .form-control {
    width: 170px;
}
.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 260px;
}
@media (max-width: 767.98px) {
    .analytics-filter-form,
    .analytics-custom-range {
        align-items: stretch;
        flex-direction: column;
    }
    .analytics-presets {
        align-items: flex-start;
        flex-direction: column;
    }
    .analytics-preset-group {
        width: 100%;
    }
    .analytics-preset-group .btn {
        flex: 1 1 0;
    }
    .analytics-date-field {
        justify-content: space-between;
    }
    .analytics-date-field .form-control {
        width: min(220px, 68vw);
    }
}

/* ── Tag chips v2 (pill with count + actions) ────────────── */
.tags-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.tag-chip-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-round);
    padding: 0.4rem 0.75rem 0.4rem 0.9rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    position: relative;
}
.tag-chip-v2:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.tag-chip-v2 .tag-count {
    background: var(--brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-round);
    line-height: 1.4;
}
.tag-chip-v2 .tag-actions {
    display: flex;
    gap: 0.2rem;
    opacity: 0;
    transition: opacity 150ms ease;
    align-items: center;
}
.tag-chip-v2:hover .tag-actions {
    opacity: 1;
}
.tag-chip-v2 .tag-action-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1;
    transition: color 120ms ease, background 120ms ease;
}
.tag-chip-v2 .tag-action-btn:hover {
    color: var(--text);
    background: var(--surface);
}
.tag-chip-v2 .tag-action-btn.danger:hover {
    color: var(--danger);
}

/* ── Profile hero header ─────────────────────────────────── */
.profile-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 2.5rem 2rem 4rem;
    margin: -2rem -2rem 0;
    position: relative;
}
.profile-hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 200ms ease;
}
.profile-hero-avatar:hover {
    border-color: rgba(255,255,255,0.6);
}
.profile-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.profile-hero-avatar .avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 200ms ease;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #fff;
}
.profile-hero-avatar:hover .avatar-overlay {
    opacity: 1;
}
.profile-hero-name {
    color: rgba(255,255,255,0.95);
    font-size: var(--text-xl);
    font-weight: 800;
    margin: 0;
}
.profile-hero-email {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    margin: 0;
}

/* ── Dashboard workspace ─────────────────────────────────── */
.dashboard-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.dashboard-page-header .hero-title {
    margin-bottom: 0.4rem;
    letter-spacing: 0;
}
.dashboard-create-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    border-radius: 8px;
}
.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dashboard-stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}
.dashboard-stat-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 8px;
    font-size: 1rem;
}
.dashboard-stat-icon-brand {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 11%, transparent);
}
.dashboard-stat-icon-success {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 11%, transparent);
}
.dashboard-stat-icon-info {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
}
.dashboard-stat-icon-neutral {
    color: var(--text-muted);
    background: var(--surface-2);
}
.dashboard-stat-card div {
    min-width: 0;
}
.dashboard-stat-card strong,
.dashboard-stat-card div > span {
    display: block;
}
.dashboard-stat-card strong {
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}
.dashboard-stat-card div > span {
    margin-top: 0.18rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-control-panel {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dashboard-filter-form {
    padding: 0.9rem;
}
.dashboard-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}
.dashboard-search-box {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.dashboard-search-box > i {
    position: absolute;
    inset-inline-start: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--text-muted);
    pointer-events: none;
}
.dashboard-search-box .form-control {
    height: 42px;
    padding-inline-start: 2.35rem;
    border-radius: 7px;
    background: var(--surface-2);
}
.dashboard-search-btn,
.dashboard-clear-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 7px;
}
.dashboard-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
}
.dashboard-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}
.dashboard-filter-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.dashboard-filter-chip:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
.dashboard-filter-chip.active {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.dashboard-sort-control {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface-2);
}
.dashboard-sort-control > span {
    padding: 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
}
.dashboard-sort-option {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}
.dashboard-sort-option:hover {
    color: var(--text);
}
.dashboard-sort-option.active {
    color: var(--text);
    background: var(--bg-elevated-strong);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}
.dashboard-results-row {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}
.dashboard-filter-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand);
}
.dashboard-empty-state {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed color-mix(in srgb, var(--brand) 28%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 2.5%, var(--bg-elevated));
    text-align: center;
}
.dashboard-empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 1.45rem;
}
.dashboard-empty-icon-brand {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.dashboard-empty-eyebrow {
    margin-bottom: 0.35rem;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.dashboard-empty-state h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
}
.dashboard-empty-state p {
    max-width: 420px;
    margin: 0.45rem auto 1.15rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.dashboard-empty-state .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
}

/* Shared status and protected-content pages */
.state-page {
    min-height: min(68vh, 680px);
    display: grid;
    place-items: center;
    padding: 2rem 0 3rem;
}
.state-panel {
    width: min(560px, 100%);
    padding: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.state-panel-compact {
    width: min(440px, 100%);
}
.state-panel-form {
    width: min(440px, 100%);
}
.state-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    font-size: 1.55rem;
}
.state-icon-brand {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.state-icon-warning {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
}
.state-icon-danger {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.state-code {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--brand);
    font-size: 2rem;
    line-height: 1;
    font-weight: 850;
}
.state-eyebrow {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.state-panel h1 {
    margin: 0;
    color: var(--text);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0;
}
.state-panel > p {
    max-width: 440px;
    margin: 0.7rem auto 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}
.state-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1.35rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: start;
}
.state-notice-warning {
    border-color: rgba(217, 119, 6, 0.22);
    background: rgba(217, 119, 6, 0.06);
}
.state-notice-warning i {
    color: #d97706;
}
.state-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    border-radius: 7px;
}
.media-preview img,
.landing-hero-media img {
    max-height: min(62vh, 560px);
    object-fit: contain;
}
.responsive-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.responsive-toolbar > .form-control,
.responsive-toolbar > .form-select,
.responsive-toolbar > .input-group {
    flex: 1 1 240px;
}
.tool-page {
    padding: 1rem 0 3rem;
}
.tool-page .page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    grid-template-columns: none;
}
.tool-grid {
    display: grid;
    gap: 1rem;
}
.tool-grid-qr {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
}
.tool-panel {
    min-width: 0;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}
.qr-preview-panel {
    position: sticky;
    top: 1rem;
    text-align: center;
}
.qr-preview-container {
    width: min(100%, 312px);
    margin: 0 auto 0.8rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.qr-preview-canvas {
    width: min(280px, 100%);
    height: auto;
    display: block;
    margin-inline: auto;
}
.color-value-input {
    max-width: 110px;
}
.tag-chip-v2:focus-within .tag-actions {
    opacity: 1;
    visibility: visible;
}
@media (hover: none) {
    .tag-chip-v2 .tag-actions {
        opacity: 1;
        visibility: visible;
    }
}
@media (max-width: 767.98px) {
    .tool-page .page-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .tool-grid-qr {
        grid-template-columns: 1fr;
    }
    .qr-preview-panel {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .state-page {
        min-height: 60vh;
        padding: 1.25rem 0 2rem;
    }
    .state-panel {
        padding: 1.5rem 1.15rem;
    }
    .state-panel h1 {
        font-size: 1.4rem;
    }
    .state-action {
        width: 100%;
    }
    .responsive-toolbar > * {
        width: 100%;
    }
}
@media (max-width: 991.98px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-filter-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 575.98px) {
    .dashboard-page-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-create-btn {
        width: 100%;
    }
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
    .dashboard-stat-card {
        padding: 0.75rem;
    }
    .dashboard-stat-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .dashboard-search-row {
        flex-wrap: wrap;
    }
    .dashboard-search-box {
        flex-basis: 100%;
    }
    .dashboard-search-btn {
        flex: 1 1 auto;
    }
    .dashboard-sort-control {
        width: 100%;
    }
    .dashboard-sort-option {
        flex: 1 1 0;
    }
}

/* ── Dashboard filter bar v2 ─────────────────────────────── */
.filter-bar-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
}
.filter-search-v2 {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.filter-search-v2 input {
    padding-left: 2.25rem;
    border-radius: var(--radius-round) !important;
    font-size: var(--text-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.filter-search-v2 input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}
.filter-search-v2 .search-icon-v2 {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}
.filter-chip-group {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-round);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    text-decoration: none;
}
.filter-chip:hover, .filter-chip.active {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-glow);
}
