/* Font Awesome font-display override — ensures text stays visible during webfont load */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}

/* CSS Custom Properties - DARK THEME */
:root {
    /* ── Brand palette ── */
    --color-bg: #080c10;
    --color-accent: #10e6a0;
    --color-text-primary: #f0f4f8;

    /* ── Mapped tokens ── */
    --primary-color: #10e6a0;
    --primary-dark: #0abf87;
    --primary-light: #4df0bc;
    --secondary-color: rgba(240, 244, 248, 0.55);
    --accent-color: #10e6a0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #0d1117;
    --dark-color: #f0f4f8;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --top-bar-height: 70px;
    --popular-bar-height: 50px;
    --gradient-primary: linear-gradient(135deg, #10e6a0 0%, #0abf87 100%);
    --gradient-secondary: linear-gradient(135deg, #4df0bc 0%, #10e6a0 100%);
    --gradient-success: linear-gradient(135deg, #10e6a0 0%, #4df0bc 100%);
    --gradient-instagram: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    --gradient-vibrant: linear-gradient(135deg, #10e6a0 0%, #0abf87 50%, #06d6a0 100%);
    --font-display:        'Syne', sans-serif;
    --font-body:           'DM Sans', sans-serif;
    --font-mono:           'DM Mono', monospace;
    --font-family-primary: var(--font-body);
    --font-family-mono:    var(--font-mono);
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-vibrant: 0 10px 30px rgba(16, 230, 160, 0.25);
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Skip-to-content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-semibold);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    background-image: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ── Typography roles ── */

/* Display / Headings → Syne */
h1, h2, h3, h4, h5, h6,
.page-title,
.preview-title,
.brand-link,
.brand-text,
.brand-logo,
.footer-title,
.section-header {
    font-family: var(--font-display);
}

/* Monospace / Data → DM Mono */
code, pre, kbd,
.bio-text,
#editBioTextarea {
    font-family: var(--font-mono);
}

/* Top Generator Bar */
.top-generator-bar {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-vibrant);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--top-bar-height);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: left var(--transition-normal);
}

.top-generator-bar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.top-generator-bar .row {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* ── Global centered layout — same gap everywhere ── */
:root {
    --page-max-width: 1320px;
    --page-pad: 1.5rem;
}

/* Shared centering rule applied to all three areas */
.top-generator-bar .container-fluid,
.main-content .container-fluid,
.footer .container {
    max-width: var(--page-max-width);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--page-pad) !important;
    padding-right: var(--page-pad) !important;
    width: 100%;
    box-sizing: border-box;
}

/* Cancel Bootstrap row negative margins inside main content
   so they don't bleed outside the centered container */
.main-content .container-fluid > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Keep column inner spacing */
.main-content .container-fluid > .row > [class*="col"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Footer: Bootstrap container max-width override */
.footer .container {
    max-width: var(--page-max-width) !important;
}

.top-generator-bar.sidebar-collapsed {
    /* left: 0; */
}

.brand-section {
    display: flex;
    align-items: center;
    height: 100%;
    transition: var(--transition-normal);
    width: auto;
    flex-shrink: 0;
}

#headerBrand {
    display: flex;
    opacity: 1;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.brand-link:hover {
    transform: scale(1.05);
    color: var(--color-accent) !important;
}

.brand-link i {
    font-size: 1.75rem;
    color: var(--color-accent);
    animation: pulse 2s infinite;
}

.brand-text {
    font-size: 1.4rem;
    color: var(--color-text-primary);
}

.top-generator-bar .form-control,
.top-generator-bar .form-select {
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    font-weight: var(--font-weight-medium);
}

.top-generator-bar .form-control::placeholder {
    color: var(--secondary-color);
}

.top-generator-bar .form-control:focus,
.top-generator-bar .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(236, 72, 153, 0.25);
    background: white;
    color: var(--dark-color);
}

.top-generator-bar .form-select option {
    background: white;
    color: var(--dark-color);
}

.checkbox-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-generator-bar .form-check-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    margin-left: 0.25rem;
    color: white;
}

.top-generator-bar .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.main-btn{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: auto;
}


.top-generator-bar .btn {
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    height: 38px;
    font-weight: var(--font-weight-medium);
}

