/* === BUTTONS === */
        .btn {
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            font-size: 14px;
            font-family: inherit;
        }

        .btn-primary {
            background: var(--accent);
            color: #0b1633;
        }

        .btn-primary:hover {
            background: #e69500;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--card);
            color: var(--white);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--bg-hover);
            transform: translateY(-2px);
        }

        /* === STATS GRID === */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: var(--card);
            padding: 24px;
            border-radius: var(--radius);
            text-align: center;
            border: 1px solid var(--border);
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
        }

        .stat-icon {
            font-size: 32px;
            margin-bottom: 12px;
            color: var(--accent);
        }

        .stat-number {
            font-size: 36px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 14px;
            color: var(--muted);
            font-weight: 500;
        }

        /* === NAVIGATION TABS === */
        .nav-tabs {
            display: flex;
            background: var(--card);
            border-radius: var(--radius);
            padding: 8px;
            margin-bottom: 30px;
            border: 1px solid var(--border);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .nav-tabs::-webkit-scrollbar {
            display: none;
        }

        .nav-tab {
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            user-select: none;
        }

        .nav-tab:hover {
            background: var(--bg-hover);
        }

        .nav-tab.active {
            background: var(--accent);
            color: #0b1633;
        }

        .nav-tab-badge {
            background: var(--error);
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 4px;
        }

        /* === CONTENT SECTIONS === */
        .section {
            margin-bottom: 40px;
            animation: fadeIn 0.3s ease;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .section-title {
            font-size: 24px;
            font-weight: 700;
        }

        .section-subtitle {
            font-size: 14px;
            color: var(--muted);
            margin-top: 4px;
        }

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

         /* === ACTION CARDS (list/dashboard UI — NOT category grid cards) === */
        .action-card {
            background: var(--card);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: var(--transition);
            position: relative;
        }

        .action-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
        }

        .action-card-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .action-card-title {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .action-card-body {
            padding: 20px;
        }

        .action-card-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border);
            background: var(--bg);
        }

        /* === FOLLOWER/COMMUNITY CARDS === */
        .community-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 20px;
            border: 1px solid var(--border);
            transition: var(--transition);
            margin-bottom: 16px;
        }

        .community-card:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
        }

        .community-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .community-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #0b1633;
            flex-shrink: 0;
        }

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

        .community-name {
            font-weight: 600;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .community-username {
            color: var(--muted);
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .community-stats {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
        }

        .community-stat {
            text-align: center;
            flex: 1;
        }

        .community-stat-number {
            font-size: 18px;
            font-weight: 600;
            color: var(--accent);
        }

        .community-stat-label {
            font-size: 12px;
            color: var(--muted);
        }

        .community-actions {
            display: flex;
            gap: 8px;
        }

        /* === MODALS === */
        .modal {
            position: absolute;
            top: 0;
            left: 0;
            width: 100dvw;
            height: 100dvh;
            background: rgba(6, 12, 28, 0.72);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: var(--z-modal);
            padding: 20px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--card);
            border-radius: var(--radius);
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--border);
        }

        @keyframes profileModalFlyUp {
            from { opacity: 0; transform: translateY(22px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .modal-content.profile-modal-fly-up,
        .confirm-content.profile-modal-fly-up {
            animation: profileModalFlyUp 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--muted);
            line-height: 1;
            padding: 0;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            color: var(--white);
        }

        .modal-body {
            padding: 20px;
        }

        /* Unified custom-list modal (matches index/menu adapter UI) */
        #createListModal.menu-modal {
            position: fixed;
            inset: 0;
            z-index: var(--z-max);
            background: rgba(6, 12, 28, 0.72);
            backdrop-filter: blur(4px);
        }

        #createListModal .menu-modal-content {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 18px;
            width: 100%;
            max-width: 380px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 12px 34px rgba(0,0,0,0.28);
        }

        @keyframes profileListModalFlyUp {
            from { opacity: 0; transform: translateY(22px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        #createListModal.active .menu-modal-content {
            animation: profileListModalFlyUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #createListModal .menu-modal-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
        }

        #createListModal .menu-modal-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }

        #createListModal .menu-modal-close {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            color: var(--muted);
        }

        #createListModal .menu-modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
        }

        #createListModal .menu-modal-body {
            padding: 16px 20px 20px;
        }

        #createListModal .menu-input {
            width: 100%;
            padding: 12px 16px;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--white);
            font-size: 14px;
        }

        #createListModal .menu-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        #createListModal .menu-icon-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin-top: 8px;
        }

        #createListModal .menu-icon-option {
            aspect-ratio: 1;
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--white);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 16px;
            padding: 0;
        }

        #createListModal .menu-icon-option:hover {
            border-color: var(--accent);
            transform: scale(1.04);
        }

        #createListModal .menu-icon-option.selected {
            border-color: var(--accent);
            background: color-mix(in srgb, var(--color-accent) 20%, transparent);
            color: var(--accent);
        }

        #createListModal .menu-modal-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 10px;
        }

        #createListModal .menu-modal-actions .menu-btn {
            min-height: 42px;
            padding: 10px 16px;
            border-radius: 12px;
        }

        @media (max-width: 768px) {
            #createListModal .menu-modal-content {
                width: calc(100vw - 14px);
                max-width: 100vw;
                max-height: min(86dvh, 740px);
                border-radius: 18px 18px 14px 14px;
            }

            #createListModal .menu-modal-body {
                padding: 12px 14px 16px;
            }

            #createListModal .menu-input {
                min-height: 46px;
                font-size: 15px;
                padding: 12px 14px;
            }

            #createListModal .menu-icon-option {
                min-height: 46px;
                border-radius: 12px;
            }

            #createListModal .menu-modal-actions {
                position: sticky;
                bottom: 0;
                margin: 12px -14px -16px;
                padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
                background: linear-gradient(180deg, rgba(19, 35, 71, 0.92), rgba(19, 35, 71, 1));
                border-top: 1px solid var(--border);
                flex-direction: column-reverse;
                gap: 8px;
            }

            #createListModal .menu-modal-actions .menu-btn {
                width: 100%;
                min-height: 44px;
                font-size: 15px;
            }
        }

        .remove-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 28px;
            height: 28px;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            z-index: 10;
            opacity: 0;
            transition: var(--transition);
        }