.btn-categories {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    height: 38px;
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.btn-categories:hover {
    color: var(--color-accent);
    background: rgba(16, 230, 160, 0.08);
}

/* UNUSED: .btn-outline-light not used in top bar (replaced by .btn-categories)
.top-generator-bar .btn-outline-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-generator-bar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: white;
} */

.top-generator-bar .btn-light {
    background: white;
    border: none;
    color: var(--primary-color);
}

/* .top-generator-bar .btn-light:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
} */

.top-generator-bar .navbar-toggler {
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    color: white;
    /* background: rgba(255, 255, 255, 0.2); */
    font-size: 22px;
}

/* .top-generator-bar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.3);
} */

/* Popular Scroll Bar */
.popular-scroll-bar {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    height: var(--popular-bar-height);
    background: white;
    border-bottom: 1px solid #e2e8f0;
    z-index: 999;
    transition: left var(--transition-normal);
}

.popular-scroll-bar.sidebar-collapsed {
    /* left: 0; */
    display: flex;
        align-items: center;
    justify-content: center;
}

.popular-scroll-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    gap: 1rem;
}

.popular-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.popular-label i {
    color: var(--accent-color);
}

.popular-scroll-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popular-scroll-list::-webkit-scrollbar {
    display: none;
}

.popular-scroll-item {
    padding: 0.375rem 0.75rem;
    background: var(--light-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-lg);
    font-weight: var(--font-weight-medium);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--secondary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.popular-scroll-item:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Fixed Sidebar - Hidden in desktop mode */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    overflow-y: auto;
    transition: width var(--transition-normal), transform var(--transition-normal);
    transform: translateX(-100%);
    /* Hide sidebar completely in desktop mode */
    display: none;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    transform: translateX(0);
    /* Hide sidebar completely in desktop mode */
    display: none;
}

.sidebar.collapsed .section-text,
.sidebar.collapsed .category-text {
    display: none;
}

.sidebar.collapsed .section-header {
    justify-content: center;
}

.sidebar.collapsed .category-item {
    justify-content: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.sidebar.collapsed .sidebar-brand {
    padding: 1rem;
    text-align: center;
}

/* Sidebar Brand - Removed name and tagline */
.sidebar-brand {
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Toggle Button - Hidden in desktop mode */
.sidebar-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1002;
    box-shadow: var(--shadow-vibrant);
    border: none;
    /* Hide sidebar toggle completely in desktop mode */
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    left: var(--sidebar-collapsed-width);
    /* Hide sidebar toggle completely in desktop mode */
    display: none;
}

.sidebar-toggle:hover {
    background: var(--gradient-secondary);
    transform: translateY(-50%) scale(1.1);
}

.sidebar-toggle i {
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.sidebar:not(.collapsed) .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-content {
    padding: 0;
}

.sidebar-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    font-weight: var(--font-weight-semibold);
    color: white;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.section-header i {
    color: white;
    font-size: 1rem;
    min-width: 16px;
}

/* Category List */
.category-list {
    background: rgba(0, 0, 0, 0.1);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding-left: 1.5rem;
}

.category-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-right: 3px solid var(--accent-color);
    font-weight: var(--font-weight-semibold);
}

.category-item i {
    min-width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding-top: 80px;
    min-height: 100vh;
    background: transparent;
    transition: margin-left var(--transition-normal);
}

/* .main-content.sidebar-collapsed {
    margin-left: 0;
} */

/* Mobile Generator */
.mobile-generator {
    padding: 0 1rem;
}

.generator-form-mobile {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.generator-form-mobile .form-control,
.generator-form-mobile .form-select {
    border-radius: var(--border-radius-lg);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.generator-form-mobile .form-control:focus,
.generator-form-mobile .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Results Header */
.results-header {
    padding: 1.5rem 0 1rem;
    margin-bottom: 1rem;
    margin-top: 20px;
}

.page-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: var(--font-weight-medium);
}

/* Results Section */
.results-section {
    padding: 0 0 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* Bio Cards with Edit Button */
.bio-card {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition-normal);
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-family-primary);
}

.bio-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /* background: var(--gradient-vibrant); */
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.bio-card:hover::before {
    opacity: 1;
}

.bio-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-vibrant);
    border-color: transparent;
    border-color: #7c18ff;
}

.bio-card.copied {
    background: #f0fdf4;
    border-color: var(--success-color);
    animation: copyPulse 0.6s ease-out;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.bio-text {
    /* display: none; */
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    word-break: break-word;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    white-space: pre-line;
}

/* Edit Button on Bio Cards */
.bio-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.bio-card:hover .bio-card-actions {
    opacity: 1;
}

.bio-edit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
}

.bio-edit-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
}

/* Instagram Preview */
.preview-container {
    position: sticky;
    top: calc(var(--top-bar-height) + var(--popular-bar-height) + 2rem);
}

.preview-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-preview {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-vibrant);
    position: relative;
}

.instagram-preview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-vibrant);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.preview-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.preview-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.preview-info {
    flex: 1;
}

.preview-username {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.preview-name {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.preview-follow {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.4rem 1rem;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    cursor: default;
}

.preview-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.preview-stat {
    text-align: center;
}

.stat-number {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.preview-bio {
    padding: 1rem;
    min-height: 100px;
    color: var(--dark-color);
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
    word-break: break-word;
}

.preview-actions {
    display: flex;
    padding: 0 1rem 1rem;
    gap: 0.5rem;
}

.preview-btn {
    flex: 1;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    font-size: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.preview-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
}

/* Edit Modal Styling */
.modal-content {
    border-radius: var(--border-radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.modal-title {
    font-weight: var(--font-weight-semibold);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#editBioTextarea {
    border-radius: var(--border-radius-lg);
    border: 2px solid #e2e8f0;
    font-family: var(--font-family-primary);
    resize: vertical;
}

#editBioTextarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.modal-footer .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.modal-footer .btn-primary:hover {
    background: var(--gradient-secondary);
}

/* Combined Floating Buttons */
.floating-buttons {
    
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    background: var(--gradient-primary);
    border-radius: 58px;
}

.floating-buttons.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1.2rem;
/* box-shadow: var(--shadow-vibrant); */
    background: transparent;
}

.scroll-btn,.share-btn {
    color: white;
}

.scroll-btn:hover {
    /* background: var(--gradient-secondary);
    transform: scale(1.1) translateY(-2px); */
}

.share-btn {
    /* background: var(--gradient-success);
    color: white; */
}

.share-btn:hover {
    /* background: var(--success-color);
    transform: scale(1.1) translateY(-2px); */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-left: 0;
    position: relative;
    transition: margin-left var(--transition-normal);
}

.footer.sidebar-collapsed {
    margin-left: 0;
}

/* .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
} */

/* UNUSED: footer brand column removed from footer HTML
.footer-content {
    position: relative;
}

.footer-brand {
    margin-bottom: 2rem;
} */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.brand-logo span {
    background: linear-gradient(135deg, var(--color-accent), #4df0bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* UNUSED: footer-description, footer-stats, stat-item — brand column removed
.footer-description {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-medium);
}

.stat-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
} */

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
        font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

/* .footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--gradient-vibrant);
    border-radius: var(--border-radius-sm);
} */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '▸';
    margin-right: 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0;
    justify-content: flex-end;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #080c10;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 230, 160, 0.3);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    font-size: 0.875rem;
}

.footer-copyright .fas.fa-heart,
.footer-heart {
    color: #E4405F;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-medium);
    z-index: 10000;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.copy-toast.show {
    transform: translate(-50%, -50%) scale(1);
}

.copy-toast i {
    font-size: 1rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: contents;
}

.page-btn {
   padding: 7px 15px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--dark-color);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: var(--font-weight-medium);
    /* min-width: 48px; */
    text-align: center;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0.75rem 0.5rem;
    color: var(--secondary-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-spinner p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: var(--font-weight-medium);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* =============================================== */
/* DARK THEME — HARDCODED VALUE OVERRIDES         */
/* =============================================== */

/* Top navigation bar */
.top-generator-bar {
    background: #080c10;
    border-bottom: 1px solid rgba(16, 230, 160, 0.18);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.top-generator-bar .btn-light {
    background: var(--color-accent);
    color: #080c10;
    font-weight: var(--font-weight-semibold);
    border: none;
}

.top-generator-bar .form-control,
.top-generator-bar .form-select {
    background: rgba(240, 244, 248, 0.07);
    border-color: rgba(240, 244, 248, 0.15);
    color: var(--color-text-primary);
}

.top-generator-bar .form-control::placeholder {
    color: rgba(240, 244, 248, 0.35);
}

.top-generator-bar .form-control:focus,
.top-generator-bar .form-select:focus {
    background: rgba(240, 244, 248, 0.10);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(16, 230, 160, 0.2);
    color: var(--color-text-primary);
}

.top-generator-bar .form-select option {
    background: #0d1117;
    color: var(--color-text-primary);
}

/* Popular scroll bar */
.popular-scroll-bar {
    background: #0d1117;
    border-bottom: 1px solid rgba(240, 244, 248, 0.07);
}

.popular-label {
    color: var(--color-text-primary);
}

.popular-scroll-item {
    background: rgba(240, 244, 248, 0.05);
    border-color: rgba(240, 244, 248, 0.1);
    color: rgba(240, 244, 248, 0.6);
}

.popular-scroll-item:hover {
    background: var(--color-accent);
    color: #080c10;
    border-color: var(--color-accent);
}

/* Sidebar (mobile) */
.sidebar {
    background: linear-gradient(180deg, #080c10 0%, #0d1117 100%);
}

/* Mobile generator form */
.generator-form-mobile {
    background: #0d1117;
    border: 1px solid rgba(240, 244, 248, 0.08);
}

.generator-form-mobile .form-control,
.generator-form-mobile .form-select {
    background: rgba(240, 244, 248, 0.06);
    border-color: rgba(240, 244, 248, 0.15);
    color: var(--color-text-primary);
}

.generator-form-mobile .form-control:focus,
.generator-form-mobile .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(16, 230, 160, 0.2);
}

/* Bio cards */
.bio-card {
    background: #0d1117;
    border-color: rgba(240, 244, 248, 0.08);
}

.bio-card:hover {
    box-shadow: 0 8px 28px rgba(16, 230, 160, 0.18);
    border-color: var(--color-accent);
}

.bio-card.copied {
    background: #071a13;
    border-color: var(--color-accent);
}

/* Pagination */
.page-btn {
    background: #0d1117;
    border-color: rgba(240, 244, 248, 0.15);
    color: var(--color-text-primary);
}

.page-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(16, 230, 160, 0.07);
}

.page-btn.active {
    background: var(--color-accent);
    color: #080c10;
    border-color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
}

.page-ellipsis {
    color: rgba(240, 244, 248, 0.4);
}

/* Instagram preview panel */
.instagram-preview {
    background: #0d1117;
}

.preview-header {
    border-bottom-color: rgba(240, 244, 248, 0.08);
}

.preview-username {
    color: var(--color-text-primary);
}

.preview-stats {
    border-bottom-color: rgba(240, 244, 248, 0.08);
}

.stat-number {
    color: var(--color-text-primary);
}

.preview-bio {
    color: var(--color-text-primary);
}

/* Edit modal */
.modal-content {
    background: #0d1117;
    color: var(--color-text-primary);
    border: 1px solid rgba(240, 244, 248, 0.1);
}

.modal-body,
.modal-footer {
    background: #0d1117;
}

#editBioTextarea {
    background: rgba(240, 244, 248, 0.06);
    border-color: rgba(240, 244, 248, 0.15);
    color: var(--color-text-primary);
}

#editBioTextarea:focus {
    background: rgba(240, 244, 248, 0.09);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(16, 230, 160, 0.2);
}

/* Footer */
.footer {
    background: #040608;
}

.footer-links a {
    color: rgba(240, 244, 248, 0.6);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* =============================================== */
/* MOBILE RESPONSIVE STYLES */
/* =============================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .top-generator-bar .form-control,
    .top-generator-bar .form-select {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
        height: 36px;
    }
    
    .top-generator-bar .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        height: 36px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .popular-scroll-bar {
display: none;
}
    .som{display: none;}
    .col-lg-4{
        display: none;
    }
    /* Hide desktop sidebar completely on tablets and mobile */
    .sidebar {
        display: none !important;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    /* Adjust top bar for mobile */
    .top-generator-bar {
             /* left: 0 !important; */
        /* padding: 0.75rem 0; */
        height: auto;
        /* min-height: var(--top-bar-height);
    }
    
    .top-generator-bar.sidebar-collapsed {
        /* left: 0; */
    }
    
    /* Always show brand in header on mobile */
    .brand-section {
        /* display: flex !important;
        opacity: 1 !important; */
    }
    
    /* Adjust popular bar */
    .popular-scroll-bar {
        left: 0 !important;
        /* top: calc(var(--top-bar-height) + 10px); */
    }
    
    .popular-scroll-bar.sidebar-collapsed {
        left: 0;
    }
    
    /* Main content adjustments */
    /* .main-content {
        margin-left: 0 !important;
        padding-top: calc(var(--top-bar-height) + var(--popular-bar-height) + 20px);
    } */
    
    /* .main-content.sidebar-collapsed {
        margin-left: 0;
    } */
    
    /* Footer adjustments */
    .footer {
        margin-left: 0 !important;
    }
    
    .footer.sidebar-collapsed {
        margin-left: 0;
    }
    
    /* Make top bar controls more compact */
    .top-generator-bar .row > div {
        /* margin-bottom: 0.5rem; */
    }
    
    .top-generator-bar .col-lg-2,
    .top-generator-bar .col-lg-1 {
        /* flex: 0 0 auto;
        width: auto;
        min-width: 120px; */
    }
    
    /* Adjust form controls for tablets */
    .top-generator-bar .form-control,
    .top-generator-bar .form-select {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        height: 40px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Results adjustments */
    .results-header {
        padding: 1.25rem 0 0.75rem;
    }

    .results-section {
        padding: 0 0 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    /* UNUSED: .footer-stats removed
    .footer-stats {
        justify-content: center;
        flex-wrap: wrap;
    } */
    
    .footer-copyright {
        text-align: center;
    }
    
    /* Floating buttons */
    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    /* Mobile generator visibility */
    .mobile-generator {
        display: block !important;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .generator-form-mobile {
        padding: 1.25rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
       .popular-scroll-bar {
display: none;
}
    .som{display: none;}
    .col-lg-4{
        display: none;
    }
    .main-btn {

    width: 100px;
}
.align-items-center {
    justify-content: space-between;
}
    /* Top bar becomes more compact */
    .top-generator-bar {
        /* padding: 0.5rem 0;
        min-height: 60px; */
    }
    
    .top-generator-bar .container-fluid {
        /* padding: 0 0.75rem; */
    }
    
    /* Stack controls vertically on small tablets */
    .top-generator-bar .row {
        /* flex-direction: column;
        gap: 0.5rem; */
    }
    
    .top-generator-bar .row > div {
        /* width: 100%;
        margin-bottom: 0.25rem; */
    }
    
    .brand-section {
    
        /* order: 1;
        text-align: center;
        margin-bottom: 0.5rem; */
    }
    
    /* UNUSED: .generator-actions not present in HTML
    .generator-actions {
        order: 2;
        justify-content: center;
    } */
    
    /* Form controls in rows */
    .top-generator-bar .form-control,
    .top-generator-bar .form-select {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Popular bar adjustments */
    .popular-scroll-content {
        padding: 0 0.75rem;
    }
    
    .popular-label {
        font-size: 0.8rem;
    }
    
    .popular-scroll-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Main content */
    /* .main-content {
        padding-top: calc(120px + var(--popular-bar-height));
    } */
    
    /* Results adjustments */
    .results-header {
        padding: 1rem 0 0.75rem;
        text-align: center;
    }

    .results-section {
        padding: 0 0 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .bio-card {
        min-height: 100px;
        padding: 1rem;
    }
    
    .bio-text {
        font-size: 0.9rem;
    }
    
    /* Footer adjustments */
    /* UNUSED: .footer-stats removed
    .footer-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    } */
    
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0.75rem;
    }
    
    /* Mobile generator full width */
    .mobile-generator {
        padding: 0 1rem;
    }
    
    .generator-form-mobile .row {
        margin-bottom: 1rem;
    }
    
    /* UNUSED: .col-4 not used in mobile form (only .col-6)
    .generator-form-mobile .col-4, */
    .generator-form-mobile .col-6 {
        margin-bottom: 0.5rem;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .generator-form-mobile .d-flex {
        gap: 0.5rem; 
       display: none !important;
    }
    
    .col-12 {
    display: none;
}
       .popular-scroll-bar {
display: none;
}
    .som{display: none;}
    .col-lg-4{
        display: none;
    }
    /* Ultra compact top bar */
    .top-generator-bar {
        /* padding: 0.4rem 0;
        min-height: 50px; */
    }
    
    .top-generator-bar .container-fluid {
        /* padding: 0 0.5rem; */
    }
    
    /* Hide brand text on very small screens */
    .brand-text {
        /* display: none; */
    }
    
    .brand-link {
        font-size: 1.2rem;
        gap: 0.25rem;
    }
    
    .brand-link i {
        font-size: 1.4rem;
    }
    
    /* Compact controls */
    .top-generator-bar .form-control,
    .top-generator-bar .form-select {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
        height: 36px;
    }
    .randmtxt{display: none;}
    .top-generator-bar .btn {
        font-size: 1.1rem;
        padding: 0.35rem 0.6rem;
        height: 36px;
        color: white;
        background: transparent;
    }
    
    .checkbox-group .form-check-label {
        font-size: 0.7rem;
    }
    
    /* Popular bar ultra compact */
    .popular-scroll-content {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .popular-label {
        font-size: 0.75rem;
    }
    
    .popular-label span {
        display: none;
    }
    
    .popular-scroll-item {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Main content */
    /* .main-content {
        padding-top: calc(90px + var(--popular-bar-height));
    } */
    
    /* Results ultra compact */
    .results-header {
        padding: 0.75rem 0 0.5rem;
    }

    .results-section {
        padding: 0 0 0.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .bio-card {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .bio-text {
        font-size: 0.85rem;
    }
    
    /* Pagination compact */
    .pagination {
        gap: 0.25rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        font-size: 0.8rem;
    }
    
    /* Footer ultra compact */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    /* UNUSED: .footer-content and .footer-description removed (brand column gone)
    .footer-content {
        padding: 0 0.5rem;
    } */

    .brand-logo {
        font-size: 1.25rem;
        justify-content: center;
    }

    /* UNUSED: .footer-description removed
    .footer-description {
        font-size: 0.9rem;
        text-align: center;
    } */
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Floating buttons compact */
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* Mobile generator ultra compact */
    .mobile-generator {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .generator-form-mobile {
        padding: 1rem;
    }
    
    .generator-form-mobile .form-control,
    .generator-form-mobile .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .generator-form-mobile .row {
        margin-bottom: 0.75rem;
    }
    
    .generator-form-mobile .d-flex {
        gap: 0.5rem; display: none;
    }
    
    .generator-form-mobile .btn {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    /* Copy toast mobile */
    .copy-toast {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        max-width: 90vw;
    }
    
    /* Loading overlay mobile */
    .loading-spinner i {
        font-size: 2.5rem;
    }
    
    .loading-spinner p {
        font-size: 1rem;
    }
}

/* Ultra Small Mobile Devices */
@media (max-width: 380px) {
       .popular-scroll-bar {
display: none;
}
    .top-generator-bar {
        min-height: 45px;
        padding: 0.3rem 0;
    }
    
    .brand-link {
        font-size: 1rem;
    }
    
    .brand-link i {
        font-size: 1.2rem;
    }
    
    .top-generator-bar .form-control,
    .top-generator-bar .form-select,
    .top-generator-bar .btn {
        font-size: 1.2rem;
        height: 35px;
        padding: 0.3rem 0.4rem;
    }
    
    .popular-scroll-item {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .bio-card {
        padding: 0.5rem;
        min-height: 70px;
    }
    
    .bio-text {
        font-size: 0.8rem;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .copy-toast {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* Offcanvas Mobile Sidebar Customization */
.offcanvas {
    width: 280px;
    max-width: 85vw;
    background: var(--gradient-primary);
}

.offcanvas-title {
    font-weight: var(--font-weight-semibold);
    color: white;
}

.offcanvas-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}

#mobileSidebarContent {
    padding: 0;
}

#mobileSidebarContent .sidebar-brand {
    padding: 1rem;
    text-align: center;
}

#mobileSidebarContent .category-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

#mobileSidebarContent .category-item:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
    color: white;
}

#mobileSidebarContent .category-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: var(--font-weight-semibold);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .bio-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .bio-card:active {
        transform: scale(0.98);
        background: #f0f9ff;
    }
    
    .popular-scroll-item:hover {
        background: var(--light-color);
        color: var(--secondary-color);
        transform: none;
    }
    
    .popular-scroll-item:active {
        background: var(--gradient-primary);
        color: white;
    }
}

/* Brand icon badge */
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 9px;
    flex-shrink: 0;
}
.brand-link .brand-icon i,
.mob-logo .brand-icon i,
.offcanvas-title .brand-icon i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #080c10 !important;
    background-clip: unset !important;
    color: #080c10 !important;
    font-size: 1.1rem;
}
